<!--团购正常-->
{set:$free_time = ITime::getDiffSec($groupon['end_time']);}

<li class="current">
	<span class="bold red2">团购价：</span>
	<em class="price">￥<span>{$groupon['regiment_price']}</span></em>
	<span class="time" id="grouponCount">
		还剩 <i class="bold red2" id='cd_hour_grouponCount'>{echo:floor($free_time/3600);}</i>
		小时 <i class="bold red2" id='cd_minute_grouponCount'>{echo:floor(($free_time%3600)/60);}</i>
		分 <i class="bold red2" id='cd_second_grouponCount'>{echo:$free_time%60;}</i>
		秒结束
	</span>
</li>
<li>
	销售价：￥<del id="data_sellPrice">{$sell_price}</del>
</li>
<li>销售数量：{$groupon['sum_count']}件</li>
<li>限购量：{if:$groupon['limit_min_count']==$groupon['limit_max_count']}{$groupon['limit_min_count']}{else:}{$groupon['limit_min_count']} 至 {$groupon['limit_max_count']}{/if}件</li>

<script>
//开启倒计时功能
var cd_timer = new countdown();
cd_timer.add('grouponCount');

//DOM加载完毕开始
jQuery(function(){
	//团购活动的库存量
	var regimentStoreNums = "{echo:$groupon['store_nums'] - $groupon['sum_count']}";
	$('#data_storeNums').text(regimentStoreNums);

	//团购最小购买数量
	$('#buyNums').attr("minNums","{$groupon['limit_min_count']}");
	$('#buyNums').attr("maxNums","{$groupon['limit_max_count']}");
	$('#buyNums').val("{$groupon['limit_min_count']}");
});
</script>