提交 b2b2fad5 编写于 作者: guangjun.yang's avatar guangjun.yang

设置couponId

上级 9813a822
...@@ -497,7 +497,7 @@ export default { ...@@ -497,7 +497,7 @@ export default {
getTotalPrice(currentCoupon) { getTotalPrice(currentCoupon) {
const num = this.curtGoodsNum; const num = this.curtGoodsNum;
let couponId = 0; let couponId = 0;
if(currentCoupon) { if(currentCoupon && currentCoupon.couponId) {
couponId = currentCoupon.couponId; couponId = currentCoupon.couponId;
} }
this.GET(`trade/goods/getPrice/${this.goodsId}/${num}/${couponId}`, {}).then(res => { this.GET(`trade/goods/getPrice/${this.goodsId}/${num}/${couponId}`, {}).then(res => {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册