<template>
|
<div class="chat-box">
|
<div class="chat-box-content">
|
<div class="chat-date">03/15 13:10:00</div>
|
<div class="chat-back-info">
|
<div class="back-avator">
|
<img src="../assets/images/image2.png" alt="" />
|
</div>
|
<div class="base-book-box">
|
Hi,我是****图书馆AI智能图书检索助手,帮你轻松检索书籍!试试问我:'有没有关于XX的书?"或“推荐一本XX领域的书'吧!
|
</div>
|
</div>
|
<div class="back-item">
|
<div class="back-item-title">
|
<img src="../assets/images/redian.png" alt="" />
|
<span>热门问题</span>
|
</div>
|
<ul>
|
<li>
|
<img src="../assets/images/wenti.png" alt="" />
|
<span>图书馆的开闭馆时问是什么?</span>
|
</li>
|
<li>
|
<img src="../assets/images/wenti.png" alt="" />
|
<span>超期还书如何处理?</span>
|
</li>
|
<li>
|
<img src="../assets/images/wenti.png" alt="" />
|
<span>什么是图书馆罚款?</span>
|
</li>
|
<li>
|
<img src="../assets/images/wenti.png" alt="" />
|
<span>借阋图书遗失如何处理?</span>
|
</li>
|
<li>
|
<img src="../assets/images/wenti.png" alt="" />
|
<span>如何借阅馆藏图书和期刊?</span>
|
</li>
|
<li>
|
<img src="../assets/images/wenti.png" alt="" />
|
<span>读者的借阅期限是多久?</span>
|
</li>
|
</ul>
|
<div class="chat-change">
|
<img src="../assets/images/shuxin1.png" alt="" />
|
<span>换一换</span>
|
</div>
|
</div>
|
<div class="chat-footer">
|
<div class="icon-list">
|
<img src="../assets/images/liebiao1.png" alt="" />
|
<img src="../assets/images/tianjia2.png" alt="" />
|
</div>
|
<div class="chat-text">
|
<el-input type="textarea" :autosize="{ minRows: 2, maxRows: 10 }" placeholder="请输入您的问题"
|
v-model="inputValue" />
|
</div>
|
<div class="select">
|
<div class="select-left">
|
<div class="select-item">
|
<img src="../assets/images/sikao.png" alt="" />
|
<span>深度思考(R1)</span>
|
</div>
|
<div class="select-item">
|
<img src="../assets/images/lianwang.png" alt="" />
|
<span>联网搜索</span>
|
</div>
|
</div>
|
<div class="select-right">
|
<div class="select-item">
|
<img src="../assets/images/fujian1.png" alt="" />
|
</div>
|
<div class="select-item">
|
<img @click="sendMsg()" src="../assets/images/shangchuan2.png" alt="" />
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</template>
|
<script lang="ts" setup>
|
import { ref } from 'vue'
|
const inputValue = ref('')
|
|
const sendMsg = () => {
|
|
}
|
</script>
|
<style lang="less" scoped>
|
@media screen and (max-width: 750px) {
|
.chat-box {
|
width: 100%;
|
height: auto;
|
background-image: url('@/assets/images/beijing2.png');
|
background-position: center;
|
background-size: cover;
|
|
.chat-box-content {
|
width: 100%;
|
display: flex;
|
flex-direction: column;
|
justify-content: flex-start;
|
align-items: flex-start;
|
|
.chat-date {
|
width: 100%;
|
text-align: center;
|
margin-bottom: 30px;
|
}
|
|
.chat-send {
|
width: 100%;
|
display: flex;
|
justify-content: flex-end;
|
margin-bottom: 20px;
|
|
.chat-send-info {
|
width: 263px;
|
height: 40px;
|
background: #af8b56;
|
border-radius: 20px;
|
line-height: 40px;
|
padding: 0 20px;
|
color: #fff;
|
}
|
}
|
|
.chat-back-info {
|
margin-bottom: 20px;
|
display: flex;
|
justify-content: flex-start;
|
|
.back-avator {
|
margin-right: 10px;
|
|
img {
|
width: 40px;
|
}
|
}
|
|
.base-book-box {
|
width: 300px;
|
padding: 20px;
|
box-sizing: border-box;
|
background-color: #fff;
|
border-radius: 20px;
|
}
|
}
|
|
.back-item {
|
width: 300px;
|
background: #ffffff;
|
border-radius: 20px;
|
margin-left: 50px;
|
margin-bottom: 20px;
|
|
.back-item-title {
|
width: 80%;
|
height: 60px;
|
display: flex;
|
align-items: center;
|
padding: 0 10px;
|
margin: auto;
|
border-bottom: 1px solid #e9d8bf;
|
}
|
|
img {
|
margin-right: 10px;
|
}
|
|
ul {
|
padding: 0 25px;
|
|
li {
|
list-style: none;
|
margin: 10px 0 10px 0;
|
display: flex;
|
justify-content: flex-start;
|
align-items: center;
|
}
|
}
|
|
.chat-change {
|
display: flex;
|
justify-content: flex-end;
|
align-items: center;
|
padding: 10px 20px;
|
color: #d2a25b;
|
|
img {
|
cursor: pointer;
|
}
|
}
|
}
|
|
.chat-footer {
|
width: 300px;
|
background-color: #fff;
|
border-radius: 20px;
|
padding: 20px;
|
box-sizing: border-box;
|
margin-left: 50px;
|
margin-bottom: 20px;
|
|
.icon-list img {
|
margin-right: 10px;
|
cursor: pointer;
|
}
|
|
::v-deep(.chat-text) {
|
margin-bottom: 10px;
|
|
.el-textarea__inner {
|
border: none !important;
|
outline: none !important;
|
box-shadow: none !important;
|
background-color: transparent !important;
|
resize: none !important;
|
}
|
}
|
|
.select {
|
width: 100%;
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
|
.select-left,
|
.select-right {
|
display: flex;
|
align-items: center;
|
justify-content: flex-start;
|
|
.select-item {
|
display: flex;
|
align-items: center;
|
box-sizing: border-box;
|
border: 1px solid #e9d8bf;
|
border-radius: 15px;
|
font-size: 12px;
|
font-family:
|
Microsoft YaHei,
|
Microsoft YaHei-Regular;
|
font-weight: 400;
|
color: #e1c49a;
|
|
img {
|
margin-right: 5px;
|
cursor: pointer;
|
}
|
}
|
}
|
|
.select-left {
|
.select-item {
|
min-width: 70px;
|
padding: 5px 8px;
|
}
|
}
|
|
.select-right {
|
display: flex;
|
align-items: center;
|
justify-content: flex-end;
|
|
.select-item {
|
border: 0;
|
}
|
}
|
}
|
}
|
}
|
}
|
}
|
|
@media screen and (min-width: 750px) {
|
.chat-box {
|
width: 100%;
|
height: 100%;
|
background-image: url('@/assets/images/beijing2.png');
|
background-size: 100% 100%;
|
background-position: center;
|
background-repeat: no-repeat;
|
display: flex;
|
justify-content: center;
|
align-items: center;
|
|
.chat-box-content {
|
width: 1200px;
|
display: flex;
|
flex-direction: column;
|
justify-content: flex-start;
|
align-items: flex-start;
|
|
.chat-date {
|
width: 100%;
|
text-align: center;
|
margin-bottom: 30px;
|
}
|
|
.chat-send {
|
width: 100%;
|
display: flex;
|
justify-content: flex-end;
|
margin-bottom: 20px;
|
|
.chat-send-info {
|
width: 263px;
|
height: 40px;
|
background: #af8b56;
|
border-radius: 20px;
|
line-height: 40px;
|
padding: 0 20px;
|
color: #fff;
|
}
|
}
|
|
.chat-back-info {
|
margin-bottom: 20px;
|
display: flex;
|
justify-content: flex-start;
|
|
.back-avator {
|
margin-right: 37px;
|
|
img {
|
width: 60px;
|
}
|
}
|
|
.base-book-box {
|
width: 800px;
|
padding: 20px 47px;
|
box-sizing: border-box;
|
background-color: #fff;
|
border-radius: 20px;
|
}
|
}
|
|
.back-item {
|
width: 349px;
|
height: 391px;
|
background: #ffffff;
|
border-radius: 20px;
|
margin-left: 100px;
|
margin-bottom: 20px;
|
|
.back-item-title {
|
width: 80%;
|
height: 60px;
|
display: flex;
|
align-items: center;
|
padding: 0 10px;
|
margin: auto;
|
border-bottom: 1px solid #e9d8bf;
|
}
|
|
img {
|
margin-right: 10px;
|
}
|
|
ul li {
|
list-style: none;
|
margin: 20px 0 20px 0;
|
display: flex;
|
justify-content: flex-start;
|
align-items: center;
|
}
|
|
.chat-change {
|
display: flex;
|
justify-content: flex-end;
|
align-items: center;
|
padding: 0 20px;
|
color: #d2a25b;
|
|
img {
|
cursor: pointer;
|
}
|
}
|
}
|
|
.chat-footer {
|
width: 800px;
|
height: 170px;
|
background-color: #fff;
|
border-radius: 20px;
|
padding: 20px;
|
box-sizing: border-box;
|
margin-left: 103px;
|
|
.icon-list img {
|
margin-right: 10px;
|
cursor: pointer;
|
}
|
|
::v-deep(.chat-text) {
|
margin-bottom: 10px;
|
|
.el-textarea__inner {
|
border: none !important;
|
outline: none !important;
|
box-shadow: none !important;
|
background-color: transparent !important;
|
resize: none !important;
|
}
|
}
|
|
.select {
|
width: 100%;
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
|
.select-left,
|
.select-right {
|
flex: 1;
|
display: flex;
|
align-items: center;
|
justify-content: flex-start;
|
|
.select-item {
|
display: flex;
|
align-items: center;
|
padding: 2px 10px;
|
box-sizing: border-box;
|
border: 1px solid #e9d8bf;
|
border-radius: 15px;
|
margin-right: 10px;
|
font-size: 14px;
|
font-family:
|
Microsoft YaHei,
|
Microsoft YaHei-Regular;
|
font-weight: 400;
|
color: #e1c49a;
|
|
img {
|
margin-right: 10px;
|
cursor: pointer;
|
}
|
}
|
}
|
|
.select-right {
|
display: flex;
|
align-items: center;
|
justify-content: flex-end;
|
|
.select-item {
|
border: 0;
|
}
|
}
|
}
|
}
|
}
|
}
|
}
|
</style>
|