From 64a3531227a057961d00e6fde09d62d3520468d9 Mon Sep 17 00:00:00 2001 From: donqi Date: Sat, 11 Feb 2023 11:30:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=A3=E9=87=91=E5=B1=95=E7=A4=BA=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/product/product-detail.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pages/product/product-detail.vue b/pages/product/product-detail.vue index 8c53f3b..41930ba 100644 --- a/pages/product/product-detail.vue +++ b/pages/product/product-detail.vue @@ -44,7 +44,7 @@ - + 佣金:{{curProductSpecs.finalPrice}} @@ -227,7 +227,8 @@ orderNow: false, totalPickCount: 0, ifHasCsMsg: true, - picUrls: [] + picUrls: [], + curUserInfo: {} } }, onLoad(options) { @@ -247,7 +248,9 @@ this.changeSwiperHeight = e.scrollTop > 50 ? true: false; }, methods: { - async loadData() { + async loadData() { + await this.$request.refreshCurUserCache(); + this.curUserInfo = this.$request.getCurUserInfo(); let productDetailMock = await this.$api.data('productDetail'); this.productDetail = await this.$request.getGoodsDetail({ goodsId: this.inParam.goodsId