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

缺少this

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