<!--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}}" wx:if="{{index%2==0}}" />
		</block>
	</view>
	<view class="right">
		<block wx:for="{{imageData}}" wx:key="">
			<template is="water-list" data="{{...item}}" wx:if="{{index%2==1}}" />
		</block>
	</view>
</view>
<template name="water-list">
	<view class="item" data-current-type="{{currentType}}">
		<!--		<view class="no-audited" wx:if="{{currentType != 2}}">
			{{currentType == 1 ? '待审核' : (currentType == 3 ? '已驳回' : '已通过')}}
		</view>-->
		<image
		 class="item-img"
		 src="{{url}}"
		 data-id="{{id}}"
		 mode="widthFix"
		 bindload="imageLoad"
		 bindtap="gotoDetail"
		/>
		<view class="item-title-box" data-id="{{id}}" bindtap="gotoDetail">
			<text class="item-title">{{name}}</text>
		</view>

		<view class="pro-price-wrap">
			<view class="pro-plus-price">
				<text>￥</text>
				<text class="plus-price">{{memberPrice ? utils.numberFormat(memberPrice / 100) : utils.numberFormat(minSalePrice / 100)}}</text>
				<image wx:if="{{memberPrice}}" mode="widthFix" src="/assets/imgs/7_1_0/member-icon.png" />
			</view>
			<view class="pro-member-price" wx:if="{{plusPrice}}">
				<text>￥</text>
				<text class="member-price">{{utils.numberFormat(plusPrice / 100)}}</text>
				<image mode="widthFix" src="/assets/imgs/7_1_0/plus-sm.png" />
			</view>
		</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="{{headline}}"
			 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>
</template>

