<view class='page-want-buy'>
	<view class="swiper-tab {{categoryList.length > 5 ? 'categoryList' : ''}}">
		<view
		 class="swiper-tab-item {{currentTab==item.id ? 'active' : ''}} "
		 data-current="{{item.id}}"
		 bindtap="clickTab"
		 wx:for="{{categoryList}}"
		 wx:key="{{index}}"
		>
			{{item.name}}
			<view class="line" wx-if="{{currentTab==item.id}}" />
		</view>
	</view>
	<scroll-view scroll-y>
		<view class="main-content" wx:if="{{contentList.length > 0}}">
			<water-flow-layout
			 type="1"
			 image-data="{{contentList}}"
			 bind:updataLike="gotoLike"
			 bind:_onTapShare="_onTapShare"
			/>
		</view>
		<view class="empty" wx:if="{{!contentList || contentList.length < 1}}">
			暂无内容哦~
		</view>
	</scroll-view>
</view>
<button
 wx:if="{{!currentHasUserInfo}}"
 bindgetuserinfo="_getUserInfo"
 data-jflag="false"
 open-type='getUserInfo'
 hover-class="btn-hover"
>
	<view class="add">+</view>
</button>

<view wx:if="{{currentHasUserInfo}}">
	<block wx:if="{{contentPermission}}">
		<navigator open-type="navigate" url="/subPackage/page/pages/grassCommunity/grassCommunity">
			<view class="add">+</view>
		</navigator>
	</block>
</view>
<card-modal
 show-card-modal="{{showCardModal}}"
 card-title="{{cardTitle}}"
 card-url="{{cardUrl}}"
 page-path="{{pagePath}}"
/>

<!--goHome-->
<go-home/>

