聊天
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<!-- 消息通知 -->
|
||||
<view class="backes">
|
||||
<view id="information">
|
||||
<view class="information_dl" v-for="(item,index) in information_dl" :key="index" >
|
||||
<view class="information_dl" v-for="(item,index) in information_dl" :key="index" @click="gochat(item)" >
|
||||
<view>
|
||||
<image :src="item.avatar"></image>
|
||||
</view>
|
||||
@@ -117,6 +117,15 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
gochat(id){
|
||||
this.$u.route({
|
||||
url:"/pageD/privateChat/privateChat",
|
||||
params:{
|
||||
id:JSON.stringify(id)
|
||||
}
|
||||
|
||||
})
|
||||
},
|
||||
onFriendListChange(onlineFriends) {
|
||||
//todo:比较垃圾的处理方式,因为Uniapp的基于MAP的双向绑定在H5端不稳定,H5端偶尔会抽风
|
||||
// 下边这一行删掉,有时候页面可以更新,有时候不行,大家有优雅的方式,也欢迎跟我们沟通
|
||||
|
||||
Reference in New Issue
Block a user