<!--packageA//pages/hongBao/hongBao.wxml-->
<view class="hongBao-container">
	<view class="white fs26">由{{storeName}}发起抢红包</view>
	<view class="btn-container">
		<image src="{{url + 'miniapp/images/redmoney/redbag_btn.png'}}" class="btn" mode="aspectFit" bindtap="qiangHongBao"></image>
	</view>
	<view class="countdown-container">
		<view class="countdown-txt">{{isStart == 0 ? '距离活动开始还有':(isStart == 1 ? '距离活动结束还有':'活动已经结束')}}</view>
		<view class="countdown">
			<view class="countdown-item">{{time.day}}天</view>
			<view class="countdown-item">{{time.hou}}时</view>
			<view class="countdown-item">{{time.min}}分</view>
			<view class="countdown-item">{{time.sec}}秒</view>
		</view>
	</view>
</view>

<!-- 弹窗 -->
<view class="popup-container" wx:if="{{qiangHongBao}}" bindtap="closePopup">
	<view class="popup">
		<block wx:if="{{result.code == 0}}">
			<image src="{{url + 'miniapp/images/redmoney/hbtit.png'}}" mode="aspectFit"></image>
			<view class="amount-container">
					<view class="amount">￥{{result.data.redmoney}}</view>
					<view class="btn-receive" catchtap="gotoDetails" data-redid="{{hongBaoData.id}}">
						<image src="{{url + 'miniapp/images/redmoney/srhb.png'}}" class="btn-img"></image>
					</view>
			</view>
		</block>
		
		<block wx:if="{{result.code == -1}}">
			<image src="{{url + 'miniapp/images/redmoney/hbtit2.png'}}" mode="aspectFit"></image>
			<!-- <view class="none">来晚了，红包已抢空~</view> -->
			<view class="none">{{result.msg}}</view>
			<view class="see" catchtap="gotoDetails" data-redid="{{hongBaoData.id}}">看看大家的手气 ></view>
		</block>
	</view>
</view>

<!-- 弹窗 -->
<!-- <view class="popup-container">
	<view class="popup">
		<image src="{{url + 'miniapp/images/redmoney/hbtit2.png'}}" mode="aspectFit"></image>
			<view class="none">来晚了，红包已抢空~</view>
			<view class="see">看看大家的手气 ></view>
	</view>
</view> -->
