<!--pages/pointList/pointList.wxml-->
<wxs src="./tools.wxs" module="tools" />
<view class="point--no-list border_box" wx:if="{{!pointList.length && hasUserInfo}}">
    <text>您当前暂无集点活动</text>
</view>
<view class="point-list border_box" wx:if="{{pointList.length}}">
	<block wx:for="{{pointList}}" wx:key="item">
		<view class="point border_box" data-id="{{item.id}}" bindtap="handleDetail">
			<status-img img="{{item.listImage}}" currentStatus="{{currentStatus}}" currentTimeStatus="{{currentTimeStatus}}"-/>
			<view class="progress weui-flex df-j--bt">
				<view class="rate">进度：
					<span wx:if="{{item.surplusExchangeCount}}"> 
						<text class="point_color" wx:if="{{tools.parse(item.totalPoints % item.goal) == 0}}"> {{item.goal}}</text>
						<text class="point_color" wx:else> {{item.totalPoints && item.goal ? tools.parse(item.totalPoints % item.goal) : 0}}</text>
					</span>
					<text class="point_color" wx:else> {{item.totalPoints && item.goal ? item.totalPoints % item.goal : 0}}</text>
					/ {{item.goal}}
				</view>
				<view class="time-out">距离结束时间：
					<!-- 不满1小时，按1小时算-->
					<!--<text class="time">{{item.countdown.day}}天{{item.countdown.hour}}小时</text>-->
					<text class="time">{{item.countdown.day}}天{{item.countdown.min <= 59 ? item.countdown.hour + 1: item.countdown.hour}}小时</text>
				</view>
			</view>
		</view>
	</block>
</view>

<authorization-modal-point isAuthorization='{{isAuthorization}}'/>
