|
@@ -32,13 +32,22 @@
|
32
|
32
|
</div>
|
33
|
33
|
</div>
|
34
|
34
|
<div class="money card">
|
35
|
|
- <h1 class="tit">可提现金额</h1>
|
|
35
|
+ <h1 class="tit">店铺余额</h1>
|
36
|
36
|
<div class="money-num">
|
37
|
|
- <div class="num">¥{{ balance / 100 }}</div>
|
|
37
|
+ <div class="num">¥{{ total / 100 }}</div>
|
38
|
38
|
<div class="view" @click="jump('/pages/wallet/bill')">
|
39
|
39
|
查看账单
|
40
|
40
|
</div>
|
41
|
41
|
</div>
|
|
42
|
+ </div>
|
|
43
|
+ <div class="money card">
|
|
44
|
+ <h1 class="tit">可提现金额</h1>
|
|
45
|
+ <div class="money-num">
|
|
46
|
+ <div class="num">¥{{ balance / 100 }}</div>
|
|
47
|
+ <!-- <div class="view" @click="jump('/pages/wallet/bill')">
|
|
48
|
+ 查看账单
|
|
49
|
+ </div> -->
|
|
50
|
+ </div>
|
42
|
51
|
<p class="tip">最低提现2元,单日上线20000元</p>
|
43
|
52
|
<div class="input">
|
44
|
53
|
<input
|
|
@@ -49,7 +58,7 @@
|
49
|
58
|
/>
|
50
|
59
|
</div>
|
51
|
60
|
<p class="tip tip-color" v-if="showErr">
|
52
|
|
- {{errStr}}
|
|
61
|
+ {{ errStr }}
|
53
|
62
|
</p>
|
54
|
63
|
<button
|
55
|
64
|
v-if="!loading && account"
|
|
@@ -61,7 +70,7 @@
|
61
|
70
|
</button>
|
62
|
71
|
</div>
|
63
|
72
|
<div class="card record">
|
64
|
|
- <h1 class="tit">提现记录 共{{total}}条</h1>
|
|
73
|
+ <h1 class="tit">提现记录</h1>
|
65
|
74
|
<ul class="table">
|
66
|
75
|
<li class="row">
|
67
|
76
|
<div class="item">申请时间</div>
|
|
@@ -116,10 +125,10 @@ export default {
|
116
|
125
|
withdrawalTotal: "",
|
117
|
126
|
account: null,
|
118
|
127
|
balance: 0,
|
119
|
|
- total:0,
|
|
128
|
+ total: 0,
|
120
|
129
|
loading: false,
|
121
|
130
|
showErr: false,
|
122
|
|
- errStr:''
|
|
131
|
+ errStr: "",
|
123
|
132
|
};
|
124
|
133
|
},
|
125
|
134
|
filters: {
|
|
@@ -134,13 +143,13 @@ export default {
|
134
|
143
|
let str = obj[v];
|
135
|
144
|
return str || "";
|
136
|
145
|
},
|
137
|
|
- method(v){
|
|
146
|
+ method(v) {
|
138
|
147
|
let obj = {
|
139
|
|
- 1:'微信',
|
140
|
|
- 2:'银行卡'
|
141
|
|
- }
|
142
|
|
- return obj[v] || '';
|
143
|
|
- }
|
|
148
|
+ 1: "微信",
|
|
149
|
+ 2: "银行卡",
|
|
150
|
+ };
|
|
151
|
+ return obj[v] || "";
|
|
152
|
+ },
|
144
|
153
|
},
|
145
|
154
|
onLoad() {},
|
146
|
155
|
async onShow() {
|
|
@@ -178,9 +187,7 @@ export default {
|
178
|
187
|
);
|
179
|
188
|
}
|
180
|
189
|
if (this.formVal * 100 < 200) {
|
181
|
|
- return this.fn.showToast(
|
182
|
|
- "提现金额不能小于2元"
|
183
|
|
- );
|
|
190
|
+ return this.fn.showToast("提现金额不能小于2元");
|
184
|
191
|
}
|
185
|
192
|
// this.$refs.popup.open({
|
186
|
193
|
// type: "dialog",
|
|
@@ -223,12 +230,12 @@ export default {
|
223
|
230
|
let val = Number(this.formVal);
|
224
|
231
|
if (val > this.balance / 100) {
|
225
|
232
|
this.showErr = true;
|
226
|
|
- this.errStr = '提现金额超出总金额,请重新填写'
|
|
233
|
+ this.errStr = "提现金额超出总金额,请重新填写";
|
227
|
234
|
return;
|
228
|
235
|
}
|
229
|
|
- if(val<2){
|
|
236
|
+ if (val < 2) {
|
230
|
237
|
this.showErr = true;
|
231
|
|
- this.errStr = '提现金额不能小于2元,请重新填写'
|
|
238
|
+ this.errStr = "提现金额不能小于2元,请重新填写";
|
232
|
239
|
return;
|
233
|
240
|
}
|
234
|
241
|
}
|