pages.json 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. "globalStyle": {
  115. "navigationBarTextStyle": "white",
  116. "navigationBarTitleText": "省心直供",
  117. "navigationBarBackgroundColor": "#ff5d5b",
  118. "backgroundColor": "#F8F8F8"
  119. },
  120. "tabBar": {
  121. "color": "#7A7E83",
  122. "selectedColor": "#ff5d5b",
  123. "borderStyle": "black",
  124. "backgroundColor": "#ffffff",
  125. "midButton": {
  126. "iconPath": "static/images/camera.png",
  127. "iconWidth": "40px",
  128. "height": "45px"
  129. },
  130. "list": [{
  131. "pagePath": "pages/home/home",
  132. "iconPath": "static/images/home.png",
  133. "selectedIconPath": "static/images/home_selected.png",
  134. "text": "首页"
  135. }, {
  136. "pagePath": "pages/order/order",
  137. "iconPath": "static/images/qiang.png",
  138. "selectedIconPath": "static/images/qiang_selected.png",
  139. "text": "订单"
  140. }, {
  141. "pagePath": "pages/shopping-cart/shopping-cart",
  142. "iconPath": "static/images/kan.png",
  143. "selectedIconPath": "static/images/kan_selected.png",
  144. "text": "购物车"
  145. }, {
  146. "pagePath": "pages/user/user-center",
  147. "iconPath": "static/images/user.png",
  148. "selectedIconPath": "static/images/user_selected.png",
  149. "text": "我的"
  150. }]
  151. },
  152. "condition": { //模式配置,仅开发期间生效
  153. "current": 0, //当前激活的模式(list 的索引项)
  154. "list": [{
  155. "name": "", //模式名称
  156. "path": "", //启动页面,必选
  157. "query": "" //启动参数,在页面的onLoad函数里面得到
  158. }]
  159. }
  160. }