Commit f0b740b3f638f0b41a4b29ebf46b0f49dffdb965

Authored by 后端研发-苏明海
2 parents 4c64f428 da7a2fae

Merge branch 'dev' into 'test'

Dev

See merge request !771
packageB/pages/zuhegou/index/index.js
@@ -440,6 +440,7 @@ Page({ @@ -440,6 +440,7 @@ Page({
440 this.data.sele_index = index; 440 this.data.sele_index = index;
441 let title = ''; 441 let title = '';
442 self = this; 442 self = this;
  443 + th.data.s_cart_num=0;
443 444
444 //说明是加入购物车是时候 445 //说明是加入购物车是时候
445 this.data.is_zuhe_addcart = 1; 446 this.data.is_zuhe_addcart = 1;
@@ -496,7 +497,7 @@ Page({ @@ -496,7 +497,7 @@ Page({
496 success (res) { 497 success (res) {
497 if (res.confirm) { 498 if (res.confirm) {
498 console.log('用户点击确定'); 499 console.log('用户点击确定');
499 - if(th.data.sele_g.cart_num){ 500 + if(th.data.sele_g.cart_num && th.data.sele_g.cart_num - th.data.sele_g.num>0){
500 501
501 var updata = { 502 var updata = {
502 id: th.data.sele_g.cart_id, 503 id: th.data.sele_g.cart_id,
pages/cart/cart/cart.js
@@ -140,9 +140,6 @@ Page({ @@ -140,9 +140,6 @@ Page({
140 }, 140 },
141 141
142 onHide(){ 142 onHide(){
143 - for(var i = 1; i < 100; i++) {  
144 - clearInterval(i);  
145 - }  
146 this.data.zuhe_map={}; 143 this.data.zuhe_map={};
147 }, 144 },
148 onUnLoad(){ 145 onUnLoad(){
pages/goods/categoryList/categoryList.wxss
@@ -311,7 +311,7 @@ width: 60%; @@ -311,7 +311,7 @@ width: 60%;
311 max-height: 90%; 311 max-height: 90%;
312 overflow-y:scroll; 312 overflow-y:scroll;
313 overflow: hidden scroll; 313 overflow: hidden scroll;
314 - padding-bottom: 65rpx; 314 + /* padding-bottom: 65rpx; */
315 315
316 316
317 } 317 }