index.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <div class="Home">
  3. <img class="logo" src="../../assets/img/home/logo.png" alt="" />
  4. <img class="logo2" src="../../assets/img/home/logo2.png" alt="" />
  5. <img
  6. class="btn"
  7. @click="$router.push('/layout/list')"
  8. src="../../assets/img/home/btn.png"
  9. alt=""
  10. />
  11. <div class="ifrBox">
  12. <iframe
  13. src="https://zzbbh.4dage.com/SWKK/show.html?id=WK1592095910366638080"
  14. frameborder="0"
  15. ></iframe>
  16. </div>
  17. </div>
  18. </template>
  19. <script>
  20. export default {
  21. name: "Home",
  22. components: {},
  23. data() {
  24. return {};
  25. },
  26. computed: {},
  27. watch: {},
  28. methods: {},
  29. created() {},
  30. mounted() {},
  31. beforeCreate() {}, //生命周期 - 创建之前
  32. beforeMount() {}, //生命周期 - 挂载之前
  33. beforeUpdate() {}, //生命周期 - 更新之前
  34. updated() {}, //生命周期 - 更新之后
  35. beforeDestroy() {}, //生命周期 - 销毁之前
  36. destroyed() {}, //生命周期 - 销毁完成
  37. activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
  38. };
  39. </script>
  40. <style lang='less' scoped>
  41. .Home {
  42. width: 100%;
  43. height: 100%;
  44. position: relative;
  45. .ifrBox {
  46. position: absolute;
  47. top: 0;
  48. left: 0;
  49. width: 100%;
  50. height: 100%;
  51. iframe {
  52. width: 100%;
  53. height: 100%;
  54. }
  55. }
  56. .logo2{
  57. width: 90%;
  58. position: absolute;
  59. top: 5px;
  60. left: 50%;
  61. transform: translateX(-50%);
  62. z-index: 2;
  63. pointer-events: none;
  64. }
  65. .logo {
  66. pointer-events: none;
  67. position: absolute;
  68. z-index: 2;
  69. width: 120px;
  70. top: 60px;
  71. left: 50%;
  72. transform: translateX(-50%);
  73. }
  74. .btn {
  75. position: absolute;
  76. bottom: 40px;
  77. width: 200px;
  78. z-index: 2;
  79. left: 50%;
  80. transform: translateX(-50%);
  81. }
  82. }
  83. </style>