Browse Source

code update

andypliang 6 years ago
parent
commit
ca6ee6f226
1 changed files with 6 additions and 3 deletions
  1. 6
    3
      miniapp/app/pages/cart/index.js

+ 6
- 3
miniapp/app/pages/cart/index.js View File

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…
Cancel
Save