pinglun.wxml 1.9 KB
<view class="pinglunlist" hidden='{{!noData}}'>
  <view class='top_eidt'>
    我的评论
    <text class='action' bindtap='edit'>{{edit?'取消':'编辑'}}</text>
  </view>
  <view class='comment_list {{edit?"del":""}}'>
    <view class="pinglunitem" wx:for='{{list}}' wx:key=''>
      <view class="pinglunitemleft">
        <view class="leftimg">
          <image src="{{item.avatar}}"></image>
        </view>
        <view class="pinglunright">
          <view class="righttop">{{item.user_nickname}}</view>
          <view class="rightbottom">{{item.create_time}}</view>
        </view>
        <view class='eidt {{item.checked?"choose":""}}' bindtap='choose' id='{{index}}' data-chooseId = '{{item.id}}' wx:if='{{edit}}'>
          <image src='/img/pinglun_xz.png'></image>
        </view>
      </view>
      <view class="pinglunmiddle">
        {{item.content}}
      </view>
      <view class="pinglunbottom">
        <view class="pingbottomleft">
          <image src="{{item.article.video_image}}" wx:if="{{item.type==2}}"></image>
          <image src="{{item.article.thumb}}" wx:else></image>
        </view>
        <view class='pingbottomright'>
          <view class='xinxi'>{{item.article.title}}</view>
          <view class="biangjiubottom">
            <view class='rightbottomimg'>
              <image src='{{item.article.avatar}}'></image>
            </view>
            <text class="niangjiutext">{{item.article.name}}</text>
          </view>
        </view>
      </view>
    </view>
    <!-- <view class='showall' wx:if='{{noMore&&noData}}'>已显示全部内容</view> -->
  </view>
</view>
<view class="btnbottom" wx:if='{{edit}}'>
  <view class="btnleft" bindtap='clearComment'>一键清空</view>
  <view class="btnright" bindtap='delChoose'>删除({{delId.length||'0'}})</view>
</view>

<view class="nodataimg" wx:if='{{!noData}}'>
<image src="/img/wushuju.png"></image>
</view>
<!-- <view class='noData' wx:if='{{!noData}}'>
  暂无相关数据
</view> -->