pages.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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/product/index",
  15. "style": {
  16. "navigationBarTitleText": "商品"
  17. }
  18. },
  19. {
  20. "path": "pages/product/detail",
  21. "style": {
  22. "navigationStyle": "custom"
  23. }
  24. },
  25. {
  26. "path": "pages/news/index",
  27. "style": {
  28. "navigationBarTitleText": "消息详情"
  29. }
  30. },
  31. {
  32. "path": "pages/users/login/index",
  33. "style": {
  34. "navigationBarTitleText": "登录"
  35. }
  36. },
  37. {
  38. "path": "pages/users/register/index",
  39. "style": {
  40. "navigationBarTitleText": "注册"
  41. }
  42. },
  43. {
  44. "path": "pages/my/index",
  45. "style": {
  46. "navigationBarTitleText": "我的"
  47. }
  48. },
  49. {
  50. "path": "pages/users/order/index",
  51. "style": {
  52. "navigationBarTitleText": "我的订单"
  53. }
  54. },
  55. {
  56. "path": "pages/users/spread/index",
  57. "style": {
  58. "navigationBarTitleText": "邀请好友"
  59. }
  60. },
  61. {
  62. "path": "pages/users/purchase/index",
  63. "style": {
  64. "navigationBarTitleText": "立即发货"
  65. }
  66. },
  67. {
  68. "path": "pages/users/recharge/index",
  69. "style": {
  70. "navigationBarTitleText": "余额充值"
  71. }
  72. },
  73. {
  74. "path": "pages/users/record/index",
  75. "style": {
  76. "navigationBarTitleText": "账单明细"
  77. }
  78. },
  79. {
  80. "path": "pages/users/commission/index",
  81. "style": {
  82. "navigationBarTitleText": "邀请奖励"
  83. }
  84. }
  85. ],
  86. "globalStyle": {
  87. "navigationBarTextStyle": "black",
  88. "navigationBarTitleText": "巴巴礼品",
  89. "navigationBarBackgroundColor": "#fff",
  90. "backgroundColor": "#F8F8F8",
  91. "titleNView": false
  92. },
  93. "tabBar": {
  94. "color": "#282828",
  95. "selectedColor": "#ff5c00",
  96. "borderStyle": "black",
  97. "backgroundColor": "#ffffff",
  98. "list": [
  99. {
  100. "pagePath": "pages/index/index",
  101. "iconPath": "static/images/1-001.png",
  102. "selectedIconPath": "static/images/1-002.png",
  103. "text": "首页"
  104. },
  105. {
  106. "pagePath": "pages/product/index",
  107. "iconPath": "static/images/2-001.png",
  108. "selectedIconPath": "static/images/2-002.png",
  109. "text": "商品"
  110. },
  111. {
  112. "pagePath": "pages/users/purchase/index",
  113. "iconPath": "static/images/3-001.png",
  114. "selectedIconPath": "static/images/3-002.png",
  115. "text": "立即发货"
  116. },
  117. {
  118. "pagePath": "pages/my/index",
  119. "iconPath": "static/images/4-001.png",
  120. "selectedIconPath": "static/images/4-002.png",
  121. "text": "我的"
  122. }
  123. ]
  124. },
  125. "condition" : { //模式配置,仅开发期间生效
  126. "current": 0, //当前激活的模式(list 的索引项)
  127. "list": [
  128. {
  129. "name": "", //模式名称
  130. "path": "", //启动页面,必选
  131. "query": "" //启动参数,在页面的onLoad函数里面得到
  132. }
  133. ]
  134. }
  135. }