HeimaView.vue 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. <script setup>
  2. import { ref, onMounted } from "vue";
  3. import { useRouter } from "vue-router";
  4. import HeimaPage from "./components/HeimaPage.vue";
  5. const router = useRouter();
  6. // 跳转到详情页
  7. const handleDetail = () => {
  8. router.push("/detail");
  9. };
  10. // onMounted(() => {
  11. // localStorage.removeItem("chatHistory");
  12. // localStorage.removeItem("status");
  13. // });
  14. </script>
  15. <template>
  16. <div class="home">
  17. <div class="logo">
  18. <img src="../assets/logqian.png" alt="">
  19. <div class="logo_title">
  20. <span>科驱数智创新室AI中台</span>
  21. <!-- <span>IntelligentTrain</span> -->
  22. </div>
  23. </div>
  24. <div class="banner">
  25. <p>智能陪练 <span>▪</span></p>
  26. <span>高效提升</span>
  27. </div>
  28. <div class="btn">
  29. <div>定制对话</div>
  30. <div>拟真复盘</div>
  31. </div>
  32. <div class="produce">
  33. <div class="content bg">
  34. <p>1.定制专属训练场景</p>
  35. <img src="../assets/dingzhi.png" alt="">
  36. </div>
  37. <div class="content tg">
  38. <p>2.自由设定客户角色</p>
  39. <div class="scence"></div>
  40. </div>
  41. </div>
  42. <div class="produce1">
  43. <div class="voice">
  44. <p>3.拟真语音深度对话</p>
  45. </div>
  46. <div class="advice">
  47. <HeimaPage></HeimaPage>
  48. </div>
  49. </div>
  50. <div class="bottom">
  51. <van-button type="warning" size="small" @click="handleDetail" class="w">立即体验</van-button>
  52. </div>
  53. </div>
  54. </template>
  55. <style scoped lang="less">
  56. p {
  57. margin: 0;
  58. padding: 0;
  59. }
  60. html {
  61. touch-action: manipulation;
  62. }
  63. .home {
  64. min-width: 100vw;
  65. min-height: 100vh;
  66. background-image: url(../assets/bg.jpg);
  67. background-repeat: no-repeat;
  68. background-size: cover;
  69. background-position: center;
  70. }
  71. .logo {
  72. padding: 20px;
  73. display: flex;
  74. align-items: center;
  75. img {
  76. width: 30px;
  77. height: 30px;
  78. margin-right: 3px;
  79. }
  80. .logo_title {
  81. display: flex;
  82. flex-direction: column;
  83. justify-content: center;
  84. align-items: center;
  85. }
  86. span {
  87. font-size: 16px;
  88. font-weight: 700;
  89. color: rgba(255, 255, 255, 0.8);
  90. // font-family: cursive;
  91. }
  92. span:nth-child(2) {
  93. font-size: 10px;
  94. font-weight: 400;
  95. margin-top: -5px;
  96. // margin-left: 10px;
  97. }
  98. }
  99. .banner {
  100. color: #fff;
  101. font-size: 40px;
  102. font-weight: 700;
  103. margin: 20px 0 10px 20px;
  104. }
  105. .btn {
  106. display: flex;
  107. color: rgba(255, 255, 255, 0.7);
  108. margin: 20px 0 0 20px;
  109. div {
  110. border: 1px solid rgba(255, 255, 255, 0.7);
  111. border-radius: 5px;
  112. padding: 3px 5px;
  113. font-size: 10px;
  114. }
  115. div:nth-child(1) {
  116. margin-right: 10px;
  117. }
  118. }
  119. .produce {
  120. margin: 25px 20px 10px 20px;
  121. // margin-bottom: 10px;
  122. // padding-bottom: 10px;
  123. display: flex;
  124. justify-content: space-between;
  125. .bg {
  126. background-color: #fff;
  127. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  128. border-radius: 8px;
  129. p{
  130. color: #000;
  131. }
  132. }
  133. .content {
  134. display: flex;
  135. flex-direction: column;
  136. width: 43%;
  137. p {
  138. padding-top: 15px;
  139. text-align: center;
  140. font-size: 14px;
  141. }
  142. img {
  143. // width: 100%;
  144. height: 150px;
  145. margin: 0 auto;
  146. // height: 100%;
  147. // margin-top: 20px;
  148. }
  149. .scence {
  150. // width: 53%;
  151. height: 100%;
  152. width: 100%;
  153. // min-height: 100px;
  154. background-image: url(../assets/role_scene.png);
  155. // box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  156. background-repeat: no-repeat;
  157. background-size: cover;
  158. background-position: center;
  159. }
  160. }
  161. .tg {
  162. width: 53%;
  163. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  164. border-radius: 8px;
  165. color: #fff;
  166. }
  167. // .bg {
  168. // width: 43%;
  169. // background-color: #ffffff;
  170. // /* 白色背景 */
  171. // box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  172. // /* 添加阴影效果 */
  173. // border-radius: 8px;
  174. // min-height: 100px;
  175. // display: flex;
  176. // flex-direction: column;
  177. // justify-content: center;
  178. // align-items: center;
  179. // p {
  180. // padding-top: 15px;
  181. // // text-align: center;
  182. // font-size: 14px;
  183. // }
  184. // img {
  185. // // width: 100%;
  186. // height: 150px;
  187. // margin: 0 auto;
  188. // // height: 100%;
  189. // // margin-top: 20px;
  190. // }
  191. // }
  192. // .sence {
  193. // width: 53%;
  194. // // background-color: #fff;
  195. // min-height: 100px;
  196. // background-image: url(../assets/role_scene.png);
  197. // box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  198. // background-repeat: no-repeat;
  199. // background-size: cover;
  200. // background-position: center;
  201. // border-radius: 8px;
  202. // padding-top: 15px;
  203. // font-size: 14px;
  204. // text-align: center;
  205. // p {
  206. // color: #fff;
  207. // }
  208. // // img {
  209. // // // width: 100%;
  210. // // height: 150px;
  211. // // margin: 0 auto;
  212. // // // height: 100%;
  213. // // // margin-top: 20px;
  214. // // }
  215. // }
  216. }
  217. .produce1 {
  218. padding: 0 20px;
  219. display: flex;
  220. justify-content: space-between;
  221. .advice {
  222. width: 53%;
  223. background: #fff;
  224. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  225. border-radius: 8px;
  226. // margin-left: 10px;
  227. }
  228. .voice {
  229. width: 43%;
  230. height: 130px;
  231. background-image: url(../assets/sence.png);
  232. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  233. background-repeat: no-repeat;
  234. background-size: cover;
  235. background-position: center;
  236. border-radius: 8px;
  237. padding-top: 15px;
  238. font-size: 14px;
  239. text-align: center;
  240. p {
  241. color: #fff;
  242. }
  243. }
  244. }
  245. .bottom {
  246. margin-top: 10px;
  247. display: flex;
  248. align-items: center;
  249. justify-content: center;
  250. .w{
  251. width: 83px;
  252. }
  253. }
  254. @media (max-width: 767px) {
  255. html {
  256. touch-action: pan-y;
  257. /* 允许垂直滚动,禁止水平滚动和缩放 */
  258. }
  259. }
  260. </style>