3f5e1aef2f6b8cc3f9d750ed56feae725022f59b.svn-base 975 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <div :class="noroll?'noroll':''">
  3. <SportsHead></SportsHead>
  4. <ScrollNav></ScrollNav>
  5. <Serch></Serch>
  6. <Match></Match>
  7. <!-- <LinkFooter></LinkFooter> -->
  8. </div>
  9. </template>
  10. <script>
  11. import SportsHead from '../../../components/StSportsHead';
  12. import Serch from '../../../components/StSerch';
  13. import Match from '../../../components/StMatch';
  14. import LinkFooter from '../../../components/StLinkFooter';
  15. import ScrollNav from '../../../components/StScrollNav';
  16. export default {
  17. name:'Home',
  18. components:{
  19. SportsHead,
  20. Serch,
  21. Match,
  22. LinkFooter,
  23. ScrollNav
  24. },
  25. data(){
  26. return{
  27. norill:false,
  28. }
  29. },
  30. computed:{
  31. noRoll(){
  32. return this.$store.getters.getNoRoll
  33. }
  34. },
  35. watch:{
  36. noRoll(val){
  37. this.norill=val
  38. }
  39. },
  40. }
  41. </script>
  42. <style scoped>
  43. .noroll{
  44. position: fixed;
  45. width: 100%;
  46. top: 0;
  47. left: 0;
  48. }
  49. </style>