pages.json 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. {
  2. "pages": [{
  3. "path": "pages/index/index",
  4. "style": {
  5. "navigationBarTitleText": "系统页"
  6. }
  7. },
  8. {
  9. "path": "pages/login/index",
  10. "style": {
  11. "navigationBarTitleText": "登录"
  12. }
  13. },
  14. {
  15. "path": "pages/register/index",
  16. "style": {
  17. "navigationBarTitleText": "注册"
  18. }
  19. },
  20. {
  21. "path": "pages/home/index",
  22. "style": {
  23. "navigationBarTitleText": "首页",
  24. "enablePullDownRefresh": true
  25. }
  26. },
  27. {
  28. "path": "pages/good/index",
  29. "style": {
  30. "navigationBarTitleText": "所有商品",
  31. "enablePullDownRefresh": true
  32. }
  33. },
  34. {
  35. "path": "pages/market/index",
  36. "style": {
  37. "navigationBarTitleText": "购物车"
  38. }
  39. },
  40. {
  41. "path": "pages/my/index",
  42. "style": {
  43. "navigationBarTitleText": "我的"
  44. }
  45. }
  46. ],
  47. "subPackages": [ //分包配置
  48. {
  49. "root": "pagesMy",
  50. "pages": [ //分包
  51. {
  52. "path": "order/index",
  53. "style": {
  54. "navigationBarTitleText": "订单",
  55. "enablePullDownRefresh": true
  56. }
  57. },
  58. {
  59. "path": "order/order",
  60. "style": {
  61. "navigationBarTitleText": "订单管理",
  62. "enablePullDownRefresh": true
  63. }
  64. },
  65. {
  66. "path": "order/detail",
  67. "style": {
  68. "navigationBarTitleText": "订单详情"
  69. }
  70. },
  71. {
  72. "path": "repair/index",
  73. "style": {
  74. "navigationBarTitleText": "维修",
  75. "enablePullDownRefresh": true
  76. }
  77. },
  78. {
  79. "path": "account/index",
  80. "style": {
  81. "navigationBarTitleText": "账号设置",
  82. "enablePullDownRefresh": true
  83. }
  84. },
  85. {
  86. "path": "account/info",
  87. "style": {
  88. "navigationBarTitleText": "账号详情"
  89. }
  90. },
  91. {
  92. "path": "account/update",
  93. "style": {
  94. "navigationBarTitleText": "修改密码"
  95. }
  96. },
  97. {
  98. "path": "user/index",
  99. "style": {
  100. "navigationBarTitleText": "用户管理",
  101. "enablePullDownRefresh": true
  102. }
  103. },
  104. {
  105. "path": "buyExamine/index",
  106. "style": {
  107. "navigationBarTitleText": "采购审核",
  108. "enablePullDownRefresh": true
  109. }
  110. },
  111. {
  112. "path": "collectionExamin/index",
  113. "style": {
  114. "navigationBarTitleText": "回款审核",
  115. "enablePullDownRefresh": true
  116. }
  117. },
  118. {
  119. "path": "maintenance/index",
  120. "style": {
  121. "navigationBarTitleText": "维修",
  122. "enablePullDownRefresh": true
  123. }
  124. },
  125. {
  126. "path": "record/index",
  127. "style": {
  128. "navigationBarTitleText": "回款记录",
  129. "enablePullDownRefresh": true
  130. }
  131. },
  132. {
  133. "path": "goods/index",
  134. "style": {
  135. "navigationBarTitleText": "商品管理",
  136. "enablePullDownRefresh": true
  137. }
  138. },
  139. {
  140. "path": "goods/add",
  141. "style": {
  142. "navigationBarTitleText": "新增商品"
  143. }
  144. },
  145. {
  146. "path": "spec/index",
  147. "style": {
  148. "navigationBarTitleText": "商品规格",
  149. "enablePullDownRefresh": true
  150. }
  151. },
  152. {
  153. "path": "spec/add",
  154. "style": {
  155. "navigationBarTitleText": "新增规格"
  156. }
  157. }
  158. ]
  159. },
  160. {
  161. "root": "pagesGoods",
  162. "pages": [ //分包
  163. {
  164. "path": "index/index",
  165. "style": {
  166. "navigationBarTitleText": "商品详情"
  167. }
  168. },
  169. {
  170. "path": "sort/index",
  171. "style": {
  172. "navigationBarTitleText": "商品分类",
  173. "enablePullDownRefresh": true
  174. }
  175. },
  176. {
  177. "path": "shop/index",
  178. "style": {
  179. "navigationBarTitleText": "店铺",
  180. "enablePullDownRefresh": true
  181. }
  182. }
  183. ]
  184. }
  185. ],
  186. "globalStyle": {
  187. "pageOrientation": "portrait",
  188. "navigationBarTitleText": "耗材小程序",
  189. "navigationBarTextStyle": "white",
  190. "navigationBarBackgroundColor": "#007AFF",
  191. "backgroundColor": "#F8F8F8",
  192. "backgroundColorTop": "#F4F5F6",
  193. "backgroundColorBottom": "#F4F5F6"
  194. },
  195. "tabBar": {
  196. "color": "#7A7E83",
  197. "selectedColor": "#007AFF",
  198. "borderStyle": "black",
  199. "backgroundColor": "#F8F8F8",
  200. "list": [{
  201. "pagePath": "pages/home/index",
  202. "iconPath": "static/home.png",
  203. "selectedIconPath": "static/homeHL.png",
  204. "text": "首页"
  205. },
  206. {
  207. "pagePath": "pages/good/index",
  208. "iconPath": "static/good.png",
  209. "selectedIconPath": "static/goodHL.png",
  210. "text": "全部商品"
  211. },
  212. {
  213. "pagePath": "pages/market/index",
  214. "iconPath": "static/shop.png",
  215. "selectedIconPath": "static/shopHL.png",
  216. "text": "购物车"
  217. },
  218. {
  219. "pagePath": "pages/my/index",
  220. "iconPath": "static/my.png",
  221. "selectedIconPath": "static/myHL.png",
  222. "text": "我的"
  223. }
  224. ]
  225. },
  226. "condition": { //模式配置,仅开发期间生效
  227. "current": 0, //当前激活的模式(list 的索引项)
  228. "list": [{
  229. "name": "系统首页", //模式名称
  230. "path": "pages/index/index", //启动页面,必选
  231. "query": "" //启动参数,在页面的onLoad函数里面得到
  232. }]
  233. }
  234. }