|
|
|
|
@ -8,12 +8,12 @@
|
|
|
|
|
<u-input :custom-style="inputStyle" :clearable="false" v-model="form.mobile"
|
|
|
|
|
placeholder="手机号"></u-input>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="sendmsg">
|
|
|
|
|
<!-- <view class="sendmsg">
|
|
|
|
|
<u-input v-model="form.code" :custom-style="inputSendStyle" :clearable="false"
|
|
|
|
|
placeholder="验证码"></u-input>
|
|
|
|
|
<view @click="getSmsCode" class="send" :class="{'hasSend':hasSend}">{{hasSend?'已发送':'获取验证码'}}<text
|
|
|
|
|
v-if="hasSend">({{count}}s)</text></view>
|
|
|
|
|
</view>
|
|
|
|
|
</view> -->
|
|
|
|
|
</view>
|
|
|
|
|
<view class="login-btn">
|
|
|
|
|
<view @click="handleMsgLogin">登录</view>
|
|
|
|
|
@ -102,15 +102,15 @@
|
|
|
|
|
this.base.toast('请输入手机号')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (this.base.isNull(this.form.code)) {
|
|
|
|
|
this.base.toast('请输入验证码')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
// if (this.base.isNull(this.form.code)) {
|
|
|
|
|
// this.base.toast('请输入验证码')
|
|
|
|
|
// return
|
|
|
|
|
// }
|
|
|
|
|
let that = this
|
|
|
|
|
console.log("this.type", this.type)
|
|
|
|
|
this.$u.api.checkMobile({
|
|
|
|
|
mobile: this.form.mobile,
|
|
|
|
|
code: this.form.code
|
|
|
|
|
// code: this.form.code
|
|
|
|
|
}).then(res => {
|
|
|
|
|
this.base.toast('绑定成功')
|
|
|
|
|
if (that.sendTimer) {
|
|
|
|
|
|