فهرست منبع

Merge branch 'master' of https://git.citupro.com/zhengnaiwen_citu/menduner-uniapp

lifanagju_citu 2 ماه پیش
والد
کامیت
d6374bc232
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