refactor: 拆分小程序 vue 结构

This commit is contained in:
2026-03-11 14:11:26 +08:00
commit b050c01a24
141 changed files with 24904 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import { FulfillmentScenes, SCENE_LABEL_MAP } from '@/shared'
import type { FulfillmentScene } from '@/shared'
export function resolveSceneLabel (scene: FulfillmentScene) {
return SCENE_LABEL_MAP[scene]
}
export function resolveSceneSuffix (scene: FulfillmentScene) {
if (scene === FulfillmentScenes.Delivery) return '配送'
if (scene === FulfillmentScenes.Pickup) return '自提'
return '用餐'
}
export function resolveSceneHint (scene: FulfillmentScene) {
if (scene === FulfillmentScenes.Delivery) return '预计 30 分钟送达'
if (scene === FulfillmentScenes.Pickup) return '下单后可到店取餐'
return '下单后商家将尽快制作'
}