index_20240521140038.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <template>
  2. <div class="image-container">
  3. <div class="image-wrapper">
  4. <img src="@/assets/images/yc.png" alt="Image 1" />
  5. <button class="btn" @click="shipHandler">游船系统</button>
  6. </div>
  7. <div class="image-wrapper">
  8. <img src="@/assets/images/pw.png" alt="Image 2" />
  9. <button class="btn" @click="ticketHandler">票务系统</button>
  10. </div>
  11. </div>
  12. </template>
  13. <script>
  14. export default {
  15. name: "Index",
  16. data() {
  17. return {};
  18. },
  19. methods: {
  20. shipHandler() {
  21. window.open("http://localhost/songhuaIndex1");
  22. },
  23. ticketHandler(){
  24. window.open("http://dsj.1230t.com/");
  25. },
  26. }
  27. };
  28. </script>
  29. <style scoped lang="scss">
  30. .image-container {
  31. display: flex;
  32. justify-content: space-between;
  33. background: url('../assets/images/bg.jpg') 0 0 no-repeat;
  34. background-size:100% 100% ;
  35. align-items: center;
  36. height: 827px;
  37. }
  38. .image-wrapper {
  39. display: flex;
  40. flex-direction: column;
  41. align-items: center;
  42. margin: 0 150px;
  43. }
  44. .image-wrapper img {
  45. width: 500px;
  46. height: auto;
  47. }
  48. .btn {
  49. margin-top: 10px;
  50. position: relative;
  51. padding: 10px 20px;
  52. border-radius: 7px;
  53. border: 1px solid rgb(61, 106, 255);
  54. font-size: 14px;
  55. text-transform: uppercase;
  56. font-weight: 600;
  57. letter-spacing: 2px;
  58. background: transparent;
  59. color: #fff;
  60. overflow: hidden;
  61. box-shadow: 0 0 0 0 transparent;
  62. -webkit-transition: all 0.2s ease-in;
  63. -moz-transition: all 0.2s ease-in;
  64. transition: all 0.2s ease-in;
  65. }
  66. .btn:hover {
  67. background: rgb(61, 106, 255);
  68. box-shadow: 0 0 30px 5px rgba(0, 142, 236, 0.815);
  69. -webkit-transition: all 0.2s ease-out;
  70. -moz-transition: all 0.2s ease-out;
  71. transition: all 0.2s ease-out;
  72. }
  73. .btn:hover::before {
  74. -webkit-animation: sh02 0.5s 0s linear;
  75. -moz-animation: sh02 0.5s 0s linear;
  76. animation: sh02 0.5s 0s linear;
  77. }
  78. .btn::before {
  79. content: '';
  80. display: block;
  81. width: 0px;
  82. height: 86%;
  83. position: absolute;
  84. top: 7%;
  85. left: 0%;
  86. opacity: 0;
  87. background: #fff;
  88. box-shadow: 0 0 50px 30px #fff;
  89. -webkit-transform: skewX(-20deg);
  90. -moz-transform: skewX(-20deg);
  91. -ms-transform: skewX(-20deg);
  92. -o-transform: skewX(-20deg);
  93. transform: skewX(-20deg);
  94. }
  95. @keyframes sh02 {
  96. from {
  97. opacity: 0;
  98. left: 0%;
  99. }
  100. 50% {
  101. opacity: 1;
  102. }
  103. to {
  104. opacity: 0;
  105. left: 100%;
  106. }
  107. }
  108. .btn:active {
  109. box-shadow: 0 0 0 0 transparent;
  110. -webkit-transition: box-shadow 0.2s ease-in;
  111. -moz-transition: box-shadow 0.2s ease-in;
  112. transition: box-shadow 0.2s ease-in;
  113. }
  114. </style>