feat: 订单的处理,ordertype 等于0的处理

This commit is contained in:
2026-03-31 00:05:42 +08:00
parent c9683398de
commit b8b1a3885a
9 changed files with 60 additions and 28 deletions

View File

@@ -13,8 +13,8 @@
<text
:class="[
{
'color-FF3D60': statusCode === '0',
'color-21B466': ['1', '2', '3', '4', '5', '6'].includes(statusCode),
'color-FF3D60': statusCode === '0' || statusCode === '3',
'color-21B466': ['1', '2', '4', '5', '6'].includes(statusCode),
},
]"
>
@@ -45,7 +45,7 @@ const statusCode = computed(() => props.orderData.orderStatus);
// 使用计算属性缓存支付方式文本
const statusText = computed(() =>
statusCode.value === "0" ? "未支付" : "已支付"
statusCode.value === "0" || statusCode.value === "3" ? "未支付" : "已支付"
);
</script>