<{import 
	file="common.html"
	title=$UQCMS.site_title
	keyword=$UQCMS.site_keywords
	describe =$UQCMS.site_describe
	css="pindex,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>

<!--二级分类的展示-->
<{uqcms m="category" v="pcats" c="get_list:cid=smarty.get.cid"}>
<{if $pcats}>
	<div class="enter">
		<{foreach item=i from=$pcats}>
			 <a href="<{$__WAP__}>index/pindex?cid=<{$smarty.get.cid}>&ccid=<{$i.cid}>">
				<span class="a1"><img src="<{$__IMG__}><{$i.images|img_size:120x0}>"/></span> 
				<span class="a2"><{$i.name}></span>
			</a> 
		<{/foreach}>
	</div> 
<{/if}>

<!--对应的产品内容-->
<{uqcms m="theme" v="index" c="like:cid=smarty.get.cid&ccid=smarty.get.ccid&page_type=scroll&page=smarty.get.page&page_size=6"}>	
<{if $index.list}>
	<div class="hot_box">
		<div class="gscon infinite_scroll" 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="desc">
							<span class="uq_color2 uq_border2">自营</span> 
							<span class="uq_color2 uq_border2">券|直降|包邮</span>
						</div-->
						<div class="pr">
							<i class="uq_color">¥</i> 
							<em class="uq_color"><{$i.price}></em> 
							<del><{$i.market_price}></del>
						</div>
					</div>
				</div>
			<{/foreach}>
		</div> 
		<{$index.page}>
	</div>
<{else}>	
	<div class="nomsg"><span>没有找到相关宝贝</span></div>
<{/if}> 

<{import file="btm_tab.html"}>
<{import file="footer.html"}>
<{import file="sch.html"}> 
<script type="text/javascript" src="<{$__PUBLIC__}>plug/swiper/swiper.min.js"></script> 
<script type="text/javascript"> 
lazyload();  
scrollLoad(".gscon", ".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>