小助理

This commit is contained in:
liuye
2024-08-22 16:40:26 +08:00
parent c937d24154
commit 5db2205403
4 changed files with 13 additions and 10 deletions

View File

@@ -99,8 +99,6 @@ innerAudioContext.autoplay = true;
export default {
customNavigation: true,
enablePullDownRefresh: true,
navigationBarBackgroundColor: '#ffffff',
navigationBarTextStyle: 'black',
name: 'AppDialogue',
appName: 'Copilot小助理(对话)',
data() {

View File

@@ -96,11 +96,16 @@
</script>
<style scoped lang="scss">
uni-page-body{
background-color: #f3f5f9;
}
.AppMy {
height: 100vh;
background-color: #f3f5f9;
.my-bg {
width: 100%;
height: 420px;
background-image: url("https://cdn.sinoecare.com/i/2024/08/22/66c6d43eac5c0.png");
background-image: url("https://cdn.sinoecare.com/i/2024/08/22/66c6f22b9994e.png");
// position: fixed;
// left: 0;
// z-index: 1;

View File

@@ -21,7 +21,7 @@
</div>
</div>
</div>
<AiEmpty v-if="!messageList.length"/>
<!-- <AiEmpty v-if="!messageList.length"/> -->
</div>
<img src="https://cdn.sinoecare.com/i/2024/08/22/66c69f4d33eb1.png" alt="" class="bg-center">
</div>
@@ -32,8 +32,6 @@
import {mapActions, mapState} from "vuex";
export default {
customNavigation: true,
navigationBarBackgroundColor: '#ffffff',
navigationBarTextStyle: 'black',
name: 'AppRecord',
appName: 'Copilot小助理(记录)',
data() {
@@ -94,7 +92,7 @@ export default {
this.getSearchList()
},
toDetail(e) {
uni.navigateTo({url: `./Detail?aiConfigId=${e.aiConfigId}&conversationId=${e.conversationId}`})
uni.navigateTo({url: `./Detail?aiConfigId=${e.aiConfigId}&conversationId=${e.conversationId}&aiConfigName=${e.aiConfigName}`})
},
del(e) {
this.$dialog.confirm({content: "确定删除该数据?"}).then(() => {

View File

@@ -2,7 +2,7 @@
<div class="Detail">
<u-navbar title="Copilot小助理" title-color="#000" title-width="300" title-size="32" :title-bold="true" :background="backgroundNavbar" :height="44"></u-navbar>
<div class="search-content">
<p>已切换至{{messageList[0].aiConfigName}}</p>
<p>已切换至{{aiConfigName}}</p>
<u-search v-model="searchVal" :clearabled="true" placeholder="请输入搜索关键词…" :show-action="false"
bg-color="#fff" search-icon-color="#E2E8F1" color="#666" height="72" @search="getSearchList" @clear="handerClear">
</u-search>
@@ -26,7 +26,7 @@
<img src="https://cdn.cunwuyun.cn/wechat/baiduAI/user-img.png" alt="" class="user-img" v-if="item.userType != 1">
</div>
</div>
<AiEmpty v-if="!messageList.length"/>
<!-- <AiEmpty v-if="!messageList.length"/> -->
</div>
<img src="https://cdn.sinoecare.com/i/2024/08/22/66c69f4d33eb1.png" alt="" class="bg-center">
</div>
@@ -56,7 +56,8 @@ export default {
pages: 2,
aiConfigId: '',
conversationId: '',
isFirst: true
isFirst: true,
aiConfigName: ''
}
},
computed: {
@@ -65,6 +66,7 @@ export default {
onLoad(e) {
this.aiConfigId = e.aiConfigId
this.conversationId = e.conversationId
this.aiConfigName = e.aiConfigName
this.getHistoryList()
},
onPullDownRefresh() {