|
|
@@ -5,9 +5,9 @@
|
|
|
<p>欢迎登录数智云商城</p>
|
|
|
</view>
|
|
|
<view class="phoneL" v-if="LoginType == 1">
|
|
|
- <view class="clearfix"><input v-model="formD2.mobile" placeholder="请输入手机号" type="number" maxlength="11" v-myfocus="true" /></view>
|
|
|
+ <view class="clearfix"><input v-model="formD2.mobile" placeholder="请输入手机号" type="number" maxlength="11" :focus="Focus == 1" /></view>
|
|
|
<view class="clearfix">
|
|
|
- <input v-model="formD2.captcha" placeholder="请输入验证码" confirm-type="go" type="number" maxlength="5" class="w70" />
|
|
|
+ <input v-model="formD2.captcha" placeholder="请输入验证码" confirm-type="go" type="number" maxlength="5" :focus="Focus == 2" class="w70" />
|
|
|
<view @click="getVerifyCode" :class="{w30:true,corb:msgNum!=='获取验证码'}">{{msgNum}}</view>
|
|
|
</view>
|
|
|
<view v-if="signIn" class="clearfix">
|
|
|
@@ -60,6 +60,8 @@ export default {
|
|
|
|
|
|
ISFill: false,
|
|
|
signIn: false, //是否为注册
|
|
|
+
|
|
|
+ Focus: 1, //输入框焦点 1手机号 2验证码
|
|
|
};
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
@@ -107,7 +109,6 @@ export default {
|
|
|
},
|
|
|
|
|
|
getVerifyCode() {
|
|
|
- console.log(appEv);
|
|
|
if (!this.isPhone(this.formD2.mobile)) {
|
|
|
appEv.errTips("手机号填写有误!");
|
|
|
return
|
|
|
@@ -116,9 +117,7 @@ export default {
|
|
|
mobile: this.formD2.mobile
|
|
|
}).then((res) => {
|
|
|
if (res.code === 0) {
|
|
|
-
|
|
|
- // this.formD2.captcha = res.data.code
|
|
|
-
|
|
|
+ this.Focus = 2; //给验证码框焦点
|
|
|
let number = 59;
|
|
|
let as = setInterval(() => {
|
|
|
this.msgNum = number + "s后重发"
|