From 20861b0ea55c44facb215380e38438bf888d0df2 Mon Sep 17 00:00:00 2001 From: liqianjin <949671634@qq.com> Date: Tue, 7 Mar 2023 16:36:15 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages_tool/member/goufang_to_balance.vue | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) 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();