message.wxml 1.7 KB
<!--pages/index/message/message.wxml-->
<view class='banner_box'>
  <view class="label {{status==1?'active':''}}" bindtap='readState' data-status='1'>评论消息</view>
  <view class="label {{status==2?'active':''}}" bindtap='readState' data-status='2'>点赞消息</view>
  <view class="label {{status ==3?'active':''}}" bindtap='readState' data-status='3'>审核消息</view>
</view>
<view class='content_box'>
  <block wx:if='{{status==1}}'>
    <view class='item_list'>
      <view class='list_left'>
        <image class='head_img' src='/images/img3.png'></image>
        <view>
          <view class='user_name'>Rose | ローズ</view>
          <view>
            <text>评论了你的</text>
            <text class='list_hint'>今日打卡</text>
          </view>
        </view>
      </view>
      <view class='point'></view>
    </view>
  </block>
  <block wx:if='{{status==2}}'>
    <view class='item_list'>
      <view class='list_left'>
        <image class='head_img' src='/images/img3.png'></image>
        <view>
          <view class='user_name'>Rose | ローズ</view>
          <view>
            <text>评论了你的</text>
            <text class='list_hint'>今日打卡</text>
          </view>
        </view>
      </view>
      <view class='point'></view>
    </view>
  </block>
  <block wx:if='{{status==3}}'>
    <view class='item_list'>
      <view class='list_left'>
        <view>
          <view class='user_name' style='font-weight:normal;'>
            <text>Rose | ローズ您好,您发布的今日打卡审核</text>
            <text class='list_hint2'>未通过</text>
          </view>
          <view>原因:发布内容有歧义</view>
          <view>2018-11-22 14:00</view>
        </view>
      </view>
    </view>
  </block>
</view>