|
|
@@ -18,9 +18,8 @@
|
|
|
<div class="text1">我的余额</div>
|
|
|
<div class="text2">{{ moneyInfo.money || 0 }}</div>
|
|
|
</div>
|
|
|
-
|
|
|
- <van-button type="default" size="small" @click="Withdrawal">
|
|
|
- 提现
|
|
|
+ <van-button :color="$colors.default" :disabled="canSubmit" size="small" @click="Withdrawal">
|
|
|
+ {{ canSubmit ? '提现中' : '提现' }}
|
|
|
</van-button>
|
|
|
</div>
|
|
|
|
|
|
@@ -33,8 +32,10 @@
|
|
|
<van-dropdown-item @change="names" :value="times" :options="option2" />
|
|
|
</van-dropdown-menu>
|
|
|
<div class="flex1"></div>
|
|
|
- <span class="text"> 收入 ¥{{ count }} </span>
|
|
|
- <span class="text"> 提现 ¥{{ TXCount }} </span>
|
|
|
+ <div v-if="times != 'user'">
|
|
|
+ <span class="text"> 收入 ¥{{ count }} </span>
|
|
|
+ <span class="text"> 提现 ¥{{ TXCount }} </span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</van-sticky>
|
|
|
|
|
|
@@ -48,8 +49,8 @@
|
|
|
|
|
|
<template>
|
|
|
<div v-for="(item, index) in recordList" :key="index">
|
|
|
- <bill-info :Info="item"></bill-info>
|
|
|
- <bill-info billType="pay" :Info="item"></bill-info>
|
|
|
+ <bill-info :Info="item" v-if="item.type == 'SOLD'"></bill-info>
|
|
|
+ <bill-info billType="pay" :Info="item" @detail="detail(item.attach)"></bill-info>
|
|
|
</div>
|
|
|
</template>
|
|
|
</div>
|
|
|
@@ -68,6 +69,7 @@ export default {
|
|
|
times: 'user',
|
|
|
dateList: [],
|
|
|
list: [],
|
|
|
+ flag: '',
|
|
|
nameList: '',
|
|
|
option1: [
|
|
|
{ text: '2021-05', value: 0 },
|
|
|
@@ -99,12 +101,23 @@ export default {
|
|
|
value: item.value
|
|
|
};
|
|
|
});
|
|
|
+ },
|
|
|
+ canSubmit() {
|
|
|
+ return this.flag;
|
|
|
}
|
|
|
},
|
|
|
+ created() {
|
|
|
+ let userId = this.$store.state.userInfo.id;
|
|
|
+ this.$http.get('/withdrawApply/check', { userId: userId }).then(res => {
|
|
|
+ this.flag = res;
|
|
|
+ });
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ detail(attach) {
|
|
|
+ this.navigateTo('/pages/walletreview?attach=' + attach);
|
|
|
+ },
|
|
|
loginMethods() {
|
|
|
this.$http.get('/memberInfo/findByUser').then(res => {
|
|
|
- console.log(res);
|
|
|
this.moneyInfo = res;
|
|
|
});
|
|
|
},
|
|
|
@@ -127,7 +140,9 @@ export default {
|
|
|
this.initApi(this.dateList, this.nameList);
|
|
|
},
|
|
|
Withdrawal() {
|
|
|
- this.navigateTo('/pages/walletdetails');
|
|
|
+ if (this.flag != true) {
|
|
|
+ this.navigateTo('/pages/walletdetails');
|
|
|
+ }
|
|
|
},
|
|
|
initApi(params, name) {
|
|
|
// console.log(params);
|