diff --git a/packageB/pages/zuhegou/index/index.js b/packageB/pages/zuhegou/index/index.js index af6959d..1efaf5d 100644 --- a/packageB/pages/zuhegou/index/index.js +++ b/packageB/pages/zuhegou/index/index.js @@ -440,6 +440,7 @@ Page({ this.data.sele_index = index; let title = ''; self = this; + th.data.s_cart_num=0; //说明是加入购物车是时候 this.data.is_zuhe_addcart = 1; @@ -496,7 +497,7 @@ Page({ success (res) { if (res.confirm) { console.log('用户点击确定'); - if(th.data.sele_g.cart_num){ + if(th.data.sele_g.cart_num && th.data.sele_g.cart_num - th.data.sele_g.num>0){ var updata = { id: th.data.sele_g.cart_id, diff --git a/pages/cart/cart/cart.js b/pages/cart/cart/cart.js index 8c37d26..73f98b6 100644 --- a/pages/cart/cart/cart.js +++ b/pages/cart/cart/cart.js @@ -140,9 +140,6 @@ Page({ }, onHide(){ - for(var i = 1; i < 100; i++) { - clearInterval(i); - } this.data.zuhe_map={}; }, onUnLoad(){ diff --git a/pages/goods/categoryList/categoryList.wxss b/pages/goods/categoryList/categoryList.wxss index 9cc07cc..c57818b 100644 --- a/pages/goods/categoryList/categoryList.wxss +++ b/pages/goods/categoryList/categoryList.wxss @@ -311,7 +311,7 @@ width: 60%; max-height: 90%; overflow-y:scroll; overflow: hidden scroll; - padding-bottom: 65rpx; + /* padding-bottom: 65rpx; */ }