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 有参数时,默认选中一下