订单详情页内容调整(增加配送方式、订单号等)

This commit is contained in:
2026-07-01 00:29:39 +08:00
parent c43defca3f
commit 1800e792b1
6 changed files with 925 additions and 160 deletions
+4
View File
@@ -53,6 +53,10 @@ export function buildProductDetailUrl(productId?: string | null) {
return productId ? `/product/${productId}` : '/';
}
export function buildOrderAddressSelectUrl(orderId: string) {
return `/addresses?orderId=${orderId}&select=1`;
}
export function hasCheckoutContext(ctx: CheckoutContext) {
return Boolean(ctx.productId || ctx.select === true || ctx.select === '1');
}