对话记录

This commit is contained in:
liuye
2024-06-18 09:44:35 +08:00
parent 50a70380bd
commit 54661dec73
3 changed files with 10 additions and 18 deletions

View File

@@ -12,8 +12,8 @@
<img src="https://cdn.cunwuyun.cn/wechat/biaopin/residentAssistant/service.png" alt="" class="service-img">
</div>
</div>
<div class="list-bg"></div>
<div class="list-content">
<div class="list-bg" v-if="messageList.length"></div>
<div class="list-content" v-if="messageList.length">
<div v-for="(item, index) in messageList" :key="index">
<div class="send-time">{{item.createTime.substring(5, 16)}}</div>
<div :class="item.userType == 1 ? 'item-left' : 'item-right'">
@@ -56,7 +56,7 @@
<img src="https://cdn.cunwuyun.cn/wechat/baiduAI/question-icon.png" alt="">登录
</div> -->
<button class="login-btn" open-type="getPhoneNumber" @getphonenumber="handleAdminLogin">
<button class="login-btn" open-type="getPhoneNumber" @getphonenumber="handleAdminLogin" v-if="!token">
<img src="https://cdn.cunwuyun.cn/wechat/baiduAI/question-icon.png" alt="">登录
</button>
<AiLogin ref="login"/>
@@ -119,7 +119,7 @@ export default {
this.getHistoryList()
},
methods: {
...mapActions(['autoLogin']),
...mapActions(['autoLogin', 'getUserInfo']),
startRecord() {
if(this.isFlag) return
this.isStart = true
@@ -278,8 +278,9 @@ export default {
},
handleAdminLogin({detail: {code: phoneCode}}) {
if (!this.token) {
this.autoLogin({corpId: "ww596787bb70f08288", loginWay: 'admin', phoneCode}).then(() => {
this.autoLogin({loginWay: 'admin', phoneCode}).then(() => {
this.getUserInfo()
this.getHistoryList()
})
} else this.$u.toast("已登录,无需重新登录!")
},
@@ -352,7 +353,6 @@ page {
height: 420px;
background-image: url("https://cdn.cunwuyun.cn/wechat/biaopin/residentAssistant/content-top-bg.png");
position: fixed;
top: 184px;
left: 0;
z-index: 1;
background-size: 100vw;
@@ -362,7 +362,7 @@ page {
width: 100%;
box-sizing: border-box;
background-color: #fff;
padding: 0 32px 364px;
padding: 32px 32px 364px;
.send-time {
display: block;
width: 100%;

View File

@@ -99,7 +99,6 @@
height: 420px;
background-image: url("https://cdn.cunwuyun.cn/wechat/biaopin/residentAssistant/content-top-bg.png");
position: fixed;
top: 184px;
left: 0;
z-index: 1;
background-size: 100vw;

View File

@@ -1,6 +1,6 @@
<template>
<div class="AppRecord">
<u-navbar title="Copilot小助理" title-color="#000" title-width="300" title-size="32" :title-bold="true" :background="backgroundNavbar" :is-back="false"></u-navbar>
<u-navbar title="Copilot小助理" title-color="#000" title-width="300" title-size="32" :title-bold="true" :background="backgroundNavbar" :is-back="false" :height="44"></u-navbar>
<div class="list-bg">
<div class="search-content">
<u-search v-model="searchVal" :clearabled="true" placeholder="请输入搜索关键词…" :show-action="false"
@@ -61,12 +61,7 @@ export default {
...mapState(['user', 'token']),
},
onLoad() {
if(this.token) {
this.getHistoryList()
}else {
return this.$u.toast("请在'个人中心'登录")
}
this.getHistoryList()
},
onPullDownRefresh() {
if(this.current > this.pages) {
@@ -78,7 +73,7 @@ export default {
methods: {
...mapActions(['autoLogin']),
getHistoryList() {
if(this.token) {
if(!this.token) {
return this.$u.toast("请在'个人中心'登录")
}
this.$loading()
@@ -158,7 +153,6 @@ page {
height: 420px;
background-image: url("https://cdn.cunwuyun.cn/wechat/biaopin/residentAssistant/content-top-bg.png");
position: fixed;
top: 184px;
left: 0;
z-index: 1;
background-size: 100vw;
@@ -168,7 +162,6 @@ page {
width: 100%;
box-sizing: border-box;
position: fixed;
top: 184px;
left: 0;
z-index: 99;
background: linear-gradient(to bottom, #D7EDFE, #EAF5FE);