From 38f2404ef3c499faca0db8d03d4eaccdf6ef3d7a Mon Sep 17 00:00:00 2001 From: liuye Date: Mon, 15 Jul 2024 14:54:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E5=8A=A9=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/baiduAI/AppRecord/AppRecord.vue | 164 +++++--------- .../{AppRecord2 => AppRecord}/Detail.vue | 8 +- .../{AppRecord2 => AppRecord}/img/del-img.png | Bin src/project/baiduAI/AppRecord2/AppRecord.vue | 201 ------------------ src/project/baiduAI/AppRecord2/record.png | Bin 795 -> 0 bytes .../baiduAI/AppRecord2/record_selected.png | Bin 806 -> 0 bytes .../AppPageInteraction/AppPageInteraction.vue | 26 ++- .../weiyang/AppPeopleList/AppPeopleList.vue | 29 ++- .../weiyang/AppPeopleList/DetailPeople.vue | 29 ++- .../weiyang/AppPeopleList/PeopleList.vue | 139 ++++++++++-- .../AppSpecialPeople/AppSpecialPeople.vue | 93 +++++--- 11 files changed, 323 insertions(+), 366 deletions(-) rename src/project/baiduAI/{AppRecord2 => AppRecord}/Detail.vue (97%) rename src/project/baiduAI/{AppRecord2 => AppRecord}/img/del-img.png (100%) delete mode 100644 src/project/baiduAI/AppRecord2/AppRecord.vue delete mode 100644 src/project/baiduAI/AppRecord2/record.png delete mode 100644 src/project/baiduAI/AppRecord2/record_selected.png diff --git a/src/project/baiduAI/AppRecord/AppRecord.vue b/src/project/baiduAI/AppRecord/AppRecord.vue index c757da8..9ff3515 100644 --- a/src/project/baiduAI/AppRecord/AppRecord.vue +++ b/src/project/baiduAI/AppRecord/AppRecord.vue @@ -9,21 +9,16 @@
-
-
{{item.createTime.substring(5, 16)}}
-
- -
- - -
- 8” - - +
+

{{item.content}}

+
+

{{item.createTime}}

+
+

查看对话

+
+
-

{{item.content || ''}}

-
@@ -77,7 +72,7 @@ export default { return this.$u.toast("请先进行登录") } this.$loading() - this.$instance.post(`/app/appaicopilotinfo/list?current=${this.current}&size=10&content=${this.searchVal}`).then(res => { + this.$instance.post(`/app/appaicopilotinfo/listHistory?current=${this.current}&size=10&content=${this.searchVal}`).then(res => { if(res.code == 0 && res.data.records.length) { res.data.records.map((item) => { if(item.sdkFileUrl) { @@ -110,36 +105,22 @@ export default { this.searchVal = '' this.getSearchList() }, - play(src, index) { - innerAudioContext.stop(); - if(this.messageList[index].isPlay) { - innerAudioContext.onStop(() => { - this.messageList[index].isPlay = false + toDetail(e) { + uni.navigateTo({url: `./Detail?aiConfigId=${e.aiConfigId}`}) + }, + del(e) { + this.$confirm('确定删除该数据?').then(() => { + uni.showLoading() + this.$instance.post(`appaicopilotinfo/deleteConversation?conversationId=${e.conversationId}`).then((res) => { + if (res.code == 0) { + this.$u.toast('删除成功!') + this.getSearchList() + } + uni.hideLoading() }) - return - } - - this.messageList.map((item) => { - if(item.sdkFileUrl) { - item.isPlay = false - } + }).catch(() => { }) - this.messageList[index].isPlay = true - innerAudioContext.src = src; - - this.$nextTick(() => { - innerAudioContext.play(); - }) - innerAudioContext.onEnded(() => { - this.messageList[index].isPlay = false - }) - }, - playStop(index) { - innerAudioContext.stop(); - innerAudioContext.onStop(() => { - this.messageList[index].isPlay = false - }) - }, + } }, } @@ -177,79 +158,42 @@ page { box-sizing: border-box; background-color: #fff; padding: 144px 32px 364px; - .send-time { - display: block; - width: 100%; - line-height: 28px; - font-family: PingFangSC-Regular; - font-weight: 400; - font-size: 20px; - color: #999; - text-align: center; - margin-bottom: 28px; - } - .user-img { - display: inline-block; - width: 72px; - height: 72px; - vertical-align: top; - } .item { - display: inline-block; - max-width: 440px; - border-radius: 8px; - padding: 18px; - box-sizing: border-box; - margin-bottom: 28px; - position: relative; - .voice-div { - img { - width: 26px; - height: 28px; - } - span { - display: inline-block; - color: #333; - font-size: 28px; - font-family: PingFangSC; - line-height: 28px; - margin-right: 68px; - } - } - p { - word-break: break-all; + .item-text { line-height: 40px; - font-family: SourceHanSansCN-Regular; - font-size: 32px; + font-family: PingFangSC-Regular; + font-size: 28px; color: #333; - } - } - .item-right { - display: flex; - justify-content: flex-end; - .item { + padding: 18px; background-color: #CCE2FF; + border-radius: 8px; } - .user-img { - margin-left: 24px; - } - .u-icon-right { - position: absolute; - top: 12px; - right: -12px; - } - } - .item-left { - .item { - background-color: #F3F5F7; - } - .user-img { - margin-right: 24px; - } - .u-icon-left { - position: absolute; - top: 12px; - left: -12px; + .time-flex { + display: flex; + justify-content: space-between; + line-height: 40px; + font-family: PingFangSC-Regular; + font-size: 24px; + .time-text { + color: #999; + padding-top: 34px; + } + .item-view { + p { + display: inline-block; + font-size: 28px; + color: #216AFD; + } + div { + display: inline-block; + padding: 34px 0 34px 38px; + img { + width: 40px; + height: 40px; + vertical-align: bottom; + } + } + } } } } diff --git a/src/project/baiduAI/AppRecord2/Detail.vue b/src/project/baiduAI/AppRecord/Detail.vue similarity index 97% rename from src/project/baiduAI/AppRecord2/Detail.vue rename to src/project/baiduAI/AppRecord/Detail.vue index ba9d9ea..5962e78 100644 --- a/src/project/baiduAI/AppRecord2/Detail.vue +++ b/src/project/baiduAI/AppRecord/Detail.vue @@ -1,6 +1,6 @@