Răsfoiți Sursa

提现重做

@dongkboy 2 ani în urmă
părinte
comite
7a47578c19
1 a modificat fișierele cu 10 adăugiri și 0 ștergeri
  1. 10 0
      src/views/Letter/Wallet/FundsWallet.vue

+ 10 - 0
src/views/Letter/Wallet/FundsWallet.vue

@@ -253,9 +253,11 @@ export default {
       if (val) {
         this.startDate = val[0];
         this.endDate = val[1];
+        this.allamount();
       } else {
         this.startDate = "";
         this.endDate = "";
+        this.allamount();
       }
     },
     allwithdrawal() {
@@ -358,6 +360,12 @@ export default {
       });
     },
     allamount() {
+      const loading = this.$loading({
+        lock: true,
+        text: 'Loading',
+        spinner: 'el-icon-loading',
+        background: 'rgba(0, 0, 0, 0.7)'
+      });
       let userId = Cookies.get("user");
       let params = {
         userId: userId,
@@ -368,7 +376,9 @@ export default {
         if (res.code == '200') {
           this.findMyAmountData = res.data;
           this.moneyData = res.data;
+          loading.close();
         } else {
+          loading.close();
           this.$message({
             type: 'error',
             message: res.msg,