From 312fd09aaf90c0e52ab61bde22d0edbf105baa5e Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期二, 02 四月 2024 09:16:03 +0800 Subject: [PATCH] 书展的排序1 --- 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