shish 3 lat temu
rodzic
commit
65d57bc130
2 zmienionych plików z 9 dodań i 6 usunięć
  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() {
     applyCash() {
       let that = this
       let that = this
       that.$util.confirmModal({content:'确认提现?'},() => {
       that.$util.confirmModal({content:'确认提现?'},() => {
-        uni.showLoading({title: "提交中"})
+        uni.showLoading({mask:true})
         applyCash({}).then(res=>{
         applyCash({}).then(res=>{
           if(res.code == 1){
           if(res.code == 1){
-            uni.hideLoading()
             that.init()
             that.init()
             that.$msg(res.msg)
             that.$msg(res.msg)
           }
           }

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

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