noticeItem.wxml
684 Bytes
<view class="notice-item">
<block wx:for="{{ itemSchema[type][data.reminderType] }}"
wx:for-item="schema"
wx:key="field">
<block wx:if="{{ data.reminderType }}">
<view class="title" wx:if="{{ schema.isTitle }}">
<view class="label {{ data.status === 1 ? '':'no-read' }}">
{{ schema.label }}
</view>
<view class="tips">
查看详情>
</view>
</view>
<view class="label-item" wx:else>
<view class="label {{ schema.colon ? 'colon' : '' }}">
{{ schema.label }}
</view>
<view class="value">
{{ schema.beforeText }}{{ data[schema.field] }}{{ schema.afterText }}
</view>
</view>
</block>
</block>
</view>