From c40c8a1efbd00f1753020c8cfbf92f52968f1fcb Mon Sep 17 00:00:00 2001 From: anyv <anyu@bronet.cn> Date: Wed, 5 Jun 2019 14:44:42 +0800 Subject: [PATCH] 4 --- public/themes/simpleboot3/portal/shopcart/shop_cart.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/themes/simpleboot3/portal/shopcart/shop_cart.html b/public/themes/simpleboot3/portal/shopcart/shop_cart.html index a860d4a..4adeb4d 100644 --- a/public/themes/simpleboot3/portal/shopcart/shop_cart.html +++ b/public/themes/simpleboot3/portal/shopcart/shop_cart.html @@ -137,7 +137,7 @@ for(i=0;i<ids.length;i++){ goods_id[i] = ids[i].dataset.id; } - if(empty(goods_id)){ + if(goods_id.length == 0){ alert('不能为空'); }else{ goods_id = goods_id.join(','); -- libgit2 0.24.0