【修改】个人中心

This commit is contained in:
liqianjin 2023-03-07 16:36:15 +08:00
parent f0e189bb7f
commit 20861b0ea5
1 changed files with 12 additions and 10 deletions

View File

@ -80,10 +80,8 @@ export default {
showAmount : 0 showAmount : 0
}; };
}, },
onShow() { onLoad(res){
this.type = this.$route.query.type === undefined ? 'goufang_to_balance': this.$route.query.type; this.type = res.type
if (uni.getStorageSync('token')) {
switch (this.type){ switch (this.type){
case "goufang_to_balance": case "goufang_to_balance":
this.type_name = '购房券' this.type_name = '购房券'
@ -92,6 +90,10 @@ export default {
this.type_name = '消费券' this.type_name = '消费券'
break break
} }
},
onShow() {
if (uni.getStorageSync('token')) {
this.getWithdrawInfo(); this.getWithdrawInfo();
this.getFenxiaoInfo(); this.getFenxiaoInfo();
this.getBankAccountInfo(); this.getBankAccountInfo();