pages.json 6.7 KB

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