Commit 08fdb32b by 李伟康

fix(boutique): 修复SKU组件显示逻辑和状态映射问题

- 修复SKU组件显示条件,添加活动状态和标签页索引判断
- 解决任务状态映射缺失值时返回默认值的问题
- 确保SKU组件仅在非预览模式下正确显示
1 parent 33baa182
...@@ -101,7 +101,7 @@ export default { ...@@ -101,7 +101,7 @@ export default {
return { return {
2: '成功', 2: '成功',
3: '失败', 3: '失败',
}[status] }[status] || '-'
} }
}) })
if (messageType == 4) taskRecordList.push({ if (messageType == 4) taskRecordList.push({
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</template> </template>
<template v-else> <template v-else>
<view :class="['sku-box', isPreview ? 'preview' : '']"> <view :class="['sku-box', isPreview ? 'preview' : '']">
<sku-box :currentCar="currentCarId" :defaultTabId="tabId" :show="show && tabIndex == 0" <sku-box :currentCar="currentCarId" :defaultTabId="tabId" :show="show && !showActivity && tabIndex != tabs.length - 1"
@changePreView="changePreView" ref="sku" /> @changePreView="changePreView" ref="sku" />
</view> </view>
</template> </template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!