|
@@ -10,6 +10,7 @@ export const getSmsCode = (event, mobile) => {
|
|
|
const lastSendTimer = modal.lastTimer[event];
|
|
|
if (typeof lastSendTimer === 'undefined') {
|
|
|
uni.showToast({
|
|
|
+ icon: 'error',
|
|
|
title: '短信发送事件错误'
|
|
|
})
|
|
|
return;
|
|
@@ -19,6 +20,7 @@ export const getSmsCode = (event, mobile) => {
|
|
|
const canSend = duration >= 60;
|
|
|
if (!canSend) {
|
|
|
uni.showToast({
|
|
|
+ icon: 'none',
|
|
|
title: '请稍后再试'
|
|
|
})
|
|
|
return;
|
|
@@ -26,6 +28,7 @@ export const getSmsCode = (event, mobile) => {
|
|
|
// 只有 mobile 非空时才校验。因为部分场景(修改密码),不需要输入手机
|
|
|
if (mobile && !test.mobile(mobile)) {
|
|
|
uni.showToast({
|
|
|
+ icon: 'none',
|
|
|
title: '手机号码格式不正确'
|
|
|
})
|
|
|
return;
|
|
@@ -69,6 +72,7 @@ export const getSmsTimer = (event) => {
|
|
|
|
|
|
if (typeof lastSendTimer === 'undefined') {
|
|
|
uni.showToast({
|
|
|
+ icon: 'none',
|
|
|
title: '短信发送事件错误'
|
|
|
})
|
|
|
return
|