pages.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. {
  2. "easycom": {
  3. "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
  4. },
  5. // "condition": { //模式配置,仅开发期间生效
  6. // "current": 0, //当前激活的模式(list 的索引项)
  7. // "list": [{
  8. // "name": "test", //模式名称
  9. // "path": "pages/componentsC/test/index", //启动页面,必选
  10. // "query": "uuid=c4bba940-f69e-11ea-a419-6bafda9d095e&__id__=1" //启动参数,在页面的onLoad函数里面得到
  11. // }]
  12. // },
  13. "subPackages": [{
  14. "root": "pages/login",
  15. "pages": [{
  16. "path": "register",
  17. "style": {
  18. "navigationBarTitleText": "零售店注销"
  19. }
  20. }],
  21. "root": "pages/me",
  22. "pages": [
  23. //我的供应商
  24. {
  25. "path": "suppliers",
  26. "style": {
  27. "navigationBarTitleText": "我的供应商",
  28. "navigationBarBackgroundColor": "#1692F7"
  29. }
  30. },
  31. //优惠卷
  32. {
  33. "path": "coupon",
  34. "style": {
  35. "navigationBarTitleText": "我的优惠卷"
  36. }
  37. },
  38. //新建收货地址
  39. {
  40. "path": "modify",
  41. "style": {
  42. "navigationBarTitleText": "新建收货地址"
  43. }
  44. },
  45. //收货地址
  46. {
  47. "path": "address",
  48. "style": {
  49. "navigationBarTitleText": "收货地址",
  50. "app-plus": {
  51. "titleNView": {
  52. "buttons": [{
  53. "text": "编辑",
  54. "fontSize": "18px",
  55. "float": "right"
  56. }]
  57. }
  58. }
  59. }
  60. },
  61. //查询结果
  62. {
  63. "path": "scancodequery/result",
  64. "style": {
  65. "navigationBarTitleText": "查询结果",
  66. "app-plus": {
  67. "bounce": "none" //取消页面上的回弹效果
  68. }
  69. }
  70. }
  71. ]
  72. }],
  73. "pages": [
  74. // 首页
  75. {
  76. "path": "pages/home/index",
  77. "style": {
  78. "navigationBarTitleText": "首页"
  79. }
  80. },
  81. // 消息
  82. {
  83. "path": "pages/msg/index",
  84. "style": {
  85. "navigationBarTitleText": "消息"
  86. }
  87. },
  88. // 我的
  89. {
  90. "path": "pages/me/index",
  91. "style": {
  92. "navigationBarTitleText": "我的"
  93. }
  94. },
  95. //登录
  96. {
  97. "path": "pages/login/index",
  98. "style": {
  99. "app-plus": {
  100. "titleNView": false //禁用原生导航栏
  101. }
  102. }
  103. }
  104. ],
  105. "preloadRule": {},
  106. "globalStyle": {
  107. "navigationBarBackgroundColor": "#0095FF",
  108. "navigationBarTextStyle": "white"
  109. },
  110. "tabBar": {
  111. "list": [{
  112. "pagePath": "pages/home/index"
  113. },
  114. {
  115. "pagePath": "pages/msg/index"
  116. },
  117. {
  118. "pagePath": "pages/me/index"
  119. }
  120. ]
  121. }
  122. }