| | |
| | | width: card.width || 24, |
| | | name: card.name, |
| | | subtype: card.subtype, |
| | | wrap: { name: card.name, width: card.width || 24, loginWays: ['uname_pwd'] }, |
| | | wrap: { name: card.name, width: card.width || 24, loginWays: ['uname_pwd'], shortcut: 'remember' }, |
| | | style: { background: '#ffffff', width: '330px', borderRadius: '4px', marginLeft: '55vw'}, |
| | | loginWays: [ |
| | | {type: 'uname_pwd', label: '账号密码登录', remember: 'true'}, |
| | | {type: 'uname_pwd', label: '账号密码登录', shortcut: 'remember'}, |
| | | {type: 'sms_vcode', label: '短信验证码'}, |
| | | {type: 'app_scan', label: '扫码登录'}, |
| | | ] |
| | |
| | | } |
| | | |
| | | updateWrap = (res) => { |
| | | this.updateComponent({...this.state.card, wrap: res}) |
| | | let card = fromJS(this.state.card).toJS() |
| | | |
| | | card.wrap = res |
| | | |
| | | if (res.shortcut) { |
| | | card.loginWays[0].shortcut = res.shortcut |
| | | } |
| | | |
| | | this.updateComponent(card) |
| | | } |
| | | |
| | | render() { |