feat: 没有延迟商品不展示立即发货
This commit is contained in:
@@ -100,8 +100,9 @@
|
|||||||
|
|
||||||
const showNow = computed(() => {
|
const showNow = computed(() => {
|
||||||
if (![10, 15, 50].includes(Number(props.status))) return false;
|
if (![10, 15, 50].includes(Number(props.status))) return false;
|
||||||
|
// 只有存在延迟中(status===1)的商品时才展示立即发货按钮
|
||||||
|
if (!Boolean(props.hasDelayedItems)) return false;
|
||||||
if (Number(props.status) === 50) return true;
|
if (Number(props.status) === 50) return true;
|
||||||
if (Boolean(props.hasDelayedItems)) return true;
|
|
||||||
return Boolean(props.canShipItems);
|
return Boolean(props.canShipItems);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user