修复产品列表页加入购物车提示参数错误

This commit is contained in:
sugar1569 2018-10-12 09:14:38 +08:00
parent 3f8fe55869
commit 963a44a123

View File

@ -158,7 +158,7 @@
var checkedAttr = productValue[values.sort().join(',')];
storeApi.setCart({
cartNum:cartNum,
uniqueId:checkedAttr === undefined ? '' : checkedAttr.unique,
uniqueId:checkedAttr === undefined ? 0 : checkedAttr.unique,
productId:product.id
},function () {
$h.pushMsg('加入购物车成功!');
@ -169,7 +169,7 @@
var checkedAttr = productValue[values.sort().join(',')];
storeApi.goBuy({
cartNum:cartNum,
uniqueId:checkedAttr === undefined ? '' : checkedAttr.unique,
uniqueId:checkedAttr === undefined ? 0 : checkedAttr.unique,
productId:product.id
},function(cartId){
location.href = $h.U({