You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

287 lines
5.7 KiB

4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
  1. <template>
  2. <div class="homepage">
  3. <!-- 顶部主图背景 -->
  4. <div class="main-icon"></div>
  5. <!-- 按钮区域 -->
  6. <div class="buttons-container">
  7. <!-- 夺宝奇兵模块 -->
  8. <div class="btn-item" @click="goToDBQBmodel">
  9. <div class="btn-icon btn-dbqb"></div>
  10. <div class="btn-ball"></div>
  11. <div class="btn-text btn-text-dbqb"></div>
  12. </div>
  13. <!-- AI情绪模块 -->
  14. <div class="btn-item" @click="goToEmotionsmodel">
  15. <div class="btn-icon btn-ai"></div>
  16. <div class="btn-ball"></div>
  17. <div class="btn-text btn-text-ai"></div>
  18. </div>
  19. </div>
  20. <!-- 底部口号与说明 -->
  21. <div class="footer-wrapper">
  22. <div class="footer-text1"></div>
  23. <div class="footer-text2"></div>
  24. </div>
  25. </div>
  26. </template>
  27. <script setup>
  28. import { onMounted, ref } from 'vue'
  29. import { useRouter } from 'vue-router'
  30. import { setHeight } from '@/utils/setHeight'
  31. const router = useRouter()
  32. const pageRef = ref(null)
  33. onMounted(() => {
  34. setHeight(pageRef.value)
  35. })
  36. const goToDBQBmodel = () => {
  37. router.push('/DBQBmodel')
  38. window.location.href = '/DBQBmodel'
  39. }
  40. const goToEmotionsmodel = () => {
  41. router.push('/Emotionsmodel')
  42. window.location.href = '/Emotionsmodel'
  43. }
  44. </script>
  45. <style scoped>
  46. .homepage {
  47. width: 100vw;
  48. min-height: 100vh;
  49. background-color: #000cfc;
  50. background-image: url('@/assets/img/Selectmodel/-s-bg.png');
  51. background-size: cover;
  52. background-position: center;
  53. background-repeat: no-repeat;
  54. display: flex;
  55. flex-direction: column;
  56. align-items: center;
  57. box-sizing: border-box;
  58. text-align: center;
  59. }
  60. .main-icon {
  61. width: 90vw;
  62. max-width: 280px;
  63. height: 280px;
  64. background-image: url('@/assets/img/Selectmodel/-s-机器人.png');
  65. background-size: contain;
  66. background-repeat: no-repeat;
  67. background-position: center;
  68. margin-top: 10vh;
  69. }
  70. /* ===== 默认(PC端)按钮区域 ===== */
  71. .buttons-container {
  72. margin-top: 5vh;
  73. display: flex;
  74. gap: 30vw;
  75. justify-content: center;
  76. align-items: flex-end;
  77. flex-wrap: nowrap;
  78. }
  79. .btn-item {
  80. position: relative;
  81. display: flex;
  82. flex-direction: column;
  83. align-items: center;
  84. width: 90vw;
  85. max-width: 200px;
  86. }
  87. .btn-icon {
  88. /* height: 80px;
  89. width: 100%; */
  90. background-size: contain;
  91. background-repeat: no-repeat;
  92. background-position: center;
  93. }
  94. .btn-dbqb {
  95. height: 150px;
  96. width: 100%;
  97. background-image: url('@/assets/img/Selectmodel/-s-夺宝奇兵logo.png');
  98. }
  99. .btn-ai {
  100. height: 150px;
  101. width: 100%;
  102. background-image: url('@/assets/img/Selectmodel/金轮 拷贝.png');
  103. }
  104. .btn-ball {
  105. height: 150px;
  106. width: 150%;
  107. margin-top: -30px;
  108. background-image: url('@/assets/img/Selectmodel/球.png');
  109. background-size: contain;
  110. background-repeat: no-repeat;
  111. background-position: center;
  112. position: relative;
  113. }
  114. .btn-text {
  115. height: 200px;
  116. width: 150%;
  117. position: absolute;
  118. bottom: -20px;
  119. left: 50%;
  120. transform: translateX(-50%);
  121. background-size: contain;
  122. background-repeat: no-repeat;
  123. background-position: center;
  124. }
  125. .btn-text-dbqb {
  126. background-image: url('@/assets/img/Selectmodel/-s-夺宝奇兵大模型.png');
  127. }
  128. .btn-text-ai {
  129. background-image: url('@/assets/img/Selectmodel/-s-AI情绪大模型.png');
  130. }
  131. /* ===== 底部口号区域 ===== */
  132. .footer-wrapper {
  133. margin-top: 6vh;
  134. display: flex;
  135. flex-direction: column;
  136. align-items: center;
  137. gap: 5vh;
  138. }
  139. .footer-text1 {
  140. width: 100vh;
  141. max-width: 100vh;
  142. height: 9vh;
  143. background-image: url('@/assets/img/Selectmodel/智能体.png');
  144. background-size: 100% 100%;
  145. background-size: contain;
  146. background-repeat: no-repeat;
  147. background-position: center;
  148. }
  149. .footer-text2 {
  150. width: 70vw;
  151. max-width: 360px;
  152. height: 30px;
  153. margin-bottom: 60px;
  154. background-image: url('@/assets/img/Selectmodel/-s-弘历团队.png');
  155. background-size: contain;
  156. background-repeat: no-repeat;
  157. background-position: center;
  158. }
  159. /* 手机适配 */
  160. @media screen and (max-width: 600px) {
  161. .homepage {
  162. height: auto; /* 解决底部留白 */
  163. width: 100%;
  164. overflow-x: hidden;
  165. }
  166. .main-icon {
  167. margin-top: 350px;
  168. width: 9rem;
  169. height: 10rem;
  170. }
  171. .buttons-container {
  172. margin-top: 80px;
  173. gap: 10vw;
  174. position: relative;
  175. flex-wrap: nowrap;
  176. }
  177. .btn-item {
  178. width: 40vw;
  179. display: flex;
  180. flex-direction: column;
  181. align-items: center;
  182. position: relative;
  183. padding-bottom: 20px;
  184. }
  185. .btn-icon {
  186. height: 80px;
  187. margin-bottom: -10px;
  188. }
  189. .btn-ball {
  190. height: 80px;
  191. margin-top: -10px;
  192. position: relative;
  193. z-index: 1;
  194. }
  195. .btn-text {
  196. position: absolute;
  197. bottom: 45px;
  198. width: 90%;
  199. height: 40px;
  200. z-index: 2;
  201. }
  202. .footer-text1 {
  203. width: 100vw;
  204. height: 60px;
  205. margin-top: 10px;
  206. background-size: 100% 100%; /* 保证全宽显示 */
  207. }
  208. .footer-text2 {
  209. width: 70vw;
  210. height: 24px;
  211. margin-top: 10px;
  212. }
  213. }
  214. /* 平板适配 */
  215. @media screen and (min-width: 601px) and (max-width: 1024px) {
  216. .homepage {
  217. height: 120vh;
  218. }
  219. .main-icon {
  220. margin-top: 50%;
  221. width: 50vw;
  222. height: 50vw;
  223. }
  224. .btn-item {
  225. padding-top: 20px;
  226. width: 300vw;
  227. position: relative;
  228. }
  229. .btn-icon,
  230. .btn-ball {
  231. height: 100px;
  232. width: 300px;
  233. }
  234. .btn-text {
  235. height: 90px;
  236. width: 100%;
  237. top: 70%;
  238. left: 50%;
  239. transform: translate(-50%, -50%);
  240. }
  241. .footer-text1 {
  242. width: 100vw;
  243. max-width: 900px;
  244. height: 200px;
  245. }
  246. .footer-text2 {
  247. padding-top: 30px;
  248. height: 26px;
  249. }
  250. }
  251. </style>