shish 4 лет назад
Родитель
Сommit
55e1219a24

+ 2 - 0
ghsApp/src/admin/shop/add.vue

@@ -245,7 +245,9 @@
 					this.form.id = this.option.id
 				}
 				this.form = {...this.form,...this.region}
+				uni.showLoading({mask:true})
 				hostFn(this.form).then(res => {
+					uni.hideLoading()
 					this.setUserShopAll();
 					let promptText = this.option.id ? '修改成功!' : '添加成功!'
 					this.$msg(promptText)

+ 2 - 0
ghsApp/src/pagesClient/official/apply.vue

@@ -295,6 +295,7 @@ export default {
     },
     confirmFn () {
       let currentMiniOpenId = uni.getStorageSync('currentMiniOpenId')
+      uni.showLoading({mask:true})
       applyRegister({
         hdShopAdminId: this.option.hdShopAdminId,
         ghsShopAdminId: this.option.ghsShopAdminId,
@@ -303,6 +304,7 @@ export default {
         from: this.option.from || 0,
         miniOpenId:currentMiniOpenId
       }).then(res => {
+        uni.hideLoading()
         this.$util.pageTo({
           url: "/pagesClient/official/result",
           type: 2,

+ 4 - 2
hdApp/src/admin/shop/add.vue

@@ -242,14 +242,16 @@
 					this.form.id = this.option.id
 				}
 				this.form = {...this.form,...this.region}
+				uni.showLoading({mask:true})
 				hostFn(this.form).then(res => {
-          this.setUserShopAll();
+					uni.hideLoading()
+          			this.setUserShopAll();
 					let promptText = this.option.id ? '修改成功!' : '添加成功!'
 					this.$msg(promptText)
 					uni.removeStorageSync('modifyShopB')
 					setTimeout(() => {
 					    this.$util.pageTo(1)
-          }, 1000)
+          			}, 1000)
 				})
 			},
 			// 表单验证

+ 2 - 1
hdApp/src/pagesClient/official/apply.vue

@@ -277,8 +277,9 @@ export default {
       let style = this.option.style || 0
       let from = this.option.from || 0
       let that = this
+      uni.showLoading({mask:true})
       applyRegister({hdShopAdminId:this.option.hdShopAdminId,ghsShopAdminId:this.option.ghsShopAdminId,...this.form,style:style,from:from,miniOpenId:currentMiniOpenId}).then(subRes => {
-
+        uni.hideLoading()
         let token = subRes.data.token || ''
         uni.hideLoading()
         if (that.$util.isEmpty(token)) {