pages.json 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. {
  2. "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  3. {
  4. "path": "pages/home/home",
  5. "style": {
  6. // "navigationStyle": "custom",
  7. "backgroundColorTop": "#ff5d5b",
  8. "backgroundColorBottom": "#F8F8F8",
  9. "app-plus": {
  10. "titleNView": {
  11. "searchInput": {
  12. "backgroundColor": "#fff",
  13. "borderRadius": "16px", //输入框圆角
  14. "placeholder": "粘贴宝贝标题",
  15. "disabled": true //disable时点击输入框不置焦,可以跳到新页面搜索
  16. },
  17. "buttons": [{
  18. "text": "\ue847",
  19. "fontSrc": "/static/uni.ttf",
  20. "width": "auto",
  21. "fontSize": "26px"
  22. }]
  23. }
  24. }
  25. }
  26. }, {
  27. "path": "pages/index/index",
  28. "style": {
  29. "bounce": "none",
  30. "navigationStyle": "custom"
  31. }
  32. },
  33. {
  34. "path": "pages/order/order",
  35. "style": {
  36. "navigationBarTitleText": "订单管理",
  37. "enablePullDownRefresh": false
  38. }
  39. }, {
  40. "path": "pages/order/back-order",
  41. "style": {
  42. "navigationBarTitleText": "待发货",
  43. "enablePullDownRefresh": false
  44. }
  45. }, {
  46. "path": "pages/user/user-center",
  47. "style": {
  48. "navigationBarTitleText": "我的",
  49. "enablePullDownRefresh": false,
  50. "backgroundColorTop": "#ff5d5b",
  51. "app-plus": {
  52. "titleNView": {
  53. "buttons": [{
  54. "text": "\ue532",
  55. "fontSrc": "/static/uni.ttf",
  56. "width": "auto",
  57. "fontSize": "26px"
  58. },
  59. {
  60. "text": "\ue847",
  61. "fontSrc": "/static/uni.ttf",
  62. "width": "auto",
  63. "fontSize": "26px"
  64. }
  65. ]
  66. }
  67. }
  68. }
  69. }, {
  70. "path": "pages/shopping-cart/shopping-cart",
  71. "style": {
  72. "navigationBarTitleText": "购物车",
  73. "enablePullDownRefresh": false
  74. }
  75. }, {
  76. "path": "pages/user/login",
  77. "style": {
  78. "navigationBarTitleText": "登录",
  79. "enablePullDownRefresh": false,
  80. "navigationBarBackgroundColor": "#ff5d5b",
  81. "backgroundColor": "#ff5d5b"
  82. }
  83. }, {
  84. "path": "pages/user/find-pass",
  85. "style": {
  86. "navigationBarTitleText": "找回密码",
  87. "enablePullDownRefresh": false,
  88. "backgroundColor": "#ff5d5b"
  89. }
  90. }, {
  91. "path": "pages/register/step1",
  92. "style": {
  93. "navigationBarTitleText": "第一步",
  94. "enablePullDownRefresh": false,
  95. "backgroundColor": "#ff5d5b"
  96. }
  97. }, {
  98. "path": "pages/register/step2",
  99. "style": {
  100. "navigationBarTitleText": "第二步",
  101. "enablePullDownRefresh": false,
  102. "backgroundColor": "#ff5d5b"
  103. }
  104. }, {
  105. "path": "pages/register/step3",
  106. "style": {
  107. "navigationBarTitleText": "注册",
  108. "enablePullDownRefresh": false,
  109. "backgroundColor": "#ff5d5b"
  110. }
  111. }, {
  112. "path": "pages/user/simple-article",
  113. "style": {
  114. "navigationBarTitleText": "",
  115. "enablePullDownRefresh": false
  116. }
  117. }, {
  118. "path": "pages/user/vcode-login",
  119. "style": {
  120. "navigationBarTitleText": "登录",
  121. "enablePullDownRefresh": false,
  122. "navigationBarBackgroundColor": "#ff5d5b",
  123. "backgroundColor": "#ff5d5b"
  124. }
  125. }, {
  126. "path": "pages/user/setting",
  127. "style": {
  128. "navigationBarTitleText": "设置",
  129. "enablePullDownRefresh": false,
  130. "backgroundColorTop": "#ff5d5b"
  131. }
  132. }, {
  133. "path": "pages/message/message",
  134. "style": {
  135. "navigationBarTitleText": "消息",
  136. "enablePullDownRefresh": false
  137. }
  138. }, {
  139. "path": "pages/product/product-details",
  140. "style": {
  141. "navigationBarTitleText": "商品详情",
  142. "enablePullDownRefresh": false
  143. }
  144. },
  145. {
  146. "path": "pages/product/my-product",
  147. "style": {
  148. "navigationBarTitleText": "我的商品",
  149. "enablePullDownRefresh": false
  150. }
  151. },{
  152. "path": "pages/product/product-edit",
  153. "style": {
  154. "navigationBarTitleText": "发布商品",
  155. "enablePullDownRefresh": false
  156. }
  157. }, {
  158. "path": "pages/order/order-details",
  159. "style": {
  160. "navigationBarTitleText": "订单详情",
  161. "enablePullDownRefresh": false
  162. }
  163. }, {
  164. "path": "pages/user/notice",
  165. "style": {
  166. "navigationBarTitleText": "官方公告",
  167. "enablePullDownRefresh": false
  168. }
  169. }, {
  170. "path": "pages/user/strategy",
  171. "style": {
  172. "navigationBarTitleText": "新手攻略",
  173. "enablePullDownRefresh": false
  174. }
  175. }, {
  176. "path": "pages/user/problem",
  177. "style": {
  178. "navigationBarTitleText": "常见问题",
  179. "enablePullDownRefresh": false
  180. }
  181. }, {
  182. "path": "pages/user/kefu",
  183. "style": {
  184. "navigationBarTitleText": "联系客服",
  185. "backgroundColorTop": "#ff5d5b",
  186. "enablePullDownRefresh": false
  187. }
  188. }
  189. ],
  190. "globalStyle": {
  191. "navigationBarTextStyle": "white",
  192. "navigationBarTitleText": "省心直供",
  193. "navigationBarBackgroundColor": "#ff5d5b",
  194. "backgroundColor": "#F8F8F8"
  195. },
  196. "tabBar": {
  197. "color": "#7A7E83",
  198. "selectedColor": "#ff5d5b",
  199. "borderStyle": "black",
  200. "backgroundColor": "#ffffff",
  201. "midButton": {
  202. "iconPath": "static/images/camera.png",
  203. "iconWidth": "40px",
  204. "height": "45px"
  205. },
  206. "list": [{
  207. "pagePath": "pages/home/home",
  208. "iconPath": "static/images/home.png",
  209. "selectedIconPath": "static/images/home_selected.png",
  210. "text": "首页"
  211. }, {
  212. "pagePath": "pages/order/back-order",
  213. "iconPath": "static/images/qiang.png",
  214. "selectedIconPath": "static/images/qiang_selected.png",
  215. "text": "待发货"
  216. }, {
  217. "pagePath": "pages/shopping-cart/shopping-cart",
  218. "iconPath": "static/images/kan.png",
  219. "selectedIconPath": "static/images/kan_selected.png",
  220. "text": "购物车"
  221. }, {
  222. "pagePath": "pages/user/user-center",
  223. "iconPath": "static/images/user.png",
  224. "selectedIconPath": "static/images/user_selected.png",
  225. "text": "我的"
  226. }]
  227. },
  228. "condition": { //模式配置,仅开发期间生效
  229. "current": 0, //当前激活的模式(list 的索引项)
  230. "list": [{
  231. "name": "", //模式名称
  232. "path": "", //启动页面,必选
  233. "query": "" //启动参数,在页面的onLoad函数里面得到
  234. }]
  235. }
  236. }