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

View File

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

View File

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

View File

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