pages.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. "path" : "pages/test/component1",
  45. "style" :
  46. {
  47. "navigationBarTitleText": "组件1",
  48. "enablePullDownRefresh": false
  49. }
  50. }
  51. ],
  52. "dependencies": {
  53. "mqtt": "^3.0.0"
  54. },
  55. "globalStyle": {
  56. "navigationBarTextStyle": "black",
  57. "navigationBarTitleText": "uni-app",
  58. "navigationBarBackgroundColor": "#F8F8F8",
  59. "backgroundColor": "#6d6d6d",
  60. "enablePullDownRefresh":true,
  61. "backgroundTextStyle":"light"
  62. },
  63. "condition" : { //模式配置,仅开发期间生效
  64. "current": 0, //当前激活的模式(list 的索引项)
  65. "list": [
  66. {
  67. "name": "组件1", //模式名称
  68. "path": "pages/test/component1", //启动页面,必选
  69. "query": "id=3241351635&name=askjhfd" //启动参数,在页面的onLoad函数里面得到
  70. }
  71. ]
  72. },
  73. "tabBar": {
  74. "color": "#7A7E83",
  75. "selectedColor": "#3cc51f",
  76. "borderStyle": "black",
  77. "backgroundColor": "#ffffff",
  78. "height": "50px",
  79. "fontSize": "10px",
  80. "iconWidth": "24px",
  81. "spacing": "3px",
  82. "list": [{
  83. "pagePath": "pages/index/index",
  84. "iconPath": "static/image/iot.png",
  85. "selectedIconPath": "static/image/iot_org.png",
  86. "text": "IOT"
  87. }, {
  88. "pagePath": "pages/index/device",
  89. "iconPath": "static/image/device.png",
  90. "selectedIconPath": "static/image/device_red.png",
  91. "text": "device"
  92. }
  93. , {
  94. "pagePath": "pages/index/mine",
  95. "iconPath": "static/image/mine.png",
  96. "selectedIconPath": "static/image/mine_pressed.png",
  97. "text": "mine"
  98. }],
  99. "midButton": {
  100. "width": "80px",
  101. "height": "50px",
  102. "text": "文字",
  103. "iconPath": "static/image/mine.png",
  104. "iconWidth": "24px",
  105. "backgroundImage": "static/image/midButton_backgroundImage.png"
  106. }
  107. }
  108. }