代客下单逻辑修改
This commit is contained in:
@@ -12,16 +12,12 @@ export function getNowCart(carItem,goodsList,user) {
|
||||
goodsList.map(goodsItem => {
|
||||
if(carItem.product_id == goodsItem.id){
|
||||
goodsItem.skuList.map(item=>{
|
||||
if(carItem.product_id == item.productId){
|
||||
if(carItem.product_id == item.productId&&item.id==carItem.sku_id){
|
||||
carItem.lowPrice = item.salePrice
|
||||
carItem.lowMemberPrice = item.memberPrice
|
||||
carItem.memberPrice = item.memberPrice
|
||||
carItem.specInfo = item.specInfo
|
||||
|
||||
if( uni.getStorageSync('shopInfo').isMemberPrice && user && user.id && user.isVip ){
|
||||
carItem.salePrice = item.memberPrice
|
||||
} else {
|
||||
carItem.salePrice = item.salePrice
|
||||
}
|
||||
carItem.salePrice = item.salePrice
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user