Просмотр исходного кода

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

sugar1569 7 лет назад
Родитель
Сommit
963a44a123
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      application/wap/view/first/store/index.html

+ 2 - 2
application/wap/view/first/store/index.html

@@ -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({