080583349d382e1947c1f2cd4a3e2453ae8182b1.svn-base 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <template>
  2. <div :class="noroll?'noroll':''">
  3. <!-- 加载组件 -->
  4. <div class = "lod">
  5. <Loading></Loading>
  6. </div>
  7. <!-- 头部组件 -->
  8. <SportsHead></SportsHead>
  9. <!-- 亚洲冠军杯组件 -->
  10. <championsCup v-if="isShow ==1" />
  11. <!-- 首页球类赛事组件 -->
  12. <Serch v-else-if="isShow == 2"></Serch>
  13. <!-- <LinkFooter></LinkFooter> -->
  14. </div>
  15. </template>
  16. <script>
  17. import SportsHead from '@/components/StSportsHead';
  18. import Serch from '@/components/StSerch';
  19. import LinkFooter from '@/components/StLinkFooter';
  20. import Schedule from '@/components/StSchedule';
  21. import Loading from '@/components/StLoading';
  22. import championsCup from '@/components/StChampionsCup';
  23. export default {
  24. name:"AllMatch",
  25. components:{
  26. SportsHead,
  27. Serch,
  28. LinkFooter,
  29. Schedule,
  30. Loading,
  31. championsCup
  32. },
  33. data(){
  34. return{
  35. isShow:100, // 断定是否为冠军跳入
  36. // ballId:this.$route.query.id
  37. noroll:false,
  38. }
  39. },
  40. computed:{
  41. noRoll(){
  42. return this.$store.getters.getNoRoll
  43. }
  44. },
  45. watch:{
  46. noRoll(val){
  47. this.noroll=val
  48. }
  49. },
  50. mounted(){
  51. if(this.$route.query.id == 'gj'){
  52. this.isShow = 1;
  53. }else{
  54. this.isShow = 2;
  55. }
  56. }
  57. // created(){
  58. // this.getId();
  59. // },
  60. // methods:{
  61. // getId:function(){
  62. // console.log(this.$store.getters.getGameRatio);
  63. // }
  64. // }
  65. // this.$store.dispatch('GETSHOW',true);
  66. }
  67. </script>
  68. <style scoped>
  69. /* .noroll{
  70. position: fixed;
  71. width: 100%;
  72. top: 0;
  73. left: 0;
  74. } */
  75. .lod{
  76. z-index: 999;
  77. position: fixed;
  78. width: 100%;
  79. }
  80. </style>