40 lines
1.0 KiB
TypeScript
40 lines
1.0 KiB
TypeScript
const routes: Record<string, string> = {
|
|
home: "pages/home/index",
|
|
offerings: "pages/offerings/index",
|
|
service: "pages/service/index",
|
|
profile: "pages/profile/index",
|
|
inquiry: "pages/inquiry/index",
|
|
};
|
|
export default defineAppConfig({
|
|
pages: [
|
|
"pages/home/index",
|
|
"pages/offerings/index",
|
|
"pages/service/index",
|
|
"pages/profile/index",
|
|
"pages/inquiry/index",
|
|
"pages/detail/index",
|
|
"pages/success/index",
|
|
"pages/records/index",
|
|
],
|
|
window: {
|
|
navigationBarTitleText: TEMPLATE_MANIFEST.displayName,
|
|
navigationBarBackgroundColor: "#ffffff",
|
|
navigationBarTextStyle: "black",
|
|
},
|
|
...(!PREVIEW_ALL_TEMPLATES
|
|
? {
|
|
tabBar: {
|
|
color: "#8b8178",
|
|
selectedColor: "#3b2118",
|
|
backgroundColor: "#ffffff",
|
|
list: TEMPLATE_MANIFEST.navigation.map((tab) => ({
|
|
pagePath: routes[tab.page],
|
|
text: tab.label,
|
|
iconPath: tab.iconPath,
|
|
selectedIconPath: tab.selectedIconPath,
|
|
})),
|
|
},
|
|
}
|
|
: {}),
|
|
});
|