Parcourir la source

修改商户信息

zhaoxiaohai il y a 3 ans
Parent
commit
312ab09140
1 fichiers modifiés avec 18 ajouts et 2 suppressions
  1. 18 2
      pages/storeMessage/index.js

+ 18 - 2
pages/storeMessage/index.js

@@ -135,7 +135,23 @@ Page({
             title: '请上传品牌LOGO!',
             icon: "none"
         });
-        /* 发送请求 */
+        const that = this;
+        if (this.data.requestType == '普通修改') {
+            wx.showModal({
+                title: '提示',
+                content: "是否确认修改商户信息",
+                success: (res => {
+                    if (res.confirm) {
+                        that.requestToSend();
+                    };
+                })
+            })
+        } else {
+            that.requestToSend();
+        }
+    },
+    /* 发送请求 */
+    requestToSend() {
         _Http.basic({
             "accesstoken": wx.getStorageSync('userData').token,
             "classname": "customer.tagents.tagents",
@@ -240,7 +256,7 @@ Page({
         let errTips = this.data.errTips;
         /* 联系方式验证 */
         if (name == 'fphonenumber') {
-            if(!_Verify.phoneNumber(this.data.fphonenumber, true)) errTips[name] = true;
+            if (!_Verify.phoneNumber(this.data.fphonenumber, true)) errTips[name] = true;
         }
         if (value.trim() == "") {
             errTips[name] = true;