提交 3f548d5c 编写于 作者: 芊里

缺少this

上级 11db91df
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<uni-easyinput type="number" class="phone-input-box" :inputBorder="false" <uni-easyinput type="number" class="phone-input-box" :inputBorder="false"
v-model="formData.code" maxlength="6" placeholder="请输入验证码"> v-model="formData.code" maxlength="6" placeholder="请输入验证码">
<template slot="right"> <template slot="right">
<login-short-code @getCode="getCode"></login-short-code> <login-short-code ref="shortCode" @getCode="getCode"></login-short-code>
</template> </template>
</uni-easyinput> </uni-easyinput>
<uni-easyinput type="number" class="phone-input-box" :inputBorder="false" <uni-easyinput type="number" class="phone-input-box" :inputBorder="false"
...@@ -86,6 +86,9 @@ import mixin from '../../common/loginPage.mixin.js'; ...@@ -86,6 +86,9 @@ import mixin from '../../common/loginPage.mixin.js';
this.currenPhoneArea = '+' + Number(event.phoneArea); this.currenPhoneArea = '+' + Number(event.phoneArea);
} }
}, },
onReady() {
this.$refs.shortCode.start();
},
methods: { methods: {
/** /**
* 获取验证码倒计时 * 获取验证码倒计时
...@@ -136,8 +139,8 @@ import mixin from '../../common/loginPage.mixin.js'; ...@@ -136,8 +139,8 @@ import mixin from '../../common/loginPage.mixin.js';
"data":{ "data":{
"action":"login", "action":"login",
"params":{ "params":{
"username":formData.phone, "username":this.formData.phone,
"password":formData.pwd "password":this.formData.pwd
} }
}, },
success:async (e) => { success:async (e) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册