putongwenzhang.wxml 1.4 KB

<view class="nodata" wx:if="{{list.length==0}}" class="nodata">暂无数据</view>
<block wx:else>
<view class="wineblock" wx:for="{{list}}" wx:key='' bindtap="detail" data-id="{{item.id}}">
 
  <view class="winetitle">{{item.title}}</view>

  <view class="wineimg">
    <image src="{{item.thumb}}"></image>
  </view>

  <view class="winebottom">
    <view class="winebottomleft">
      <view class="winebottomleftimg">
        <image src="{{item.avatar}}"></image>
      </view>
      <view class="wineeng">{{item.name}}</view>
    </view>
    <view class="winebottonright">

      <view class="winerighttou">
        <view class="winerighttouimg" catchtap="dianzan" data-id="{{item.id}}">
          <image src="{{url}}aicon_47x.png" wx:if="{{item.is_good==0}}"></image>
          <image src="{{url}}aicon_46x.png" wx:else></image>
        </view>
        <view class="winezan">{{item.good_count}}</view>
      </view>
      <view class="winerighttou" catchtap='ping' data-id="{{item.id}}">
        <view class="winerighttouimg">
          <image src="{{url}}aicon_67x.png"></image>
        </view>
        <view class="winezan">{{item.comment_count}}</view>
      </view>

      <view class="winerighttou">
        <view class="winerighttouimg">
          <image src="{{url}}aicon_68x.png"></image>
          <button class="lj_share" catchtap="buildshare" open-type='share' data-id="{{item.id}}"   ></button>
        </view>

      </view>
    </view>

  </view>

</view>
</block>