小助理

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 { export default {
customNavigation: true, customNavigation: true,
enablePullDownRefresh: true, enablePullDownRefresh: true,
navigationBarBackgroundColor: '#ffffff',
navigationBarTextStyle: 'black',
name: 'AppDialogue', name: 'AppDialogue',
appName: 'Copilot小助理(对话)', appName: 'Copilot小助理(对话)',
data() { data() {

View File

@@ -96,11 +96,16 @@
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
uni-page-body{
background-color: #f3f5f9;
}
.AppMy { .AppMy {
height: 100vh;
background-color: #f3f5f9;
.my-bg { .my-bg {
width: 100%; width: 100%;
height: 420px; 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; // position: fixed;
// left: 0; // left: 0;
// z-index: 1; // z-index: 1;

View File

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

View File

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