|
@@ -46,7 +46,7 @@
|
|
|
</view>
|
|
|
<view class="goodsother">
|
|
|
<view v-if="info.type=='0'" class="price">
|
|
|
- ¥{{tag.sell_money}}
|
|
|
+ ¥{{tag.price}}
|
|
|
</view>
|
|
|
<view v-else class="price">
|
|
|
¥{{tag.group_config.money}}
|
|
@@ -172,6 +172,8 @@
|
|
|
let status = that.statusList.find(i => i.value == res.data.status)
|
|
|
if (status) res.data.zhStatus = status.label;
|
|
|
// 计算优惠劵
|
|
|
+ // 运费总数和商品总数相加
|
|
|
+ let total = that.$plus(res.data.total_detail.freight_total, res.data.total_detail.goods_total)
|
|
|
if (res.data?.total_detail?.discount_detail) {
|
|
|
// 有优惠券
|
|
|
var key = Object.keys(res.data.total_detail.discount_detail);
|
|
@@ -185,16 +187,16 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- // 运费总数和商品总数相加
|
|
|
- let total = that.$plus(res.data.total_detail.freight_total, res.data.total_detail
|
|
|
- .goods_total)
|
|
|
// 优惠劵相减
|
|
|
- res.data.goods_total = that.$minus(total, discount_detail);
|
|
|
- } else {
|
|
|
- // 无优惠劵
|
|
|
- res.data.goods_total = that.$plus(res.data.total_detail.freight_total, res.data.total_detail
|
|
|
- .goods_total)
|
|
|
+ total = that.$minus(total, discount_detail);
|
|
|
}
|
|
|
+ if (res.data?.act) {
|
|
|
+ let act_total = 0;
|
|
|
+ for (let val of res.data.act) act_total = that.$plus(act_total, val.discount)
|
|
|
+ // 活动相减
|
|
|
+ total = that.$minus(total, act_total);
|
|
|
+ }
|
|
|
+ res.data.goods_total = total
|
|
|
that.$set(that, `info`, res.data);
|
|
|
uni.hideLoading();
|
|
|
}
|