pages.json 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {
  2. "easycom": {
  3. "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
  4. },
  5. "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  6. {
  7. "path": "pages/chat/chat",
  8. "style": {
  9. "app-plus": {
  10. "softinputNavBar": "none",
  11. "softinputMode": "adjustPan",
  12. "titleNView": {
  13. "autoBackButton":false,
  14. "buttons": [{
  15. "fontSrc": "/static/iconfont/iconfont.ttf",
  16. "float": "right",
  17. "text": "\ue626"
  18. }
  19. , {
  20. "fontSrc": "/static/iconfont/iconfont.ttf",
  21. "float": "left",
  22. "text": "\ue6f2",
  23. "color": "#303133",
  24. "background": "rgba(255,255,255,0)"
  25. }
  26. ]
  27. }
  28. }
  29. }
  30. },
  31. {
  32. "path": "pages/payPage/index",
  33. "style": {
  34. "navigationBarTitleText": "缴费",
  35. "navigationStyle": "custom",
  36. "app-plus": {
  37. "titleView": false
  38. }
  39. }
  40. },
  41. {
  42. "path": "pages/history/index",
  43. "style": {
  44. "navigationBarTitleText": "历史记录",
  45. "navigationStyle": "custom",
  46. "app-plus": {
  47. "titleView": false
  48. }
  49. }
  50. },
  51. {
  52. "path": "pages/historyDetail/index",
  53. "style": {
  54. "navigationBarTitleText": "历史记录详情",
  55. "navigationStyle": "custom",
  56. "app-plus": {
  57. "titleView": false
  58. }
  59. }
  60. }
  61. ],
  62. "globalStyle": {
  63. "navigationBarTextStyle": "black",
  64. "navigationBarTitleText": "wechat",
  65. "navigationBarBackgroundColor": "#F8F8F8",
  66. "backgroundColor": "#F8F8F8",
  67. "backgroundTextStyle":"light",
  68. "pageOrientation":"portrait",
  69. "app-plus": {
  70. "bounce": "none"
  71. }
  72. },
  73. "condition": { //模式配置,仅开发期间生效
  74. "current": 0, //当前激活的模式(list 的索引项)
  75. "list": [{
  76. "name": "", //模式名称
  77. "path": "", //启动页面,必选
  78. "query": "" //启动参数,在页面的onLoad函数里面得到
  79. }]
  80. }
  81. }