<!DOCTYPE html>
<html>
<head>{template head}
</head>
<body>
	{template header}
	<div class="index_here">{template here}</div>
			
			<div class="work-text">
				<section class="ac-container">
					{loop $juan $key $val}
					<div>
						<div class="art">
							<a href="{$val[url]}">
							<div class="ll" style="background:url({IMG_PATH}llbg.png) no-repeat 101% center;">
									<h1>
									{$val['title']}
									</h1>
									<p class="f08e"></p>
							</div>
							</a>
							<div class="clear"> </div>
							<div class="lt">
								<div class="layui-progress" style="margin-top:.3em;margin-left:.3em">
								  <div class="layui-progress-bar layui-bg-blue" lay-percent="{$val[mystat]}%"></div>
								</div>
							</div>
							<div class="rt">
							{if (get_stat($val['ujid'],$val['nums'])>=100)}
							已抢光了
							{else}
							{$val[ujid]}/{$val[nums]}
							{/if}
							</div>
							<div class="clear"> </div>
							<div class="tt"><a href="javascript:void(0);"><div class="titles">{$val['comname']}</div><div class="near">{$val['dx']}</div></a></div>
						</div>
					</div>
					{/loop}
				</section>
				<div class="index_bottom1">
					<div class="clear"> </div>
					<div class="banner-bottom-li">
						<a href="list.php" class="tc" style="border:0;">查看更多</a>
					</div>
				</div>
				<div class="index_bottom2">
					<div class="clear h_1"> </div>
					<p class="btn_3"><a href="list.php">查看更多</a></p>
				</div>
		</div>
	</div>
{template footer}
<script>
layui.use(['layer','jquery','element'], function(){
  var $ = layui.jquery;
  var layer = layui.layer;
  var element = layui.element();
$('#qrcode').on('click', function(){
	  layer.open({type:1,title:false,area:['200px','220px'],shade: [0.6, '#393D49'],shadeClose: true,content: '\<\div style="padding:1em;text-align:center;"><img src="images/qrwx.png">长按关注 接收最新优惠\<\/div>'});
	});  
});
</script>
</body>
</html>