浏览代码

code update

andypliang 6 年前
父节点
当前提交
ca6ee6f226
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. 6
    3
      miniapp/app/pages/cart/index.js

+ 6
- 3
miniapp/app/pages/cart/index.js 查看文件

210
         }
210
         }
211
         goodsList.forEach((g) => {
211
         goodsList.forEach((g) => {
212
             if (g.checked) {
212
             if (g.checked) {
213
-                g.amount = g.product_amount;
214
-                g.id = g.product_id;
215
-                products.push(g);
213
+                // g.amount = g.product_amount;
214
+                // g.id = g.product_id;
215
+                products.push({
216
+                    id: g.product_id,
217
+                    amount: g.product_amount
218
+                });
216
             }
219
             }
217
         });
220
         });
218
         if (products.length === 0) {
221
         if (products.length === 0) {

Loading…
取消
保存