aim_explanation_knowledge.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <template>
  2. <div class="maturity-game-page">
  3. <head-component :headinfo="headinfo"></head-component>
  4. <div class="d fd">
  5. <div class="d fd1" :style="fd1Style"></div>
  6. </div>
  7. <div class="wdiv"></div>
  8. <div class="wdiv1" :style="wdiv1Style"></div>
  9. <div class="wdiv2" @click="next()"></div>
  10. <drag_component></drag_component>
  11. </div>
  12. </template>
  13. <script setup>
  14. import { ref, onMounted } from "vue";
  15. import headComponent from "@/views/xjc-integratedmachine/components/head_component.vue";
  16. import drag_component from "@/views/xjc-integratedmachine/components/drag_component.vue";
  17. import { useRouter } from "vue-router";
  18. const router = useRouter();
  19. const headinfo = ref({});
  20. function setHeadinfo() {
  21. headinfo.value = {
  22. title: "时间管理4D法",
  23. user: {
  24. avatar: "头像路径",
  25. nickName: "张三",
  26. },
  27. backUrl: "/xjc-integratedmachine/plan/aim/aim_management_index",
  28. backUrlUse: true,
  29. };
  30. }
  31. onMounted(() => {
  32. setHeadinfo();
  33. });
  34. // fd1初始样式
  35. const fd1Style = ref({
  36. background:
  37. 'url("/src/assets/images/timeManagement/know1.png") -177px -158px',
  38. height: "1818px",
  39. });
  40. // wdiv1初始样式
  41. const wdiv1Style = ref({
  42. top: "1752px",
  43. });
  44. function next() {
  45. // 修改fd1样式
  46. fd1Style.value.background =
  47. 'url("/src/assets/images/timeManagement/smart.png") -177px -137px';
  48. fd1Style.value.height = "1594px";
  49. // 修改wdiv1样式
  50. wdiv1Style.value.top = "1515px"; // 滚动页面到顶部
  51. window.scrollTo({
  52. top: 0,
  53. behavior: "smooth", // 平滑滚动,可去掉改成 instant
  54. });
  55. }
  56. </script>
  57. <style scoped lang="scss">
  58. .wdiv {
  59. width: 131px;
  60. height: 200px;
  61. background: #fff;
  62. position: absolute;
  63. top: 1695px;
  64. left: 1712px;
  65. }
  66. .wdiv1 {
  67. width: 131px;
  68. height: 215px;
  69. background: #fff;
  70. position: absolute;
  71. top: 1752px;
  72. left: 1604px;
  73. }
  74. .wdiv2 {
  75. width: 245px;
  76. height: 71px;
  77. position: absolute;
  78. top: 1880px;
  79. left: 843px;
  80. }
  81. .fd1 {
  82. width: 100%;
  83. height: 1818px;
  84. background: url("/src/assets/images/timeManagement/know1.png") -177px -158px;
  85. }
  86. .fd1.changeBg {
  87. background: url("/src/assets/images/timeManagement/smart.png") -177px -158px;
  88. }
  89. .fd {
  90. width: 1832px;
  91. height: 2096px;
  92. box-sizing: border-box;
  93. padding: 30px 140px;
  94. background-color: #fff;
  95. position: absolute;
  96. border-radius: 42px;
  97. top: 124px;
  98. left: 42px;
  99. }
  100. .maturity-game-page {
  101. // background: url("@/assets/images/wakeup/maturity/maturity-game-bg.png")
  102. // no-repeat;
  103. background: linear-gradient(to right, #bef3fc, #3dd3f5);
  104. background-attachment: fixed;
  105. z-index: 10;
  106. width: 100%;
  107. min-height: 100vh;
  108. height: 2256px;
  109. position: relative;
  110. .page-content {
  111. width: 100%;
  112. position: relative;
  113. padding-top: 123px;
  114. min-height: calc(100vh - 123px);
  115. padding-bottom: 0px; // 添加底部内边距防止内容贴边
  116. .top {
  117. width: 100%;
  118. height: 212px;
  119. display: flex;
  120. justify-content: center;
  121. margin-top: 104px;
  122. img {
  123. width: 864px;
  124. height: 212px;
  125. }
  126. }
  127. .bottom {
  128. width: 100%;
  129. height: 248px;
  130. display: flex;
  131. justify-content: space-around;
  132. margin-top: 186px;
  133. img {
  134. width: 398px;
  135. height: 248px;
  136. }
  137. }
  138. }
  139. }
  140. </style>