<{import 
	file="common.html"
	title=$UQCMS.site_title
	keyword=$UQCMS.site_keywords
	describe =$UQCMS.site_describe
	css="index,gbox"
}>
<link rel="stylesheet" type="text/css" href="<{$__PUBLIC__}>plug/swiper/swiper.min.css"/>
<div class="tpbox">
	<div class="nav_bg"></div>
	<div class="top_bar"> 
		<div class="top index_red"> 
			<div class="tsch"> 
				<div class="pubsch"> 
					<span></span>
					<div class="input_clk"> 
						<input type="text" value="<{$smarty.get.key}>" class="sch_input" placeholder="搜索您想找的商品"/>
					</div> 
				</div>
			</div>
			<{if $smarty.session.user.uid}>
				<div class="tava"><a href="<{$__WAP__}>member/login"><img src="<{$__APP__}>public/svg/index_ava.svg"/></a></div>	
			<{else}>
				<div class="tcart"><a href="<{$__WAP__}>member/login">登录</a></div>	
			<{/if}> 
		</div> 
		<div class="pcats">
			<a href="<{$__WAP__}>index/index"<{if $smarty.get.cid == ''}> class="ch"<{/if}>>热门</a> 
			<{uqcms m="common" v="topnav" c="category:name=wap_nav&canshu=all"}>
			<{if $topnav}>
				<{foreach item=i from=$topnav}>
					<a href="<{$__WAP__}>index/pindex?cid=<{$i.link}>"<{if $smarty.get.cid == $i.link}> class="ch"<{/if}>><{$i.name}></a>
				<{/foreach}>
			<{/if}>
		</div>
	</div>
	
	<!--轮播图片-->
	<div class="gdbox">
		 <div class="swiper-container swiper1">
			<div class="swiper-wrapper">
				<{ads alias="wap_index_focus_img" data="focus_img"}>
				<{foreach item=i from=$focus_img}>
					<{if $i.type == '2'}>
						<div class="swiper-slide"><a href="<{$i.link}>"><img src="<{$__IMG__}><{$i.content|img_size:640x0}>"/></a></div>
					<{/if}>
				<{/foreach}>
			</div>
			<div class="swiper-pagination"></div> 
		</div>
	</div>
</div>
 
<!--豆腐块图标-->
<{ads alias="wap_tofu_icon" data="focus_down"}>
<{if $focus_down}> 
	<div class="enter">  
		<{foreach item=i from=$focus_down}>		
			 <a href="<{$i.link}>">
				<span class="a1"><img src="<{$__IMG__}><{$i.content|img_size:120x0}>"/></span> 
				<span class="a2"><{$i.name}></span> 
			</a> 
		<{/foreach}> 
	</div> 
<{/if}> 	
 
<!--主页小导航-->
<{ads alias="wap_index_small" data="index_small"}>
<{if $index_small}>
	<div class="spdbar">
		<div class="spd"> 
			<ul>
				<{foreach item=i from=$index_small}>		
					<li><a href="<{$i.link}>">
						<span class="a1"><{$i.name}></span>
						<span class="a2"><{$i.desc}></span>
						<span><img src="<{$__IMG__}><{$i.content|img_size:320x0}>"/></span> 
					</a></li>
				<{/foreach}>
			</ul>
		</div>
	</div>	
<{/if}> 

<!--限时抢购-->
<{uqcms m="promote" v="sps" c="seckill:limit=12"}>	
<{if $sps}>
	<div class="sps">
		<div class="name">
			<div class="name1"><span>限时抢购</span></div>
			<{if $sps.next_time > 0}> 
				<div class="name2"><div class="djs_box" data-diff="<{$sps.next_diff}>"></div></div> 
			<{/if}> 
			<a href="<{$__WAP__}>goods/seckill" class="more">MORE</a>
		</div>  
		<div class="con sps_cn">
			<div class="sps_box">
				<div class="swiper-container swiper2">
					<div class="swiper-wrapper"> 
						<{if $sps.list}>			
							<{foreach item=i key=key from=$sps.list}>		
								<dl class="swiper-slide">
									<dt><a href="<{$__WAP__}>goods/<{$i.gid}><{$__HTML__}>"><img data-original="<{$__IMG__}><{$i.images|img_size:200x200}>" class="lazy"/></a></dt> 
									<dd class="ttl"><{$i.title}></dd>
									<dd class="pr">¥<{$i.price}></dd>
									<dd class="prd"><s>¥<{$i.market_price}></s></dd>
								</dl> 
							<{/foreach}>
						<{/if}>
					</div>	 
				</div>
				
			</div>
		</div>	
	</div>
<{/if}>

<!--产品展示部分-->
<div class="lou_box">
	<!--楼层广告-->
	<{uqcms m="theme" v="data" c="index_floor:page_size=6"}>
	<{foreach item=g from=$data}>
	<{if $g.goods}>
		<div class="lou_con">
			<div class="name"><h2 class="f<{$g.lou}>"><{$g.cname}></h2></div>
			<div class="content">
				<!--div class="l"> 
					<{ads alias=$g.m_ad_cid data="1f_ad"}>	
					<{foreach item=i from=$1f_ad}> 
						<{if $i.type == '2'}>
							<a href="<{$i.link}>" target="_blank"><img src="<{$__IMG__}><{$i.content|img_size:640x0}>"/></a>
						<{/if}> 
					<{/foreach}> 
				</div-->
				<div class="gscon">
					<{foreach item=i from=$g.goods}>
						<div class="gsbox">
							<div class="img"><a href="<{$__WAP__}>goods/<{$i.id}><{$__HTML__}>"><img data-original="<{$__IMG__}><{$i.images|img_size:320x320}>" class="lazy"/></a></div>
							<div class="con">
								<div class="ttl"><a href="<{$__WAP__}>goods/<{$i.id}><{$__HTML__}>"><{$i.title}></a></div> 
								<div class="pr">
									<i class="uq_color">¥</i> 
									<em class="uq_color"><{$i.price}></em> 
								</div>
							</div>
						</div>
					<{/foreach}>
				</div> 
			</div>
		</div> 
	<{/if}>
	<{/foreach}>
</div>

<!--猜你喜欢-->
<{uqcms m="theme" v="index" c="like:page_type=scroll&page=smarty.get.page"}>	
<{if $index.list}>
	<div class="hot_box">
		<div class="hot_name"><span>猜你喜欢</span></div>
		<div class="gscon" id="container"> 
			<{foreach item=i from=$index.list}>		
				<div class="gsbox">
					<div class="img">
						<a href="<{$__WAP__}>goods/<{$i.id}><{$__HTML__}>">
							<img data-original="<{$__IMG__}><{$i.images|img_size:320x320}>" class="lazy"/>
						</a>
					</div>
					<div class="con">
						<div class="ttl"><a href="<{$__WAP__}>goods/<{$i.id}><{$__HTML__}>"><{$i.title}></a></div> 
						<div class="pr">
							<i class="uq_color">¥</i> 
							<em class="uq_color"><{$i.price}></em> 
						</div>
					</div>
				</div>
			<{/foreach}>
		</div> 
		<{$index.page}>
	</div>
<{/if}> 
		
<{import file="btm_tab.html"}>
<{import file="sch.html"}>
<{import file="footer.html"}> 
<script type="text/javascript" src="<{$__PUBLIC__}>plug/swiper/swiper.min.js"></script> 
<script type="text/javascript">
lazyload();  
scrollLoad("#container", ".gsbox", 1);  
countDown('.djs_box'); 
var swiper1 = new Swiper('.swiper1', {
	pagination: '.swiper-pagination', 
	paginationClickable: true,
	autoplayDisableOnInteraction: false,
	autoplay: 2500,
	loop: true
}); 
var swiper2 = new Swiper('.swiper2', {   
	slidesPerView: 3.5,
	paginationClickable: true,
	spaceBetween: 0,
	freeMode: true
}); 
</script>