<!--packageH/starMusic/starMusicPersonalGroup/starMusicPersonalGroup.wxml-->

<view class="header" wx:if="{{is_self==0}}">
	<view class="container">
		<view class="face">
			<image src="{{avatar}}"></image>
		</view>
		<view class="desc">
			<view class="name">{{nickname}}</view>
			<view class="level" wx:if="{{dividend_name}}">{{dividend_name}}</view>
		</view>
	</view>
</view>

<view class="items">
	<view class="item" wx:for="{{listData}}" wx:key="leader_id">
		<view class="head">
			<!-- <text class="c1">活动ID：125</text> -->
			<text class="c2">开团：{{item.created_at}}</text>
			<text class="c3" wx:if="{{item.team_state==1}}">拼团中，还差{{item.surplus_num}}人</text>
			<text class="c3" wx:elif="{{item.team_state==2}}">成团中</text>
			<text class="c3" wx:elif="{{item.team_state==3}}">拼团成功</text>
			<text class="c3" wx:elif="{{item.team_state==4}}">拼团失败</text>
		</view>
		<view class="container">
			<view class="face">
				<image src="{{item.thumb}}"></image>
			</view>
			<view class="info">
				<view class="name">{{item.title}}</view>
				
				<view class="desc">
					<view class="price">
						￥{{item.price}}
					</view>
					<view class="time" wx:if="{{item.team_state==1}}">
						还剩 <count now-time="{{nowTime}}" over-time="{{item.end_time}}" style="text-align:center;" />
					</view>
				</view>
			</view>
		</view>
		<view class="btns">
			<view class="btn btn1" data-id="{{item.order_id}}" wx:if="{{pages=='join' && item.is_vip==0}}" bindtap="gotoOrderDetail">订单详情</view>
			<view class="btn btn2" data-leaderid="{{item.leader_id}}" bindtap="gotoStarMusicGroupDetails">去参加</view>
		</view>
	</view>
</view>

<view class="blank" wx:if="{{listData.length <= 0}}">
	<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/blank.png" mode='widthFix' />
	<view style="text-align: center;font-size: 30rpx;">暂无数据</view>
</view>

<view class="float"  wx:if="{{is_self==1}}">
	<button open-type="share" class="btn">
		<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/star_music_share.png" ></image>
	</button>
</view>