{ "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages { "path": "pages/login", "style": { "navigationBarTitleText": "", "componentPlaceholder": { "uni-badge": "view" // 使用 view 组件临时占位 } } }, { "path": "pages/index/index", "style": { "navigationStyle": "custom", "componentPlaceholder": { "uni-badge": "view", "uni-grid-item": "view" ,// 添加这一行 "uni-grid":"view", "uni-card":"view", "custom-navbar":"view", "kaoshixuzhi":"view" } } }, { "path": "pages/exam/index", "style": { "navigationStyle": "custom" } }, { "path": "pages/my/index", "style": { "navigationBarTitleText": "我的" } }, { "path": "pages/my/mesList", "style": { "navigationBarTitleText": "消息" } }, { "path": "pages/my/zhengshu", "style": { "navigationBarTitleText": "证书" } }, { "path": "pages/my/setting", "style": { "navigationBarTitleText": "设置" } }, { "path": "pages/demo/index", "style": { "navigationBarTitleText": "demo" } }, { "path": "pages/course/index", "style": { "navigationBarTitleText": "课程" } }, { "path": "pages/course/kechengInfo", "style": { "navigationBarTitleText": "课程详情" } }, { "path": "pages/score/index", "style": { "navigationStyle": "custom" } }, { "path": "pages/score/kaoshiChengjiInfo", "style": { "navigationStyle": "custom" } }, { "path": "pages/exam/exam", "style": { "navigationStyle": "custom" } }, { "path": "pages/lianxi/index", "style": { "navigationBarTitleText": "练习" } }, { "path": "pages/lianxi/lianxi", "style": { "navigationBarTitleText": "" } }, { "path": "pages/baoming/index", "style": { "navigationBarTitleText": "报名" } }, { "path": "pages/cuoti/index", "style": { "navigationBarTitleText": "错题" } }, { "path": "pages/cuoti/cuoti", "style": { "navigationBarTitleText": "错题答案" } }, { "path": "pages/my/mesPage", "style": { "navigationBarTitleText": "消息详情" } }, { "path": "pages/my/credit", "style": { "navigationBarTitleText": "学分" } } ], "subPackages": [ // 声明 uni_modules 分包 { "root": "uni_modules", // 将 uni_modules 作为分包根目录 "name": "uni-components", "pages": [] // 此分包通常不包含页面,仅存放组件 }, { "root": "components", // 将 components 作为分包根目录 "name": "cus-components", "pages": [] // 此分包通常不包含页面,仅存放组件 }, { "root": "subpack", // 将 uni_modules 作为分包根目录 "name": "copy-modules", "pages": [] // 此分包通常不包含页面,仅存放组件 } ], "easycom": { "autoscan": true, "custom": { // 为符合 easycom 规则的 uni_modules 组件配置路径 // 请根据你的组件实际路径结构调整 `@/subpackages/uni-modules/uni_modules/` 后的路径 "^uni-(.*)$": "@/uni_modules/uni-$1/components/uni-$1/uni-$1.vue" } }, "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "麦塔软件", "navigationBarBackgroundColor": "#fff" }, "tabBar": { "color": "#565656", "selectedColor": "#0856E6", "borderStyle": "black", "backgroundColor": "#ffffff", "fontSize": "13px", "iconWidth": "28px", "spacing": "0px", "list": [{ "pagePath": "pages/index/index", "iconPath": "static/images/tabbar/unselect/index-sj.png", "selectedIconPath": "static/images/tabbar/select/index-sj.png", "text": "首页" }, { "pagePath": "pages/exam/index", "iconPath": "static/images/tabbar/unselect/exam-sj.png", "selectedIconPath": "static/images/tabbar/select/exam-sj.png", "text": "考试" }, { "pagePath": "pages/score/index", "iconPath": "static/images/tabbar/unselect/score-sj.png", "selectedIconPath": "static/images/tabbar/select/score-sj.png", "text": "成绩" }, { "pagePath": "pages/my/index", "iconPath": "static/images/tabbar/unselect/my-sj.png", "selectedIconPath": "static/images/tabbar/select/my-sj.png", "text": "我的" } ] }, "uniIdRouter": {} }