pages.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. {
  2. "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  3. //mqtt页面
  4. {
  5. "path": "pages/index/index",
  6. "style": {
  7. "navigationBarTitleText": "IOT"
  8. }
  9. },
  10. //设备页面
  11. {
  12. "path" : "pages/index/device",
  13. "style" :
  14. {
  15. "navigationBarTitleText": "device"
  16. }
  17. },
  18. //我的页面
  19. {
  20. "path" : "pages/index/mine",
  21. "style" :
  22. {
  23. "navigationBarTitleText": "mine"
  24. }
  25. },
  26. //扫描蓝牙设备页面
  27. {
  28. "path" : "pages/ble/ScanBleDevice",
  29. "style" :
  30. {
  31. "navigationBarTitleText": "扫描设备"
  32. }
  33. },
  34. //连接蓝牙设备页面
  35. {
  36. "path" : "pages/ble/ConnectBleDevice",
  37. "style" :
  38. {
  39. "navigationBarTitleText": "连接设备",
  40. "enablePullDownRefresh": false
  41. }
  42. }
  43. ],
  44. "dependencies": {
  45. "mqtt": "^3.0.0"
  46. },
  47. "globalStyle": {
  48. "navigationBarTextStyle": "black",
  49. "navigationBarTitleText": "uni-app",
  50. "navigationBarBackgroundColor": "#F8F8F8",
  51. "backgroundColor": "#6d6d6d",
  52. "enablePullDownRefresh":true,
  53. "backgroundTextStyle":"light"
  54. },
  55. "condition" : { //模式配置,仅开发期间生效
  56. "current": 0, //当前激活的模式(list 的索引项)
  57. "list": [
  58. {
  59. "name": "", //模式名称
  60. "path": "", //启动页面,必选
  61. "query": "" //启动参数,在页面的onLoad函数里面得到
  62. }
  63. ]
  64. },
  65. "tabBar": {
  66. "color": "#7A7E83",
  67. "selectedColor": "#3cc51f",
  68. "borderStyle": "black",
  69. "backgroundColor": "#ffffff",
  70. "height": "50px",
  71. "fontSize": "10px",
  72. "iconWidth": "24px",
  73. "spacing": "3px",
  74. "list": [{
  75. "pagePath": "pages/index/index",
  76. "iconPath": "static/image/iot.png",
  77. "selectedIconPath": "static/image/iot_org.png",
  78. "text": "IOT"
  79. }, {
  80. "pagePath": "pages/index/device",
  81. "iconPath": "static/image/device.png",
  82. "selectedIconPath": "static/image/device_red.png",
  83. "text": "device"
  84. }
  85. , {
  86. "pagePath": "pages/index/mine",
  87. "iconPath": "static/image/mine.png",
  88. "selectedIconPath": "static/image/mine_pressed.png",
  89. "text": "mine"
  90. }],
  91. "midButton": {
  92. "width": "80px",
  93. "height": "50px",
  94. "text": "文字",
  95. "iconPath": "static/image/mine.png",
  96. "iconWidth": "24px",
  97. "backgroundImage": "static/image/midButton_backgroundImage.png"
  98. }
  99. }
  100. }