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);
     }