2050ff525ea40b8466a79ddb5350221c677070b8.svn-base 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <template>
  2. <div >
  3. <div class = "lod">
  4. <Loading></Loading>
  5. </div>
  6. <SportsHead></SportsHead>
  7. <ScrollNav></ScrollNav>
  8. <BallDisc></BallDisc>
  9. <Characteristic></Characteristic>
  10. <Sports></Sports>
  11. <LinkFooter></LinkFooter>
  12. <div v-if="isshow==true" class="login"><Login></Login></div>
  13. <div v-else-if="rgShow==true"><register></register></div>
  14. </div>
  15. </template>
  16. <script>
  17. import '../../css/index.css';
  18. import BallDisc from '../../components/StBallDisc';
  19. import ScrollNav from '../../components/StScrollNav';
  20. import SportsHead from '../../components/StSportsHead';
  21. import LinkFooter from '../../components/StLinkFooter';
  22. import Characteristic from'../../components/StCharacteristic';
  23. import Loading from '../../components/StLoading';
  24. import Sports from'../../components/StSports';
  25. import Login from '../Login/index/StLogin'
  26. import register from '../Login/index/register'
  27. export default {
  28. name:'Home',
  29. components:{
  30. SportsHead,
  31. ScrollNav,
  32. BallDisc,
  33. LinkFooter,
  34. Characteristic,
  35. Sports,
  36. Loading,
  37. Login,
  38. register
  39. },
  40. data(){
  41. return{
  42. data:'',
  43. isshow:false,
  44. rgShow:false,//隐藏注册框
  45. }
  46. },
  47. computed: {
  48. Isshow:function(){
  49. return {
  50. isshow_code:this.$store.state.isShow,
  51. rgShow:this.$store.state.rgShow
  52. }
  53. }
  54. },
  55. watch: {
  56. Isshow(obj){
  57. this.isshow=obj.isshow_code;
  58. this.rgShow = obj.rgShow;
  59. }
  60. },
  61. }
  62. </script>
  63. <style scoped>
  64. .lod{
  65. z-index: 999;
  66. position: fixed;
  67. width: 100%;
  68. }
  69. .login{
  70. z-index: 99999;
  71. position: fixed;
  72. top: 0;
  73. }
  74. </style>