浏览代码

短信验证码提示语

Xiao_123 2 月之前
父节点
当前提交
08d7f7bf17
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      utils/code.js

+ 4 - 0
utils/code.js

@@ -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