mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-16 14:22:48 +00:00
修复产品列表页加入购物车提示参数错误
This commit is contained in:
parent
3f8fe55869
commit
963a44a123
@ -158,7 +158,7 @@
|
|||||||
var checkedAttr = productValue[values.sort().join(',')];
|
var checkedAttr = productValue[values.sort().join(',')];
|
||||||
storeApi.setCart({
|
storeApi.setCart({
|
||||||
cartNum:cartNum,
|
cartNum:cartNum,
|
||||||
uniqueId:checkedAttr === undefined ? '' : checkedAttr.unique,
|
uniqueId:checkedAttr === undefined ? 0 : checkedAttr.unique,
|
||||||
productId:product.id
|
productId:product.id
|
||||||
},function () {
|
},function () {
|
||||||
$h.pushMsg('加入购物车成功!');
|
$h.pushMsg('加入购物车成功!');
|
||||||
@ -169,7 +169,7 @@
|
|||||||
var checkedAttr = productValue[values.sort().join(',')];
|
var checkedAttr = productValue[values.sort().join(',')];
|
||||||
storeApi.goBuy({
|
storeApi.goBuy({
|
||||||
cartNum:cartNum,
|
cartNum:cartNum,
|
||||||
uniqueId:checkedAttr === undefined ? '' : checkedAttr.unique,
|
uniqueId:checkedAttr === undefined ? 0 : checkedAttr.unique,
|
||||||
productId:product.id
|
productId:product.id
|
||||||
},function(cartId){
|
},function(cartId){
|
||||||
location.href = $h.U({
|
location.href = $h.U({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user