From 74139f2bc6bdc8147dd570ac1d774245f67e4f9f Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期一, 01 四月 2024 14:05:45 +0800 Subject: [PATCH] 样式修改 --- 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