Commit 3c0e4464 by 谢中龙

修改购物车活动价格

parent 8e52bf70
......@@ -214,7 +214,10 @@ wxService.page({
// 购物车总金额
for (let i = 0; i < cartList.length; i++) {
if (cartList[i].checked) {
totalFee += cartList[i].price * (cartList[i].count ? cartList[i].count : 1)
//判断sku是否有活动价
let activityPrice = cartList[i].activityPrice;
let count = cartList[i].count ? cartList[i].count : 1;
totalFee += activityPrice ? activityPrice*1*count : cartList[i].price * count;
checkProsId.push(cartList[i].skuId)
}
}
......
......@@ -502,11 +502,11 @@
.promotion-tags .promotion-level-name{
width: auto;
height: auto;
padding: 5rpx 15rpx;
padding: 2rpx 15rpx;
font-size: 20rpx;
background: rgba(203,60,60,0.3);
color: #cb3c3c;
margin-right: 15rpx;
margin-right: 10rpx;
border-radius: 4rpx;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment