From dd98630047ade4625b43c3ecc3988d17575f0970 Mon Sep 17 00:00:00 2001 From: Gao xiaosong <704041637@qq.com> Date: Sun, 13 Dec 2020 00:53:12 +0800 Subject: [PATCH] =?UTF-8?q?uniH5=20GoodsCon=20=E5=8F=82=E6=95=B0=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/shop/GoodsCon/index.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pages/shop/GoodsCon/index.vue b/pages/shop/GoodsCon/index.vue index 0726756..9053f07 100644 --- a/pages/shop/GoodsCon/index.vue +++ b/pages/shop/GoodsCon/index.vue @@ -25,7 +25,7 @@ <text class="hide line1 acea-row"> <text>优惠券:</text> <text class="activity" v-for="(item, couponListEq) in couponList" - :key="couponListEq">满{{ item.use_min_price }}减{{ item.coupon_price }}</text> + :key="couponListEq">满{{ item.useMinPrice }}减{{ item.couponPrice }}</text> </text> <view class="iconfont icon-jiantou"></view> </view> @@ -312,7 +312,8 @@ let url = handleQrCode(); if (!url) { url = handleUrlParam(getCurrentPageUrlWithArgs()) - } + } + this.coupons(); if (url && url.id) { this.id = url.id; let urlSpread = parseInt(url.spread); @@ -592,7 +593,8 @@ page: 1, limit: 20, }; - getCoupon(q).then((res) => { + getCoupon(q).then((res) => { + that.$set(that, "couponList", res.data || []); that.$set(that.coupon, "list", res.data); });