<!--packageH/circleCommunity/circleMyRelease/circleMyRelease.wxml-->

<view class="member" style="background-image:url({{circleInfo.bg_img !='' ? circleInfo.bg_img : defaultBgImg }});">
    <view class="upimg" bindtap="editImage" data-type="bg" wx:if="{{member_id==0}}">
        <van-icon name="plus" />
        上传背景
    </view>
 </view>

 <view class="wrapper">
	<view class="userWrapper">
		<view class="userDesc">
			<view class="left">
				<view class="name">{{circleInfo.name}}</view>
				<view class="desc" wx:if="{{member_id==0}}">
					<text>{{circleInfo.autograph || '未设置个性签名'}}</text>
					<icon bindtap="setAutographShow" class="iconfont icon-fontclass-bianji"></icon>
				</view>
				<view class="desc" wx:else >
					<text>{{circleInfo.autograph}}</text>
				</view>
			</view>
			<view class="right">
				<image src="{{circleInfo.header_img}}"></image>
			</view>
		</view>
		<view class="userInfo">
			<view class="works">
				<text class="num">{{circleInfo.invitation}}</text>
				<text class="descText">作品</text>
			</view>
			<view class="fab">
				<text class="num">{{circleInfo.like_count}}</text>
				<text class="descText">点赞</text>
			</view>
		</view>
	</view>

	<view class="tabs">
		<view bindtap="setTabsIndex" data-index="0" class="tabItem {{tabsIndex==0 ? 'active' : ''}}">帖子</view>
		<view bindtap="setTabsIndex" data-index="1" style="margin-left:1.59rem;" class="tabItem {{tabsIndex==1 ? 'active' : ''}}">视频</view>
	</view>

	<view class="cards" wx:if="{{listData.length>0 && networkLoading}}">
		<view class="card" wx:for="{{listData}}" data-item="{{item}}" bindtap="gotoTopicDetails">
			<view class="userInfo">
				<view class="face">
					<image src="{{item.avatar}}"></image>
				</view>
				<view class="right">
					<view class="name">{{item.nickname}}</view>
					<view class="time">{{item.created_at}}</view>
				</view>
				<view class="opet" wx:if="{{member_id==0}}" catchtap="managementBtn" data-index="{{index}}" data-item="{{item}}" >
					<icon class="iconfont icon-fontclass-tiezishezhi"></icon>
				</view>
			</view>
			<view class="title">{{item.title}}</view>
			<view class="desc" wx:if="{{item.status==1}}">{{item.content}}</view>
			<view class="contentImg" wx:if="{{item.status==1 && item.img}}">
				<picture list="{{item.img}}"></picture>	
			</view>
			<view class="contentImg" wx:if="{{item.status==2 && item.img}}">
				<image style="max-width:100%;height:auto;" mode="widthFix" src="{{item.img}}"></image>
			</view>
			<view class="circleWrapper" style="margin-top:20rpx;" wx:if="{{member_id==0}}" bindtap="gotoCircleDetails" data-id="{{item.circle_id}}" >
				<image src="{{item.circle_img}}"></image>
				<view class="text">{{item.circle_name}}</view>
			</view>
			<view class="otherInfo">
				<view class="otherItem">
					<icon style="font-size:20px;height:35rpx;margin-right:6rpx;" class="iconfont icon-fontclass-yulan"></icon>
					<text>{{item.browse_count}}</text>
				</view>
				<view class="otherItem">
					<icon style="height:37rpx;margin-right:6rpx;" class="iconfont icon-fontclass-dianzan"></icon>
					<text>{{item.link_count}}</text>
				</view>
				<view class="otherItem">
					<icon style="height:37rpx;margin-right:10rpx;" class="iconfont icon-fontclass-pinglun1"></icon>
					<text>{{item.comment_count}}</text>
				</view>
			</view>
		</view>
	</view>

	<view wx:if="{{listData.length==0 && networkLoading}}" class="blank">
		<image  src='https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/blank.png' mode='widthFix' />
	</view>



 </view>





<van-popup show="{{adminOperationshow}}" position="bottom" overlay="{{true}}" bind:close="adminOperationshowClose">
	<view class="adminOperation">
		<view class="recommend" catchtap="adminBtn" wx:for="{{adminOperationInfo}}" data-item="{{item}}">
			<view class="recommend_left">
				<image src="{{item.img}}" mode='widthFix' />
			</view>
			<view class="recommend_right">
				<text>{{item.name}}</text>
			</view>
		</view>
		<view class="cancel" catchtap="adminOperationshowClose">取消</view>
	</view>
</van-popup>

<van-popup show="{{autographShow}}" position="bottom" overlay="{{true}}" bind:close="setAutographShow">
	<view class="replyMainComment">
		<view class="left">
			<input type="text" model:value="{{autographText}}" placeholder="输入个性签名"/>
		</view>
		<view class="right" catchtap="subMainBtn">发送</view>
	</view>
</van-popup>