From 810f311a1314a102ed7cbf5aeed8f5212221e0f1 Mon Sep 17 00:00:00 2001 From: owen Date: Tue, 26 Sep 2023 22:46:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8=EF=BC=9A=E5=AE=8C?= =?UTF-8?q?=E5=96=84=E4=BC=98=E6=83=A0=E5=88=B8=E5=8C=B9=E9=85=8D=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/users/order_confirm/index.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pages/users/order_confirm/index.vue b/pages/users/order_confirm/index.vue index b1a77e6f..da92dbe0 100644 --- a/pages/users/order_confirm/index.vue +++ b/pages/users/order_confirm/index.vue @@ -50,14 +50,14 @@ + v-if="orderInfoVo.type === 0 && productType==='normal'"> 优惠券 {{couponTitle}} - + 积分抵扣 {{pointStatus ? "剩余积分":"当前积分"}} @@ -387,7 +387,10 @@ */ getCouponList: function() { CouponApi.getMatchCouponList({ - // TODO 芋艿:这里应该补充下参数 + price: this.orderInfoVo.price.payPrice, + spuIds: this.orderInfoVo.items.map(item => item.spuId), + skuIds: this.orderInfoVo.items.map(item => item.skuId), + categoryIds: this.orderInfoVo.items.map(item => item.categoryId) }).then(res => { this.$set(this.coupon, 'list', res.data); // 设置指定优惠劵已选择;用于 couponId 有参数时,默认选中一下