pinglun.wxml 1.5 KB
<view class="pinglunlist" hidden='{{noData}}'>
  <view class='top_eidt'>
    我的评论
    <text class='action' bindtap='edit'>{{edit?'取消':'编辑'}}</text>
  </view>
  <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}}' 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.thumb}}"></image>
      </view>
      <view class='pingbottomright'>
        <view class='xinxi'>{{item.article.title}}</view>
        <view class="biangjiubottom">
          <view class='rightbottomimg'>
            <image src='{{item.article.logo}}'></image>
          </view>
          <text class="niangjiutext">{{item.article.name}}</text>
        </view>
      </view>
    </view>
  </view>
  <view class='showall' wx:if='{{noMore&&noData}}'>已显示全部内容</view>
</view>


<view class="btnbottom" wx:if='{{edit}}'>
  <view class="btnleft">一键清空</view>
  <view class="btnright">删除(1)</view>
</view>

<view class='noData' wx:if='{{!noData}}'>
  暂无相关数据
</view>