pages.json 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. {
  2. "easycom": {
  3. "custom": {
  4. "^u--(.*)": "uview-plus/components/u-$1/u-$1.vue",
  5. "^up-(.*)": "uview-plus/components/u-$1/u-$1.vue",
  6. "^u-([^-].*)": "uview-plus/components/u-$1/u-$1.vue"
  7. }
  8. },
  9. "pages": [{
  10. "path": "pages/index/index",
  11. "style": {
  12. "navigationBarTitleText": "系统页",
  13. "navigationStyle": "custom",
  14. "app-plus": {
  15. "titleNView": false //禁用原生导航栏
  16. }
  17. }
  18. },
  19. {
  20. "path": "pages/home/index",
  21. "style": {
  22. "navigationBarTitleText": "首页",
  23. "navigationStyle": "custom",
  24. "app-plus": {
  25. "titleNView": false //禁用原生导航栏
  26. }
  27. }
  28. },
  29. {
  30. "path": "pages/teacher/index",
  31. "style": {
  32. "navigationBarTitleText": "教师",
  33. "enablePullDownRefresh": true
  34. }
  35. },
  36. {
  37. "path": "pages/news/index",
  38. "style": {
  39. "navigationBarTitleText": "新闻",
  40. "enablePullDownRefresh": true
  41. }
  42. },
  43. {
  44. "path": "pages/my/index",
  45. "style": {
  46. "navigationBarTitleText": "我的"
  47. }
  48. }
  49. ],
  50. "subPackages": [ //分包配置
  51. {
  52. "root": "pagesHome",
  53. "pages": [ //分包
  54. {
  55. "path": "agree/index",
  56. "style": {
  57. "navigationBarTitleText": "用户协议",
  58. "enablePullDownRefresh": false,
  59. "navigationBarTextStyle": "black",
  60. "navigationBarBackgroundColor": "#F8F8F8",
  61. "backgroundColor": "#F8F8F8",
  62. "backgroundColorTop": "#F4F5F6",
  63. "backgroundColorBottom": "#F4F5F6"
  64. }
  65. },
  66. {
  67. "path": "list/index",
  68. "style": {
  69. "navigationBarTitleText": "课程",
  70. "enablePullDownRefresh": true
  71. }
  72. },
  73. {
  74. "path": "teacher/index",
  75. "style": {
  76. "navigationBarTitleText": "教师详情"
  77. }
  78. }
  79. ]
  80. },
  81. {
  82. "root": "pagesMy",
  83. "pages": [ //分包
  84. {
  85. "path": "order/index",
  86. "style": {
  87. "navigationBarTitleText": "我的订单",
  88. "enablePullDownRefresh": true
  89. }
  90. },
  91. {
  92. "path": "course/index",
  93. "style": {
  94. "navigationBarTitleText": "我的课程",
  95. "enablePullDownRefresh": true
  96. }
  97. },
  98. {
  99. "path": "course/add",
  100. "style": {
  101. "navigationBarTitleText": "添加课程"
  102. }
  103. },
  104. {
  105. "path": "follow/index",
  106. "style": {
  107. "navigationBarTitleText": "我的关注",
  108. "enablePullDownRefresh": true
  109. }
  110. },
  111. {
  112. "path": "account/index",
  113. "style": {
  114. "navigationBarTitleText": "账号设置"
  115. }
  116. },
  117. {
  118. "path": "introduce/index",
  119. "style": {
  120. "navigationBarTitleText": "关于我们"
  121. }
  122. },
  123. {
  124. "path": "opinion/index",
  125. "style": {
  126. "navigationBarTitleText": "意见反馈"
  127. }
  128. },
  129. {
  130. "path": "opinion/list",
  131. "style": {
  132. "navigationBarTitleText": "历史反馈",
  133. "enablePullDownRefresh": true
  134. }
  135. }
  136. ]
  137. }
  138. ],
  139. "globalStyle": {
  140. "navigationBarTextStyle": "white",
  141. "navigationBarTitleText": "学吧",
  142. "navigationBarBackgroundColor": "#3c9cff",
  143. "backgroundColor": "#ffffff"
  144. },
  145. "tabBar": {
  146. "color": "8a8a8a",
  147. "selectedColor": "#262D3D",
  148. "borderStyle": "black",
  149. "backgroundColor": "#ffffff",
  150. "list": [{
  151. "pagePath": "pages/home/index",
  152. "iconPath": "static/homeHL.png",
  153. "selectedIconPath": "static/home.png",
  154. "text": "首页"
  155. },
  156. // {
  157. // "pagePath": "pages/news/index",
  158. // "iconPath": "static/newsHL.png",
  159. // "selectedIconPath": "static/news.png",
  160. // "text": "新闻"
  161. // },
  162. {
  163. "pagePath": "pages/teacher/index",
  164. "iconPath": "static/teacherHL.png",
  165. "selectedIconPath": "static/teacher.png",
  166. "text": "教师"
  167. },
  168. {
  169. "pagePath": "pages/my/index",
  170. "iconPath": "static/myHL.png",
  171. "selectedIconPath": "static/my.png",
  172. "text": "我的"
  173. }
  174. ]
  175. },
  176. "condition": { //模式配置,仅开发期间生效
  177. "current": 0, //当前激活的模式(list 的索引项)
  178. "list": [{
  179. "name": "学吧", //模式名称
  180. "path": "pages/index/index", //启动页面,必选
  181. "query": "" //启动参数,在页面的onLoad函数里面得到
  182. }]
  183. }
  184. }