From 9f916f98c6cc6827c84da18fbc9a5e2cacbefc0a Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期二, 02 四月 2024 16:20:08 +0800 Subject: [PATCH] Merge refs/remotes/origin/master into refs/heads/master --- pages/cart/index.js | 20 +++++++++++++------- 1 files changed, 13 insertions(+), 7 deletions(-) diff --git a/pages/cart/index.js b/pages/cart/index.js index 672eecc..d00cc4c 100644 --- a/pages/cart/index.js +++ b/pages/cart/index.js @@ -58,7 +58,17 @@ title: '鍒犻櫎鍥句功鎴愬姛', icon: 'none' }); + this.setData({ + totalPrice: 0.00, + selectedCount: 0, + checkAll: false, + }) + + }); + + + }, shoppingCartGet() { @@ -75,15 +85,12 @@ }) res.datas.forEach(item => { - console.log(item, 'item456'); item.imgUrl = getPublicImage(item.productMonWithLinkDto.product.icon, '', '160'); - // this.setData({ // type: item.saleMethod.type == 'createProductItemSaleMethod' ? 'item' : 'product' // }) const type = item.saleMethod.type == 'createProductItemSaleMethod' ? 'item' : 'product'; item.type = type; // 灏唗ype璁剧疆涓篿tem瀵硅薄鐨勫睘鎬э紝鑰屼笉鏄娇鐢╯etData - // debugger }); @@ -94,7 +101,6 @@ if (this.data.shoppingCartData.length === 0) { - console.log(11111); this.setData({ onDisabled: true }) @@ -233,8 +239,9 @@ url: '/pages/testLogin/index' }); }, - //瑙﹀簳鍑芥暟 - onReachBottom() { + + + onScrollToLower() { if (this.data.shoppingCartData.length < this.data.totalSize) { this.setData({ isMore: true, @@ -251,7 +258,6 @@ }) console.log('300'); }, 300) - } }, // 涓嬫媺鍑芥暟 -- Gitblit v1.9.1