shish 3 лет назад
Родитель
Сommit
cfe872915b
1 измененных файлов с 10 добавлено и 8 удалено
  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();
       }
     },
-    applyCash () {
-      uni.showLoading({title: "提交中"});
+    applyCash() {
       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)
+          }
+        })
       })
-
     }
   },
 };