pages.json 4.0 KB

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