小助理

This commit is contained in:
liuye
2024-08-23 09:06:11 +08:00
parent 5d5a18d617
commit 21c6643622
3 changed files with 7 additions and 4 deletions

View File

@@ -14,7 +14,7 @@
</div> </div>
</AiTopFixed> --> </AiTopFixed> -->
<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="#F4F6FA" search-icon-color="#666" color="#666" height="72" @search="getSearchList" @clear="handerClear"> bg-color="#F4F6FA" search-icon-color="#666" color="#666" height="72" @search="getSearchList" @clear="handerClear">
</u-search> </u-search>
@@ -28,7 +28,7 @@
<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-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> <u-icon name="play-left-fill" color="#F3F5F7" size="20" v-if="item.userType == 1" class="u-icon-left"></u-icon>
<div class="voice-div" v-if="item.sdkFileUrl" @click="play(item.sdkFileUrl, index)"> <div class="voice-div" v-if="item.sdkFileUrl" @click="play(item.sdkFileUrl, index)">
<span>8</span> <!-- <span>8</span> -->
<img src="https://cdn.cunwuyun.cn/wechat/baiduAI/play-d.gif" alt="" v-if="item.isPlay"> <img src="https://cdn.cunwuyun.cn/wechat/baiduAI/play-d.gif" alt="" v-if="item.isPlay">
<img src="https://cdn.cunwuyun.cn/wechat/baiduAI/play-j.png" alt="" v-else> <img src="https://cdn.cunwuyun.cn/wechat/baiduAI/play-j.png" alt="" v-else>
</div> </div>
@@ -67,7 +67,8 @@ export default {
current: 1, current: 1,
pages: 2, pages: 2,
aiConfigId: '', aiConfigId: '',
conversationId: '' conversationId: '',
aiConfigName: ''
} }
}, },
computed: { computed: {
@@ -76,6 +77,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()
}, },
onShow() { onShow() {

View File

@@ -97,7 +97,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}`})
// this.$emit('toDetail', {aiConfigId: e.aiConfigId}) // this.$emit('toDetail', {aiConfigId: e.aiConfigId})
}, },
del(e) { del(e) {

View File

@@ -200,6 +200,7 @@ export default {
if(!this.user.token) { if(!this.user.token) {
return this.$u.toast("请先进行登录") return this.$u.toast("请先进行登录")
} }
if(this.content === '') return
// this.$loading() // this.$loading()
this.showLoad = true this.showLoad = true
this.$http.post("/app/appaicopilotinfo/add", {content: this.content, appType: 0, areaId: this.areaId, aiConfigId: this.aiConfigId, supplementContent: this.latLng}).then(res => { this.$http.post("/app/appaicopilotinfo/add", {content: this.content, appType: 0, areaId: this.areaId, aiConfigId: this.aiConfigId, supplementContent: this.latLng}).then(res => {