shish před 3 roky
rodič
revize
cfe872915b
1 změnil soubory, kde provedl 10 přidání a 8 odebrání
  1. 10 8
      ghsApp/src/admin/home/me.vue

+ 10 - 8
ghsApp/src/admin/home/me.vue

@@ -372,16 +372,18 @@ export default {
         that.applyCash();
         that.applyCash();
       }
       }
     },
     },
-    applyCash () {
-      uni.showLoading({title: "提交中"});
+    applyCash() {
       let that = this
       let that = this
-      applyCash({}).then(res=>{
-        if(res.code == 1){
-          uni.hideLoading();
-        }
-        that.$msg(res.msg)
+      that.$util.confirmModal({content:'确认提现?'},() => {
+        uni.showLoading({title: "提交中"})
+        applyCash({}).then(res=>{
+          if(res.code == 1){
+            uni.hideLoading()
+            that.init()
+            that.$msg(res.msg)
+          }
+        })
       })
       })
-
     }
     }
   },
   },
 };
 };