From 9cc35aa83764cb91436750db66e9868c99c1de90 Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期一, 29 四月 2024 13:14:50 +0800 Subject: [PATCH] 标题bug1 --- pages/cart/index.js | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/pages/cart/index.js b/pages/cart/index.js index 9fc3ee8..8dfc613 100644 --- a/pages/cart/index.js +++ b/pages/cart/index.js @@ -11,6 +11,7 @@ Page({ data: { + price: '', loading: true, hidden: true, swipeOpened: false, @@ -88,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({ @@ -114,10 +117,13 @@ onDisabled: false }) } - this.setData({ - loading: false, - hidden: false, - }) + setTimeout(() => { + this.setData({ + loading: false, + hidden: false, + }) + }, 600) + }); wx.stopPullDownRefresh() @@ -273,7 +279,6 @@ }, // 涓嬫媺鍑芥暟 onPullDownRefresh() { - this.setData({ start: 1, checkAll: false, -- Gitblit v1.9.1