|
@@ -11,7 +11,8 @@
|
|
|
{{item.time}}
|
|
|
</view>
|
|
|
<view class="msg-m msg-left" v-if="item.speaker != user._id">
|
|
|
- <image class="user-img" :src="config.logo_url&&config.logo_url.length>0?config.logo_url[0].url:''">
|
|
|
+ <image class="user-img"
|
|
|
+ :src="config.logo_url&&config.logo_url.length>0?config.logo_url[0].url:''">
|
|
|
</image>
|
|
|
<!-- 文字 -->
|
|
|
<view class="message" v-if="item.msg_type =='0'">
|
|
@@ -35,7 +36,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="problem" v-if="problemList.length>0">
|
|
|
+ <view class="problem" v-if="problemList.length>0" id="msg123456789">
|
|
|
<view class="list" v-for="(item,index) in problemList" :key="index" @tap="toProblem(item)">
|
|
|
<text>{{item.question}}</text>
|
|
|
<text class="iconfont icon-dayuhao"></text>
|
|
@@ -151,6 +152,8 @@
|
|
|
title: arr.errmsg,
|
|
|
});
|
|
|
}
|
|
|
+ // 跳转到最后一条数据 与前面的:id进行对照
|
|
|
+ that.goBottom();
|
|
|
},
|
|
|
// 进行图片的预览
|
|
|
previewImg(e) {
|
|
@@ -237,10 +240,9 @@
|
|
|
// 滚动到底部
|
|
|
async goBottom() {
|
|
|
const that = this;
|
|
|
- that.scrollToView = '';
|
|
|
- let lastItem = that.msgList.at(-1);
|
|
|
+ that.scrollToView = ""
|
|
|
that.$nextTick(function() {
|
|
|
- that.scrollToView = 'msg' + (lastItem._id)
|
|
|
+ that.scrollToView = 'msg123456789'
|
|
|
})
|
|
|
},
|
|
|
// 下拉刷新分页
|