<{uqcms 
	m="goods" 
	v="data" 
	c="get_all:group_cid=smarty.get.group_cid&shop_id=smarty.get.id&key=smarty.get.key&page=smarty.get.page&page_size=8&sort=smarty.get.sort"
}>
<{uqcms m="shop" v="sprow" c="get_one:smarty.get.id"}>
<{uqcms m="shop" v="design" c="design:smarty.get.id"}> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><{$sprow.name}> - <{$UQCMS.site_name}></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<{$__PUBLIC__}>css/common_uqcms.css">
<link rel="stylesheet" type="text/css" href="<{$__APP__}>public/css/public.css"> 
<link rel="stylesheet" type="text/css" href="<{$__APP__}>public/css/shop.css?t">
</head>
<body> 
<{include file="default/top.html"}> 
<div class="spbox_bar">
	<div class="spbox">
		<div class="splogo">
			<a href="index.php"><img src="<{$__IMG__}><{$UQCMS.site_logo}>"/></a> 
		</div> 
		<div class="spdesc"> 
			<div class="kf"> 
				<h3><{$sprow.name}></h3>
				<{if $sprow.qq}>
					<a href="http://wpa.qq.com/msgrd?v=3&amp;uin=<{$sprow.qq}>&amp;site=qq&amp;menu=yes" target="_blank">
					<img src="<{$__PUBLIC__}>images/chat.png" width="18"/></a>
				<{/if}> 
			</div>
			<div class="score"> 
				<dl>
					<dt>描述</dt>
					<dd><{$sprow.score.goods}></dd>
				</dl>
				<dl>
					<dt>服务</dt>
					<dd><{$sprow.score.service}></dd>
				</dl>
				<dl>
					<dt>物流</dt>
					<dd><{$sprow.score.logistics}></dd>
				</dl> 	
			</div> 
		</div>
		<div class="shop_ewm">
			<span>手机逛</span>
			<a href="javascript:;"><img src="<{$__PUBLIC__}>images/ewm.png" width="26px"/></a>
			<p><img width="150" src="index.php?m=ajax&a=qrcode&size=3&code=<{$__HOST__|cat:'wap.php?m=shop&id='|cat:$smarty.get.id|base64_encode}>">
				<i>扫一扫，手机逛起来</i>
			</p>
		</div>
		<div class="spsch">
			<div class="spschBox">
				<input type="text" name="keyword" value="" id="sch_key" class="spsch_input"/>
				<input type="submit" value="搜全站" class="all_sub"/>
				<input type="submit" value="搜本店" class="sp_sub"/> 
			</div>
		</div> 
	</div>
</div>
<div class="custom_area"<{if $design.bg_images}> style="background:url(<{$__IMG__}><{$design.bg_images}>);"<{else}> style=" background:#fff;"<{/if}>>
	<{if $design.top_images}>
		<div class="banner_box" style="background:url(<{$__IMG__}><{$design.top_images|img_size:1920x150}>) center center;"></div>
	<{/if}>	
	<div class="detail_box">
		<div class="detail_all">
			<!--- left -->
			<div class="left">
				<{include file="default/shop/left_hot.html"}>
				<{include file="default/shop/left_menu.html"}>
			</div> 
			<!--- RIGHT -->
			<div class="right">
				<div class="px">  
					<a href="?m=shop&a=detail&cid=<{$smarty.get.cid}>&id=<{$smarty.get.id}>" <{if $smarty.get.sort == ''}>class="ch"<{/if}>>默认</a>
					<a href="?m=shop&a=detail&cid=<{$smarty.get.cid}>&id=<{$smarty.get.id}>&sort=volume" <{if $smarty.get.sort == 'volume'}>class="ch"<{/if}>>销量</a> 
					<a href="?m=shop&a=detail&cid=<{$smarty.get.cid}>&id=<{$smarty.get.id}>&sort=<{if $smarty.get.sort == 'price'}>_price<{else}>price<{/if}>" <{if $smarty.get.sort == 'price' || $smarty.get.sort == '_price'}>class="ch"<{/if}>>价格<i><{if $smarty.get.sort == 'price'}>↓<{else}>↑<{/if}></i></a> 
					<a href="?m=shop&a=detail&cid=<{$smarty.get.cid}>&id=<{$smarty.get.id}>&sort=comment" <{if $smarty.get.sort == 'comment'}>class="ch"<{/if}>>评论数</a>
					<a href="?m=shop&a=detail&cid=<{$smarty.get.cid}>&id=<{$smarty.get.id}>&sort=time" <{if $smarty.get.sort == 'time'}>class="ch"<{/if}>>上架时间</a> 
				</div>
				<div class="goodsbox"> 
					<{if $data.list}> 
						<{foreach item=i from=$data.list}> 
						<div class="gbox">
							<div class="img"><a href="?m=goods&a=detail&id=<{$i.id}>" target="_blank" title="<{$i.title}>"><img data-original="<{$__IMG__}><{$i.images|img_size:210x210}>" class="lazy"/></a></div>
							<div class="simg">
								<{foreach item=s key=k from=$i.simg}>
									<a href="javascript:;" <{if $k == 0}>class="ch"<{/if}>><img data-big="<{$__IMG__}><{$s|img_size:210x210}>" data-original="<{$__IMG__}><{$s|img_size:30x30}>" class="lazy"></a>
								<{/foreach}>
							</div>
							<div class="ct">
								<div class="nm"><a href="?m=goods&a=detail&id=<{$i.id}>" target="_blank" title="<{$i.title}>"><{$i.title}></a></div>
								<div class="pf gbc">
									<p>¥ <span><{$i.price}></span></p> 
									<span class="comnum">已售 <{$i.comment}></span>
								</div>
							</div>
						</div>
					<{/foreach}>
					<div class="page"><{$data.page}></div>		 
				<{else}>
					<div class="nomsg">抱歉，没有找到相关的商品</div>
				<{/if}>
				</div> 
			</div>
		</div>
	</div> 
</div> 
<{include file="default/footer.html"}> 
<script type="text/javascript">
var PUBLIC_PATH	= '<{$__PUBLIC__}>';
var APP_PATH	= '<{$__APP__}>';
</script>
<script type="text/javascript" src="<{$__PUBLIC__}>js/jquery.min.js"></script>
<script type="text/javascript" src="<{$__PUBLIC__}>js/common.js"></script> 
<script type="text/javascript" src="<{$__APP__}>public/js/cart.js"></script>
<script type="text/javascript">
lazyload();
$(function(){
	$(".gbox .simg a").hover(function(){ 
		$this = $(this); 
		img = $('img',this).attr('data-big'); 
		setTimeout(function(){
			$this.addClass('ch').siblings().removeClass('ch');
			$this.parent().siblings('.img').children('a').children('img').attr('src',img); 
		},300); 
	});
	
	var $tab_li = $('.seller_sort .tab a');
	$tab_li.hover(function(){ 
		$(this).addClass('selected').siblings().removeClass('selected');
		var index = $tab_li.index(this); 
		$('div.seller_sort .pxcon .con').eq(index).show().siblings().hide(); 
	});	 
	
	// 点击搜索
	$('.all_sub').click(function(){
		keyword = $('#sch_key').val();
		location.href="index.php?m=goods&key="+keyword;
	});
	$('.sp_sub').click(function(){
		keyword = $('#sch_key').val();
		location.href="index.php?m=shop&id=<{$smarty.get.id}>&key="+keyword;
	});  
}); 
</script>