From c476915fdcb57387459ce6da1b43a502f4168628 Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期一, 29 四月 2024 09:38:54 +0800
Subject: [PATCH] 标题

---
 pages/cart/index.js |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/pages/cart/index.js b/pages/cart/index.js
index 9f187c7..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({

--
Gitblit v1.9.1