pages.json 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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/user/user-center",
  34. "style": {
  35. "navigationBarTitleText": "我的",
  36. "enablePullDownRefresh": false,
  37. "backgroundColorTop": "#ff5d5b",
  38. "app-plus": {
  39. "titleNView": {
  40. "buttons": [{
  41. "text": "\ue532",
  42. "fontSrc": "/static/uni.ttf",
  43. "width": "auto",
  44. "fontSize": "26px"
  45. },
  46. {
  47. "text": "\ue847",
  48. "fontSrc": "/static/uni.ttf",
  49. "width": "auto",
  50. "fontSize": "26px"
  51. }
  52. ]
  53. }
  54. }
  55. }
  56. }, {
  57. "path": "pages/shopping-cart/shopping-cart",
  58. "style": {
  59. "navigationBarTitleText": "",
  60. "enablePullDownRefresh": false
  61. }
  62. }, {
  63. "path": "pages/user/login",
  64. "style": {
  65. "navigationBarTitleText": "登录",
  66. "enablePullDownRefresh": false,
  67. "navigationBarBackgroundColor": "#ff5d5b",
  68. "backgroundColor": "#ff5d5b"
  69. }
  70. }, {
  71. "path": "pages/user/find-pass",
  72. "style": {
  73. "navigationBarTitleText": "找回密码",
  74. "enablePullDownRefresh": false,
  75. "backgroundColor": "#ff5d5b"
  76. }
  77. }, {
  78. "path": "pages/register/step1",
  79. "style": {
  80. "navigationBarTitleText": "第一步",
  81. "enablePullDownRefresh": false,
  82. "backgroundColor": "#ff5d5b"
  83. }
  84. }, {
  85. "path": "pages/register/step2",
  86. "style": {
  87. "navigationBarTitleText": "第二步",
  88. "enablePullDownRefresh": false,
  89. "backgroundColor": "#ff5d5b"
  90. }
  91. }, {
  92. "path": "pages/register/step3",
  93. "style": {
  94. "navigationBarTitleText": "注册",
  95. "enablePullDownRefresh": false,
  96. "backgroundColor": "#ff5d5b"
  97. }
  98. }, {
  99. "path": "pages/user/simple-article",
  100. "style": {
  101. "navigationBarTitleText": "",
  102. "enablePullDownRefresh": false
  103. }
  104. }, {
  105. "path": "pages/user/vcode-login",
  106. "style": {
  107. "navigationBarTitleText": "登录",
  108. "enablePullDownRefresh": false,
  109. "navigationBarBackgroundColor": "#ff5d5b",
  110. "backgroundColor": "#ff5d5b"
  111. }
  112. }
  113. ,{
  114. "path" : "pages/user/setting",
  115. "style" :
  116. {
  117. "navigationBarTitleText": "设置",
  118. "enablePullDownRefresh": false,
  119. "backgroundColorTop": "#ff5d5b"
  120. }
  121. }
  122. ],
  123. "globalStyle": {
  124. "navigationBarTextStyle": "white",
  125. "navigationBarTitleText": "省心直供",
  126. "navigationBarBackgroundColor": "#ff5d5b",
  127. "backgroundColor": "#F8F8F8"
  128. },
  129. "tabBar": {
  130. "color": "#7A7E83",
  131. "selectedColor": "#ff5d5b",
  132. "borderStyle": "black",
  133. "backgroundColor": "#ffffff",
  134. "midButton": {
  135. "iconPath": "static/images/camera.png",
  136. "iconWidth": "40px",
  137. "height": "45px"
  138. },
  139. "list": [{
  140. "pagePath": "pages/home/home",
  141. "iconPath": "static/images/home.png",
  142. "selectedIconPath": "static/images/home_selected.png",
  143. "text": "首页"
  144. }, {
  145. "pagePath": "pages/order/order",
  146. "iconPath": "static/images/qiang.png",
  147. "selectedIconPath": "static/images/qiang_selected.png",
  148. "text": "订单"
  149. }, {
  150. "pagePath": "pages/shopping-cart/shopping-cart",
  151. "iconPath": "static/images/kan.png",
  152. "selectedIconPath": "static/images/kan_selected.png",
  153. "text": "购物车"
  154. }, {
  155. "pagePath": "pages/user/user-center",
  156. "iconPath": "static/images/user.png",
  157. "selectedIconPath": "static/images/user_selected.png",
  158. "text": "我的"
  159. }]
  160. },
  161. "condition": { //模式配置,仅开发期间生效
  162. "current": 0, //当前激活的模式(list 的索引项)
  163. "list": [{
  164. "name": "", //模式名称
  165. "path": "", //启动页面,必选
  166. "query": "" //启动参数,在页面的onLoad函数里面得到
  167. }]
  168. }
  169. }