Commit 16784352 by 高淑倩

add: 集点列表_不满1小时,按1小时算

parent 0e60050d
......@@ -50,6 +50,7 @@ wxService.page({
ms: '00',
isOver: true,
};
if (distancetime > 0) {
//如果大于0.说明尚未到达截止时间
result.ms = Math.floor((distancetime % 1000) / 100);
......
......@@ -9,7 +9,9 @@
/ {{item.goal}}
</view>
<view class="time-out">距离结束时间:
<text class="time">{{item.countdown.day}}天{{item.countdown.hour}}小时</text>
<!-- 不满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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment