<!--pages/messageCenter/index.wxml-->
|
<common-page>
|
<view class="messageCenter">
|
<view class="messageCenter-tabs">
|
<van-tabs active="{{ search.readStatus }}" bind:change="handleChangeTab" line-width="54rpx" nav-class="tab-nav-class" tab-active-class="tab-active-class">
|
<van-tab name="{{item.name}}" title="{{item.title}}" wx:for="{{ tab }}" wx:key="index" />
|
</van-tabs>
|
</view>
|
<van-empty description="暂无数据" wx:if="{{ total === 0 }}" />
|
<view class="messageCenter-scroll" wx:else>
|
<scroll-view bindscrolltolower="handlescrolltolower" scroll-y="true" style="height: 100%;">
|
<view bind:tap="handleOpenPopup" class="msg-item {{ listData.length - 1 === index ? 'msg-item-last' : '' }} {{ item.readStatus === '2' ? 'msg-item-read' : '' }}" data-item="{{ item }}" data-index="{{ index }}" wx:for="{{ listData }}" wx:key="index">
|
<van-icon name="{{ imgUrl }}msg-{{ item.noticeType === '1' ? 'tongZhi' : 'gongGao' }}.png" size="44" />
|
<view class="msg-item-content">
|
<view class="msg-item-content-header">
|
<view class="msg-item-content-title">{{item.noticeType === '1' ? '系统通知' : '平台公告'}}</view>
|
<view class="msg-item-content-time">
|
<time-format fromtype="messageCenter" value="{{item.createTime}}" />
|
</view>
|
</view>
|
<view class="msg-item-content-text">{{item.content || '无'}}</view>
|
</view>
|
</view>
|
<block>
|
<van-divider contentPosition="center" wx:if="{{ listData.length >= total && dalistDatata.length !== 0 }}">已加载全部数据</van-divider>
|
<view style="text-align: center;" wx:if="{{ loading }}">
|
<van-loading type="spinner" />
|
</view>
|
</block>
|
</scroll-view>
|
</view>
|
<view class="safeHeight" />
|
</view>
|
</common-page>
|
|
<!-- 消息提示弹窗查看 -->
|
<van-popup bind:close="handleClosePopup" closeable position="bottom" round show="{{ popup.show }}" title="消息详情" zIndex="999">
|
<view class="popup">
|
<view class="popup-header">
|
<van-icon name="{{ imgUrl }}msg-{{ popup.noticeType === '1' ? 'tongZhi' : 'gongGao' }}.png" size="44" />
|
<view class="popup-header-content">
|
<view class="popup-header-content-title">{{popup.noticeType === '1' ? '系统通知' : '平台公告'}}</view>
|
<view class="popup-header-content-text">
|
<time-format fromtype="messageCenter" value="{{popup.createTime}}" />
|
</view>
|
</view>
|
</view>
|
<view class="popup-content">{{popup.content || '无'}}</view>
|
</view>
|
<view class="popup-button">
|
<van-button bind:click="handleClickPopup" block type="primary">{{ popup.buttonText }}</van-button>
|
</view>
|
</van-popup>
|