pages.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. {
  2. "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  3. {
  4. "path": "pages/index/index",
  5. "style": {
  6. "navigationBarTitleText": "首页",
  7. "navigationStyle": "custom",
  8. "app-plus": {
  9. "scrollIndicator": false //禁用原生导航栏
  10. }
  11. }
  12. },
  13. {
  14. "path": "pages/index/site",
  15. "style": {
  16. "navigationBarTitleText": "开通分站"
  17. }
  18. },
  19. {
  20. "path": "pages/product/index",
  21. "style": {
  22. "navigationBarTitleText": "商品"
  23. }
  24. },
  25. {
  26. "path": "pages/product/detail",
  27. "style": {
  28. "navigationStyle": "custom"
  29. }
  30. },
  31. {
  32. "path": "pages/news/index",
  33. "style": {
  34. "navigationBarTitleText": "消息详情"
  35. }
  36. },
  37. {
  38. "path": "pages/users/login/index",
  39. "style": {
  40. "navigationBarTitleText": "登录"
  41. }
  42. },
  43. {
  44. "path": "pages/users/register/index",
  45. "style": {
  46. "navigationBarTitleText": "注册"
  47. }
  48. },
  49. {
  50. "path": "pages/users/retrievePassword/index",
  51. "style": {
  52. "navigationBarTitleText": "重置密码"
  53. }
  54. },
  55. {
  56. "path": "pages/my/index",
  57. "style": {
  58. "navigationBarTitleText": "我的"
  59. }
  60. },
  61. {
  62. "path": "pages/users/order/index",
  63. "style": {
  64. "navigationBarTitleText": "我的订单"
  65. }
  66. },
  67. {
  68. "path": "pages/users/order/detail",
  69. "style": {
  70. "navigationBarTitleText": "订单详情"
  71. }
  72. },
  73. {
  74. "path": "pages/users/spread/index",
  75. "style": {
  76. "navigationBarTitleText": "邀请好友"
  77. }
  78. },
  79. {
  80. "path": "pages/users/purchase/index",
  81. "style": {
  82. "navigationBarTitleText": "立即发货"
  83. }
  84. },
  85. {
  86. "path": "pages/users/recharge/index",
  87. "style": {
  88. "navigationBarTitleText": "余额充值"
  89. }
  90. },
  91. {
  92. "path": "pages/users/recharge/xieyi",
  93. "style": {
  94. "navigationBarTitleText": "用户协议"
  95. }
  96. },
  97. {
  98. "path": "pages/users/record/index",
  99. "style": {
  100. "navigationBarTitleText": "账单明细"
  101. }
  102. },
  103. {
  104. "path": "pages/users/commission/index",
  105. "style": {
  106. "navigationBarTitleText": "邀请奖励"
  107. }
  108. }
  109. ],
  110. "globalStyle": {
  111. "navigationBarTextStyle": "black",
  112. "navigationBarTitleText": "巴巴礼品",
  113. "navigationBarBackgroundColor": "#fff",
  114. "backgroundColor": "#F8F8F8",
  115. "titleNView": false
  116. },
  117. "tabBar": {
  118. "color": "#282828",
  119. "selectedColor": "#ff5c00",
  120. "borderStyle": "black",
  121. "backgroundColor": "#ffffff",
  122. "list": [
  123. {
  124. "pagePath": "pages/index/index",
  125. "iconPath": "static/images/1-001.png",
  126. "selectedIconPath": "static/images/1-002.png",
  127. "text": "首页"
  128. },
  129. {
  130. "pagePath": "pages/product/index",
  131. "iconPath": "static/images/2-001.png",
  132. "selectedIconPath": "static/images/2-002.png",
  133. "text": "商品"
  134. },
  135. {
  136. "pagePath": "pages/users/purchase/index",
  137. "iconPath": "static/images/3-001.png",
  138. "selectedIconPath": "static/images/3-002.png",
  139. "text": "立即发货"
  140. },
  141. {
  142. "pagePath": "pages/my/index",
  143. "iconPath": "static/images/4-001.png",
  144. "selectedIconPath": "static/images/4-002.png",
  145. "text": "我的"
  146. }
  147. ]
  148. },
  149. "condition" : { //模式配置,仅开发期间生效
  150. "current": 0, //当前激活的模式(list 的索引项)
  151. "list": [
  152. {
  153. "name": "", //模式名称
  154. "path": "", //启动页面,必选
  155. "query": "" //启动参数,在页面的onLoad函数里面得到
  156. }
  157. ]
  158. }
  159. }