pages.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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/my/index",
  38. "style": {
  39. "navigationBarTitleText": "我的"
  40. }
  41. }
  42. ],
  43. "subPackages": [ //分包配置
  44. {
  45. "root": "pagesHome",
  46. "pages": [ //分包
  47. {
  48. "path": "agree/index",
  49. "style": {
  50. "navigationBarTitleText": "用户协议",
  51. "enablePullDownRefresh": false,
  52. "navigationBarTextStyle": "black",
  53. "navigationBarBackgroundColor": "#F8F8F8",
  54. "backgroundColor": "#F8F8F8",
  55. "backgroundColorTop": "#F4F5F6",
  56. "backgroundColorBottom": "#F4F5F6"
  57. }
  58. }
  59. ]
  60. },
  61. {
  62. "root": "pagesMy",
  63. "pages": [ //分包
  64. {
  65. "path": "order/index",
  66. "style": {
  67. "navigationBarTitleText": "我的订单",
  68. "enablePullDownRefresh": true
  69. }
  70. },
  71. {
  72. "path": "course/index",
  73. "style": {
  74. "navigationBarTitleText": "我的课程",
  75. "enablePullDownRefresh": true
  76. }
  77. },
  78. {
  79. "path": "follow/index",
  80. "style": {
  81. "navigationBarTitleText": "我的关注",
  82. "enablePullDownRefresh": true
  83. }
  84. },
  85. {
  86. "path": "account/index",
  87. "style": {
  88. "navigationBarTitleText": "账号设置"
  89. }
  90. },
  91. {
  92. "path": "introduce/index",
  93. "style": {
  94. "navigationBarTitleText": "关于我们"
  95. }
  96. },
  97. {
  98. "path": "opinion/index",
  99. "style": {
  100. "navigationBarTitleText": "意见反馈"
  101. }
  102. },
  103. {
  104. "path": "opinion/list",
  105. "style": {
  106. "navigationBarTitleText": "历史反馈",
  107. "enablePullDownRefresh": true
  108. }
  109. }
  110. ]
  111. }
  112. ],
  113. "globalStyle": {
  114. "navigationBarTextStyle": "white",
  115. "navigationBarTitleText": "学吧",
  116. "navigationBarBackgroundColor": "#3c9cff",
  117. "backgroundColor": "#ffffff"
  118. },
  119. "tabBar": {
  120. "color": "8a8a8a",
  121. "selectedColor": "#262D3D",
  122. "borderStyle": "black",
  123. "backgroundColor": "#ffffff",
  124. "list": [{
  125. "pagePath": "pages/home/index",
  126. "iconPath": "static/homeHL.png",
  127. "selectedIconPath": "static/home.png",
  128. "text": "首页"
  129. },
  130. {
  131. "pagePath": "pages/teacher/index",
  132. "iconPath": "static/teacherHL.png",
  133. "selectedIconPath": "static/teacher.png",
  134. "text": "教师"
  135. },
  136. {
  137. "pagePath": "pages/my/index",
  138. "iconPath": "static/myHL.png",
  139. "selectedIconPath": "static/my.png",
  140. "text": "我的"
  141. }
  142. ]
  143. },
  144. "condition": { //模式配置,仅开发期间生效
  145. "current": 0, //当前激活的模式(list 的索引项)
  146. "list": [{
  147. "name": "学吧", //模式名称
  148. "path": "pages/index/index", //启动页面,必选
  149. "query": "" //启动参数,在页面的onLoad函数里面得到
  150. }]
  151. }
  152. }