配置
This commit is contained in:
1 parent
a0eac3aabb
commit
98e2c198db
5 files changed
+103
-47
No files matched your search
@@ -3,3 +3,10 @@ export { default as serviceEnum } from "./service-enum"
|
||||
export { default as storageConstant } from "./storage-constant"
|
||||
|
||||
export { default as APPENV } from "./app-env"
|
||||
|
||||
export {
|
||||
INTEGRATED_ENTRIES,
|
||||
INTEGRATED_LAUNCH_PARAMS,
|
||||
getIntegratedPageByLaunchParam,
|
||||
type IntegratedEntry,
|
||||
} from "./integrated-entry"
|
||||
@@ -0,0 +1,59 @@
|
||||
/** 综合服务子入口(与 pages/tabbar/integrated.vue services 对齐) */
|
||||
export type IntegratedEntry = {
|
||||
launchParam: string
|
||||
text: string
|
||||
iconPath: string
|
||||
pagePath: string
|
||||
}
|
||||
|
||||
export const INTEGRATED_ENTRIES: IntegratedEntry[] = [
|
||||
{
|
||||
launchParam: "todo",
|
||||
text: "工作待办",
|
||||
iconPath: "/static/icon/todo.png",
|
||||
pagePath: "/pages/integrated/todo/index",
|
||||
},
|
||||
{
|
||||
launchParam: "meeting",
|
||||
text: "会议预定",
|
||||
iconPath: "/static/icon/meeting-booking.png",
|
||||
pagePath: "/pages/integrated/meeting/index",
|
||||
},
|
||||
{
|
||||
launchParam: "lostAndFound",
|
||||
text: "失物招领",
|
||||
iconPath: "/static/icon/service_1.png",
|
||||
pagePath: "/pages/integrated/lostAndFound/index",
|
||||
},
|
||||
{
|
||||
launchParam: "feedback",
|
||||
text: "意见反馈",
|
||||
iconPath: "/static/icon/feedback.png",
|
||||
pagePath: "/pages/integrated/feedback/index",
|
||||
},
|
||||
{
|
||||
launchParam: "repair",
|
||||
text: "物业维修",
|
||||
iconPath: "/static/icon/service_2.png",
|
||||
pagePath: "/pages/integrated/repair/index",
|
||||
},
|
||||
{
|
||||
launchParam: "notice",
|
||||
text: "通知公告",
|
||||
iconPath: "/static/icon/service_3.png",
|
||||
pagePath: "/pages/integrated/notice/index",
|
||||
},
|
||||
{
|
||||
launchParam: "visitor",
|
||||
text: "访客邀约",
|
||||
iconPath: "/static/icon/visitor.png",
|
||||
pagePath: "/pages/integrated/visitor/invitation",
|
||||
},
|
||||
]
|
||||
|
||||
/** 综合服务 tab 及子入口 launchParam(用于 tabbar 显隐) */
|
||||
export const INTEGRATED_LAUNCH_PARAMS = ["integrated", ...INTEGRATED_ENTRIES.map((e) => e.launchParam)]
|
||||
|
||||
export function getIntegratedPageByLaunchParam(launchParam: string): string | undefined {
|
||||
return INTEGRATED_ENTRIES.find((e) => e.launchParam === launchParam)?.pagePath
|
||||
}
|
||||
Reference in new issue
Block a user