小助理

This commit is contained in:
liuye
2024-07-16 09:47:30 +08:00
parent 77216cbc13
commit 1a67e725af
4 changed files with 37 additions and 20 deletions

View File

@@ -140,7 +140,6 @@ export default {
},
onShow() {
this.getAiTypeList()
this.getHistoryList()
},
onPullDownRefresh() {
if(this.current > this.pages) {
@@ -320,7 +319,7 @@ export default {
if (!this.token) {
this.autoLogin({loginWay: 'admin', phoneCode}).then(() => {
this.getUserInfo()
this.getHistoryList()
this.getAiTypeList()
this.$u.toast('登录成功')
})
}

View File

@@ -9,7 +9,7 @@
</u-search>
</div>
</div>
<div class="list-content" >
<div class="list-content" :style="{'top': `${statusBarHeight+110}px`}">
<div class="item" v-for="(item, index) in messageList" :key="index">
<p class="item-text">{{item.content}}</p>
<div class="time-flex">
@@ -115,7 +115,7 @@ export default {
del(e) {
this.$dialog.confirm({content: "确定删除该数据?"}).then(() => {
uni.showLoading()
this.$instance.post(`appaicopilotinfo/deleteConversation?conversationId=${e.conversationId}`).then((res) => {
this.$instance.post(`/app/appaicopilotinfo/deleteConversation?conversationId=${e.conversationId}`).then((res) => {
if (res.code == 0) {
this.$u.toast('删除成功!')
this.getSearchList()
@@ -159,7 +159,7 @@ page {
.list-content {
width: 100%;
box-sizing: border-box;
padding: 144px 32px 32px;
padding: 0 32px 32px;
position: absolute;
left: 0;
z-index: 2;

View File

@@ -6,7 +6,7 @@
<img src="https://cdn.sinoecare.com/i/2024/07/12/6690a1303d423.png" alt="">
</div>
<div class="statistics-content" v-if="currentTabBar == 0">
<div class="top-tabs">
<div class="top-tabs" :style="{'top': `${statusBarHeight+50}px`}">
<u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#fff" inactive-color="#222"
active-color="#1D2229" :bar-style="barStyle" font-size="34" @change="change"></u-tabs>
</div>
@@ -514,15 +514,40 @@ uni-page-body {
z-index: -1;
}
}
.header-content-bg {
width: 100%;
position: relative;
img {
width: 100%;
height: 592px;
position: absolute;
z-index: -1;
}
}
.top-tabs {
width: calc(100% - 64px);
box-sizing: border-box;
position: fixed;
left: 32px;
}
::v-deep .u-tabs {
border-bottom: 1px solid #eee;
border-top-left-radius: 16px;
border-top-right-radius: 16px;
}
.statistics-content {
padding-bottom: 216px;
.top-tabs {
padding: 32px;
box-sizing: border-box;
::v-deep .u-tabs {
border-radius: 16px;
}
}
// .top-tabs {
// padding: 32px;
// box-sizing: border-box;
// ::v-deep .u-tabs {
// border-radius: 16px;
// }
// }
.statistics-chart {
padding: 0 32px;
.statistics-num {

View File

@@ -268,13 +268,6 @@ export default {
z-index: -1;
}
}
.top-fixed {
width: 100%;
position: fixed;
left: 32px;
z-index: 999;
}
.top-tabs {
width: calc(100% - 64px);