From 558845242a07b68f42fa1802c45ab2769395d8b8 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期一, 29 四月 2024 14:31:30 +0800 Subject: [PATCH] 合并代码 --- pages/cart/index.js | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/pages/cart/index.js b/pages/cart/index.js index c31356e..8dfc613 100644 --- a/pages/cart/index.js +++ b/pages/cart/index.js @@ -11,6 +11,9 @@ Page({ data: { + price: '', + loading: true, + hidden: true, swipeOpened: false, onDisabled: false, imgUrl: [], @@ -86,9 +89,11 @@ totalSize: res.totalSize }) res.datas.forEach(item => { + this.setData({ bookId: res.id, - bookName: res.name + bookName: res.name, + price: item.saleMethod.price.toFixed(2), }) item.imgUrl = getPublicImage(item.productMonWithLinkDto.product.icon, '', '160'); // this.setData({ @@ -112,6 +117,13 @@ onDisabled: false }) } + setTimeout(() => { + this.setData({ + loading: false, + hidden: false, + }) + }, 600) + }); wx.stopPullDownRefresh() @@ -267,7 +279,6 @@ }, // 涓嬫媺鍑芥暟 onPullDownRefresh() { - this.setData({ start: 1, checkAll: false, -- Gitblit v1.9.1