<!--component/waterFlowLayout/waterFlowLayout.wxml-->
<wxs src="../../wxs/utils.wxs" module="utils" />

<view class="water-wrap {{type == 2 ? 'release-water' : ''}}">
	<view class="left">
		<block wx:for="{{imageData}}" wx:key="">
			<template is="water-list" data="{{...item,urlBase}}" wx:if="{{index%2==0}}" />
		</block>
	</view>
	<view class="right">
		<block wx:for="{{imageData}}" wx:key="">
			<template is="water-list" data="{{...item, urlBase}}" wx:if="{{index%2==1}}" />
		</block>
	</view>
</view>
<template name="water-list">
	<view
	 class="item"
	 data-current-type="{{currentType}}"
	 data-id="{{id}}"
	 bindtap="gotoDetail"
	>
		<view class="no-audited" wx:if="{{currentType != 2}}">
			{{currentType == 1 ? '待审核' : (currentType == 3 ? '已驳回' : '已通过')}}
		</view>
		<image
		 class="item-img"
		 src="{{utils.formateUrl(url,urlBase)}}"
		 data-id="{{id}}"
		 mode="widthFix"
		 bindload="imageLoad"
		 bindtap="gotoDetail"
		/>
		<view class="item-title-box">
			<view class="item-title">{{headline}}</view>
		</view>
		<view/>
		<!-- 未登錄時 -->
		<!-- <view class="share-wrap" wx:if="{{!userIsLogin}}">
      <button wx:if="{{!userIsLogin}}"
        bindgetuserinfo="_getUserInfo"
        open-type='getUserInfo' class="clear-btn">
        <view class="share-oprate" catchtap="onTapLike">
          <image class="share-img" src="{{contentInfo.type ? '/assets/imgs/heart-primary.png'  : '/assets/imgs/heart-default.png'}}" />
          <text class="share-number">{{enjoySum || 0}}</text>
        </view>
      </button>

      <button wx:if="{{!userIsLogin}}"
        bindgetuserinfo="_getUserInfo" 
        open-type='getUserInfo' class="clear-btn">
        <view class="share-oprate" catchtap="onTapShare">
          <image class="share-img" src="/assets/imgs/share.png" />
          <text class="share-number">{{transmitSum || 0}}</text>
        </view>
      </button>
    </view> -->

		<view class="share-wrap">
			<view
			 class="share-oprate"
			 catchtap="onTapLike"
			 data-id="{{id}}"
			 data-type="{{type}}"
			 data-current-type="{{currentType}}"
			>
				<image class="share-img" src="{{type ? '/assets/imgs/heart-primary.png'  : '/assets/imgs/heart-default.png'}}" />
				<text class="share-number">{{enjoySum || 0}}</text>
			</view>
			<view
			 class="share-oprate"
			 catchtap="onTapShare"
			 data-title="{{explain}}"
			 data-url="{{url}}"
			 data-headline="{{headline}}"
			 data-describe="{{describe}}"
			 data-id="{{id}}"
			 data-current-type="{{currentType}}"
			>
				<image class="share-img" src="/assets/imgs/share.png" />
				<text class="share-number">{{transmitSum || 0}}</text>
			</view>
		</view>
		<!-- 标签 -->
		<view class="tabs-list {{tagsName ? 'tags-list' : ''}}" wx:if="{{tagsName}}">
			<image class="lock-image" src="/assets/imgs/7_1_0/lock.png" />
			<view class="tab-item">
				<image class="tab-image" src="/assets/imgs/7_1_0/tab.png" />
				<text class="tab-text">{{tagsName}}</text>
			</view>
		</view>
	</view>
</template>

