index.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <view class="home">
  3. <banner :bannerlist="bannerlist"></banner>
  4. <footers v-if="isfootflag" :footlist="footlist" :footerindex="footerindex" :color_checked="color_checked" :color_nochecked="color_nochecked" :isHomeIndex="true"></footers>
  5. </view>
  6. </template>
  7. <script>
  8. import self from "@/utils/location.js"
  9. import banner from "@/components/toptab/banner.vue"
  10. import footers from '@/components/footer/footer.vue'
  11. export default {
  12. components:{footers,banner},
  13. data(){
  14. return{
  15. // limit:'course:table:list'
  16. footlist:[
  17. {module:'home',title:'首页',icon_checked:require('@/static/images/tabbar/home_.png'),icon_nochecked:require('@/static/images/tabbar/home.png'),imgtype:'img1',},
  18. {module:'news',title:'新闻',icon_checked:require('@/static/images/tabbar/news_.png'),icon_nochecked:require('@/static/images/tabbar/news.png'),imgtype:'img2',},
  19. {module:'mine',title:'我的',icon_checked:require('@/static/images/tabbar/mine_.png'),icon_nochecked:require('@/static/images/tabbar/mine.png'),imgtype:'img3',},
  20. ],
  21. footerindex:'home',
  22. isfootflag:true,
  23. color_checked :'7D5F2A',
  24. color_nochecked :'7C5E29',
  25. bannerlist:[
  26. {path:require("@/static/images/banner.png")},
  27. {path:require("@/static/images/banner.png")},
  28. ],
  29. }
  30. },
  31. onLoad: function() {
  32. },
  33. methods:{
  34. }
  35. }
  36. </script>
  37. <style scoped lang="scss">
  38. .home{
  39. }
  40. </style>