调整登录,注册

This commit is contained in:
Jason 2022-09-20 12:15:08 +08:00
parent 77fb6acc2d
commit 29999f4e4a
2 changed files with 9 additions and 5 deletions

View File

@ -30,7 +30,9 @@
@change="codeChange"
change-text="x秒"
/>
{{ codeTips }}
<text :class="formData.mobile ? 'text-primary' : 'text-muted'">
{{ codeTips }}
</text>
</view>
</u-form-item>
<u-form-item label="新密码" borderBottom>
@ -79,7 +81,7 @@ const codeChange = (text: string) => {
}
const sendSms = async () => {
if (!formData.mobile) return uni.$u.toast('请输入手机号码')
if (!formData.mobile) return
if (uCodeRef.value?.canGetCode) {
await smsSend({
scene: SMSEnum.FIND_PASSWORD,

View File

@ -67,7 +67,7 @@
:border="false"
/>
<view
class="border-l border-solid border-0 border-light pl-3 text-muted leading-4 ml-3 w-[180rpx]"
class="border-l border-solid border-0 border-light pl-3 leading-4 ml-3 w-[180rpx]"
@click="sendSms"
>
<u-verification-code
@ -76,7 +76,9 @@
@change="codeChange"
change-text="x秒"
/>
{{ codeTips }}
<text :class="formData.mobile ? 'text-primary' : 'text-muted'">
{{ codeTips }}
</text>
</view>
</u-form-item>
</template>
@ -208,7 +210,7 @@ const codeChange = (text: string) => {
}
const sendSms = async () => {
if (!formData.mobile) return uni.$u.toast('请输入手机号码')
if (!formData.mobile) return
if (uCodeRef.value?.canGetCode) {
await smsSend({
scene: SMSEnum.LOGIN,