feat: 新增 Taro 模板双端运行与独立 Web 预览

This commit is contained in:
que01 committed 2026-10-08 15:28:26 +08:00
1 parent f4061a24bd
commit 7e8fc01fba
48 files changed
+11576 -12

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
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",
},
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,
})),
},
});