shish 3 лет назад
Родитель
Сommit
65d57bc130
2 измененных файлов с 9 добавлено и 6 удалено
  1. 1 2
      ghsApp/src/admin/home/me.vue
  2. 8 4
      hdApp/src/admin/home/me.vue

+ 1 - 2
ghsApp/src/admin/home/me.vue

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

+ 8 - 4
hdApp/src/admin/home/me.vue

@@ -270,7 +270,7 @@ export default {
       } else {
         uni.showModal({
           title: "提示",
-          content: "确认全部提现?",
+          content: "确认提现?",
           success: function (res) {
             if (res.confirm) {
               self.applyCash();
@@ -280,11 +280,15 @@ export default {
       }
     },
     applyCash () {
+      let that = this
+      uni.showLoading({mask:true})
       applyCash({}).then(res => {
-        this.$msg('操作成功')
+        if(res.code == 1){
+          that.getMyInfo()
+          that.$msg('操作成功')
+        }
       })
-    },
-    _list () { },
+    }
   },
 };
 </script>