xcx vor 4 Jahren
Ursprung
Commit
37f698cd59
2 geänderte Dateien mit 22 neuen und 0 gelöschten Zeilen
  1. 8
    0
      src/pages/WoDe/TiXian/index.vue
  2. 14
    0
      src/pages/WoDe/TiXian/page.scss

+ 8
- 0
src/pages/WoDe/TiXian/index.vue Datei anzeigen

@@ -23,6 +23,9 @@
23 23
           </div>
24 24
         </div>
25 25
       </div>
26
+      <div class="LoadingLayer" v-if="ShowLoading">
27
+        <span class="centerLabel">申请中...</span>
28
+      </div>
26 29
     </MainPageContainer>
27 30
   </div>
28 31
 </template>
@@ -36,6 +39,7 @@ export default {
36 39
   name: '',
37 40
   data () {
38 41
     return {
42
+      ShowLoading: false,
39 43
       ShowPasswordPopup: false,
40 44
       Amount: '',
41 45
       Password: '',
@@ -89,13 +93,17 @@ export default {
89 93
       }
90 94
       if (this.DataLock) return
91 95
       this.DataLock = true
96
+      this.ShowPasswordPopup = false
97
+      this.ShowLoading = true
92 98
       this.CashOut({ data: { amount: this.Amount * 100, cashPass: md5(this.Password) } }).then((res) => {
99
+        this.ShowLoading = false
93 100
         this.Toast('提现成功')
94 101
         this.GetCurrentUserInfo().then(() => {
95 102
           this.$router.push({ name: 'UserCenter' })
96 103
         })
97 104
         this.DataLock = false
98 105
       }).catch((res) => {
106
+        this.ShowLoading = false
99 107
         this.Toast(res.data.message)
100 108
         this.DataLock = false
101 109
       })

+ 14
- 0
src/pages/WoDe/TiXian/page.scss Datei anzeigen

@@ -85,4 +85,18 @@
85 85
       }
86 86
     }
87 87
   }
88
+  .LoadingLayer {
89
+    width: 100%;
90
+    position: fixed;
91
+    left: 0;
92
+    top: 0;
93
+    bottom: 0;
94
+    z-index: 100;
95
+    background: rgba(0, 0, 0, 0.6);
96
+    > span {
97
+      font-size: 0.14rem;
98
+      color: #fff;
99
+      text-align: center;
100
+    }
101
+  }
88 102
 }