{5}首页开发-1-1

一、page.json配置

1、配置导航栏

  
  
  
  
  1. "style": {

  2. "app-plus":{

  3. "titleNView":{

  4. //搜索框配置

  5. "searchInput":{

  6. "align":"center",

  7. "backgroundColor":"#f7f7f7",

  8. "borderRadius":"4px",

  9. "disabled":true,

  10. "placeholder":"搜索",

  11. "placeholderColor":"#cccccc"

  12. },

  13. "buttons":[

  14. {

  15. "color":"#000000",

  16. "colorPressed":"#FFDF34",

  17. "float":"right",

  18. "fontSize":"24px",

  19. "fontSrc":"/static/iconfont.ttf",

  20. "text":"\ue604"

  21. },{

  22. "color":"#ff7e00",

  23. "colorPressed":"#FFDF34",

  24. "float":"left",

  25. "fontSize":"24px",

  26. "fontSrc":"/static/iconfont.ttf",

  27. "text":"\ue606"

  28. }

  29. ]

  30. }

  31. }

  32. }

二、图文列表样式

  
  
  
  


三、封装列表样式组件

新建文件components->common->common-list.vue将原有的block中的代码复制到common-list.vue文件在common-list中接受item和index首页中导入common-list组件,import commonList from '@/components/common/common-list.vue'首页注册common-listblock中给common-list组件传值

  
  
  
  


  
  
  
  



你可能感兴趣的:({5}首页开发-1-1)