2021-03-22 04:01:19 +00:00
|
|
|
<view class="page" data-weui-theme="{{theme}}">
|
2021-03-31 18:15:01 +00:00
|
|
|
<view class="page__hd" wx:if="{{!showMessage}}">
|
2021-03-22 04:01:19 +00:00
|
|
|
<view class="page__title">收到的消息</view>
|
|
|
|
<view class="page__desc">一些发给我的消息</view>
|
2021-03-31 18:15:01 +00:00
|
|
|
</view>
|
|
|
|
<view class="page__hd" wx:else>
|
|
|
|
<view class="page__title">{{messagesInfo[showIndex].title}}</view>
|
|
|
|
<view class="page__desc">{{messagesInfo[showIndex].creatorRealName}} {{messagesInfo[showIndex].creationTime}}</view>
|
2021-03-22 04:01:19 +00:00
|
|
|
</view>
|
2021-03-31 18:15:01 +00:00
|
|
|
<view class="page__bd" wx:if="{{!showMessage}}" >
|
2021-03-22 04:01:19 +00:00
|
|
|
<view class="weui-panel">
|
|
|
|
<view class="weui-panel__hd">消息列表</view>
|
2021-03-31 18:15:01 +00:00
|
|
|
<view class="weui-panel__bd" wx:for="{{messagesInfo}}" wx:key="index" bindtap="onClickMessage" data-index="{{index}}">
|
2021-03-22 04:01:19 +00:00
|
|
|
<view class="weui-media-box weui-media-box_text">
|
2021-03-31 18:15:01 +00:00
|
|
|
<h4 class="weui-media-box__title">{{item.title}}</h4>
|
|
|
|
<view class="weui-media-box__desc">{{item.context}}</view>
|
2021-03-22 04:01:19 +00:00
|
|
|
<view class="weui-media-box__info">
|
2021-03-31 18:15:01 +00:00
|
|
|
<view class="weui-media-box__info__meta">日期 {{item.creationTime}}</view>
|
|
|
|
<view class="weui-media-box__info__meta">发送人 {{item.creatorRealName}}</view>
|
|
|
|
<view class="weui-media-box__info__meta weui-media-box__info__meta_extra">状态 {{item.read ? "已读" : "未读"}}</view>
|
2021-03-22 04:01:19 +00:00
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
2021-03-31 18:15:01 +00:00
|
|
|
</view>
|
|
|
|
<view wx:else>
|
|
|
|
<view class="page__bd">
|
|
|
|
<view class="weui-article">
|
|
|
|
<view class="weui-article__section">
|
|
|
|
<view class="weui-article__section">
|
|
|
|
<view class="weui-article__p">
|
|
|
|
{{messagesInfo[showIndex].context}}
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<a class="weui-btn weui-btn_primary" bindtap="onClickMarkMessage" wx:if="{{!messagesInfo[showIndex].read}}">设置已读</a>
|
|
|
|
<a class="weui-btn weui-btn_disabled weui-btn_default" bindtap="showMessagesList">返回列表</a>
|
|
|
|
</view>
|
|
|
|
</view>
|
2021-03-22 04:01:19 +00:00
|
|
|
</view>
|
|
|
|
|