【修改】个人中心

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,18 +80,20 @@ export default {
showAmount : 0
};
},
onLoad(res){
this.type = res.type
switch (this.type){
case "goufang_to_balance":
this.type_name = '购房券'
break
case "balance_to_goufang":
this.type_name = '消费券'
break
}
},
onShow() {
this.type = this.$route.query.type === undefined ? 'goufang_to_balance': this.$route.query.type;
if (uni.getStorageSync('token')) {
switch (this.type){
case "goufang_to_balance":
this.type_name = '购房券'
break
case "balance_to_goufang":
this.type_name = '消费券'
break
}
this.getWithdrawInfo();
this.getFenxiaoInfo();
this.getBankAccountInfo();