{ "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages { "path": "pages/home/home", "style": { // "navigationStyle": "custom", "backgroundColorTop": "#ff5d5b", "backgroundColorBottom": "#F8F8F8", "app-plus": { "titleNView": { "searchInput": { "backgroundColor": "#fff", "borderRadius": "16px", //输入框圆角 "placeholder": "粘贴宝贝标题", "disabled": true //disable时点击输入框不置焦,可以跳到新页面搜索 }, "buttons": [{ "text": "\ue847", "fontSrc": "/static/uni.ttf", "width": "auto", "fontSize":"26px" }] } } } }, { "path": "pages/order/order", "style": { "navigationBarTitleText": "", "enablePullDownRefresh": false } }, { "path": "pages/user/user-center", "style": { "navigationBarTitleText": "我的", "enablePullDownRefresh": false, "backgroundColorTop": "#ff5d5b", "app-plus": { "titleNView": { "buttons": [{ "text": "\ue532", "fontSrc": "/static/uni.ttf", "width": "auto", "fontSize": "26px" }, { "text": "\ue847", "fontSrc": "/static/uni.ttf", "width": "auto", "fontSize": "26px" } ] } } } }, { "path": "pages/shopping-cart/shopping-cart", "style": { "navigationBarTitleText": "", "enablePullDownRefresh": false } }, { "path": "pages/user/login", "style": { "navigationBarTitleText": "登录", "enablePullDownRefresh": false, "navigationBarBackgroundColor": "#ff5d5b", "backgroundColor": "#ff5d5b" } }, { "path": "pages/user/find-pass", "style": { "navigationBarTitleText": "找回密码", "enablePullDownRefresh": false, "backgroundColor": "#ff5d5b" } }, { "path": "pages/register/step1", "style": { "navigationBarTitleText": "第一步", "enablePullDownRefresh": false, "backgroundColor": "#ff5d5b" } }, { "path": "pages/register/step2", "style": { "navigationBarTitleText": "第二步", "enablePullDownRefresh": false, "backgroundColor": "#ff5d5b" } }, { "path": "pages/register/step3", "style": { "navigationBarTitleText": "注册", "enablePullDownRefresh": false, "backgroundColor": "#ff5d5b" } }, { "path": "pages/user/simple-article", "style": { "navigationBarTitleText": "", "enablePullDownRefresh": false } }, { "path": "pages/user/vcode-login", "style": { "navigationBarTitleText": "登录", "enablePullDownRefresh": false, "navigationBarBackgroundColor": "#ff5d5b", "backgroundColor": "#ff5d5b" } } ], "globalStyle": { "navigationBarTextStyle": "white", "navigationBarTitleText": "省心直供", "navigationBarBackgroundColor": "#ff5d5b", "backgroundColor": "#F8F8F8" }, "tabBar": { "color": "#7A7E83", "selectedColor": "#ff5d5b", "borderStyle": "black", "backgroundColor": "#ffffff", "midButton": { "iconPath": "static/images/camera.png", "iconWidth": "40px", "height": "45px" }, "list": [{ "pagePath": "pages/home/home", "iconPath": "static/images/home.png", "selectedIconPath": "static/images/home_selected.png", "text": "首页" }, { "pagePath": "pages/order/order", "iconPath": "static/images/qiang.png", "selectedIconPath": "static/images/qiang_selected.png", "text": "订单" }, { "pagePath": "pages/shopping-cart/shopping-cart", "iconPath": "static/images/kan.png", "selectedIconPath": "static/images/kan_selected.png", "text": "购物车" }, { "pagePath": "pages/user/user-center", "iconPath": "static/images/user.png", "selectedIconPath": "static/images/user_selected.png", "text": "我的" }] }, "condition": { //模式配置,仅开发期间生效 "current": 0, //当前激活的模式(list 的索引项) "list": [{ "name": "", //模式名称 "path": "", //启动页面,必选 "query": "" //启动参数,在页面的onLoad函数里面得到 }] } }