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.

292 lines
5.8 KiB

4 weeks ago
4 weeks ago
1 week ago
4 weeks ago
1 week ago
4 weeks ago
1 week ago
4 weeks ago
1 week 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 week ago
1 week ago
4 weeks ago
4 weeks ago
4 weeks ago
1 week ago
4 weeks ago
4 weeks ago
4 weeks ago
1 week ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
1 week ago
4 weeks ago
4 weeks ago
1 week ago
1 week ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
1 week ago
4 weeks ago
4 weeks ago
4 weeks ago
1 week 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. overflow-x: hidden;
  55. display: flex;
  56. flex-direction: column;
  57. align-items: center;
  58. box-sizing: border-box;
  59. text-align: center;
  60. }
  61. .main-icon {
  62. width: 90vw;
  63. max-width: 280px;
  64. height: 280px;
  65. background-image: url('@/assets/img/Selectmodel/-s-机器人.png');
  66. background-size: contain;
  67. background-repeat: no-repeat;
  68. background-position: center;
  69. margin-top: 10vh;
  70. }
  71. /* ===== 默认(PC端)按钮区域 ===== */
  72. .buttons-container {
  73. margin-top: 5vh;
  74. display: flex;
  75. gap: 30vw;
  76. justify-content: center;
  77. align-items: flex-end;
  78. flex-wrap: nowrap;
  79. }
  80. .btn-item {
  81. position: relative;
  82. display: flex;
  83. flex-direction: column;
  84. align-items: center;
  85. width: 90vw;
  86. max-width: 200px;
  87. }
  88. .btn-icon {
  89. /* height: 80px;
  90. width: 100%; */
  91. background-size: contain;
  92. background-repeat: no-repeat;
  93. background-position: center;
  94. }
  95. .btn-dbqb {
  96. height: 150px;
  97. width: 100%;
  98. background-image: url('@/assets/img/Selectmodel/-s-夺宝奇兵logo.png');
  99. }
  100. .btn-ai {
  101. height: 150px;
  102. width: 100%;
  103. background-image: url('@/assets/img/Selectmodel/金轮 拷贝.png');
  104. }
  105. .btn-ball {
  106. height: 150px;
  107. width: 150%;
  108. margin-top: -30px;
  109. background-image: url('@/assets/img/Selectmodel/球.png');
  110. background-size: contain;
  111. background-repeat: no-repeat;
  112. background-position: center;
  113. position: relative;
  114. }
  115. .btn-text {
  116. height: 200px;
  117. width: 150%;
  118. position: absolute;
  119. bottom: -20px;
  120. left: 50%;
  121. transform: translateX(-50%);
  122. background-size: contain;
  123. background-repeat: no-repeat;
  124. background-position: center;
  125. }
  126. .btn-text-dbqb {
  127. background-image: url('@/assets/img/Selectmodel/-s-夺宝奇兵大模型.png');
  128. }
  129. .btn-text-ai {
  130. background-image: url('@/assets/img/Selectmodel/-s-AI情绪大模型.png');
  131. }
  132. /* ===== 底部口号区域 ===== */
  133. .footer-wrapper {
  134. margin-top: 6vh;
  135. display: flex;
  136. flex-direction: column;
  137. align-items: center;
  138. gap: 5vh;
  139. }
  140. .footer-text1 {
  141. width: 100vh;
  142. max-width: 100vh;
  143. height: 9vh;
  144. background-image: url('@/assets/img/Selectmodel/智能体.png');
  145. background-size: 100% 100%;
  146. background-size: contain;
  147. background-repeat: no-repeat;
  148. background-position: center;
  149. }
  150. .footer-text2 {
  151. width: 70vw;
  152. max-width: 360px;
  153. height: 30px;
  154. margin-bottom: 60px;
  155. background-image: url('@/assets/img/Selectmodel/-s-弘历团队.png');
  156. background-size: contain;
  157. background-repeat: no-repeat;
  158. background-position: center;
  159. }
  160. /* 手机适配 */
  161. @media screen and (max-width: 600px) {
  162. .homepage {
  163. height: auto;
  164. /* 解决底部留白 */
  165. width: 100%;
  166. overflow-x: hidden;
  167. }
  168. .main-icon {
  169. margin-top: 350px;
  170. width: 9rem;
  171. height: 10rem;
  172. }
  173. .buttons-container {
  174. margin-top: 80px;
  175. gap: 10vw;
  176. position: relative;
  177. flex-wrap: nowrap;
  178. }
  179. .btn-item {
  180. width: 40vw;
  181. display: flex;
  182. flex-direction: column;
  183. align-items: center;
  184. position: relative;
  185. padding-bottom: 20px;
  186. }
  187. .btn-icon {
  188. height: 80px;
  189. margin-bottom: -10px;
  190. }
  191. .btn-ball {
  192. height: 80px;
  193. margin-top: -10px;
  194. position: relative;
  195. z-index: 1;
  196. }
  197. .btn-text {
  198. position: absolute;
  199. bottom: 45px;
  200. width: 90%;
  201. height: 40px;
  202. z-index: 2;
  203. }
  204. .footer-text1 {
  205. width: 100vw;
  206. height: 60px;
  207. margin-top: 10px;
  208. background-size: 100% 100%;
  209. /* 保证全宽显示 */
  210. }
  211. .footer-text2 {
  212. width: 70vw;
  213. height: 24px;
  214. margin-top: 10px;
  215. }
  216. }
  217. /* 平板适配 */
  218. @media screen and (min-width: 601px) and (max-width: 1024px) {
  219. .homepage {
  220. height: 120vh;
  221. }
  222. .main-icon {
  223. margin-top: 50%;
  224. width: 50vw;
  225. height: 50vw;
  226. }
  227. .btn-item {
  228. padding-top: 20px;
  229. width: 300vw;
  230. position: relative;
  231. }
  232. .btn-icon,
  233. .btn-ball {
  234. height: 100px;
  235. width: 300px;
  236. }
  237. .btn-text {
  238. height: 90px;
  239. width: 100%;
  240. top: 70%;
  241. left: 50%;
  242. transform: translate(-50%, -50%);
  243. }
  244. .footer-text1 {
  245. width: 100vw;
  246. max-width: 900px;
  247. height: 200px;
  248. }
  249. .footer-text2 {
  250. padding-top: 30px;
  251. height: 26px;
  252. }
  253. }
  254. </style>