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.

259 lines
4.7 KiB

1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
  1. <template>
  2. <view class="deepmate">
  3. <view class="deepmate-container">
  4. <view class="deepmate-header">
  5. <view class="title-container">
  6. <view class="title-left">
  7. <text class="deepmate-title">DeepMate</text>
  8. <text class="deepmate-subtitle">您的市场最佳顾问~</text>
  9. </view>
  10. <view class="title-right">
  11. <view class="icon-container">
  12. <view class="ripple-effect ripple-1"></view>
  13. <view class="ripple-effect ripple-2"></view>
  14. <view class="ripple-effect ripple-3"></view>
  15. <image class="deepmate-icon" src="https://d31zlh4on95l9h.cloudfront.net/images/7faa683450cc071bcc746fea8191ff6b.png" mode="aspectFit"></image>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="deepmate-content">
  21. <view class="deepmate-hotspots">
  22. <view class="deepmate-question">
  23. <text class="question-text">今日股票策略晨报</text>
  24. </view>
  25. <view class="hotspot-item">
  26. <text>热门股票分析</text>
  27. </view>
  28. <view class="hotspot-item">
  29. <text>行业趋势预测</text>
  30. </view>
  31. <view class="hotspot-item">
  32. <text>市场风险提示</text>
  33. </view>
  34. <!-- <view class="hotspot-item">
  35. <text>投资策略建议</text>
  36. </view>
  37. <view class="hotspot-item">
  38. <text>财经新闻解读</text>
  39. </view> -->
  40. </view>
  41. <view class="deepmate-action">
  42. <input class="stock-input" type="text" placeholder="请输入股票代码/名称,获取AI洞察" />
  43. <view class="send-button-container">
  44. <image class="send-button" src="https://d31zlh4on95l9h.cloudfront.net/images/3da018821a5c82b06a1d6ddc81b960ac.png" mode="aspectFit"></image>
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. </template>
  51. <script>
  52. export default {
  53. name: 'DeepMate',
  54. data() {
  55. return {
  56. }
  57. }
  58. }
  59. </script>
  60. <style>
  61. /* DeepMate样式 */
  62. .deepmate-container {
  63. background-color: #ffe6e6;
  64. border-radius: 10px;
  65. padding: 15px 15px 15px 15px;
  66. margin: 0;
  67. width: 100%;
  68. box-sizing: border-box;
  69. overflow: hidden;
  70. }
  71. .deepmate-header {
  72. margin-bottom: 10px;
  73. }
  74. .title-container {
  75. display: flex;
  76. align-items: center;
  77. justify-content: space-between;
  78. width: 100%;
  79. }
  80. .title-left {
  81. width: 50%;
  82. display: flex;
  83. flex-direction: column;
  84. }
  85. .title-right {
  86. width: 50%;
  87. display: flex;
  88. justify-content: center;
  89. align-items: center;
  90. }
  91. .deepmate-title {
  92. font-size: 18px;
  93. font-weight: bold;
  94. color: #ff4d4f;
  95. display: block;
  96. }
  97. .deepmate-icon {
  98. width: 50px;
  99. height: 50px;
  100. margin-left: 0;
  101. }
  102. .deepmate-subtitle {
  103. font-size: 12px;
  104. color: #666;
  105. display: block;
  106. margin-top: 5px;
  107. }
  108. .deepmate-hotspots {
  109. margin: 10px 0;
  110. background-color: #ffffff;
  111. border-radius: 10px;
  112. padding: 10px;
  113. }
  114. .deepmate-question {
  115. display: flex;
  116. align-items: center;
  117. margin-bottom: 10px;
  118. padding-left: 10px;
  119. position: relative;
  120. }
  121. .deepmate-question:before {
  122. content: "";
  123. position: absolute;
  124. left: 0;
  125. top: 0;
  126. bottom: 0;
  127. width: 4px;
  128. background-color: #ff4d4f;
  129. border-radius: 2px;
  130. }
  131. .question-text {
  132. font-size: 16px;
  133. font-weight: bold;
  134. color: #333;
  135. }
  136. .hotspot-item {
  137. background-color: #f5f5f5;
  138. padding: 8px 12px;
  139. border-radius: 6px;
  140. margin-bottom: 8px;
  141. }
  142. .hotspot-item text {
  143. font-size: 14px;
  144. color: #333;
  145. }
  146. .deepmate-action {
  147. display: flex;
  148. justify-content: space-between;
  149. align-items: center;
  150. background-color: #ff4d4f;
  151. padding: 8px 15px;
  152. border-radius: 25px;
  153. margin-top: 10px;
  154. border: none;
  155. }
  156. .stock-input {
  157. flex: 1;
  158. height: 36px;
  159. font-size: 14px;
  160. color: #ffffff;
  161. padding: 0 10px;
  162. border: none;
  163. background-color: transparent;
  164. }
  165. .stock-input::placeholder {
  166. color: rgba(255, 255, 255, 0.8);
  167. }
  168. .send-button-container {
  169. display: flex;
  170. justify-content: center;
  171. align-items: center;
  172. width: 36px;
  173. height: 36px;
  174. background-color: #ffffff;
  175. border-radius: 50%;
  176. margin-left: 10px;
  177. }
  178. .send-button {
  179. width: 20px;
  180. height: 20px;
  181. }
  182. .icon-container {
  183. position: relative;
  184. width: 50px;
  185. height: 50px;
  186. border-radius: 50%;
  187. display: flex;
  188. justify-content: center;
  189. align-items: center;
  190. background-color: #f0f8ff;
  191. }
  192. .deepmate-icon {
  193. width: 40px;
  194. height: 40px;
  195. border-radius: 50%;
  196. z-index: 5;
  197. }
  198. .ripple-effect {
  199. position: absolute;
  200. border-radius: 50%;
  201. background: radial-gradient(circle, rgba(255, 0, 0, 0.4) 0%, rgba(255, 0, 0, 0.1) 70%);
  202. animation-name: ripple;
  203. animation-duration: 3s;
  204. animation-timing-function: ease-out;
  205. animation-iteration-count: infinite;
  206. }
  207. .ripple-1 {
  208. width: 100%;
  209. height: 100%;
  210. animation-delay: 0s;
  211. }
  212. .ripple-2 {
  213. width: 100%;
  214. height: 100%;
  215. animation-delay: 1s;
  216. }
  217. .ripple-3 {
  218. width: 100%;
  219. height: 100%;
  220. animation-delay: 2s;
  221. }
  222. @keyframes ripple {
  223. 0% {
  224. transform: scale(0.8);
  225. opacity: 1;
  226. }
  227. 100% {
  228. transform: scale(1.5);
  229. opacity: 0;
  230. }
  231. }
  232. </style>