对话记录
This commit is contained in:
@@ -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%;
|
||||
|
||||
Reference in New Issue
Block a user