diff --git a/pages_tool/member/goufang_to_balance.vue b/pages_tool/member/goufang_to_balance.vue index f10ecb3..1348fa6 100644 --- a/pages_tool/member/goufang_to_balance.vue +++ b/pages_tool/member/goufang_to_balance.vue @@ -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();