From 3a87dce0f773a31b33d354cbefc3e2cdfc916335 Mon Sep 17 00:00:00 2001
From: anyv <anyu@bronet.cn>
Date: Tue, 4 Jun 2019 19:50:13 +0800
Subject: [PATCH] 5

---
 public/themes/simpleboot3/portal/shopcart/shop_cart.html | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/public/themes/simpleboot3/portal/shopcart/shop_cart.html b/public/themes/simpleboot3/portal/shopcart/shop_cart.html
index 7de8f87..0758c9c 100644
--- a/public/themes/simpleboot3/portal/shopcart/shop_cart.html
+++ b/public/themes/simpleboot3/portal/shopcart/shop_cart.html
@@ -117,8 +117,9 @@
      */
     function datadel(){
         ids = $('.add');
+        goods_id = array();
         for(i=0;i<ids.length;i++){
-            goods_id[] = ids[i].data('id');
+            goods_id[i] = ids[i].data('id');
         }
         console.log(goods_id);
     }
--
libgit2 0.24.0