<!--pages/member/IntegralActivity/IntegralActivity.wxml-->
<view class="integral_active">
	<view class="content">
		<view class="active_box">
			<view class="active">
				<view class="ul active_num">
					<view class="li">{{activity_total}}</view>
					<view class="li">发布活动总数</view>
				</view>
				<view class="buttgroup">
					<view class="top">
						<view class="active_btn" catchtap="toIntegralGeneralization">
							<icon class="iconfont icon-life-game-plus"></icon>
							<view class="span">创建活动</view>
						</view>
					</view>
					<view class="bottom">
						<view class="active_btn btn_2" catchtap="goGetRecord">
							<view class="span">领取记录</view>
						</view>
					</view>
				</view>
			</view>
			<view class="ul integral">
				<view class="li">
					<view class="span">{{activity_point}}</view>
					<view class="span">赠送总数</view>
				</view>
				<view class="li">
					<view class="span">{{activity_used}}</view>
					<view class="span">已领取总数</view>
				</view>
				<view class="li">
					<view class="span">{{activity_stock}}</view>
					<view class="span">已过期总数</view>
				</view>
			</view>
		</view>
		<view class="integral_box">
			<view class="h1">
				<view class="spare"></view>
				<view class="span">{{integral?integral:'积分'}}</view>
			</view>
			<view class="list" wx:for-item="activity" wx:key="index" catchtap="toIntegralRecord" data-activityid="{{activity.id}}" wx:for="{{dataList}}">
				<view class="active_name">
					<view class="left">
						<icon class="iconfont icon-liwu"></icon>
						<view class="span">{{activity.name}}</view>
					</view>
					<view class="right">
						<icon catchtap="toIntegralPresent"  data-activityid="{{activity.id}}" class="iconfont icon-share"></icon>
					</view>
				</view>
				<view class="ul active_give">
					<view class="li">
						<view class="span">每人赠送</view>
						<view class="span">{{activity.average}}</view>
					</view>
					<view class="li">
						<view class="span">赠送人数</view>
						<view class="span">{{activity.total}}</view>
					</view>
				</view>
				<view class="ul detail">
					<view class="li" wx:if="{{activity.validity_at}}">有限期：{{activity.validity_at}}</view>
					<view class="li" wx:if="{{!activity.validity_at}}"></view>
					<view class="li">
						<view class="span">
							<view class="title">明细</view>
							<van-icon name="arrow" size="32rpx" />
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</view>
