消息提示

This commit is contained in:
2020-08-08 16:32:37 +08:00
parent 217e8b51ed
commit 78d60bd9ac
2 changed files with 26 additions and 26 deletions

View File

@@ -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;
}
};