修改
This commit is contained in:
+20
-15
@@ -2,21 +2,23 @@
|
||||
<view class="home-page">
|
||||
<z-paging ref="paging" v-model="contList" @query="queryList" empty-view-text="暂无消息">
|
||||
<template #top>
|
||||
<uni-nav-bar leftText=" " :fixed="true" :border="false" leftIcon="back" @clickLeft="leftClick" color="#000000" backgroundColor="#fff" :statusBar="true" title="最新消息"></uni-nav-bar>
|
||||
<uni-nav-bar leftText=" " :fixed="true" :border="false" leftIcon="back" @clickLeft="leftClick" color="#000000" backgroundColor="#fff" :statusBar="true" title="我的信息"></uni-nav-bar>
|
||||
</template>
|
||||
<view class="msg-list">
|
||||
<view class="msg-item" v-for="item in contList" :key="item.id">
|
||||
<image class="msg-avatar" :src="item.sender_user.avatar_pull" mode="aspectFill"></image>
|
||||
<view class="msg-body">
|
||||
<view class="msg-header">
|
||||
<text class="msg-name">{{item.sender_user.nickname}}</text>
|
||||
<text class="msg-time">{{item.created_at}}</text>
|
||||
<view class="msg-cont">
|
||||
<image class="msg-avatar" :src="item.sender_user.avatar_pull" mode="aspectFill"></image>
|
||||
<view class="msg-body">
|
||||
<view class="msg-header">
|
||||
<text class="msg-name">{{item.sender_user.nickname}}</text>
|
||||
<!-- <text class="msg-time">{{item.created_at}}</text> -->
|
||||
</view>
|
||||
</view>
|
||||
<text class="msg-text">
|
||||
<text>{{ item.type==1?'点赞了': item.type==2?'收藏了':'评论了' }} </text>
|
||||
<text>{{ formatContent(item.post && item.post.content) }}</text>
|
||||
</text>
|
||||
</view>
|
||||
<view class="msg-text">
|
||||
<text>{{ formatContent(item.post && item.post.content) }}</text>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</z-paging>
|
||||
@@ -80,15 +82,18 @@
|
||||
padding: 20rpx;
|
||||
}
|
||||
.msg-item{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 24rpx 20rpx;
|
||||
margin-bottom: 20rpx;
|
||||
border-bottom: 1px solid #e4e4e4;
|
||||
background: #fff;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
.msg-cont{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.msg-avatar{
|
||||
width: 96rpx;
|
||||
height: 96rpx;
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
border-radius: 50%;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user