<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><{$UQCMS.site_title}></title> 
<meta name="keywords" content="<{$UQCMS.site_keywords}>"/>
<meta name="description" content="<{$UQCMS.site_describe}>"/> 
<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/index.css">
<link rel="stylesheet" type="text/css" href="<{$__PUBLIC__}>plug/swiper/swiper.min.css"> 
</head>
<body> <{url path="index.php?m=goods&a=detail&id=12"}> 
<{include file="default/header.html"}> 
<div class="banner_bar" style="height:440px; position:relative; margin-top:-1px; float:left;"> 
	<div class="spdcenter"> 
		<div id="focus">
			<ul>
				<{ads alias="index_focus_img" data="focus_img"}>
				<{foreach item=i from=$focus_img}>
					<li style="background:<{$i.color}>; ">
						<a href="<{$i.link}>" target="_blank"><img style="float:left;" src="<{$__IMG__}><{$i.content}>"/></a>
					</li>
				<{/foreach}>
			</ul> 
		</div> 
	</div>
	<div class="main">	
		<div class="mbl">
			<div class="alogin"> 
				<{if $smarty.session.user.uid}>
					<div class="img"><img src="<{if $smarty.session.user.avatar}><{$__IMG__}><{$smarty.session.user.avatar|img_size:80x80}><{else}><{$__PUBLIC__}>images/avatar.png<{/if}>" width="80"/></div>
					<div class="con">
						<span>Hi，你好</span>
						<p>
							<a href="member.php">会员中心</a>
							<a href="member.php?a=logout">退出</a>
						</p>
					</div>
				<{else}>
					<div class="img"><img src="<{$__PUBLIC__}>images/avatar.png" width="80"/></div>
					<div class="con">
						<span>Hi，你好</span>
						<p>
							<a href="member.php?a=login">登陆</a>
							<a href="member.php?a=register">注册</a>
						</p>
					</div>
				<{/if}>
			</div>
			<div class="newtab">
				<div class="name">
					<a href="javascript:;" class="ch">商城动态</a>
					<a href="javascript:;">招商入住</a>
				</div>
				<div class="con">
					<{uqcms m="news" v="news_dt" c="get_list:alias=notice&page_size=5"}>
					<div class="con1">
					<{foreach item=i from=$news_dt.list}>
						<a href="index.php?m=news&id=<{$i.id}>" target="_blank"><{$i.title|truncate:"12":"..."}></a>
					<{/foreach}>	
					</div>
					<div class="con1 apply_img" style="display:none;">
						<div class="img"><a href="member.php?m=shop"><img src="<{$__PUBLIC__}>images/apply_shop.png"/></a></div>
						<div class="sw"><a href="member.php?m=shop">查看开店协议</a></div>
					</div>
				</div>
			</div>
		</div>
		
	</div> 
</div>

<!--整点秒杀-->
<{uqcms m="goods_act" v="sps" c="seckill:limit=6"}>
<{if $sps.list}>
<div class="main_bar" style="position: relative;">
	<div class="main">  
		<div class="seckill">
			<div class="name">
				<div class="l"><a href="index.php?m=goods&a=seckill" target="_blank">整点秒杀</a></div>
				<{if $sps.next_time > 0}>
					<div class="next_time" data-time="<{$sps.next_time}>">
						<div class="name2">距离下一波还有</div>
						<div class="djs_box" data-diff="<{$sps.next_diff}>"></div>
					</div>
				<{/if}>
			</div>
			<div class="con">
				<{foreach item=i key=key from=$sps.list}>
					<div class="skbox" <{if $key == 0}>style="border-left:none;"<{/if}>>
						<div class="img"><a href="<{$__URI__}>index.php?m=goods&a=detail&id=<{$i.gid}>" target="_blank"><img data-original="<{$__IMG__}><{$i.images|img_size:150x150}>" class="lazy"/></a></div>
						<div class="ttl"><a href="<{$__URI__}>index.php?m=goods&a=detail&id=<{$i.gid}>" target="_blank"><{$i.title}></a></div>
						<div class="pr">
							<i>￥</i><span><{$i.price}></span><s>￥<{$i.market_price}></s></span>
						</div>
					</div>
				<{/foreach}>
			</div>
		</div> 
	</div> 
</div>
<{/if}>   
<!--品牌列表-->
<{uqcms m="goods_theme" v="brand" c="brand:limit=15"}>
<{if $brand.list}>
	<div class="main_bar" style="position: relative;">
		<div class="main">  
			<div class="brand">
				<div class="name">
					<div class="l"><a href="javascript:;" target="_blank">品牌专卖</a></div> 
				</div>
				<div class="con">
					<div class="l">
						<{ads alias=pc_index_brand data="index_brand"}>	
						<{foreach item=i from=$index_brand}> 
							<{if $i.type == '2'}>
								<a href="<{$i.link}>" target="_blank"><img src="<{$__IMG__}><{$i.content|img_size:230x500}>"/></a> 
							<{/if}> 
						<{/foreach}>
					</div>
					<div class="r">
						<{foreach item=i key=key from=$brand.list}>
							<dl>
								<dt><a href="index.php?m=goods&brand=<{$i.id}>" target="_blank"><img src="<{$__IMG__}><{$i.images|img_size:100x0}>"></a></dt>
								<dd><a href="index.php?m=goods&brand=<{$i.id}>" target="_blank"><{$i.name}></a></dd>
							</dl>
						<{/foreach}>	
					</div> 
				</div>
			</div> 
		</div> 
	</div>
<{/if}> 
<!--楼层列表-->
<div class="main_bar loulist" style=" position: relative;">
	<div class="main"> 
		<{uqcms m="goods_index" v="data" c="goods:page_size=8"}>
		<{foreach item=g from=$data}>
			<{if $g.goods}>
			<div class="detail">
				<div class="name">
					<h2 class="f<{$g.lou}>"><{$g.lou}>F <a href="index.php?m=goods&cid=<{$g.cid}>" class="more"><{$g.cname}></a></h2> 
				</div>
				<div class="con">
					<div class="l">
						<div class="top lbbtm">
							<{ads alias=$g.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:230x500}>"/></a> 
								<{/if}> 
							<{/foreach}>
						</div>
						<div class="hc">
							<ul>
							<{foreach item=c key=ck from=$g.cats}> 
								<li><a href="index.php?m=goods&cid=<{$c.cid}>" title="<{$c.name}>"><{$c.name}></a> </li>
							<{/foreach}> 
							</ul>
						</div>
					</div>
					<div class="c">
						<{foreach item=i from=$g.goods}> 
							<dl>
								<dt><a href="index.php?m=goods&a=detail&id=<{$i.id}>" target="_blank"><img data-original="<{$__IMG__}><{$i.images|img_size:180x180}>" alt="<{$i.title}>" class="lazy"></a></dt>
								<dd><a class="ttl" href="index.php?m=goods&a=detail&id=<{$i.id}>" title="<{$i.title}>"  target="_blank"><{$i.title|truncate:17:''}></a></dd>
								<dd class="pr"><span>¥ <{$i.price}></span></dd>
							</dl>
						<{/foreach}>
					</div>
					
				</div>
			</div> 
			<{/if}>
		<{/foreach}>
	</div> 
</div> 
<div class="sch_hidden_bar">
	<div class="sch_hidden">
		<div class="slogo"><a href=""><img src="<{$__IMG__}><{$UQCMS.site_logo}>"/></a></div>
		<form action="index.php" method="get">
			<div class="sch"> 
				<input type="hidden" name="m" value="goods"/>
				<input type="text" size="55" name="key"/>
				<input type="submit" id="ssx_submit" value="搜索"/>
			</div>
		</form>
		<div class="tcart"><a href="index.php?m=cart" target="_blank"><span></span><i>购物车</i></a></div>
	</div>
</div>
<{include file="default/footer.html"}>
<script type="text/javascript">
var PUBLIC_PATH	= '<{$__PUBLIC__}>';
var APP_PATH	= '<{$__APP__}>';
var IMG_HOST 	= '<{$__IMG__}>'; 
</script>
<script type="text/javascript" src="<{$__PUBLIC__}>js/jquery.min.js"></script>
<script type="text/javascript" src="<{$__PUBLIC__}>js/common.js?t=<{$smarty.now}>"></script> 
<script type="text/javascript" src="<{$__PUBLIC__}>plug/swiper/swiper.min.js"></script> 
<script type="text/javascript" src="<{$__APP__}>public/js/cart.js"></script>
<script type="text/javascript" src="<{$__APP__}>public/js/rside.js"></script>
<script type="text/javascript"> 
lazyload();  
<{if $sps.next_time > 0}>
	countDown('.djs_box');
<{/if}>
/*首页轮播*/
span_ch = '<h4>';
$("#focus ul li").each(function(i){ 
	if(i == 0){
		span_ch += '<span class="ch"></span>';
	}else{
		span_ch += '<span></span>';
	} 
});
span_ch += '</h4>';
$("#focus ul").append(span_ch);
 
var curIndex = 0; 
var autoChange;
autoChange = setInterval(function(){ 
	changeTo(); 
},3000);

$("#focus h4 span").hover(function(){
	clearInterval(autoChange);
	curIndex = $(this).index();
	changeTo(curIndex);
},function(){
	autoChange = setInterval(function(){ 
		changeTo(); 
	},2000);
});

function changeTo(){ 
	if(curIndex > $("#focus li").length-1){ 
		curIndex = 0;
		next=0;
	} 
	// 改变大图
	$("#focus li").eq(curIndex).stop().fadeTo(300,0.9).siblings('li').stop().fadeTo(300, 0); 
	// 改变按钮
	$("#focus h4 span").eq(curIndex).siblings().removeClass('ch');
	$("#focus h4 span").eq(curIndex).addClass('ch'); 
	curIndex ++; 
}

$(function() { 
	$(".newtab .name a").hover(function(){
		$(this).addClass("ch").siblings('a').removeClass("ch");  
		var $index=$(this).index(); 
      	$(".newtab .con .con1").eq($index).show().siblings('.newtab .con .con1').hide();  
	});
	// 滚动到中部，显示顶部搜索 
	$(window).scroll(function(e){ 
		st = $(document).scrollTop();
		if(st > 300){ 
			$(".sch_hidden_bar").show();
		}else{
			$(".sch_hidden_bar").hide();
		}
	}); 
	// 倒计时
	SysSecond = parseInt($(".next_time").attr("data-time")); 
	SetRemainTime();
	InterValObj = window.setInterval(SetRemainTime, 1000);  
});
</script>









