From 7adfe5210fad2b4ab1b1be41e2d58eb3dd9b2b1a Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期二, 02 四月 2024 09:38:22 +0800
Subject: [PATCH] 代码合并

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

diff --git a/pages/cart/index.js b/pages/cart/index.js
index 6307aa3..672eecc 100644
--- a/pages/cart/index.js
+++ b/pages/cart/index.js
@@ -75,12 +75,16 @@
       })
 
       res.datas.forEach(item => {
-        // console.log(item, 'item456');
+        console.log(item, 'item456');
         item.imgUrl = getPublicImage(item.productMonWithLinkDto.product.icon, '', '160');
 
-        this.setData({
-          type: item.saleMethod.type == 'createProductItemSaleMethod' ? 'item' : 'product'
-        })
+        // this.setData({
+        //   type: item.saleMethod.type == 'createProductItemSaleMethod' ? 'item' : 'product'
+        // })
+        const type = item.saleMethod.type == 'createProductItemSaleMethod' ? 'item' : 'product';
+        item.type = type; // 灏唗ype璁剧疆涓篿tem瀵硅薄鐨勫睘鎬э紝鑰屼笉鏄娇鐢╯etData
+
+        // debugger
 
       });
 

--
Gitblit v1.9.1