message.wxml 2.2 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||status==2}}'>
    <view class='item_list' wx:for='{{list1}}' wx:key>
      <view class='list_left'>
        <image class='head_img' src='{{item.avatar}}' catchtap='goCenter' data-id='{{item.news_user_id}}' data-look_type='{{status}}' data-look="{{item.news_id}}"></image>
        <view>
          <view class=' user_name '>{{item.user_nickname}}</view>
          <view>
            <text wx:if='{{status==1}}'>评论了你的</text>
            <text wx:elif='{{status==2}}'>点赞了你的</text>
            <text class='list_hint'  catchtap='goDetail' data-id='{{item.list_id}}' data-news_id='{{item.news_id}}'>{{item.title}}</text>
          </view>
        </view>
      </view>
      <view class='point' wx:if='{{item.status!=1}}'></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:elif='{{status==3}}'>
    <view class='item_list' wx:for='{{list2}}' wx:key >
      <view class='list_left'>
        <view>
          <view class='user_name' style='font-weight:normal; '>
            <text>{{item.user_nickname}}您好,您发布的{{title}}审核</text>
            <text class='list_hint2'>{{item.status==1?'通过':'未通过'}}</text>
          </view>
          <view wx:if='{{item.status!=1}}'>原因:{{item.status_text}}</view>
          <view>{{item.status_time}}</view>
        </view>
      </view>
    </view>
  </block>
</view>