66b0226bbc308b52736ed849de27a888312079cc.svn-base 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <template>
  2. <div :class="norill?'no-roll':''" >
  3. <div class = "lod">
  4. <Loading></Loading>
  5. </div>
  6. <StSportsHead />
  7. <!-- <StCapot/> -->
  8. <!-- 参赛表组件 -->
  9. <div v-if="entryFormShow == 10">
  10. <entryForm/>
  11. </div>
  12. <!-- 赛事详情组件 -->
  13. <div v-else-if="entryFormShow == 100">
  14. <StSerchBox />
  15. </div>
  16. <!-- 冠军盘口组件 -->
  17. <div v-else-if="entryFormShow == 1000">
  18. <champion/>
  19. </div>
  20. <StLinkFooter />
  21. </div>
  22. </template>
  23. <script>
  24. import StCapot from "@/components/StCapot"
  25. import StSportsHead from "@/components/StSportsHead"
  26. import StSerchBox from "@/components/StSerchBox"
  27. import entryForm from "@/components/StEntryForm"
  28. import StLinkFooter from "@/components/StLinkFooter"
  29. import champion from "@/components/Stchampion"
  30. import Loading from '@/components/StLoading';
  31. export default {
  32. data() {
  33. return {
  34. isTrue:false,
  35. entryFormShow:0,
  36. norill:false,
  37. }
  38. },
  39. name:'LeagueList',
  40. components:{
  41. StSportsHead,
  42. StSerchBox,
  43. // StCapot,
  44. StLinkFooter,
  45. Loading,
  46. entryForm,
  47. champion
  48. },
  49. created(){
  50. let query = this.$route.query;
  51. if(query.code || query.today != undefined || query.hMatch != undefined){
  52. this.entryFormShow = 10;
  53. }else if(query.champion){
  54. this.entryFormShow = 1000;
  55. }else{
  56. this.entryFormShow = 100;
  57. }
  58. },
  59. computed: {
  60. getIsBetting(){
  61. return this.$store.getters.getIsBetting
  62. },
  63. noRoll(){
  64. // console.log(this.$store.getters.getNoRoll,'ccc')
  65. return this.$store.getters.getNoRoll
  66. }
  67. },
  68. watch: {
  69. getIsBetting(val){
  70. // if(this.$route.query.code){
  71. // this.entryFormShow = true;
  72. // }else{
  73. // this.entryFormShow = false;
  74. // }
  75. // console.log( val);
  76. this.$store.dispatch('SET_NOROLL',false)
  77. this.data = val;
  78. },
  79. noRoll(val){
  80. this.norill=val
  81. }
  82. },
  83. }
  84. </script>
  85. <style scoped>
  86. /* .noScroll {
  87. position: fixed;
  88. left: 0;
  89. top: 0;
  90. width: 100%;
  91. } */ .no-roll{
  92. z-index: 999;
  93. width: 100%;
  94. position: fixed;
  95. top: 0;
  96. left: 0;
  97. }
  98. .lod{
  99. z-index: 999;
  100. position: fixed;
  101. width: 100%;
  102. width: 100%;
  103. }
  104. </style>