You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
2.8 KiB
49 lines
2.8 KiB
<!--pages/message/index.wxml-->
|
|
<wxs module="cloud" src="./index.wxs"></wxs>
|
|
<cu-custom bgColor="bg-white" isBack="{{false}}">
|
|
<view slot="content" style="color:black;font-size:18px">消息</view>
|
|
</cu-custom>
|
|
|
|
<refresh-view refreshing="false" refreshed="{{!requesting}}" bind:refresh="onRefresh">
|
|
<view class="flex flex-column flex-center" wx:if="{{loading}}" style="height:{{height}}rpx">
|
|
<view class="load-spinner text-gray" />
|
|
<view class="text-empty" style="margin-top:48rpx">加载中...</view>
|
|
</view>
|
|
<view class="flex list-empty" wx:elif="{{!messageList.length}}" style="height:{{height}}rpx">
|
|
<image class="img-empty" src="/assets/image/list_empty.png"></image>
|
|
<view class="text-empty">暂无消息</view>
|
|
</view>
|
|
<scroll-view scroll-y style="height:{{height}}rpx" bindscrolltolower="fetchMessageList" wx:else>
|
|
<view wx:for-item="pageItem" wx:for-index="pageIndex" wx:for="{{messageList}}" wx:key="pageIndex" style="margin-top:{{pageIndex==0?16:0}}rpx">
|
|
<view wx:for-item="item" wx:for="{{pageItem}}" wx:key="index">
|
|
<view class="text-df text-grey time-tip" wx:if="{{item.tipsTime}}">{{item.tipsTime}}</view>
|
|
<view class="message-item" style="padding:30rpx">
|
|
<view class="flex flex-justify">
|
|
<view>
|
|
<view class="text-lg text-black" style="margin-bottom:6rpx">{{cloud.mssageTitle(item.type)}}</view>
|
|
<view class="text-sm text-grey">{{cloud.formatDate(item.createTime)}}</view>
|
|
</view>
|
|
<view class="flex flex-center" data-index="{{index}}" bindtap="lookMessage">
|
|
<text class="text-df text-black">查看详情</text>
|
|
<text class="cuIcon-right text-black" style="margin-left:8rpx;font-size:30rpx;padding-top:6rpx"></text>
|
|
</view>
|
|
</view>
|
|
<view style="width:100%;height:1px;background-color:#f3f3f3;margin-top:18rpx"></view>
|
|
<view class="text-sg text-black" style="margin-top:18rpx">{{item.content}}</view>
|
|
<view class="flex" style="margin-top:12rpx">
|
|
<text class="text-df text-grey">消息状态:</text>
|
|
<text class="text-df text-red" wx:if="{{item.readStatus==0}}" style="margin-left:8rpx">未读</text>
|
|
<text class="text-df text-black" wx:else style="margin-left:8rpx">已读</text>
|
|
</view>
|
|
<!-- <view style="width:100%;height:1px;background-color:#f3f3f3;margin-top:8px"></view>
|
|
<view class="text-df text-black" style="margin-top:8px">发送单位:XXXXXXXXXXXXXX</view> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="flex flex-center" style="height:80rpx;padding-bottom:18rpx">
|
|
<text class="icon--refresher" wx:if="{{!finished}}"></text>
|
|
<text class="text-sg" style="margin-left:8rpx">{{finished?'已经全部加载':'加载中...'}}</text>
|
|
</view>
|
|
|
|
</scroll-view>
|
|
</refresh-view>
|