小助理

This commit is contained in:
liuye
2024-08-22 14:59:21 +08:00
parent 3fff92077b
commit 58a93432d9
9 changed files with 78 additions and 43 deletions

View File

@@ -14,6 +14,7 @@
</div>
</AiTopFixed> -->
<div class="search-content">
<p>已切换至{{messageList[0].aiConfigName}}</p>
<u-search v-model="searchVal" :clearabled="true" placeholder="请输入搜索关键词…" :show-action="false"
bg-color="#F4F6FA" search-icon-color="#666" color="#666" height="72" @search="getSearchList" @clear="handerClear">
</u-search>
@@ -22,7 +23,7 @@
<div v-for="(item, index) in messageList" :key="index">
<div class="send-time">{{item.createTime.substring(5, 16)}}</div>
<div :class="item.userType == 1 ? 'item-left' : 'item-right'">
<img src="https://cdn.cunwuyun.cn/wechat/baiduAI/user-img.png" alt="" class="user-img" v-if="item.userType == 1">
<img src="https://cdn.sinoecare.com/i/2024/08/22/66c6de5a9db60.jpg" alt="" class="user-img" v-if="item.userType == 1">
<div class="item" :class="'item'+index">
<u-icon name="play-right-fill" color="#CCE2FF" size="20" v-if="item.userType != 1" class="u-icon-right"></u-icon>
<u-icon name="play-left-fill" color="#F3F5F7" size="20" v-if="item.userType == 1" class="u-icon-left"></u-icon>
@@ -38,6 +39,7 @@
</div>
<AiEmpty v-if="!messageList.length"/>
</div>
<img src="https://cdn.sinoecare.com/i/2024/08/22/66c69f4d33eb1.png" alt="" class="bg-center">
</div>
</template>
@@ -199,13 +201,21 @@ page {
}
}
.search-content {
padding: 32px;
padding: 28px 32px;
width: 100%;
background-color: #fff;
box-sizing: border-box;
position: fixed;
left: 0;
z-index: 99;
z-index: 9;
p {
line-height: 34px;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 24px;
color: #999;
text-align: center;
padding-bottom: 28px;
}
}
@@ -213,7 +223,7 @@ page {
width: 100%;
box-sizing: border-box;
background-color: #fff;
padding: 144px 32px 364px;
padding: 238px 32px 364px;
.send-time {
display: block;
width: 100%;
@@ -290,5 +300,13 @@ page {
}
}
}
.bg-center {
position: fixed;
top: 50%;
left: 50%;
width: 306px;
height: 364px;
margin: -182px 0 0 -153px;
}
}
</style>