<wxs module="m1">
	var Fixed = function (num) {
		var fix = num.toFixed(2);
		return fix
	}
	module.exports.Fixed = Fixed;
</wxs>
<view class="view_two" style="background-color:{{info.color.bg_color}}">
	<!-- 今日红包 -->
	<view class="view_two_1">
		<view class="right_top" catchtap="toPage" data-tag="record" >领取记录</view>
		<view class="right_buttom" catchtap="toPage" data-tag="amount" >我的额度</view>
		<view class="right_buttom" style="top:135rpx" catchtap="toPage" data-tag="rank">红包排行</view>
		<view class="redName">今日红包</view>
		<view class="getTimeYS">领取时间：{{ info.time_between.start_time}}-{{ info.time_between.end_time }}</view>
		<view class="surplus">
			剩余次数<view class="em">{{ info.surplus_number }}</view>次
		</view>
		<view class="getPacket" catchtap="sureGet" wx:if="{{info.status_button}}" data-value="{{info.status_button.value}}"
			style="background-color:{{info.status_button.color}}">
			{{ info.status_button.tilte }}
		</view>
		<view class="redList">
			<view class="redlis">
				<view>本轮红包额度</view>
				<view class="redisw">{{ info.redpack_info.redpack_amount_total || 0 }}</view>
			</view>
			<view class="redlis">
				<view>本轮红包数量</view>
				<view>{{ info.redpack_info.redpack_number || 0 }}</view>
			</view>
			<view class="redlis">
				<view>本轮剩余数量</view>
				<view>{{ info.redpack_info.surplus_number }}</view>
			</view>
		</view>
		<view style="text-align: center;margin-top:15rpx;font-size:14px">个人额度</view>
		<view class="line">
			<view class="noneLine" style="width:{{bfbMum}}"></view>
		</view>
		<view class="lineTxt">
			<view>
				<view class="text_co">已领取</view>
				<view class="text_mun">{{language['money']}}{{m1.Fixed(info.quota_info.use_total)}}</view>
			</view>
			<view class="text_le">
				<view class="text_co">剩余</view>
				<view class="text_mun">{{language['money']}}{{m1.Fixed(info.quota_info.surplus_total)}}</view>
			</view>
		</view>
	</view>
	<!-- 今日领取记录 -->
	<view class="view_two_2">
		<view class="getRecord">
			<view class="getTitle t_one">今日领取记录</view>
			<!-- <view class="getTitle t_two">有{{amount.totle}}人已领取</view> -->
			<view style="width:100%" wx:if="{{info.receive_logs.data.length <= 5}}">
				<view class="detail" wx:for="{{info.receive_logs.data}}" wx:key='index'>
					<view class="detailList">
						<view class="txtw">
							<view class="detaimg">
								<image src="{{item.member.avatar_image}}"></image>
							</view>
							<view>
								<view class="tname">{{item.member.nickname}}</view>
								<view class="ttime">{{item.created_at}}</view>
							</view>
						</view>
						<view>
							<view class="tmoney">{{item.amount}}{{language['元']}}</view>
							<view class="ttime">已领取</view>
						</view>
					</view>
				</view>
			</view>
			<view style="width:100%" wx:if="{{info.receive_logs.data.length > 5}}">
				<swiper autoplay="{{true}}" duration="3000" interval='3000' vertical='true' circular='true'
					display-multiple-items='5' style="height:500rpx" bindchange="swipeToTop">
					<!-- <block wx:for="{{receive_log.list}}" wx:key='index'> -->
					<swiper-item wx:for="{{info.receive_logs.data}}" wx:key='index'>
						<view class="detail">
							<view class="detailList">
								<view class="txtw">
									<view class="detaimg">
										<image src="{{item.member.avatar_image}}"></image>
									</view>
									<view>
										<view class="tname">{{item.member.nickname}}</view>
										<view class="ttime">{{item.created_at}}</view>
									</view>
								</view>
								<view>
									<view class="tmoney">{{item.amount}}{{language['元']}}</view>
									<view class="ttime">已领取</view>
								</view>
							</view>
						</view>
					</swiper-item>
					<!-- </block> -->
				</swiper>
			</view>
		</view>
	</view>
	<!-- 活动介绍 -->
	<view class="view_two_3">
		<view class="introduceBox">
			<view class="introduceTitle">活动介绍</view>
			<view class='intcenten'>
				<!-- <rich-text nodes="{{info.introduction}}"></rich-text> -->
				<mp-html content="{{info.introduction}}"></mp-html>
			</view>
		</view>
	</view>
	<!-- 活动商品 -->
	<view class="view_two_3">
		<view class="introduceBox">
			<view class="introduceTitle">红包商品</view>
			<view class="intList">
				<view class="intlis" wx:for="{{info.goods_list.data}}" wx:key="index" data-id="{{item.id}}" catchtap="tapGo">
					<view class="imgaint">
						<image src="{{item.thumb}}"></image>
					</view>
					<view class="textint">
						<view class="onetext">{{item.title}}</view>
						<view class="ed" wx:if='{{item.quota_proportion}}'>红包额度:{{item.quota_proportion}}%</view>
						<view class="lasted">
							<view>{{language['money']}}{{item.price}}</view>
							<view catchtap="goqg" data-id="{{item.id}}">立即抢购</view>
						</view>
					</view>
				</view>
			</view>
			<view class="text" wx:if="{{goods_list_page < goods_list_lastPage}}" catchtap="tapMore">点击加载更多</view>
			<view class="text" wx:if="{{goods_list_page >= goods_list_lastPage}}" >没有更多了</view>
		</view>
	</view>

	<!-- 抢红包 -->
	<view class="fixed-person-icon" bindtap="goPersonred" wx:if="{{info.ru_open == 1}}">
		<image class="person-img" src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/personRed/getred.png"></image>
	</view>
</view>

<van-popup bind:click-overlay="closeShow" show="{{show}}" overlay="{{true}}">
	<view class="popupBox">
		<view class="pop-text">
			<view class="money">{{language['money']}}{{amount}}</view>
			<text class="tip">恭喜您成功领取到红包！</text>
			<view class="sure-btn" catchtap="closeShow">确定</view>
		</view>
	</view>
</van-popup>
<van-popup show="{{show1}}" bind:click-overlay="closeBtn">
	<view class="hint">
		<view class="txtHint">今天抢红包次数已用完，完成任务 增加红包次数</view>
		<view class="titleHint">任务奖励</view>
		<view class="rankBox">
			<block wx:if="{{info.invite_set.length > 6}}">
				<swiper autoplay="{{true}}" duration="2000" interval='2000' vertical='true' circular='true'
					display-multiple-items='5' style="height:194rpx">
					<swiper-item wx:for="{{ info.invite_set}}" wx:key="index">
						<view class="textLine">{{ item }}</view>
					</swiper-item>
				</swiper>
			</block>
			<block wx:if="{{info.invite_set.length <= 6}}">
				<view wx:for="{{ info.invite_set}}" wx:key="index">
					<view>
						{{ item }}
					</view>
				</view>
			</block>
		</view>
		<view class="hintBtn" catchtap='closeBtn'>我知道了</view>
	</view>
</van-popup>