2 Star 1 Fork 2

徐子玉 / 品贷网

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
indexnew811.html 36.73 KB
一键复制 编辑 原始数据 按行查看 历史
徐子玉 提交于 2017-07-05 11:21 . + pdw
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>品代网-让销售变得简单</title>
<meta name="keywords" content="品牌代理,建材" />
<meta name="description" content="品代网是国内第一家建材云管理企业系统的门户网站,2012年开始筹备,2015年营运公司创立于上海,技术核心设立于浙江杭州,致力于家居、建材企业在网上管理,销售资源,生产品质,运输为一体的专业性电子商务数据管理型的门户网站,目前的业务跨越B2B (Business B2B (Business to Business), 是指商家与商家建立的商业关系。 B2C (Business to Consumer商家针对消费者),两大部分,经过2年的技术开发和筹备,目前是亚洲专业性最高的门户建材网站。品代网的宗旨:万店无假货,为建材需求的客户提倡一站式解决方案,提供100%的品质保证,为广大终端客户排除网络虚假消费。保证7天无理由退货的售后服务为理念。">
<meta name="author" content="Administrator">
<meta name="viewport" content="width=device-width; initial-scale=1.0">
<!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
<link rel="shortcut icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="stylesheet" href="css/style_1000.css" />
<link rel="stylesheet" href="css/add.css" />
<link rel="stylesheet" href="css/category.css" />
<link rel="stylesheet" href="css/right_side.css" />
<link rel="stylesheet" href="css/indent.css" />
<link rel="stylesheet" href="css/cxslide.css" />
<!-- 首页轮播图 -->
<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/jquery.cxslide.js"></script>
<!-- 首页轮播 -->
<script type="text/javascript" src="js/lrtk.js"></script>
<!-- 广告 -->
<!-- <script type="text/javascript" src="js/lavalamp.js"></script> -->
<!-- 物流公告 导航 -->
<!--[if lte IE 8]>
<script src="js/ieBetter.js"></script>
<![endif]-->
<script type="text/javascript" src="js/right-side/parabola.js"></script>
<script type="text/javascript" src="js/right-side/right_side.js"></script>
<!-- ie8兼容nth-child -->
<script type="text/javascript">
$(document).ready(function(){
if($.browser.msie && parseInt($.browser.version) == 8){
$('ul.shop_main_r li.fac_item:nth-child(3n)').css('margin-right','0')
}
});
</script>
<script type="text/javascript" src="js/newslistroll.js"></script>
<script type="text/javascript" src="js/jquery.goup.js"></script>
<!--回到顶部-->
<script type="text/javascript">
$(document).ready(function () {
$.goup({
containerRadius : 3,
trigger: 100,
bottomOffset: 150,
locationOffset: 100,
containerColor : '#666',
title: ' 回到顶部',
titleAsText: true
});
});
</script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?c88f9b2f2a09ade0a016b20e41c1207a";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body>
<!-- 右侧固定导航链接 -->
<div class="mui-mbar-tabs">
{$userright_html}
</div>
<!-- top_header 顶部 -->
<div id="top_header">
{$user_head_html}
</div>
<!-- gg_top -->
<div class="gg_top wrap_1000 clearfix" style="margin-top:34px">
{$ad_head_html}
</div>
<!-- top-main-->
<div id="top-main">
{$search_head_html}
</div>
<!-- nav-con -->
<div id="nav-con">
<div class="banner_nav">
<ul class="wrap_1000 clearfix">
<li class="nav-cpfl"><em class="flicon"> </em>产品分类11</li>
<li class="nav-index"><a href="index.php"> 首页 </a></li>
<li class="nav-index"><a href="javascript:;">品牌大全 </a></li>
<li class="nav-index"><a href="javascript:;">关于我们 </a></li>
</ul>
</div>
<div class="banner_con">
<div class="wrap_1000 relative">
<!-- category 种类 左-->
<div class="category">
<div class="parent" style="display: block"> </div>
{$ProductTypehtml}
<!--管件管材 -->
<!--水暖卫浴 -->
<!--灯饰灯具 -->
<!--板材五金 -->
</div>
<!--中部-->
<div class="banner-con_cen clearfix">
<!--区域-->
<ul class="banner_line banner-quyu clearfix">
<li class="banner-con-tit"><span class="quyu"> </span>全部区域</li>
<ul class="banner-con-word clearfix" id="alldistrict">{$Cityhtml}</ul>
<a href="javascript:;" class="moreBtn">+更多</a>
</ul>
<!--厂家-->
<ul class="banner_line banner-changjia">
<li class="banner-con-tit"><span class="changjia"> </span>热门厂家</li>
<ul class="banner-con-word">
{$hotFactoryhtml}
</ul>
</ul>
<div class="clear"> </div>
<!--show-box-->
<div class="show-box">
<!--content-->
<div class="content">
<!-- 焦点图 -->
<div id="cxslide" class="cxslide">
<div class="box">
<ul class="list">
{$Showhtml}
</ul>
</div>
<ul class="btn"> </ul>
<div class="plus"> </div>
<div class="minus"> </div>
</div>
</div>
</div>
</div>
<!--右-->
</div>
</div>
</div>
<!-- nav-con end -->
<!-- 侧边栏 导航 fix -->
<!--<div id="sidebar-menu">
<ul>
<li><a id="sb_menu1" href="#index_1" class="">{$1f}</a></li>
<li><a id="sb_menu2" href="#index_2" class="">{$2f}</a></li>
<li><a id="sb_menu3" href="#index_3" class="">{$3f}</a></li>
<li><a id="sb_menu4" href="#index_4" class="">{$4f}</a></li>
<li><a id="gotop" href="javascript:void(0)" title="回到顶部">回到顶部</a></li>
</ul>
</div>-->
<!--advertisement-->
<div class="goldmerchantTil">
金牌商家专栏
</div>
<div id="advertisement">
<div class="picbox">
<ul class="piclist mainlist">
{$ADListhtml}
</ul>
<ul class="piclist swaplist"> </ul>
</div>
<div class="og_prev"> </div>
<div class="og_next"> </div>
</div>
<!-- 首页信息-->
<div id="indexinfo" class="wrap_1000 indexinfo clearfix">
<div class="indexinfoLeft">
<div class="ininLeftbox1">
<!-- 登录 注册 -->
<div class="loginbox">
<a href="login.html" target="_blank">
<div class="newicon loginicon"></div>
<div class="iconword">登录</div>
</a>
</div>
<div class="regbox">
<a href="register.html" target="_blank">
<div class="newicon regicon"></div>
<div class="iconword">免费注册</div>
</a>
</div>
</div>
<div class="ininLeftbox2">
<!-- 品代公告 -->
<div class="ininLeftbox2tit">品代公告</div>
<ul>
<li class="ininLeftbox2list"><a href="#" target="_blank">品代网最新优惠信息品代网最新优惠信息品代网最新优惠信息品代网最新优惠信息</a></li>
<li class="ininLeftbox2list"><a href="#" target="_blank">品代网最新优惠信息</a></li>
<li class="ininLeftbox2list"><a href="#" target="_blank">品代网最新优惠信息</a></li>
<li class="ininLeftbox2list"><a href="#" target="_blank">品代网最新优惠信息</a></li>
</ul>
</div>
<div class="ininLeftbox3">
<!-- 申请代理 -->
<a href="applicationAgency.php" target="_self">
<div class="newicon sqdlicon"> </div>
<div class="sqdlword">申请厂家代理</div>
</a>
</div>
<div class="ininLeftbox4">
<!-- 选项中心 -->
<ul>
<li>
<a href="javascript:;" target="_blank">
<div class="newicon ininbox4li1"></div>诚信保障</a>
</li>
<li>
<a href="javascript:;" target="_blank">
<div class="newicon ininbox4li2"></div>商家认证</a>
</li>
<li>
<a href="javascript:;" target="_blank">
<div class="newicon ininbox4li3"></div>安全中心</a>
</li>
<li>
<a href="javascript:;" target="_blank">
<div class="newicon ininbox4li4"></div>手机端</a>
</li>
<li>
<a href="javascript:;" target="_blank">
<div class="newicon ininbox4li5"></div>品代学院</a>
</li>
<li>
<a href="javascript:;" target="_blank">
<div class="newicon ininbox4li6"></div>品代钱包</a>
</li>
</ul>
</div>
</div>
<div class="indexinfoMid">
<div id="newsvideo" class="newsvideo">
</div>
<!-- 首页本地视频播放 2015-9-14 缪杰 -->
<script type="text/javascript" src="ckplayer/ckplayer.js" charset="utf-8"></script>
<script type="text/javascript">
$.post("api.php?act=getVideo", { },
function(data){
var flashvars={
f:'ckplayer/a123456.mp4',
c:0,
i:'images/videopic.jpg',
loaded:'loadedHandler'
};
var video=['ckplayer/a123456.mp4'];
CKobject.embed('ckplayer/ckplayer.swf','newsvideo','ckplayer_a1','100%','96%',false,flashvars,video);
});
</script>
<div class="gqpt">
<div class="gqptcon">
<div class="gqptcontil">企业供求平台</div>
<ul class="gqptcontiltab clearfix">
<li class="gqptcontiltabqy">企业供货信息</li>
<li class="gqptcontiltabcj">寻求厂家定制</li>
</ul>
<ul class="gqptconword">
<li><a href="javascript:;" class="color_red">******会员寻求订制一批非标管件,有意向的厂家请</a></li>
<li><a href="javascript:;" class="color_red">******会员寻求订制一批非标管件,有意向的厂家请</a></li>
<li><a href="javascript:;" class="color_red">******会员寻求订制一批非标管件,有意向的厂家请</a></li>
<li><a href="javascript:;" class="color_blue">******会员寻求订制一批非标管件,有意向的厂家请</a></li>
<li><a href="javascript:;" class="color_blue">******会员寻求订制一批非标管件,有意向的厂家请</a></li>
<li><a href="javascript:;" class="color_red">******会员寻求订制一批非标管件,有意向的厂家请</a></li>
</ul>
</div>
</div>
</div>
<div class="indexinfoRight">
<div class="newsbox">
<div class="newstil">
<img src="images/newsboxtil.png" />
</div>
<div class="newslibox" id="scrollDiv">
<ul class="newsli">
{$NewsListhtml}
</ul>
</div>
</div>
<div class="newslogistics">
<div class="newslogisticsbg">
<a href="javascript:;" class="link1"></a>
<a href="javascript:;" class="link2"></a>
<a href="javascript:;" class="link3"></a>
<a href="javascript:;" class="link4"></a>
</div>
</div>
</div>
</div>
<!--index-main-->
<div id="index-main">
<div class="wrap_1000 clearfix">
<div class="layerAd">
<a href="#" target="_blank"><img id="s1" src="images/layerAd1.jpg"></a>
</div>
<!-- new1F -->
<div class="floor" id="index_1">
<div class="floor_til til1">
<span>1F</span> &nbsp;&nbsp; <a class="floorWord" href="search.php?seriesId={$1f_id}">{$1f}</a>
<a class="floormore" href="search.php?seriesId={$1f_id}&content=all">更多厂家+</a>
</div>
<div class="floor_main floor_main1 clearfix">
<div class="shop_main_l">
<img id="s1_left" src="images/1fbg.png">
</div>
<ul class="shop_main_r clearfix">
</ul>
</div>
</div>
<!-- new1F end -->
<div class="layerAd">
<a href="#" target="_blank"><img id="s2" src="images/layerAd.png"></a>
</div>
<!-- new2F -->
<div class="floor" id="index_2">
<div class="floor_til til2">
<span>2F</span> &nbsp;&nbsp;<a class="floorWord" href="search.php?seriesId={$2f_id}"> {$2f} </a>
<a class="floormore" href="search.php?seriesId={$2f_id}&content=all">更多厂家+</a>
</div>
<div class="floor_main floor_main1 clearfix">
<div class="shop_main_l">
<img id="s2_left" src="images/2fbg.png">
</div>
<ul class="shop_main_r clearfix">
</ul>
</div>
</div>
<!-- new2F end -->
<div class="layerAd">
<a href="#" target="_blank"><img id="s3" src="images/layerAd.png"></a>
</div>
<!-- new3F -->
<div class="floor" id="index_3">
<div class="floor_til til3">
<span>3F</span> &nbsp;&nbsp; <a class="floorWord" href="search.php?seriesId={$3f_id}"> {$3f} </a>
<a class="floormore" href="search.php?seriesId={$3f_id}&content=all">更多厂家+</a>
</div>
<div class="floor_main floor_main1 clearfix">
<div class="shop_main_l">
<img id="s3_left" src="images/3fbg.png">
</div>
<ul class="shop_main_r clearfix">
</ul>
</div>
</div>
<!-- new3F end -->
<div class="layerAd">
<a href="#" target="_blank"><img id="s4" src="images/layerAd.png"></a>
</div>
<!-- new4F -->
<div class="floor" id="index_4">
<div class="floor_til til4">
<span>4F</span> &nbsp;&nbsp; <a class="floorWord" href="search.php?seriesId={$4f_id}"> {$4f} </a>
<a class="floormore" href="search.php?seriesId={$4f_id}&content=all">更多厂家+</a>
</div>
<div class="floor_main floor_main1 clearfix">
<div class="shop_main_l">
<img id="s4_left" src="images/4fbg.png">
</div>
<ul class="shop_main_r clearfix">
</ul>
</div>
</div>
<!-- new4F end -->
</div>
</div>
<!-- footer-->
<div id="footermain">
{$foot_html}
</div>
<div id="client_mask" class="float-mask" style="display: none">
<div class="float_layer"> </div>
<div class="float_content clearfix">
<div id="float_bg" class="float_bg"> </div>
<div id="float_dl" class="float_dl">
<div class="float_dl_inner clearfix">
<div class="float_dl_left">
<h3>扫面二维码 下载客户端</h3>
<div class="float_qr">
<img src="images/footerweima .png" width="94" height="94" />
</div>
</div>
<div class="float_dl_right">
<h3>直接下载</h3>
<a href="#">iphone</a>
<a href="javascript:;" target="_blank">Android</a>
</div>
</div>
</div>
<div id="float_close" class="float_close">
<a href="javascript:;"> </a>
</div>
</div>
</div>
<!--悬浮广告-->
<div class="suspendAdbox suspendAdboxleft">
<span class="closeIcon"><a href="javascript:;"><img src="images/xicon.png"></a></span>
<div class="suspendAd">
<a href="#"><img id="leftUp" src="" /></a>
</div>
<div class="suspendAd">
<a href="#"><img id="leftDown" src="" /></a>
</div>
</div>
<div class="suspendAdbox suspendAdboxright">
<span class="closeIcon"><a href="javascript:;"><img src="images/xicon.png"></a></span>
<div class="suspendAd">
<a href="#"><img id="rightUp" src="" /></a>
</div>
<div class="suspendAd">
<a href="#"><img id="rightDown" src="" /></a>
</div>
</div>
<!-- ****************************** -->
<!-- v5kf.com -->
<!--<script type="text/javascript" charset="utf-8" src="https://www.v5kf.com/104932/v5kf.js"></script>-->
<!-- / v5kf.com -->
<script type="text/javascript">
bindFloor();
var aotoCount = 0;
var auto
$(document).ready(function(){
auto = setInterval("bindFloor()",10000);
//底部二维码关闭
$("#float_close").click(function(){
$("#client_mask").fadeOut(1000);
});
//关闭广告
$('.closeIcon').click(function(){
$('.suspendAdbox').css('display','none');
});
//首页轮播
var Api;
$('#cxslide').cxSlide({
minus: true,
plus: true
}, function(api){
Api = api;
});
//首页两侧广告
$.post("api.php?act=getAd",{
type:5
},
function(data){
if(data != ''){
data = $.parseJSON(data);
$.each(data,function(n,value){
if(value.slogan == '左上'){
$('#leftUp').attr('src',value.picUrl);
}
if(value.slogan == '左下'){
$('#leftDown').attr('src',value.picUrl);
}
if(value.slogan == '右上'){
$('#rightUp').attr('src',value.picUrl);
}
if(value.slogan == '右下'){
$('#rightDown').attr('src',value.picUrl);
}
});
}
});
//系列广告
$.post("api.php?act=getAd",{
type:6
},
function(data){
if(data != ''){
data = $.parseJSON(data);
$.each(data,function(n,value){
if(value.slogan == '管材管件-横'){
$('#s1').attr('src',value.picUrl);
}
if(value.slogan == '水暖卫浴-横'){
$('#s2').attr('src',value.picUrl);
}
if(value.slogan == '灯具开关-横'){
$('#s3').attr('src',value.picUrl);
}
if(value.slogan == '板材五金-横'){
$('#s4').attr('src',value.picUrl);
}
if(value.slogan == '管材管件-竖'){
$('#s1_left').attr('src',value.picUrl);
}
if(value.slogan == '水暖卫浴-竖'){
$('#s2_left').attr('src',value.picUrl);
}
if(value.slogan == '灯具开关-竖'){
$('#s3_left').attr('src',value.picUrl);
}
if(value.slogan == '板材五金-竖'){
$('#s4_left').attr('src',value.picUrl);
}
});
}
});
//显示全部区域
$(".moreBtn").mouseover(function(){
$(".banner-con-word").css("height","auto");
});
$(".banner-con-word").mouseleave(function(){
$(".banner-con-word").css("height","35px");
});
//切换城市
$(".city-info_toggle").click(function(){
$(".city_box").slideDown(200);
});
//点击页面空白隐藏下拉框
$(document).bind('click',function(e){
var target = $(e.target);
if(target.closest(".city_box,.city-info_toggle").length == 0){
$(".city_box").hide();
};
e.stopPropagation();
});
$(".sure").click(function(){
$(".city_box").slideUp(200);
var cur_cid = $('#sel2_til p').attr('cid');
var cur_city = $('#sel2_til p').html();
if (cur_cid != "")
{
$(".city-info_name").html(cur_city);
$(".city-info_name").attr('cid', cur_cid);
var cid = $('.city-info_name').attr('cid');
var city = $('.city-info_name').text();
$.post("api.php?act=district", {cid: cid }, function(data){
var html = "";
data = $.parseJSON(data);
$.each(data, function(n,value) {
html += '<a href="search.php?city='+city+'&dist='+value.name+'" did="'+value.id+'"><li>'+value.name+'</li></a>';
});
$('#alldistrict').html(html);
//显示点击的市
$('.citylist li').click(function(){
$('#sel2_til p').html($(this).html());
$('#sel2_til p').attr("cid", $(this).attr('cid'));
$('.city .sel_con').hide();
});
});
//window.location.href = "search.php?city=" + city;
}
});
//选择省
$.post("api.php?act=province", { },
function(data){
var html = "";
//$('.prov .sel_con').show();
data = $.parseJSON(data);
html += ' <div class="provlist">';
html += ' <ul>';
$.each(data, function(n,value) {
html += ' <li value="'+value.name+'" pid="'+value.id+'">'+value.name+'</li>';
});
html += ' </ul>';
html += ' </div>';
$('.prov .sel_con').html(html);
});
//点击显示
$('#sel1_til').live('click',function(){
if ($(this).siblings().is(':hidden')) {
$(this).siblings().css('display','none');
$(this).siblings('.sel_con').slideDown(200);
$(this).siblings().css('display','block');
}
else{
$(this).siblings('.sel_con').slideUp(200);
};
});
$('#sel2_til').live('click',function(){
if ($(this).siblings().is(':hidden')) {
$(this).siblings().css('display','none');
$(this).siblings('.sel_con').slideDown(200);
$(this).siblings().css('display','block');
}
else{
$(this).siblings('.sel_con').slideUp(200);
};
});
//选择市
$('.provlist li').live('click',function(){
$('#sel1_til p').html($(this).html());
$('#sel1_til p').attr("pid", $(this).attr('pid'));
$('.prov .sel_con').hide();
var pid = $(this).attr('pid');
$.post("api.php?act=city", {pid: pid },
function(data){
$('.city .sel_con').slideDown(200);
var html = "";
data = $.parseJSON(data);
html += '<div class="citylist">';
html += ' <ul>';
$.each(data, function(n,value) {
html += ' <li value="'+value.name+'" cid="'+value.id+'">'+value.name+'</li>';
});
html += ' </ul>';
html += '</div>';
$('.city .sel_con').html(html);
//显示点击的市
$('.citylist li').click(function(){
$('#sel2_til p').html($(this).html());
$('#sel2_til p').attr("cid", $(this).attr('cid'));
$('.city .sel_con').hide();
});
});
$('#sel2_til').click();
});
//侧边栏锚点导航
$(function(){
$('a[href*=#],area[href*=#]').click(function() {
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
var $target = $(this.hash);
$target = $target.length && $target || $('[name=' + this.hash.slice(1) + ']');
if ($target.length) {
var targetOffset = $target.offset().top;
$('html,body').animate({
scrollTop: targetOffset
},
1000);
return false;
}
}
});
});
$(function() {
$('#sidebar-menu').hide();
$(window).scroll(function(){
t = $(document).scrollTop();
if(t>300){
$('#sidebar-menu').fadeIn('slow');
$('#gotop').fadeIn('slow');
}else{
$('#sidebar-menu').fadeOut('slow');
$('#gotop').fadeOut('slow');
}
});
$("#sidebar-menu li").click(function(){
$("#sidebar-menu li a").removeClass('current');
$("html,body").animation({
scrollTop:$($(this).attr("href")).offset().top+"px"
},{
duration:500,
easing:"swing"
});
return false;
});
$('#gotop').click(function(){
$('body,html').animate({
scrollTop: 0
},800);//点击回到顶部按钮,缓懂回到顶部,数字越小越快
return false;
});
});
$(document).ready(function(){
$(".side ul li").hover(function(){
$(this).find(".sidebox").stop().animate({"width":"124px"},200).css({"opacity":"1","filter":"Alpha(opacity=100)","background":"#ae1c1c"});
},function(){
$(this).find(".sidebox").stop().animate({"width":"54px"},200).css({"opacity":"0.8","filter":"Alpha(opacity=80)","background":"#000"});
});
});
function goTop(){
$('html,body').animate({'scrollTop':0},1000);
}
//search
$('.search-button').live('click',function(){
var search_txt = $('.search-in').val();
var empty_txt = $('.search-in').attr('empty_value');
if (search_txt == '' || search_txt == empty_txt)
{
alert('请输入产品名称');
}
else
{
window.open("search.php?keys=" + search_txt);
}
});
});
function bindFloor(){
aotoCount++;
if(aotoCount > 5){
clearInterval(auto);
}
//1f
$.get("api.php?act=randomFactory&seriesId={$1f_id}", {},function(data){
var html = "";
if(data != ''){
items = $.parseJSON(data);
var count1F = 0;
var count2F = 0;
var count3F = 0;
$.each(items, function(n,value) {
if(value.Lv == 1){
count1F++;
html += '<li class="fac_item">';
html += ' <a href="store.php?id='+value.FactoryId+'">';
html += ' <div class="fac_img">';
html += ' <img width="238" height="110" src="'+value.ListPic+'"/>';
html += ' </div>' ;
html += ' <div class="fac_name">';
html += ' <p>'+value.Abbreviation+'</p>';
html += ' </div>';
html += ' </a>';
html += '</li>';
}
});
for(var f1 = 0; f1 < (3-count1F) ; f1++){
html += '<li class="fac_item">';
html += ' <a href="javascript:;">';
html += ' <div class="fac_img">';
html += ' <img width="238" height="110" src="images/defaultshop.jpg"/>';
html += ' </div>';
html += ' <div class="fac_name">';
html += ' <p>厂家招募中</p>';
html += ' </div>';
html += ' </a>';
html += '</li>';
}
$.each(items, function(n,value) {
if(value.Lv == 2){
count2F++;
html += '<li class="fac_item">';
html += ' <a href="store.php?id='+value.FactoryId+'">';
html += ' <div class="fac_img">';
html += ' <img width="238" height="110" src="'+value.ListPic+'"/>';
html += ' </div>' ;
html += ' <div class="fac_name">';
html += ' <p>'+value.Abbreviation+'</p>';
html += ' </div>';
html += ' </a>';
html += '</li>';
}
});
for(var f2 = 0; f2 < (3-count2F) ; f2++){
html += '<li class="fac_item">';
html += ' <a href="javascript:;">';
html += ' <div class="fac_img">';
html += ' <img width="238" height="110" src="images/defaultshop.jpg"/>';
html += ' </div>';
html += ' <div class="fac_name">';
html += ' <p>厂家招募中</p>';
html += ' </div>';
html += ' </a>';
html += '</li>';
}
$.each(items, function(n,value) {
if(value.Lv == 3){
count3F++;
html += '<li class="fac_item">';
html += ' <a href="store.php?id='+value.FactoryId+'">';
html += ' <div class="fac_img">';
html += ' <img width="238" height="110" src="'+value.ListPic+'"/>';
html += ' </div>' ;
html += ' <div class="fac_name">';
html += ' <p>'+value.Abbreviation+'</p>';
html += ' </div>';
html += ' </a>';
html += '</li>';
}
});
for(var f3 = 0; f3 < (3-count3F) ; f3++){
html += '<li class="fac_item">';
html += ' <a href="javascript:;">';
html += ' <div class="fac_img">';
html += ' <img width="238" height="110" src="images/defaultshop.jpg"/>';
html += ' </div>';
html += ' <div class="fac_name">';
html += ' <p>厂家招募中</p>';
html += ' </div>';
html += ' </a>';
html += '</li>';
}
}
$('#index_1 .shop_main_r').html(html);
});
//2f
$.get("api.php?act=randomFactory&seriesId={$2f_id}", {},function(data){
var html = "";
if(data != ''){
items = $.parseJSON(data);
var count1F = 0;
var count2F = 0;
var count3F = 0;
$.each(items, function(n,value) {
if(value.Lv == 1){
count1F++;
html += '<li class="fac_item">';
html += ' <a href="store.php?id='+value.FactoryId+'">';
html += ' <div class="fac_img">';
html += ' <img width="238" height="110" src="'+value.ListPic+'"/>';
html += ' </div>' ;
html += ' <div class="fac_name">';
html += ' <p>'+value.Abbreviation+'</p>';
html += ' </div>';
html += ' </a>';
html += '</li>';
}
});
for(var f1 = 0; f1 < (3-count1F) ; f1++){
html += '<li class="fac_item">';
html += ' <a href="javascript:;">';
html += ' <div class="fac_img">';
html += ' <img width="238" height="110" src="images/defaultshop.jpg"/>';
html += ' </div>';
html += ' <div class="fac_name">';
html += ' <p>厂家招募中</p>';
html += ' </div>';
html += ' </a>';
html += '</li>';
}
$.each(items, function(n,value) {
if(value.Lv == 2){
count2F++;
html += '<li class="fac_item">';
html += ' <a href="store.php?id='+value.FactoryId+'">';
html += ' <div class="fac_img">';
html += ' <img width="238" height="110" src="'+value.ListPic+'"/>';
html += ' </div>' ;
html += ' <div class="fac_name">';
html += ' <p>'+value.Abbreviation+'</p>';
html += ' </div>';
html += ' </a>';
html += '</li>';
}
});
for(var f2 = 0; f2 < (3-count2F) ; f2++){
html += '<li class="fac_item">';
html += ' <a href="javascript:;">';
html += ' <div class="fac_img">';
html += ' <img width="238" height="110" src="images/defaultshop.jpg"/>';
html += ' </div>';
html += ' <div class="fac_name">';
html += ' <p>厂家招募中</p>';
html += ' </div>';
html += ' </a>';
html += '</li>';
}
$.each(items, function(n,value) {
if(value.Lv == 3){
count3F++;
html += '<li class="fac_item">';
html += ' <a href="store.php?id='+value.FactoryId+'">';
html += ' <div class="fac_img">';
html += ' <img width="238" height="110" src="'+value.ListPic+'"/>';
html += ' </div>' ;
html += ' <div class="fac_name">';
html += ' <p>'+value.Abbreviation+'</p>';
html += ' </div>';
html += ' </a>';
html += '</li>';
}
});
for(var f3 = 0; f3 < (3-count3F) ; f3++){
html += '<li class="fac_item">';
html += ' <a href="javascript:;">';
html += ' <div class="fac_img">';
html += ' <img width="238" height="110" src="images/defaultshop.jpg"/>';
html += ' </div>';
html += ' <div class="fac_name">';
html += ' <p>厂家招募中</p>';
html += ' </div>';
html += ' </a>';
html += '</li>';
}
}
$('#index_2 .shop_main_r').html(html);
});
//3f
$.get("api.php?act=randomFactory&seriesId={$3f_id}", {},function(data){
var html = "";
if(data != ''){
items = $.parseJSON(data);
var count1F = 0;
var count2F = 0;
var count3F = 0;
$.each(items, function(n,value) {
if(value.Lv == 1){
count1F++;
html += '<li class="fac_item">';
html += ' <a href="store.php?id='+value.FactoryId+'">';
html += ' <div class="fac_img">';
html += ' <img width="238" height="110" src="'+value.ListPic+'"/>';
html += ' </div>' ;
html += ' <div class="fac_name">';
html += ' <p>'+value.Abbreviation+'</p>';
html += ' </div>';
html += ' </a>';
html += '</li>';
}
});
for(var f1 = 0; f1 < (3-count1F) ; f1++){
html += '<li class="fac_item">';
html += ' <a href="javascript:;">';
html += ' <div class="fac_img">';
html += ' <img width="238" height="110" src="images/defaultshop.jpg"/>';
html += ' </div>';
html += ' <div class="fac_name">';
html += ' <p>厂家招募中</p>';
html += ' </div>';
html += ' </a>';
html += '</li>';
}
$.each(items, function(n,value) {
if(value.Lv == 2){
count2F++;
html += '<li class="fac_item">';
html += ' <a href="store.php?id='+value.FactoryId+'">';
html += ' <div class="fac_img">';
html += ' <img width="238" height="110" src="'+value.ListPic+'"/>';
html += ' </div>' ;
html += ' <div class="fac_name">';
html += ' <p>'+value.Abbreviation+'</p>';
html += ' </div>';
html += ' </a>';
html += '</li>';
}
});
for(var f2 = 0; f2 < (3-count2F) ; f2++){
html += '<li class="fac_item">';
html += ' <a href="javascript:;">';
html += ' <div class="fac_img">';
html += ' <img width="238" height="110" src="images/defaultshop.jpg"/>';
html += ' </div>';
html += ' <div class="fac_name">';
html += ' <p>厂家招募中</p>';
html += ' </div>';
html += ' </a>';
html += '</li>';
}
$.each(items, function(n,value) {
if(value.Lv == 3){
count3F++;
html += '<li class="fac_item">';
html += ' <a href="store.php?id='+value.FactoryId+'">';
html += ' <div class="fac_img">';
html += ' <img width="238" height="110" src="'+value.ListPic+'"/>';
html += ' </div>' ;
html += ' <div class="fac_name">';
html += ' <p>'+value.Abbreviation+'</p>';
html += ' </div>';
html += ' </a>';
html += '</li>';
}
});
for(var f3 = 0; f3 < (3-count3F) ; f3++){
html += '<li class="fac_item">';
html += ' <a href="javascript:;">';
html += ' <div class="fac_img">';
html += ' <img width="238" height="110" src="images/defaultshop.jpg"/>';
html += ' </div>';
html += ' <div class="fac_name">';
html += ' <p>厂家招募中</p>';
html += ' </div>';
html += ' </a>';
html += '</li>';
}
}
$('#index_3 .shop_main_r').html(html);
});
//4f
$.get("api.php?act=randomFactory&seriesId={$4f_id}", {},function(data){
var html = "";
if(data != ''){
items = $.parseJSON(data);
var count1F = 0;
var count2F = 0;
var count3F = 0;
$.each(items, function(n,value) {
if(value.Lv == 1){
count1F++;
html += '<li class="fac_item">';
html += ' <a href="store.php?id='+value.FactoryId+'">';
html += ' <div class="fac_img">';
html += ' <img width="238" height="110" src="'+value.ListPic+'"/>';
html += ' </div>' ;
html += ' <div class="fac_name">';
html += ' <p>'+value.Abbreviation+'</p>';
html += ' </div>';
html += ' </a>';
html += '</li>';
}
});
for(var f1 = 0; f1 < (3-count1F) ; f1++){
html += '<li class="fac_item">';
html += ' <a href="javascript:;">';
html += ' <div class="fac_img">';
html += ' <img width="238" height="110" src="images/defaultshop.jpg"/>';
html += ' </div>';
html += ' <div class="fac_name">';
html += ' <p>厂家招募中</p>';
html += ' </div>';
html += ' </a>';
html += '</li>';
}
$.each(items, function(n,value) {
if(value.Lv == 2){
count2F++;
html += '<li class="fac_item">';
html += ' <a href="store.php?id='+value.FactoryId+'">';
html += ' <div class="fac_img">';
html += ' <img width="238" height="110" src="'+value.ListPic+'"/>';
html += ' </div>' ;
html += ' <div class="fac_name">';
html += ' <p>'+value.Abbreviation+'</p>';
html += ' </div>';
html += ' </a>';
html += '</li>';
}
});
for(var f2 = 0; f2 < (3-count2F) ; f2++){
html += '<li class="fac_item">';
html += ' <a href="javascript:;">';
html += ' <div class="fac_img">';
html += ' <img width="238" height="110" src="images/defaultshop.jpg"/>';
html += ' </div>';
html += ' <div class="fac_name">';
html += ' <p>厂家招募中</p>';
html += ' </div>';
html += ' </a>';
html += '</li>';
}
$.each(items, function(n,value) {
if(value.Lv == 3){
count3F++;
html += '<li class="fac_item">';
html += ' <a href="store.php?id='+value.FactoryId+'">';
html += ' <div class="fac_img">';
html += ' <img width="238" height="110" src="'+value.ListPic+'"/>';
html += ' </div>' ;
html += ' <div class="fac_name">';
html += ' <p>'+value.Abbreviation+'</p>';
html += ' </div>';
html += ' </a>';
html += '</li>';
}
});
for(var f3 = 0; f3 < (3-count3F) ; f3++){
html += '<li class="fac_item">';
html += ' <a href="javascript:;">';
html += ' <div class="fac_img">';
html += ' <img width="238" height="110" src="images/defaultshop.jpg"/>';
html += ' </div>';
html += ' <div class="fac_name">';
html += ' <p>厂家招募中</p>';
html += ' </div>';
html += ' </a>';
html += '</li>';
}
}
for(var empty = 0; empty < 9 ; empty++){
html += '<li class="fac_item">';
html += ' <a href="javascript:;">';
html += ' <div class="fac_img">';
html += ' <img width="238" height="110" src="images/defaultshop.jpg"/>';
html += ' </div>';
html += ' <div class="fac_name">';
html += ' <p>厂家招募中</p>';
html += ' </div>';
html += ' </a>';
html += '</li>';
}
$('#index_4 .shop_main_r').html(html);
});
}
</script>
</body>
</html>
1
https://gitee.com/xuqipeter/pdw.git
git@gitee.com:xuqipeter/pdw.git
xuqipeter
pdw
品贷网
master

搜索帮助