shish пре 8 месеци
родитељ
комит
1abdf28c32
1 измењених фајлова са 4 додато и 5 уклоњено
  1. 4 5
      ghsApp/src/pagesClient/member/addCustomer.vue

+ 4 - 5
ghsApp/src/pagesClient/member/addCustomer.vue

@@ -104,7 +104,7 @@ export default {
       let checkRes = form.validation(formData, rules);
       let checkRes = form.validation(formData, rules);
 
 
       if (!checkRes) {
       if (!checkRes) {
-        uni.showLoading({mask:true})
+        uni.showLoading()
         setTimeout(() => {
         setTimeout(() => {
           this.confirmFn()
           this.confirmFn()
         })
         })
@@ -115,7 +115,7 @@ export default {
     },
     },
     confirmFn () {
     confirmFn () {
       let currentMiniOpenId = uni.getStorageSync('currentMiniOpenId')
       let currentMiniOpenId = uni.getStorageSync('currentMiniOpenId')
-      uni.showLoading({mask:true})
+      uni.showLoading()
       createCumtomer({
       createCumtomer({
         hdShopAdminId: this.option.hdShopAdminId,
         hdShopAdminId: this.option.hdShopAdminId,
         ghsShopAdminId: this.option.ghsShopAdminId,
         ghsShopAdminId: this.option.ghsShopAdminId,
@@ -124,6 +124,7 @@ export default {
         from: this.option.from || 0,
         from: this.option.from || 0,
         miniOpenId:currentMiniOpenId
         miniOpenId:currentMiniOpenId
       }).then(res => {
       }).then(res => {
+        uni.hideLoading()
         if(res.code == 1){
         if(res.code == 1){
           if(res.data.customId && res.data.customId>0){
           if(res.data.customId && res.data.customId>0){
               this.$util.confirmModal({content:'客户已经存在',okText:'查看',cancelText:'取消'},() => {
               this.$util.confirmModal({content:'客户已经存在',okText:'查看',cancelText:'取消'},() => {
@@ -131,9 +132,7 @@ export default {
               })
               })
           }else{
           }else{
             this.$msg(res.msg)
             this.$msg(res.msg)
-            setTimeout(() => {
-              uni.navigateBack();
-            }, 2000)
+            setTimeout(() => { uni.navigateBack() }, 2000)
           }
           }
         }
         }
       });
       });