pages.json 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. {
  2. "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  3. {
  4. "path": "pages/login/index",
  5. "style": {
  6. "navigationBarTitleText": "登录",
  7. "navigationStyle": "custom",
  8. "app-plus": {
  9. "softinputMode": "adjustResize",
  10. "navigationStyle": "custom"
  11. }
  12. }
  13. },
  14. {
  15. "path": "pages/homePage/index",
  16. "style": {
  17. "navigationBarTitleText": "首页",
  18. "app-plus": {
  19. "softinputMode": "adjustResize",
  20. "pullToRefresh": {
  21. "support": true
  22. }
  23. }
  24. }
  25. },
  26. {
  27. "path": "pages/homePage/chartview",
  28. "style": {
  29. "navigationBarTitleText": "图表",
  30. "app-plus": {
  31. "softinputMode": "adjustResize",
  32. "pullToRefresh": {
  33. "support": true
  34. }
  35. }
  36. }
  37. },
  38. {
  39. "path": "pages/reportForm/index",
  40. "style": {
  41. "navigationBarTitleText": "数据查询",
  42. "app-plus": {
  43. "softinputMode": "adjustResize",
  44. "pullToRefresh": {
  45. "support": true
  46. }
  47. }
  48. }
  49. },
  50. {
  51. "path": "pages/message/index",
  52. "style": {
  53. "navigationBarTitleText": "报警信息",
  54. "app-plus": {
  55. "softinputMode": "adjustResize",
  56. "pullToRefresh": {
  57. "support": true
  58. },
  59. "titleNView": {
  60. "buttons": [
  61. {
  62. "text":"筛选",
  63. "float":"right",
  64. "fontSize": "16px",
  65. "fontWeight": "bold",
  66. "fontSrc": "./static/fonts/iconfont.ttf"
  67. }
  68. ]
  69. }
  70. }
  71. }
  72. },
  73. {
  74. "path": "pages/user/index",
  75. "style": {
  76. "navigationStyle": "custom",
  77. "app-plus": {
  78. "softinputMode": "adjustResize"
  79. }
  80. }
  81. },
  82. {
  83. "path": "pages/user/auth-level/index",
  84. "style": {
  85. "navigationBarTitleText": "角色信息",
  86. "app-plus": {
  87. "softinputMode": "adjustResize",
  88. "pullToRefresh": {
  89. "support": false
  90. }
  91. }
  92. }
  93. },
  94. {
  95. "path": "pages/user/edit-password/index",
  96. "style": {
  97. "navigationBarTitleText": "修改密码",
  98. "app-plus": {
  99. "softinputMode": "adjustResize",
  100. "pullToRefresh": {
  101. "support": false
  102. }
  103. }
  104. }
  105. },
  106. {
  107. "path": "pages/user/system-info/index",
  108. "style": {
  109. "navigationBarTitleText": "系统信息",
  110. "app-plus": {
  111. "softinputMode": "adjustResize",
  112. "pullToRefresh": {
  113. "support": true
  114. }
  115. }
  116. }
  117. },
  118. {
  119. "path": "pages/reportForm/report-detail/index",
  120. "style": {
  121. "navigationBarTitleText": "报表详情",
  122. "app-plus": {
  123. "softinputMode": "adjustResize",
  124. "titleNView": {
  125. "titleText": "报表详情"
  126. }
  127. }
  128. }
  129. },
  130. {
  131. "path": "pages/message/msg-detail/index",
  132. "style": {
  133. "navigationBarTitleText": "消息详情",
  134. "app-plus": {
  135. "softinputMode": "adjustResize"
  136. }
  137. }
  138. },
  139. {
  140. "path": "pages/reportForm/report-detail/recordDetail",
  141. "style": {
  142. "navigationBarTitleText": "运行详情",
  143. "app-plus": {
  144. "softinputMode": "adjustResize",
  145. "titleNView": {
  146. "titleText": "运行详情"
  147. }
  148. }
  149. }
  150. }
  151. ],
  152. "globalStyle": {
  153. "navigationBarTextStyle": "black",
  154. "navigationBarTitleText": "Easy Industrial Report",
  155. "navigationBarBackgroundColor": "#ffffff",
  156. "backgroundColor": "#2c3e50"
  157. },
  158. "tabBar": {
  159. "iconfontSrc": "static/fonts/iconfont.ttf",
  160. "fontSize": "13px",
  161. "height": "56px",
  162. "iconWidth": "23px",
  163. "list": [{
  164. "pagePath": "pages/homePage/index",
  165. "text": "首页",
  166. "iconPath": "./static/image/sy.png",
  167. "selectedIconPath": "./static/image/sy-sel.png"
  168. }, {
  169. "pagePath": "pages/reportForm/index",
  170. "text": "数据查询",
  171. "iconPath": "./static/image/sj.png",
  172. "selectedIconPath": "./static/image/sj-sel.png"
  173. }, {
  174. "pagePath": "pages/message/index",
  175. "text": "报警信息",
  176. "iconPath": "./static/image/bj.png",
  177. "selectedIconPath": "./static/image/bj-sel.png"
  178. }, {
  179. "pagePath": "pages/user/index",
  180. "text": "我的",
  181. "iconPath": "./static/image/user.png",
  182. "selectedIconPath": "./static/image/user-sel.png"
  183. }],
  184. "color": "#2c3e50"
  185. },
  186. "uniIdRouter": {},
  187. "condition" : { //模式配置,仅开发期间生效
  188. "current": 0, //当前激活的模式(list 的索引项)
  189. "list": [
  190. {
  191. "name": "", //模式名称
  192. "path": "", //启动页面,必选
  193. "query": "" //启动参数,在页面的onLoad函数里面得到
  194. }
  195. ]
  196. }
  197. }