|
@@ -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
|
})
|