<view class="microhomepage">
	<view class="header">
		<view class="header_content">
			<view class="header_left">
				<image src="{{homepageData.avatar}}" mode='widthFix' />
			</view>
			<view class="headet_right">
				<view class="headet_right_top">
					<view class="name">{{homepageData.nickname}}</view>
					<view wx:if="{{homepageData.is_own!=1}}" class="attention" catchtap="attentionBtn">{{homepageData.is_follow?'已关注':'+关注'}}</view>
				</view>
				<view class="bottom"  wx:if="{{homepageData.is_own==1}}"  catchtap="introductionInp">
					<block wx:if="{{homepageData.signature}}"> {{homepageData.signature}}</block>
					<block wx:else>
						<view class="b_left">个性签名</view>
						<view class="b_right">
							<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/home_autograph@2x.png" mode='widthFix' />
						</view>
					</block>
				</view>
				<view class="headet_right_bottom"  wx:if="{{homepageData.is_own!=1}}" >{{homepageData.signature?homepageData.signature:''}}</view>
			</view>
		</view>
	</view>
	<view class="display_page">
		<view class="page_nav">
			<view class="ul">
				<view class="li" catchtap="gotoFanList" data-actived="0">
					<view class="left">关注</view>
					<view class="right">{{homepageData.follow_num}}</view>
				</view>
				<view class="li" catchtap="gotoFanList" data-actived="1">
					<view class="left">粉丝</view>
					<view class="right">{{homepageData.fans_num}}</view>
				</view>
				<view class="li">
					<view class="left">获赞</view>
					<view class="right">{{homepageData.harvest_num}}</view>
				</view>
			</view>
		</view>
		<view class="page_nav_content"  wx:if="{{homepageData.is_own!=1}}" >
			<view class="ul nav_label">
				<view class="li">全部帖子({{homepageData.trick_num}})</view>
			</view>
			<view class="video_list">
				<view class="ul">
					<view class="li" wx:for="{{catelist}}" data-stickid="{{item.has_many_image[0].stick_id}}" catchtap="jumpDetails" wx:key="index">
						<view class="top">
							<image src="{{item.has_many_image[0].url}}" mode='widthFix' />
						</view>
						<view class="bottom">
							<view class="title">{{item.title}}</view>
							<view class="content">
								<view class="headmessage">
									<view class="left">
										<image src="{{item.has_one_stick_user.avatar}}" mode='widthFix' />
									</view>
									<view class="name">{{item.has_one_stick_user.nickname}}</view>
								</view>
								<view class="thumbup">
									<view class="right">
										<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/detail_praise@2x.png" mode='widthFix' />
									</view>
									<view class="num">{{item.praise_num}}</view>
								</view>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<van-tabs active="{{active}}"  wx:if="{{homepageData.is_own == 1}}" bind:change="getClassificationBtn">
			<van-tab title="{{'帖子('+ (homepageData.review_true_num || 0) +')'}}">
				<Waterfalls_flow goodsData="{{catelist_1}}" handleTag='{{handleTag}}' wx:if="{{active==0}}"></Waterfalls_flow>
				<!-- <view wx:if="{{catelist_1.length <= 0}}" class="blank">
					<image  src='https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/blank.png' mode='widthFix' />
				</view> -->
			</van-tab>
			<van-tab title="{{'未审核帖子('+(homepageData.review_false_num || 0)+')'}}">
				<Waterfalls_flow goodsData="{{catelist_3}}" handleTag='{{handleTag}}' notap="{{true}}" wx:if="{{active==1}}"></Waterfalls_flow>
				<!-- <view wx:if="{{catelist_3.length <= 0}}" class="blank">
					<image  src='https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/blank.png' mode='widthFix' />
				</view> -->
			</van-tab>
			<van-tab title="{{'赞过('+homepageData.praise_num+')'}}">
				<Waterfalls_flow goodsData="{{catelist_2}}" handleTag='{{handleTag}}' wx:if="{{active==2}}"></Waterfalls_flow>
				<!-- <view wx:if="{{catelist_2.length <= 0 && active=='2'}}" class="blank">
					<image  src='https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/blank.png' mode='widthFix' />
				</view> -->
			</van-tab>
		</van-tabs>
		<view style='height: 100rpx'></view>
	</view>

	<micro-footer activeId="4" self="{{self}}"></micro-footer>

	<van-popup show="{{mainCommentShow}}" position="bottom" overlay="{{true}}" bind:close="showClose">
		<view class="replyMainComment">
			<view class="left">
				<input type="text" value="{{maincomment}}" bindblur="maincommentinp" placeholder="请留下你的简介吧"/>
			</view>
			<view class="right" catchtap="subMainBtn">发送</view>
		</view>
	</van-popup>
</view>
