|
@@ -30,7 +30,7 @@
|
|
|
class="ss-reset-button code-btn-start"
|
|
class="ss-reset-button code-btn-start"
|
|
|
:disabled="state.isMobileEnd"
|
|
:disabled="state.isMobileEnd"
|
|
|
:class="{ 'code-btn-end': state.isMobileEnd }"
|
|
:class="{ 'code-btn-end': state.isMobileEnd }"
|
|
|
- @tap="getSmsCode('changeMobile', state.model.mobile)"
|
|
|
|
|
|
|
+ @tap="handleSendCode"
|
|
|
>
|
|
>
|
|
|
{{ getSmsTimer('changeMobile') }}
|
|
{{ getSmsTimer('changeMobile') }}
|
|
|
</button>
|
|
</button>
|
|
@@ -90,6 +90,11 @@
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ const handleSendCode = () => {
|
|
|
|
|
+ if (!state.model.mobile) return sheep.$helper.toast('请输入手机号');
|
|
|
|
|
+ getSmsCode('changeMobile', state.model.mobile)
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// 绑定手机号
|
|
// 绑定手机号
|
|
|
async function changeMobileSubmit() {
|
|
async function changeMobileSubmit() {
|
|
|
const validate = await unref(changeMobileRef)
|
|
const validate = await unref(changeMobileRef)
|