diff --git a/public/themes/simpleboot3/portal/shopcart/shop_cart.html b/public/themes/simpleboot3/portal/shopcart/shop_cart.html index 63729f5..03c7239 100644 --- a/public/themes/simpleboot3/portal/shopcart/shop_cart.html +++ b/public/themes/simpleboot3/portal/shopcart/shop_cart.html @@ -132,7 +132,18 @@ *点击跳转到订单页 */ function myjump(){ - window.location.href = "{:url('Orderpage/order_page')}"; + ids = $('.add'); + goods_id = []; + for(i=0;i<ids.length;i++){ + goods_id[i] = ids[i].dataset.id; + } + goods_id = goods_id.join(','); + if(goods_id == ','){ + alert('不能为空'); + }else{ + window.location.href = "{:url('Orderpage/order_page')}"; + } + } // 计算总计