This commit is contained in:
liuye
2024-07-16 14:33:33 +08:00
parent 24f100a67d
commit 86623fd09a
4 changed files with 21 additions and 12 deletions

View File

@@ -8,7 +8,7 @@
</div> </div>
<Talk v-if="!tabIndex && !showDetail" /> <Talk v-if="!tabIndex && !showDetail" />
<Record v-if="tabIndex && !showDetail" @toDetail="toDetail" /> <Record v-if="tabIndex && !showDetail" @toDetail="toDetail" />
<Detail v-if="showDetail" :params="params" @back="back" /> <!-- <Detail v-if="showDetail" :params="params" @back="back" /> -->
</div> </div>
</template> </template>
@@ -74,6 +74,7 @@ export default {
left: 0; left: 0;
z-index: 9; z-index: 9;
display: flex; display: flex;
border-top: 1px solid #eee;
.item { .item {
flex: 1; flex: 1;
text-align: center; text-align: center;
@@ -86,6 +87,7 @@ export default {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-weight: 400; font-weight: 400;
font-size: 20px; font-size: 20px;
line-height: 28px;
color: #8A929F; color: #8A929F;
} }
.active { .active {

View File

@@ -1,6 +1,6 @@
<template> <template>
<div class="Detail"> <div class="Detail">
<AiTopFixed> <!-- <AiTopFixed>
<div class="back"> <div class="back">
<div class="top-select" @click="back"> <div class="top-select" @click="back">
<u-icon name="arrow-left" color="#fff" size="28"></u-icon>返回 <u-icon name="arrow-left" color="#fff" size="28"></u-icon>返回
@@ -12,7 +12,12 @@
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>
</div> </div>
</AiTopFixed> </AiTopFixed> -->
<div class="search-content">
<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>
</div>
<div class="list-content"> <div class="list-content">
<div v-for="(item, index) in messageList" :key="index"> <div v-for="(item, index) in messageList" :key="index">
<div class="send-time">{{item.createTime.substring(5, 16)}}</div> <div class="send-time">{{item.createTime.substring(5, 16)}}</div>
@@ -64,7 +69,8 @@ export default {
computed: { computed: {
...mapState(['user']), ...mapState(['user']),
}, },
mounted() { onLoad(e) {
this.aiConfigId = e.aiConfigId
this.getHistoryList() this.getHistoryList()
}, },
onShow() { onShow() {
@@ -83,7 +89,7 @@ export default {
return this.$u.toast("请先进行登录") return this.$u.toast("请先进行登录")
} }
this.$loading() this.$loading()
this.$http.post(`/app/appaicopilotinfo/list?current=${this.current}&size=10&content=${this.searchVal}&aiConfigId=${this.params.aiConfigId}`).then(res => { this.$http.post(`/app/appaicopilotinfo/list?current=${this.current}&size=10&content=${this.searchVal}&aiConfigId=${this.aiConfigId}`).then(res => {
if(res.code == 0 && res.data.records.length) { if(res.code == 0 && res.data.records.length) {
res.data.records.map((item) => { res.data.records.map((item) => {
if(item.sdkFileUrl) { if(item.sdkFileUrl) {
@@ -193,10 +199,11 @@ page {
.search-content { .search-content {
padding: 32px; padding: 32px;
width: 100%; width: 100%;
background-color: #fff;
box-sizing: border-box; box-sizing: border-box;
::v-deep .u-search { position: fixed;
box-shadow: 0 0 8px 0 #00000005; left: 0;
} z-index: 99;
} }

View File

@@ -102,8 +102,8 @@ export default {
this.getSearchList() this.getSearchList()
}, },
toDetail(e) { toDetail(e) {
// uni.navigateTo({url: `./Detail?aiConfigId=${e.aiConfigId}`}) uni.navigateTo({url: `./Detail?aiConfigId=${e.aiConfigId}`})
this.$emit('toDetail', {aiConfigId: e.aiConfigId}) // this.$emit('toDetail', {aiConfigId: e.aiConfigId})
}, },
del(e) { del(e) {
this.$confirm('确定删除该数据?').then(() => { this.$confirm('确定删除该数据?').then(() => {

View File

@@ -516,12 +516,12 @@ page {
.fixed-bottom { .fixed-bottom {
position: fixed; position: fixed;
bottom: 168px; bottom: 163px;
left: 0; left: 0;
width: 100%; width: 100%;
border-top: 1px solid #eee; border-top: 1px solid #eee;
background-color: #fff; background-color: #fff;
z-index: 9; z-index: 10;
.type-text { .type-text {
padding: 24px 0 24px 32px; padding: 24px 0 24px 32px;
display: flex; display: flex;