对话记录
This commit is contained in:
@@ -12,8 +12,8 @@
|
|||||||
<img src="https://cdn.cunwuyun.cn/wechat/biaopin/residentAssistant/service.png" alt="" class="service-img">
|
<img src="https://cdn.cunwuyun.cn/wechat/biaopin/residentAssistant/service.png" alt="" class="service-img">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="list-bg"></div>
|
<div class="list-bg" v-if="messageList.length"></div>
|
||||||
<div class="list-content">
|
<div class="list-content" v-if="messageList.length">
|
||||||
<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>
|
||||||
<div :class="item.userType == 1 ? 'item-left' : 'item-right'">
|
<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="">登录
|
<img src="https://cdn.cunwuyun.cn/wechat/baiduAI/question-icon.png" alt="">登录
|
||||||
</div> -->
|
</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="">登录
|
<img src="https://cdn.cunwuyun.cn/wechat/baiduAI/question-icon.png" alt="">登录
|
||||||
</button>
|
</button>
|
||||||
<AiLogin ref="login"/>
|
<AiLogin ref="login"/>
|
||||||
@@ -119,7 +119,7 @@ export default {
|
|||||||
this.getHistoryList()
|
this.getHistoryList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions(['autoLogin']),
|
...mapActions(['autoLogin', 'getUserInfo']),
|
||||||
startRecord() {
|
startRecord() {
|
||||||
if(this.isFlag) return
|
if(this.isFlag) return
|
||||||
this.isStart = true
|
this.isStart = true
|
||||||
@@ -278,8 +278,9 @@ export default {
|
|||||||
},
|
},
|
||||||
handleAdminLogin({detail: {code: phoneCode}}) {
|
handleAdminLogin({detail: {code: phoneCode}}) {
|
||||||
if (!this.token) {
|
if (!this.token) {
|
||||||
this.autoLogin({corpId: "ww596787bb70f08288", loginWay: 'admin', phoneCode}).then(() => {
|
this.autoLogin({loginWay: 'admin', phoneCode}).then(() => {
|
||||||
this.getUserInfo()
|
this.getUserInfo()
|
||||||
|
this.getHistoryList()
|
||||||
})
|
})
|
||||||
} else this.$u.toast("已登录,无需重新登录!")
|
} else this.$u.toast("已登录,无需重新登录!")
|
||||||
},
|
},
|
||||||
@@ -352,7 +353,6 @@ page {
|
|||||||
height: 420px;
|
height: 420px;
|
||||||
background-image: url("https://cdn.cunwuyun.cn/wechat/biaopin/residentAssistant/content-top-bg.png");
|
background-image: url("https://cdn.cunwuyun.cn/wechat/biaopin/residentAssistant/content-top-bg.png");
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 184px;
|
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
background-size: 100vw;
|
background-size: 100vw;
|
||||||
@@ -362,7 +362,7 @@ page {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
padding: 0 32px 364px;
|
padding: 32px 32px 364px;
|
||||||
.send-time {
|
.send-time {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@@ -99,7 +99,6 @@
|
|||||||
height: 420px;
|
height: 420px;
|
||||||
background-image: url("https://cdn.cunwuyun.cn/wechat/biaopin/residentAssistant/content-top-bg.png");
|
background-image: url("https://cdn.cunwuyun.cn/wechat/biaopin/residentAssistant/content-top-bg.png");
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 184px;
|
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
background-size: 100vw;
|
background-size: 100vw;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="AppRecord">
|
<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="list-bg">
|
||||||
<div class="search-content">
|
<div class="search-content">
|
||||||
<u-search v-model="searchVal" :clearabled="true" placeholder="请输入搜索关键词…" :show-action="false"
|
<u-search v-model="searchVal" :clearabled="true" placeholder="请输入搜索关键词…" :show-action="false"
|
||||||
@@ -61,12 +61,7 @@ export default {
|
|||||||
...mapState(['user', 'token']),
|
...mapState(['user', 'token']),
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
if(this.token) {
|
|
||||||
this.getHistoryList()
|
this.getHistoryList()
|
||||||
}else {
|
|
||||||
return this.$u.toast("请在'个人中心'登录")
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
},
|
||||||
onPullDownRefresh() {
|
onPullDownRefresh() {
|
||||||
if(this.current > this.pages) {
|
if(this.current > this.pages) {
|
||||||
@@ -78,7 +73,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
...mapActions(['autoLogin']),
|
...mapActions(['autoLogin']),
|
||||||
getHistoryList() {
|
getHistoryList() {
|
||||||
if(this.token) {
|
if(!this.token) {
|
||||||
return this.$u.toast("请在'个人中心'登录")
|
return this.$u.toast("请在'个人中心'登录")
|
||||||
}
|
}
|
||||||
this.$loading()
|
this.$loading()
|
||||||
@@ -158,7 +153,6 @@ page {
|
|||||||
height: 420px;
|
height: 420px;
|
||||||
background-image: url("https://cdn.cunwuyun.cn/wechat/biaopin/residentAssistant/content-top-bg.png");
|
background-image: url("https://cdn.cunwuyun.cn/wechat/biaopin/residentAssistant/content-top-bg.png");
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 184px;
|
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
background-size: 100vw;
|
background-size: 100vw;
|
||||||
@@ -168,7 +162,6 @@ page {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 184px;
|
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: 99;
|
z-index: 99;
|
||||||
background: linear-gradient(to bottom, #D7EDFE, #EAF5FE);
|
background: linear-gradient(to bottom, #D7EDFE, #EAF5FE);
|
||||||
|
|||||||
Reference in New Issue
Block a user