feat: 删除商品标题旁边延迟tag
This commit is contained in:
@@ -93,16 +93,21 @@
|
||||
});
|
||||
|
||||
const showDelay = computed(() => {
|
||||
if (![10, 15, 50].includes(Number(props.status))) return false;
|
||||
if (Number(props.status) === 10 || Number(props.status) === 15) return true;
|
||||
// 待收货(status=50)不展示延迟发货按钮——货已经发出,不需要延迟/立即发货操作
|
||||
const s = Number(props.status);
|
||||
if (s === 50) return false;
|
||||
if (![10, 15].includes(s)) return false;
|
||||
if (s === 10 || s === 15) return true;
|
||||
return Boolean(props.canDelayItems);
|
||||
});
|
||||
|
||||
const showNow = computed(() => {
|
||||
if (![10, 15, 50].includes(Number(props.status))) return false;
|
||||
// 待收货(status=50)不展示立即发货按钮
|
||||
const s = Number(props.status);
|
||||
if (s === 50) return false;
|
||||
if (![10, 15].includes(s)) return false;
|
||||
// 只有存在延迟中(status===1)的商品时才展示立即发货按钮
|
||||
if (!Boolean(props.hasDelayedItems)) return false;
|
||||
if (Number(props.status) === 50) return true;
|
||||
return Boolean(props.canShipItems);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user