|
|
@ -82,7 +82,7 @@ |
|
|
|
>获取验证码</a-button> |
|
|
|
</div> |
|
|
|
</a-form-item> |
|
|
|
<a-form-item |
|
|
|
<!-- <a-form-item |
|
|
|
:label-col="formItemLayout.labelCol" |
|
|
|
:wrapper-col="formItemLayout.wrapperCol" |
|
|
|
label="来源" |
|
|
@ -90,7 +90,7 @@ |
|
|
|
<a-select placeholder="请选择来源" v-decorator="['source']"> |
|
|
|
<a-select-option value="1">绿谷</a-select-option> |
|
|
|
</a-select> |
|
|
|
</a-form-item> |
|
|
|
</a-form-item>--> |
|
|
|
|
|
|
|
<div class="d-flex flex-row-reverse"> |
|
|
|
<a-button block class="my-5" html-type="submit" style="width: 75%" type="primary">现在登录</a-button> |
|
|
@ -139,15 +139,11 @@ |
|
|
|
v-decorator="['credential', { rules: passwordRules }]" |
|
|
|
/> |
|
|
|
</a-form-item> |
|
|
|
<a-form-item |
|
|
|
:label-col="formItemLayout.labelCol" |
|
|
|
:wrapper-col="formItemLayout.wrapperCol" |
|
|
|
label="来源" |
|
|
|
> |
|
|
|
<!-- <a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="来源"> |
|
|
|
<a-select placeholder="请选择来源" v-decorator="['source']"> |
|
|
|
<a-select-option value="1">绿谷</a-select-option> |
|
|
|
</a-select> |
|
|
|
</a-form-item> |
|
|
|
</a-form-item>--> |
|
|
|
<div class="d-flex flex-row-reverse"> |
|
|
|
<a-button block class="my-5" html-type="submit" style="width: 75%" type="primary">现在登录</a-button> |
|
|
|
</div> |
|
|
@ -240,11 +236,11 @@ export default { |
|
|
|
e.preventDefault(); |
|
|
|
this.form.validateFields(async (err, values) => { |
|
|
|
if (!err) { |
|
|
|
console.log('Received values of form: ', values); |
|
|
|
// console.log('Received values of form: ', values); |
|
|
|
try { |
|
|
|
const { identifier, credential, source } = values; |
|
|
|
const { identifier, credential } = values; |
|
|
|
const { type } = this; |
|
|
|
const params = { data: { identifier, credential, source }, type, client: SIGN_IN_CLIENTS.h5 }; |
|
|
|
const params = { data: { identifier, credential, source: 2 }, type, client: SIGN_IN_CLIENTS.h5 }; |
|
|
|
console.log('params: ', params); |
|
|
|
await this.signIn(params); |
|
|
|
// 没有特殊情况就跳转到首页 |
|
|
|