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.

339 lines
7.2 KiB

4 weeks ago
4 weeks ago
2 weeks ago
2 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
2 weeks ago
2 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
2 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
2 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
2 weeks ago
2 weeks ago
4 weeks ago
4 weeks ago
2 weeks ago
2 weeks ago
2 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
2 weeks ago
  1. <template>
  2. <div class="homepage">
  3. <!-- 顶部主图背景 -->
  4. <!-- <div class="main-icon"></div> -->
  5. <img class="main-icon" :src="robot" alt="AI小财神" />
  6. <!-- 按钮区域 -->
  7. <div class="buttons-container">
  8. <!-- 夺宝奇兵模块 -->
  9. <div class="btn-item" @click="goToDBQBmodel">
  10. <div class="btn-icon btn-dbqb"></div>
  11. <div class="btn-ball"></div>
  12. <div class="btn-text btn-text-dbqb"></div>
  13. </div>
  14. <!-- AI情绪模块 -->
  15. <div class="btn-item" @click="goToEmotionsmodel">
  16. <div class="btn-icon btn-ai"></div>
  17. <div class="btn-ball"></div>
  18. <div class="btn-text btn-text-ai"></div>
  19. </div>
  20. </div>
  21. <!-- 底部口号与说明 -->
  22. <div class="footer-wrapper">
  23. <div class="footer-text1"></div>
  24. <div class="footer-text2"></div>
  25. </div>
  26. </div>
  27. </template>
  28. <script setup>
  29. import { onMounted, ref } from "vue";
  30. import { useRouter } from "vue-router";
  31. import { setHeight } from "@/utils/setHeight";
  32. import { useDataStore } from "@/store/dataList.js";
  33. const { getQueryVariable, setActiveTabIndex } = useDataStore();
  34. import robot from "@/assets/img/Selectmodel/-s-机器人.png";
  35. const router = useRouter();
  36. const pageRef = ref(null);
  37. onMounted(() => {
  38. // setHeight(pageRef.value)
  39. const isPhone =
  40. /phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i.test(
  41. navigator.userAgent
  42. );
  43. !isPhone &&
  44. localStorage.setItem(
  45. "localToken",
  46. decodeURIComponent(String(getQueryVariable("token")))
  47. );
  48. });
  49. const goToDBQBmodel = () => {
  50. router.push("/DBQBmodel");
  51. };
  52. const goToEmotionsmodel = () => {
  53. router.push("/Emotionsmodel");
  54. };
  55. </script>
  56. <style scoped>
  57. .homepage {
  58. /* height: 100vh; */
  59. /* width: 100vw; */
  60. /* min-height: 100vw; */
  61. /* background-color: #000cfc; */
  62. background-image: url("https://d31zlh4on95l9h.cloudfront.net/images/49a45ea0e9ff44e9a965cc1de8059a77.png");
  63. background-size: 100%;
  64. background-position: center;
  65. background-repeat: no-repeat;
  66. /* overflow-x: hidden; */
  67. display: flex;
  68. flex-direction: column;
  69. align-items: center;
  70. box-sizing: border-box;
  71. text-align: center;
  72. }
  73. .main-icon {
  74. max-width: 350px;
  75. width: 28vw;
  76. /* max-width: 280px; */
  77. height: auto;
  78. margin-top:39vw;
  79. }
  80. /* ===== 默认(PC端)按钮区域 ===== */
  81. .buttons-container {
  82. margin-top: 4vh;
  83. display: flex;
  84. gap: 50vw;
  85. justify-content: center;
  86. align-items: flex-end;
  87. flex-wrap: nowrap;
  88. }
  89. .btn-item {
  90. position: relative;
  91. display: flex;
  92. flex-direction: column;
  93. align-items: center;
  94. width: 90vw;
  95. max-width: 200px;
  96. }
  97. .btn-icon {
  98. /* height: 80px;
  99. width: 100%; */
  100. background-size: contain;
  101. background-repeat: no-repeat;
  102. background-position: center;
  103. }
  104. .btn-dbqb {
  105. height: 150px;
  106. width: 100%;
  107. background-image: url("@/assets/img/Selectmodel/-s-夺宝奇兵logo.png");
  108. }
  109. .btn-ai {
  110. height: 150px;
  111. width: 100%;
  112. background-image: url("@/assets/img/Selectmodel/金轮 拷贝.png");
  113. }
  114. .btn-ball {
  115. height: 150px;
  116. width: 150%;
  117. margin-top: -30px;
  118. background-image: url("@/assets/img/Selectmodel/球.png");
  119. background-size: contain;
  120. background-repeat: no-repeat;
  121. background-position: center;
  122. position: relative;
  123. }
  124. .btn-text {
  125. height: 200px;
  126. width: 150%;
  127. position: absolute;
  128. bottom: -20px;
  129. left: 50%;
  130. transform: translateX(-50%);
  131. background-size: contain;
  132. background-repeat: no-repeat;
  133. background-position: center;
  134. }
  135. .btn-text-dbqb {
  136. background-image: url("@/assets/img/Selectmodel/-s-夺宝奇兵大模型.png");
  137. }
  138. .btn-text-ai {
  139. background-image: url("@/assets/img/Selectmodel/-s-AI情绪大模型.png");
  140. }
  141. /* ===== 底部口号区域 ===== */
  142. .footer-wrapper {
  143. margin-top: 6vh;
  144. display: flex;
  145. flex-direction: column;
  146. align-items: center;
  147. gap: 5vh;
  148. }
  149. .footer-text1 {
  150. width: 200vw;
  151. max-width: 200vw;
  152. height: 6vw;
  153. background-image: url("https://d31zlh4on95l9h.cloudfront.net/images/3e36a5a3d676f86e022f7cd41a2fa0a6.png");
  154. background-size: 100% 100%;
  155. background-size: contain;
  156. background-repeat: no-repeat;
  157. background-position: center;
  158. }
  159. .footer-text2 {
  160. width: 70vw;
  161. max-width: 360px;
  162. height: 30px;
  163. margin-bottom: 60px;
  164. background-image: url("@/assets/img/Selectmodel/-s-弘历团队.png");
  165. background-size: contain;
  166. background-repeat: no-repeat;
  167. background-position: center;
  168. }
  169. /* 手机适配 */
  170. @media screen and (max-width: 600px) {
  171. .homepage {
  172. background-image: url("@/assets/img/Selectmodel/-s-bg.png");
  173. /* height: auto; */
  174. /* 解决底部留白 */
  175. /* width: 100%; */
  176. min-height: 100%;
  177. background-size: 100% 100%;
  178. overflow-x: hidden;
  179. }
  180. .main-icon {
  181. margin-top: 350px;
  182. /* width: 9rem; */
  183. }
  184. .buttons-container {
  185. margin-top: 80px;
  186. gap: 10vw;
  187. position: relative;
  188. flex-wrap: nowrap;
  189. }
  190. .btn-item {
  191. width: 40vw;
  192. display: flex;
  193. flex-direction: column;
  194. align-items: center;
  195. position: relative;
  196. padding-bottom: 20px;
  197. }
  198. .btn-icon {
  199. height: 80px;
  200. margin-bottom: -10px;
  201. }
  202. .btn-ball {
  203. height: 80px;
  204. margin-top: -10px;
  205. position: relative;
  206. z-index: 1;
  207. }
  208. .btn-text {
  209. position: absolute;
  210. bottom: 45px;
  211. width: 90%;
  212. height: 40px;
  213. z-index: 2;
  214. }
  215. .footer-text1 {
  216. background-image: url("@/assets/img/Selectmodel/智能体.png");
  217. width: 100vw;
  218. height: 60px;
  219. margin-top: 10px;
  220. background-size: 100% 100%;
  221. /* 保证全宽显示 */
  222. }
  223. .footer-text2 {
  224. width: 70vw;
  225. height: 24px;
  226. margin-top: 10px;
  227. }
  228. }
  229. /* 平板适配 */
  230. @media screen and (min-width: 601px) and (max-width: 1024px) {
  231. .homepage {
  232. background-image: url("@/assets/img/Selectmodel/-s-bg.png");
  233. }
  234. .main-icon {
  235. margin-top: calc(650px - 30vw);
  236. }
  237. .btn-item {
  238. padding-top: 20px;
  239. width: 300vw;
  240. position: relative;
  241. }
  242. .buttons-container{
  243. gap:30vw;
  244. margin-top: 5vh;
  245. }
  246. .btn-icon,
  247. .btn-ball {
  248. height: 100px;
  249. width: 300px;
  250. }
  251. .btn-text {
  252. height: 90px;
  253. width: 100%;
  254. top: 70%;
  255. left: 50%;
  256. transform: translate(-50%, -50%);
  257. }
  258. .footer-text1 {
  259. background-image: url("@/assets/img/Selectmodel/智能体.png");
  260. width: 100vw;
  261. max-width: 900px;
  262. height: 200px;
  263. }
  264. .footer-text2 {
  265. padding-top: 30px;
  266. height: 26px;
  267. }
  268. }
  269. /* 大屏幕适配 - 背景图铺满整个屏幕 */
  270. @media screen and (min-width: 1025px) {
  271. .homepage {
  272. background-size: cover;
  273. min-height: 100vh;
  274. width: 100vw;
  275. overflow-x: hidden;
  276. }
  277. .main-icon {
  278. margin-top:46rem;
  279. width: calc(20vw + 100px);
  280. max-width: 300px;
  281. min-width: 300px;
  282. }
  283. /* 隐藏滚动条 */
  284. body {
  285. overflow-x: hidden;
  286. }
  287. html, body {
  288. width: 100%;
  289. max-width: 100vw;
  290. }
  291. }
  292. @media screen and (min-width: 1025px) and (max-width: 1700px){
  293. .main-icon {
  294. max-width: 350px;
  295. width: 28vw;
  296. height: auto;
  297. margin-top:40rem;
  298. }
  299. }
  300. </style>