Fix:5701 【商城小程序】【我的订单-集采中心】订单列表采购批发商品卡片未显示商品名称信息

This commit is contained in:
linxi
2026-08-18 13:44:00 +08:00
parent f0284d1b06
commit ac741f9339
+5 -4
View File
@@ -1043,7 +1043,7 @@ export default {
if (isCustomGift) { if (isCustomGift) {
return { return {
image: this.formatCollectiveImage(item.giftImage), image: this.formatCollectiveImage(item.giftImage),
name: item.giftName || '商品信息', name: item.giftName,
sku: item.specName || '', sku: item.specName || '',
qty: Number(item.giftNum) || 1, qty: Number(item.giftNum) || 1,
price: 0, price: 0,
@@ -1096,8 +1096,9 @@ export default {
item.productName || item.productName ||
item.giftName || item.giftName ||
item.name || item.name ||
item.title || productInfo.storeName ||
'商品信息', productInfo.cateName ||
item.cateName,
price: Number(rawPrice) || 0, price: Number(rawPrice) || 0,
showPrice: true, showPrice: true,
sku: rawSku, sku: rawSku,
@@ -1131,7 +1132,7 @@ export default {
}, },
getCollectiveProductName(cart) { getCollectiveProductName(cart) {
const productInfo = (cart && cart.productInfo) || {} const productInfo = (cart && cart.productInfo) || {}
return productInfo.storeName || cart.storeName || '商品信息' return productInfo.storeName || cart.storeName
}, },
getCollectiveProductSku(cart) { getCollectiveProductSku(cart) {
const productInfo = (cart && cart.productInfo) || {} const productInfo = (cart && cart.productInfo) || {}