Browse Source

uniH5 GoodsCon 参数错误

zyh
Gao xiaosong 4 years ago
parent
commit
dd98630047
  1. 4
      pages/shop/GoodsCon/index.vue

4
pages/shop/GoodsCon/index.vue

@ -25,7 +25,7 @@
<text class="hide line1 acea-row"> <text class="hide line1 acea-row">
<text>优惠券</text> <text>优惠券</text>
<text class="activity" v-for="(item, couponListEq) in couponList" <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> </text>
<view class="iconfont icon-jiantou"></view> <view class="iconfont icon-jiantou"></view>
</view> </view>
@ -313,6 +313,7 @@
if (!url) { if (!url) {
url = handleUrlParam(getCurrentPageUrlWithArgs()) url = handleUrlParam(getCurrentPageUrlWithArgs())
} }
this.coupons();
if (url && url.id) { if (url && url.id) {
this.id = url.id; this.id = url.id;
let urlSpread = parseInt(url.spread); let urlSpread = parseInt(url.spread);
@ -593,6 +594,7 @@
limit: 20, limit: 20,
}; };
getCoupon(q).then((res) => { getCoupon(q).then((res) => {
that.$set(that, "couponList", res.data || []); that.$set(that, "couponList", res.data || []);
that.$set(that.coupon, "list", res.data); that.$set(that.coupon, "list", res.data);
}); });

Loading…
Cancel
Save