zhinengqwnda.vue 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <template>
  2. <div>
  3. <div class="head">
  4. <img src="../static/ai/headLogo.png" alt="" class="logo">
  5. <span>智能问答</span>
  6. <img src="../static/ai/down.png" class="rightDown">
  7. </div>
  8. <div class="context">
  9. <el-scrollbar height="345px">
  10. <!-- <p v-for="item in 50" :key="item" class="scrollbar-demo-item">{{ item }}</p> -->
  11. <p class="start">2025-01-20 09:35:30 开始沟通</p>
  12. <div class="aiSpeak">
  13. <img src="../static/ai/headLogo.png" alt="" class="ailogo">
  14. <div class="reply">
  15. <span class='time'>2025-01-20 09:35:30</span>
  16. <p>你好呀!很高兴见到你。无论是想聊聊天、寻求帮助还是探讨问题,我都在这儿等着陪你呢!有什么我可以帮你的吗? </p>
  17. </div>
  18. </div>
  19. <div class="userSpeak">
  20. <div class="reply">
  21. <span class='time'>2025-01-20 09:35:30</span>
  22. <p>你好呀!很高兴见到你。无论是想聊聊天、寻求帮助还是探讨问题,我都在这儿等着陪你呢!有什么我可以帮你的吗? </p>
  23. </div>
  24. <img src="../static/ai/headLogo.png" alt="" class="user">
  25. </div>
  26. <!-- <div class="userSpeak">
  27. <div class="reply">
  28. <span class='time'>2025-01-20 09:35:30</span>
  29. <p>你好呀!很高兴见到你。无论是想聊聊天、寻求帮助还是探讨问题,我都在这儿等着陪你呢!有什么我可以帮你的吗? </p>
  30. </div>
  31. <img src="../static/ai/headLogo.png" alt="" class="user">
  32. </div> -->
  33. <div class="aiSpeak">
  34. <img src="../static/ai/headLogo.png" alt="" class="ailogo">
  35. <div class="reply">
  36. <span class='time'>2025-01-20 09:35:30</span>
  37. <p>你好呀!很高兴见到你。无论是想聊聊天、寻求帮助还是探讨问题,我都在这儿等着陪你呢!有什么我可以帮你的吗? </p>
  38. </div>
  39. </div>
  40. <!-- <div class="userSpeak">
  41. <div class="reply">
  42. <span class='time'>2025-01-20 09:35:30</span>
  43. <p>你好呀!很高兴见到你。无论是想聊聊天、寻求帮助还是探讨问题,我都在这儿等着陪你呢!有什么我可以帮你的吗? </p>
  44. </div>
  45. <img src="../static/ai/headLogo.png" alt="" class="user">
  46. </div> -->
  47. </el-scrollbar>
  48. </div>
  49. <div class="buttom">
  50. <el-input v-model="textarea" :rows="4" type="textarea" placeholder="请简短描述你的问题" resize="none" />
  51. <button class="submit">发送</button>
  52. </div>
  53. </div>
  54. </template>
  55. <script setup>
  56. import { ref } from 'vue'
  57. import { ElScrollbar, ElInput } from 'element-plus'
  58. const textarea = ref('')
  59. </script>
  60. <style lang="less" scoped>
  61. .head {
  62. height: 74px;
  63. line-height: 74px;
  64. width: 100%;
  65. background-color: #19499F;
  66. color: #fff;
  67. font-size: 16px;
  68. .logo {
  69. width: 40px;
  70. height: 40px;
  71. margin-left: 20px;
  72. margin-right: 10px;
  73. vertical-align: middle;
  74. }
  75. .rightDown {
  76. float: right;
  77. margin-right: 15px;
  78. margin-top: 25px;
  79. }
  80. }
  81. .context {
  82. .start {
  83. font-family: Microsoft YaHei, Microsoft YaHei;
  84. color: #7E7E80;
  85. font-size: 12px;
  86. margin-top: 15px;
  87. text-align: center;
  88. }
  89. .aiSpeak{
  90. width: auto;
  91. // overflow: hidden;
  92. margin-top:30px;
  93. margin-right:80px;
  94. .ailogo{
  95. float: left;
  96. width: 30px;
  97. height: 30px;
  98. border: 1px solid #19499F;
  99. margin-left: 15px;
  100. margin-right: 10px;
  101. box-sizing: border-box;
  102. }
  103. .reply{
  104. // float: left;
  105. .time{
  106. font-family: Microsoft YaHei, Microsoft YaHei;
  107. font-weight: 400;
  108. font-size: 14px;
  109. color: #B1B1B1;
  110. line-height: 16px;
  111. }
  112. >p{
  113. width:222px;
  114. overflow: hidden;
  115. padding: 15px 20px;
  116. margin-top: 5px;
  117. box-sizing: border-box;
  118. background-color: #f5f5f5;
  119. font-family: Microsoft YaHei, Microsoft YaHei;
  120. font-weight: 400;
  121. font-size: 14px;
  122. color: #333333;
  123. line-height: 15px;
  124. }
  125. }
  126. }
  127. .userSpeak{
  128. // overflow: hidden;
  129. margin-top:30px;
  130. margin-left: 80px;
  131. float: right;
  132. .reply{
  133. float: left;
  134. .time{
  135. font-family: Microsoft YaHei, Microsoft YaHei;
  136. font-weight: 400;
  137. font-size: 14px;
  138. color: #B1B1B1;
  139. line-height: 16px;
  140. }
  141. >p{
  142. width:222px;
  143. overflow: hidden;
  144. padding: 15px 20px;
  145. margin-top: 5px;
  146. box-sizing: border-box;
  147. background-color: #f5f5f5;
  148. font-family: Microsoft YaHei, Microsoft YaHei;
  149. font-weight: 400;
  150. font-size: 14px;
  151. color: #333333;
  152. line-height: 15px;
  153. }
  154. }
  155. .user{
  156. float: left;
  157. width: 30px;
  158. height: 30px;
  159. border: 1px solid #19499F;
  160. margin-right: 15px;
  161. margin-left: 10px;
  162. box-sizing: border-box;
  163. }
  164. }
  165. }
  166. .buttom {
  167. height: 135px;
  168. width: 100%;
  169. background-color: #fff;
  170. border-top: 1px solid #ccc;
  171. .submit {
  172. width: 48px;
  173. height: 28px;
  174. background-color: #19499F;
  175. color: #fff;
  176. border: none;
  177. border-radius: 5px;
  178. float: right;
  179. margin-bottom: 20px;
  180. margin-right: 20px;
  181. }
  182. }
  183. :deep(.el-textarea__inner:hover) {
  184. box-shadow: none;
  185. }
  186. :deep(.el-textarea__inner) {
  187. box-shadow: none;
  188. }
  189. :deep(.el-textarea__inner:focus) {
  190. box-shadow: none;
  191. }
  192. </style>