From 55949f95a609733d1771d5b017d679cd7d1f005d Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期五, 20 十二月 2024 17:33:17 +0800 Subject: [PATCH] 题库加入购物车优化 --- pages/cart/index.js | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pages/cart/index.js b/pages/cart/index.js index 7a91a6d..b36954d 100644 --- a/pages/cart/index.js +++ b/pages/cart/index.js @@ -130,8 +130,13 @@ item.productType = "鍥句功鏈嶅姟-鐢靛瓙涔�" if (item.saleMethod.type == 'createProductItemSaleMethod' || item.saleMethod.type == 'createProductFolderSaleMethod') { - item.typeTxt = '浜戝涔�' - item.productType = "鍥句功鏈嶅姟-浜戝涔�" + if (item.linkCmsItems[0].refCode == 'questionBank') { + item.type = '浜戞祴璇�' + item.productType = '鍥句功鏈嶅姟-浜戞祴璇�' + } else { + item.typeTxt = '浜戝涔�' + item.productType = "鍥句功鏈嶅姟-浜戝涔�" + } } } // -- Gitblit v1.9.1