Browse Source

静态页面

xcx 4 years ago
parent
commit
37f698cd59
2 changed files with 22 additions and 0 deletions
  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 View File

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

+ 14
- 0
src/pages/WoDe/TiXian/page.scss View File

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
 }