feat: 列表记录商品名称取消兜底
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user