pages.json 6.8 KB

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