feat: 列表记录商品名称取消兜底

This commit is contained in:
2026-06-04 13:53:40 +08:00
parent 4d86ead906
commit 3e331bba3d
2 changed files with 2 additions and 8 deletions
+1 -3
View File
@@ -51,7 +51,6 @@
const shareTop = `${statusBarHeight + 8}px`;
const skuId = ref('');
const name = ref('');
const cover = ref('');
const recordList = ref([]);
@@ -64,7 +63,6 @@
onLoad((query) => {
skuId.value = query?.skuId ?? query?.shopId ?? '';
name.value = query?.name ?? '';
fetchList(true);
});
@@ -97,7 +95,7 @@
const mapOrderToRecord = (order) => {
const items = Array.isArray(order?.items) ? order.items : [];
const firstItem = items[0] || {};
const titleText = firstItem?.spuName || order?.no || name.value || '-';
const titleText = firstItem?.spuName || order?.no || '-';
const qty = Number(order?.productCount ?? 0) || 0;
const statusText = formatOrderStatus(order || {});
const timeText = sheep.$helper?.timeFormat