pages.json 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. {
  2. "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  3. {
  4. "path": "pages/login",
  5. "style": {
  6. "navigationBarTitleText": "",
  7. "componentPlaceholder": {
  8. "uni-badge": "view" // 使用 view 组件临时占位
  9. }
  10. }
  11. },
  12. {
  13. "path": "pages/index/index",
  14. "style": {
  15. "navigationStyle": "custom",
  16. "componentPlaceholder": {
  17. "uni-badge": "view",
  18. "uni-grid-item": "view" ,// 添加这一行
  19. "uni-grid":"view",
  20. "uni-card":"view",
  21. "custom-navbar":"view",
  22. "kaoshixuzhi":"view"
  23. }
  24. }
  25. },
  26. {
  27. "path": "pages/exam/index",
  28. "style": {
  29. "navigationStyle": "custom"
  30. }
  31. },
  32. {
  33. "path": "pages/my/index",
  34. "style": {
  35. "navigationBarTitleText": "我的"
  36. }
  37. },
  38. {
  39. "path": "pages/my/mesList",
  40. "style": {
  41. "navigationBarTitleText": "消息"
  42. }
  43. },
  44. {
  45. "path": "pages/my/zhengshu",
  46. "style": {
  47. "navigationBarTitleText": "证书"
  48. }
  49. },
  50. {
  51. "path": "pages/my/setting",
  52. "style": {
  53. "navigationBarTitleText": "设置"
  54. }
  55. },
  56. {
  57. "path": "pages/demo/index",
  58. "style": {
  59. "navigationBarTitleText": "demo"
  60. }
  61. },
  62. {
  63. "path": "pages/course/index",
  64. "style": {
  65. "navigationBarTitleText": "课程"
  66. }
  67. },
  68. {
  69. "path": "pages/course/kechengInfo",
  70. "style": {
  71. "navigationBarTitleText": "课程详情"
  72. }
  73. },
  74. {
  75. "path": "pages/score/index",
  76. "style": {
  77. "navigationStyle": "custom"
  78. }
  79. },
  80. {
  81. "path": "pages/score/kaoshiChengjiInfo",
  82. "style": {
  83. "navigationStyle": "custom"
  84. }
  85. },
  86. {
  87. "path": "pages/exam/exam",
  88. "style": {
  89. "navigationStyle": "custom"
  90. }
  91. },
  92. {
  93. "path": "pages/lianxi/index",
  94. "style": {
  95. "navigationBarTitleText": "练习"
  96. }
  97. },
  98. {
  99. "path": "pages/lianxi/lianxi",
  100. "style": {
  101. "navigationBarTitleText": ""
  102. }
  103. },
  104. {
  105. "path": "pages/baoming/index",
  106. "style": {
  107. "navigationBarTitleText": "报名"
  108. }
  109. },
  110. {
  111. "path": "pages/cuoti/index",
  112. "style": {
  113. "navigationBarTitleText": "错题"
  114. }
  115. },
  116. {
  117. "path": "pages/cuoti/cuoti",
  118. "style": {
  119. "navigationBarTitleText": "错题答案"
  120. }
  121. },
  122. {
  123. "path": "pages/my/mesPage",
  124. "style": {
  125. "navigationBarTitleText": "消息详情"
  126. }
  127. },
  128. {
  129. "path": "pages/my/credit",
  130. "style": {
  131. "navigationBarTitleText": "学分"
  132. }
  133. }
  134. ],
  135. "subPackages": [
  136. // 声明 uni_modules 分包
  137. {
  138. "root": "uni_modules", // 将 uni_modules 作为分包根目录
  139. "name": "uni-components",
  140. "pages": [] // 此分包通常不包含页面,仅存放组件
  141. },
  142. {
  143. "root": "components", // 将 components 作为分包根目录
  144. "name": "cus-components",
  145. "pages": [] // 此分包通常不包含页面,仅存放组件
  146. },
  147. {
  148. "root": "subpack", // 将 uni_modules 作为分包根目录
  149. "name": "copy-modules",
  150. "pages": [] // 此分包通常不包含页面,仅存放组件
  151. }
  152. ],
  153. "easycom": {
  154. "autoscan": true,
  155. "custom": {
  156. // 为符合 easycom 规则的 uni_modules 组件配置路径
  157. // 请根据你的组件实际路径结构调整 `@/subpackages/uni-modules/uni_modules/` 后的路径
  158. "^uni-(.*)$": "@/uni_modules/uni-$1/components/uni-$1/uni-$1.vue"
  159. }
  160. },
  161. "globalStyle": {
  162. "navigationBarTextStyle": "black",
  163. "navigationBarTitleText": "麦塔软件",
  164. "navigationBarBackgroundColor": "#fff"
  165. },
  166. "tabBar": {
  167. "color": "#565656",
  168. "selectedColor": "#0856E6",
  169. "borderStyle": "black",
  170. "backgroundColor": "#ffffff",
  171. "fontSize": "13px",
  172. "iconWidth": "28px",
  173. "spacing": "0px",
  174. "list": [{
  175. "pagePath": "pages/index/index",
  176. "iconPath": "static/images/tabbar/unselect/index-sj.png",
  177. "selectedIconPath": "static/images/tabbar/select/index-sj.png",
  178. "text": "首页"
  179. }, {
  180. "pagePath": "pages/exam/index",
  181. "iconPath": "static/images/tabbar/unselect/exam-sj.png",
  182. "selectedIconPath": "static/images/tabbar/select/exam-sj.png",
  183. "text": "考试"
  184. },
  185. {
  186. "pagePath": "pages/score/index",
  187. "iconPath": "static/images/tabbar/unselect/score-sj.png",
  188. "selectedIconPath": "static/images/tabbar/select/score-sj.png",
  189. "text": "成绩"
  190. }, {
  191. "pagePath": "pages/my/index",
  192. "iconPath": "static/images/tabbar/unselect/my-sj.png",
  193. "selectedIconPath": "static/images/tabbar/select/my-sj.png",
  194. "text": "我的"
  195. }
  196. ]
  197. },
  198. "uniIdRouter": {}
  199. }