From 4c472f6bbf82e5ef95b60ac8e417760d89a7ba36 Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期五, 29 三月 2024 19:39:17 +0800 Subject: [PATCH] 购物车2 --- pages/cart/index.js | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pages/cart/index.js b/pages/cart/index.js index 6307aa3..e0d50b3 100644 --- a/pages/cart/index.js +++ b/pages/cart/index.js @@ -78,9 +78,13 @@ // 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