消息提示
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
<template>
|
||||
<!-- login页面 -->
|
||||
<view>
|
||||
<view :style="{'height':swiperHeight + 'px'}">
|
||||
<!-- <view class="border_serach">
|
||||
<view class="u-search">
|
||||
<u-search :show-action="false" input-align="left" shape="round" placeholder="搜索" v-model="keyword"></u-search>
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- 消息列表 -->
|
||||
<u-empty text="并没有什么消息" mode="message" v-if="Object.keys(list).length == 0" style="margin: auto"></u-empty>
|
||||
<view class="massage_list" v-for="(item,index) in list" :key="index" @click="gochat(item)">
|
||||
<view class="images">
|
||||
<image :src="item.avatar" ></image>
|
||||
@@ -50,11 +51,12 @@
|
||||
},
|
||||
},
|
||||
onShow(){
|
||||
this.list = this.imService.friends;
|
||||
// this.list = this.imService.friends;
|
||||
this.imService.onFriendListChange=this.onFriendListChange;
|
||||
},
|
||||
onLoad(){
|
||||
|
||||
const res = uni.getSystemInfoSync();
|
||||
this.swiperHeight = res.windowHeight;
|
||||
this.list = this.imService.friends;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user