|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
* @Author: ch
|
|
|
|
|
* @Date: 2022-03-22 15:36:46
|
|
|
|
|
* @LastEditors: ch
|
|
|
|
|
* @LastEditTime: 2022-03-28 18:28:04
|
|
|
|
|
* @LastEditTime: 2022-03-28 18:57:15
|
|
|
|
|
* @Description: file content
|
|
|
|
|
-->
|
|
|
|
|
<template>
|
|
|
|
@ -16,9 +16,9 @@
|
|
|
|
|
<input placeholder="请输入手机号" v-model="phone" class="login--input" border="bottom" />
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<u-form-item class="login--code">
|
|
|
|
|
<input placeholder="验证码" type="number" maxlength="6" class="login--input" v-model="code" border="bottom" />
|
|
|
|
|
<input placeholder="验证码" type="number" maxlength="4" class="login--input" v-model="code" border="bottom" />
|
|
|
|
|
<u-code ref="uCode" @change="codeChange" changeText="X秒后重新获取"
|
|
|
|
|
@start="sendStatus = true" @end="sendStatus = false" seconds="10"></u-code>
|
|
|
|
|
@start="sendStatus = true" @end="sendStatus = false" seconds="60"></u-code>
|
|
|
|
|
<text class="login--send-btn" :class="sendStatus && 'login--send-btn__disabled'"
|
|
|
|
|
@click="getCode">{{tips}}</text>
|
|
|
|
|
</u-form-item>
|
|
|
|
@ -77,7 +77,7 @@ export default {
|
|
|
|
|
uni.$u.toast('请输入正确手机号');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if(!this.code || this.code.length !== 6){
|
|
|
|
|
if(!this.code || this.code.length !== 4){
|
|
|
|
|
uni.$u.toast('请输入正确的验证码');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
@ -94,7 +94,7 @@ export default {
|
|
|
|
|
uni.$u.toast(error.message);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
this.$Router.replace('/');
|
|
|
|
|
this.$Router.back();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|