pages.json 4.0 KB

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