pages.json 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. {
  2. "easycom": {
  3. "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
  4. },
  5. "pages": [
  6. //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  7. {
  8. "path": "pages/index/index",
  9. "style": {
  10. "navigationStyle": "custom",
  11. // 隐藏系统导航栏
  12. "navigationBarTitleText": "首页",
  13. "enablePullDownRefresh": true,
  14. "app-plus": {
  15. "pullToRefresh": {
  16. "support": true,
  17. "color": "#ff536f",
  18. //小圈圈的颜色
  19. "style": "circle"
  20. //小圈圈的样式
  21. }
  22. }
  23. }
  24. },
  25. {
  26. "path": "pages/center/center",
  27. "style": {
  28. "navigationStyle": "custom",
  29. // 隐藏系统导航栏
  30. "navigationBarTitleText": "我的"
  31. }
  32. },
  33. {
  34. "path": "pages/login/login",
  35. "style": {
  36. "navigationStyle": "custom",
  37. // 隐藏系统导航栏
  38. "navigationBarTitleText": "密码登录",
  39. "enablePullDownRefresh": false
  40. }
  41. },
  42. {
  43. "path": "pages/login/code",
  44. "style": {
  45. // "navigationStyle": "custom" ,// 隐藏系统导航栏
  46. "navigationBarTitleText": "获取验证码",
  47. "enablePullDownRefresh": false
  48. }
  49. },
  50. {
  51. "path": "pages/login/account",
  52. "style": {
  53. "navigationStyle": "custom",
  54. // 隐藏系统导航栏
  55. "navigationBarTitleText": "短信登录",
  56. "enablePullDownRefresh": false
  57. }
  58. },
  59. {
  60. "path": "pages/login/problem",
  61. "style": {
  62. "navigationStyle": "custom",
  63. // 隐藏系统导航栏
  64. "navigationBarTitleText": "常见问题",
  65. "enablePullDownRefresh": false
  66. }
  67. },
  68. {
  69. "path": "pages/profile/setting",
  70. "style": {
  71. "navigationStyle": "custom",
  72. // 隐藏系统导航栏
  73. "navigationBarTitleText": "设置",
  74. "enablePullDownRefresh": false
  75. }
  76. },
  77. {
  78. "path": "pages/profile/profile",
  79. "style": {
  80. "navigationStyle": "custom",
  81. // 隐藏系统导航栏
  82. "navigationBarTitleText": "信息",
  83. "enablePullDownRefresh": false
  84. }
  85. },
  86. {
  87. "path": "pages/profile/password",
  88. "style": {
  89. "navigationStyle": "custom",
  90. // 隐藏系统导航栏
  91. "navigationBarTitleText": "修改密码",
  92. "enablePullDownRefresh": false
  93. }
  94. },
  95. {
  96. "path": "pages/search/search",
  97. "style": {
  98. // "navigationStyle": "custom" ,// 隐藏系统导航栏
  99. "navigationBarTitleText": "搜索",
  100. "enablePullDownRefresh": false
  101. }
  102. },
  103. {
  104. "path": "pages/notice/notice",
  105. "style": {
  106. // "navigationStyle": "custom" ,// 隐藏系统导航栏
  107. "navigationBarTitleText": "新闻资讯",
  108. "enablePullDownRefresh": false
  109. }
  110. },
  111. {
  112. "path": "pages/profile/aboutMe",
  113. "style": {
  114. "navigationStyle": "custom",
  115. // 隐藏系统导航栏
  116. "enablePullDownRefresh": false
  117. }
  118. },
  119. {
  120. "path": "pages/search/searchList",
  121. "style": {
  122. // "navigationStyle": "custom" ,// 隐藏系统导航栏
  123. "navigationBarTitleText": "商品列表",
  124. "enablePullDownRefresh": true,
  125. "app-plus": {
  126. "pullToRefresh": {
  127. "support": true,
  128. "color": "#ff536f",
  129. //小圈圈的颜色
  130. "style": "circle"
  131. //小圈圈的样式
  132. }
  133. }
  134. }
  135. },
  136. {
  137. "path": "pages/detail/detail",
  138. "style": {
  139. "navigationStyle": "custom",
  140. // 隐藏系统导航栏
  141. "navigationBarTitleText": "商品详情",
  142. "enablePullDownRefresh": false
  143. }
  144. },
  145. {
  146. "path": "pages/cate/cate",
  147. "style": {
  148. "navigationStyle": "custom",
  149. // 隐藏系统导航栏
  150. "navigationBarTitleText": "分类",
  151. "enablePullDownRefresh": false
  152. }
  153. },
  154. {
  155. "path": "pages/cart/cart",
  156. "style": {
  157. // "navigationStyle": "custom" ,// 隐藏系统导航栏
  158. "navigationBarTitleText": "购物车",
  159. "enablePullDownRefresh": false
  160. }
  161. },
  162. {
  163. "path": "pages/content/content",
  164. "style": {
  165. "navigationStyle": "custom",
  166. // 隐藏系统导航栏
  167. "navigationBarTitleText": "详情",
  168. "enablePullDownRefresh": false
  169. }
  170. },
  171. {
  172. "path": "pages/order/order",
  173. "style": {
  174. "navigationStyle": "custom",
  175. // 隐藏系统导航栏
  176. "navigationBarTitleText": "订单",
  177. "enablePullDownRefresh": false
  178. }
  179. },
  180. {
  181. "path": "pages/order/preOrder",
  182. "style": {
  183. "navigationStyle": "custom",
  184. // 隐藏系统导航栏
  185. "navigationBarTitleText": "确认订单",
  186. "enablePullDownRefresh": false
  187. }
  188. },
  189. {
  190. "path": "pages/address/address",
  191. "style": {
  192. "navigationStyle": "custom",
  193. // 隐藏系统导航栏
  194. "navigationBarTitleText": "收货地址",
  195. "enablePullDownRefresh": false
  196. }
  197. },
  198. {
  199. "path": "pages/address/addAddress",
  200. "style": {
  201. "navigationStyle": "custom",
  202. // 隐藏系统导航栏
  203. "navigationBarTitleText": "新增地址",
  204. "enablePullDownRefresh": false
  205. }
  206. },
  207. {
  208. "path": "pages/coupon/coupon",
  209. "style": {
  210. "navigationStyle": "custom",
  211. // 隐藏系统导航栏
  212. "navigationBarTitleText": "优惠卷",
  213. "enablePullDownRefresh": false
  214. }
  215. }
  216. ],
  217. "globalStyle": {
  218. "navigationBarTextStyle": "black",
  219. "navigationBarTitleText": "World",
  220. "navigationBarBackgroundColor": "#ffffff",
  221. "backgroundColor": "#ffffff"
  222. },
  223. "tabBar": {
  224. "color": "#C0C4CC",
  225. "selectedColor": "#ff536f",
  226. "borderStyle": "white",
  227. "backgroundColor": "#ffffff",
  228. "list": [
  229. {
  230. "pagePath": "pages/index/index",
  231. "iconPath": "static/tabbar/tab-home.png",
  232. "selectedIconPath": "static/tabbar/tab-home-current.png",
  233. "text": "首页"
  234. },
  235. {
  236. "pagePath": "pages/cate/cate",
  237. "iconPath": "static/tabbar/tab-cate.png",
  238. "selectedIconPath": "static/tabbar/tab-cate-current.png",
  239. "text": "分类"
  240. },
  241. {
  242. "pagePath": "pages/cart/cart",
  243. "iconPath": "static/tabbar/tab-cart.png",
  244. "selectedIconPath": "static/tabbar/tab-cart-current.png",
  245. "text": "购物车"
  246. },
  247. {
  248. "pagePath": "pages/center/center",
  249. "iconPath": "static/tabbar/tab-user.png",
  250. "selectedIconPath": "static/tabbar/tab-user-current.png",
  251. "text": "我的"
  252. }
  253. ]
  254. },
  255. "condition": {
  256. //模式配置,仅开发期间生效
  257. "current": 0,
  258. //当前激活的模式(list 的索引项)
  259. "list": [
  260. {
  261. "name": "",
  262. //模式名称
  263. "path": "",
  264. //启动页面,必选
  265. "query": ""
  266. //启动参数,在页面的onLoad函数里面得到
  267. }
  268. ]
  269. }
  270. }