{ "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages //设备页面 { "path" : "pages/index/device", "style" : { "navigationBarTitleText": "device" } }, //mqtt页面 { "path": "pages/index/index", "style": { "navigationBarTitleText": "IOT" } }, //我的页面 { "path" : "pages/index/mine", "style" : { "navigationBarTitleText": "mine" } }, //扫描蓝牙设备页面 { "path" : "pages/ble/ScanBleDevice", "style" : { "navigationBarTitleText": "扫描设备" } }, //连接蓝牙设备页面 { "path" : "pages/ble/ConnectBleDevice", "style" : { "navigationBarTitleText": "连接设备", "enablePullDownRefresh": false } } ,{ "path" : "pages/test/component1", "style" : { "navigationBarTitleText": "组件1", "enablePullDownRefresh": false } }, { "path" : "pages/test/component2" }, { "path" : "pages/test/component3/component3", "style":{ "onReachBottomDistance": 80 } }, { "path" : "pages/deviceInfo/deviceInfo" } ], "dependencies": { "mqtt": "^3.0.0" }, "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "uni-app", "navigationBarBackgroundColor": "#F8F8F8", "backgroundColor": "#6d6d6d", "enablePullDownRefresh":true, "backgroundTextStyle":"light" }, "condition" : { //模式配置,仅开发期间生效 "current": 0, //当前激活的模式(list 的索引项) "list": [ { "name": "组件1", //模式名称 "path": "pages/test/component1", //启动页面,必选 "query": "id=3241351635&name=askjhfd" //启动参数,在页面的onLoad函数里面得到 }, { "name": "组件2", //模式名称 "path": "pages/test/component2", //启动页面,必选 "query": "id=3241351635&name=askjhfd" //启动参数,在页面的onLoad函数里面得到 }, { "name": "组件3", //模式名称 "path": "pages/test/component3/component3", //启动页面,必选 "query": "id=3241351635&name=askjhfd" //启动参数,在页面的onLoad函数里面得到 } ] }, "tabBar": { "color": "#7A7E83", "selectedColor": "#3cc51f", "borderStyle": "black", "backgroundColor": "#ffffff", "height": "50px", "fontSize": "10px", "iconWidth": "24px", "spacing": "3px", "list": [{ "pagePath": "pages/index/index", "iconPath": "static/image/iot.png", "selectedIconPath": "static/image/iot_org.png", "text": "IOT" }, { "pagePath": "pages/index/device", "iconPath": "static/image/device.png", "selectedIconPath": "static/image/device_red.png", "text": "device" } , { "pagePath": "pages/index/mine", "iconPath": "static/image/mine.png", "selectedIconPath": "static/image/mine_pressed.png", "text": "mine" }], "midButton": { "width": "80px", "height": "50px", "text": "文字", "iconPath": "static/image/mine.png", "iconWidth": "24px", "backgroundImage": "static/image/midButton_backgroundImage.png" } } }