From c5ee0e9d22473f3fd96f442724058dd297fec97c Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期一, 23 十二月 2024 10:20:38 +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..889a690 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.typeTxt = '浜戞祴璇�' + item.productType = '鍥句功鏈嶅姟-浜戞祴璇�' + } else { + item.typeTxt = '浜戝涔�' + item.productType = "鍥句功鏈嶅姟-浜戝涔�" + } } } // -- Gitblit v1.9.1