mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-15 04:52:50 +00:00
修复产品列表页加入购物车提示参数错误
This commit is contained in:
parent
3f8fe55869
commit
963a44a123
@ -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({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user