You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
464 lines
28 KiB
464 lines
28 KiB
<!DOCTYPE html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>{$menu.menu_seo_title|default=$site_seo_title} {$site_name}</title>
|
|
<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
|
|
<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
|
|
{include file="public:head" /}
|
|
<style>
|
|
.fig-default .fig-info{height:110px;}
|
|
.img-shell{position:relative;}
|
|
.introduce{
|
|
position: absolute;bottom: 0;left: 0;width: 100%;padding: 10px;font-size:0.9em;line-height: 18px;height:100%;font-size:12px; background-color: rgba(255,255,255,.6);color: #000;text-align: left;
|
|
display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;overflow: hidden;
|
|
transform:translateY(100%);-moz-transform:translateY(100%);-webkit-transform:translateY(100%);-o-transform:translateY(100%);
|
|
transition: all .3s;-moz-transition: all .3s;-webkit-transition: all .3s;-o-transition: all .3s;
|
|
}
|
|
.fig-media:hover .introduce{
|
|
transform:translateY(0);-moz-transform:translateY(0);-webkit-transform:translateY(0);-o-transform:translateY(0);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="home">
|
|
<div class="wrap">
|
|
<!--logo结束-->
|
|
{include file="public:nav" /}
|
|
<!--banner开始-->
|
|
{if condition="count($banners)"}
|
|
<div class="banner" style="min-width: 1200px; min-height: 313px;">
|
|
<div id="bannerswiper" class="swiper-container">
|
|
<div class="swiper-wrapper">
|
|
{foreach name="banners" item="vo"}
|
|
<div class="swiper-slide" onclick="window.location.href='{$vo.lk_url}'">
|
|
<div class="bannerimg"><img class="img-responsive" src="{$vo.lk_pic|get_imgurl}" title="{$vo.lk_name}" ></div>
|
|
</div>
|
|
{/foreach}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{else}
|
|
<div class="detailsbanner"></div>
|
|
{/if}
|
|
<!--banner结束-->
|
|
<!--tabs开始-->
|
|
<div class="content">
|
|
<div class="basictop" style="margin-top: 20px; margin-bottom: 80px">
|
|
{if condition="(isset($list) and count($list)) or (empty($cid) and empty($state) and $kind neq 1)"}
|
|
{if condition="$kind eq 4"}
|
|
<div class="searchwraper" style="text-align:right;">
|
|
<div class="searchbody search" style="width:300px;">
|
|
<form id="searchForm" action="{:url('news/search',array('kind'=>$kind,'cid'=>$cid,'kid'=>$kid))}" method="post">
|
|
<div class="guideleft options">
|
|
<select name="option">
|
|
<option value="1">艺术品</option>
|
|
<option value="2">艺术家</option>
|
|
</select>
|
|
</div>
|
|
<div class="guideleft searchpadding">
|
|
<input type="text" id="search-keyword" name="keyword" value="{$keyword}" placeholder="请输入关键词">
|
|
</div>
|
|
<div class="guideright" style="padding-right:10px;">
|
|
{:token('__searchcate__')}
|
|
<div onclick="$('#searchForm').submit()" class=" iconfont icon-sousuo searchicon"></div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
{/if}
|
|
{if condition="count($states) and empty($cid)"}
|
|
|
|
{foreach $states as $index=>$jo}
|
|
{if condition="isset($jo) and isset($jo['products']) and count($jo['products'])"}
|
|
<div class="categorylist" style="padding: 0 20px 20px 20px;">
|
|
<div class="tabs modeub modeac">
|
|
<div class="tabstitle">{$jo.name}</div>
|
|
<div class="tabstitle tabslast modef1 " style="position:absolute;z-index:99;right:0px;top:12px;"><a href="{:url('category',array('kind'=>$kind,'state'=>$index))}">更多</a></div>
|
|
{if condition="isset($state) and $state"}
|
|
<div class="iconfont icon-fanhui backcolor"></div>
|
|
<div class="tabslastfont " onclick='window.location.href="{:url('category',array('kind'=>$kind))}"'>上一页</div>
|
|
{/if}
|
|
</div>
|
|
<table border="0" cellspacing="0" cellpadding="0" align="center" width="100%" style="margin-top:15px;cursor:pointer;">
|
|
<thead>
|
|
<tr class="tabletitle" style="font-size:1.1em;line-height:1.6em;">
|
|
<th width="4%" style="text-align: center">资产托管代码</th>
|
|
<th width="10%" style="text-align: center">托管资产名称</th>
|
|
<th width="5%" style="text-align: center">卖家报价</th>
|
|
<th width="5%" style="text-align: center">披露起始日期</th>
|
|
<th width="5%" style="text-align: center">点击量</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{foreach $jo['products'] as $vo}
|
|
<tr class="tabletitle" {if condition="isset($vo['c_jump']) and $vo['c_jump']"}onclick='window.open("{$vo.c_jump}")'{else} onclick="window.location.href='{:url('news/finance',array('c_id'=>$vo['c_id'],'kind'=>$kind,'state'=>$index))}'"{/if} >
|
|
<th width="4%" style="text-align: center;line-height:2em;">{$vo.c_code}</th>
|
|
<th width="10%" style="text-align: left">{$vo.c_name}</th>
|
|
<th width="5%" style="text-align: center">{$vo.c_price}</th>
|
|
<th width="5%" style="text-align: center">{$vo.c_gptime?date('Y-m-d',$vo['c_gptime']):''}</th>
|
|
<th width="5%" style="text-align: center">{$vo.c_count}</th>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
{if condition="isset($state) and $state"}<div class="col-xs-12 text-center list-page">{$show}</div> {/if}
|
|
</div>
|
|
{/if}
|
|
{/foreach}
|
|
{/if}
|
|
{if condition="(isset($list) and count($list)) or (empty($cid) and empty($state) and $kind neq 1)"}
|
|
<?php $current=0;?>
|
|
|
|
{foreach $list as $index=>$jo}
|
|
{if condition="count($jo['products'])"}
|
|
{if condition="$kind eq 9"}<?php $index=$jo['id']-1;?>{/if}
|
|
<?php $current++;?>
|
|
<div class="categorylist" id="categorylist{$index}" style="padding: 0 20px 20px 20px;" has={$jo.has}>
|
|
<div class="tabs modeub modeac">
|
|
<div class="tabstitle">{$jo.name} </div>
|
|
{foreach $jo['childs'] as $key=>$ko}
|
|
<div class="tabstitle modef1 {if condition="$key eq $kid or (in_array($kind,[1]) and $key eq $cid)"}active{/if}"><a {if condition="in_array($kind,[1])"}href="{:url('category',array('kind'=>$kind,'cid'=>$key))}"{else}href="{:url('category',array('kind'=>$kind,'cid'=>$jo['id'],'kid'=>$key))}"{/if}>{$ko}</a></div>
|
|
{/foreach}
|
|
<div class="tabstitle tabslast modef1" style="position:absolute;z-index:99;right:0px;top:12px;"><a {if condition="in_array($kind,[1,7,8])"} href="{:url('category',array('kind'=>$kind))}" {elseif condition="$kind eq 4"} href="{:url('category',array('kind'=>$kind,'cid'=>$jo['id']))}" {else} href="{:url('category',array('kind'=>$kind,'cid'=>$index+1))}" {/if}>更多</a></div>
|
|
{if condition="$current eq 1 and $kind neq 4"}
|
|
<div class="tabstitle tabslast modef1" style="position:absolute;z-index:9;right:50px;top:8px;">
|
|
<div class="searchbody search">
|
|
<form id="searchForm" action="{:url('news/category',array('kind'=>$kind,'cid'=>$cid,'kid'=>$kid))}" method="get">
|
|
<div class="guideleft searchpadding">
|
|
<input type="text" id="search-keyword" name="keyword" value="{$keyword}" placeholder="请输入托管名称或托管代码">
|
|
</div>
|
|
<div class="guideright" style="padding-right:10px;">
|
|
{:token('__category__')}
|
|
<div onclick="$('#searchForm').submit()" class=" iconfont icon-sousuo searchicon"></div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
{if condition="isset($jo['products'])"}
|
|
<div class="detailsdes-new detailview">
|
|
<div class="products-wrapper clearfix">
|
|
{foreach $jo['products'] as $vo}
|
|
<div class="product">
|
|
<figure class="fig-default">
|
|
<div class="fig-media">
|
|
<a {if condition="isset($vo['c_jump']) and $vo['c_jump']"}onclick='window.open("{$vo.c_jump}")'{elseif condition="!in_array($kind,[7,8])"} href="{:url('news/finance',array('c_id'=>$vo['c_id'],'kind'=>$kind,'parent'=>$index+1))}"{/if} class="href-abs"></a>
|
|
<div class="img-shell">
|
|
{notempty name="vo.c_logo"}<img src="{$vo.c_logo}" />{/notempty}
|
|
{if condition="$vo['c_content']"}<div class="introduce">{$vo.c_content}</div>{/if}
|
|
</div>
|
|
{if condition="isset($vo['detect']) and !is_null($vo['detect'])"}<div class="detect">{$vo.detect==1?'检测未通过':($vo.detect==2?'检测通过':'未检测')}</div>{/if}
|
|
</div>
|
|
<figcaption class="fig-info" onclick='window.open(" {if condition="isset($vo['c_jump']) and $vo['c_jump']"}{$vo.c_jump}{elseif condition="!in_array($kind,[7,8])"}{:url('news/finance',array('c_id'=>$vo['c_id'],'kind'=>$kind,'parent'=>$index+1))}{/if}")'>
|
|
<h2 class="tit">{$vo.c_name}</h2>
|
|
{if condition="!isset($cid) or (isset($cid) and $cid neq 16)"}
|
|
<div class="attrs">
|
|
{if condition="!in_array($kind,[4,9,1,7,8])"}
|
|
<p>资产代码:{$vo.c_code}</p>
|
|
<p>卖家自报价:{$vo.c_price}</p>
|
|
<p>文交所指导价:{$vo.c_gprice}</p>
|
|
<p>第三方评估价:{$vo.c_tprice}</p>
|
|
{elseif condition="in_array($kind,[7,8])"}
|
|
{elseif condition="$kind eq 9"}
|
|
<p>名称:{$vo.c_name}</p>
|
|
<p>年代:{$vo.c_year|default="--"}</p>
|
|
{elseif condition="$kind eq 1"}
|
|
<p>企业名称:{$vo.c_name}</p>
|
|
<p>挂牌代码:{$vo.c_code|default="--"}</p>
|
|
{else}
|
|
<p>资产托管代码:{$vo.c_code}</p>
|
|
<p>卖家报价:{$vo.c_price}</p>
|
|
<p>本所指导价:{$vo.c_gprice}</p>
|
|
{if condition="!empty($vo['c_tprice']) and $vo['c_tprice']!='/'"}
|
|
<p>第三方评估价:{$vo.c_tprice}</p>
|
|
{/if}
|
|
{/if}
|
|
</div>
|
|
{/if}
|
|
</figcaption>
|
|
</figure>
|
|
</div>
|
|
{/foreach}
|
|
</div>
|
|
</div>
|
|
|
|
{/if}
|
|
</div>
|
|
{/if}
|
|
{/foreach}
|
|
{elseif condition="empty($state)"}
|
|
|
|
<div class="alllist categorylist" style="padding: 0 20px 20px 20px;">
|
|
<div class="tabs modeub modeac" style="border:none;height:34px;">
|
|
{if condition="$kind eq 4"}
|
|
<div class="filterwraper" style="right:230px;">
|
|
<div class="pricewraper">
|
|
<div class="tabstitle label"> 价格区间(CNY):</div>
|
|
<div class="tabstitle priceview"><input type="text" name="sprice" id="sprice" value="{$sprice}"/></div>
|
|
<div class="tabstitle label"> -</div>
|
|
<div class="tabstitle priceview"><input type="text" name="mprice" id="mprice" value="{$mprice}"/></div>
|
|
</div>
|
|
<div class="sortwraper">
|
|
<div class="tabstitle label"> 排序:</div>
|
|
<div class="tabstitle sortview {if condition="$yearsort eq 'asc'"}fall{else}rising{/if} yearsort"><a href="javascript:void(0);">年代</a></div>
|
|
<div class="tabstitle sortview {if condition="$pricesort eq 'asc'"}fall{else}rising{/if} pricesort"><a href="javascript:void(0);">估价</a></div>
|
|
</div>
|
|
<div class="changewraper">
|
|
<div class="tabstitle poster changeview"><a href="javascript:void(0);" {if condition="$showtype neq 1"}class="active"{/if}>切换到大图</a></div>
|
|
<div class="tabstitle category changeview"><a href="javascript:void(0);" {if condition="$showtype eq 1"}class="active"{/if}>切换到列表</a></div>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
<div class="tabstitle tabslast modef1" style="position:absolute;z-index:9;right:0px;top:5px;">
|
|
<div class="searchbody search">
|
|
<form id="searchForm" action="{:url('news/category',array('kind'=>$kind,'cid'=>$cid,'kid'=>$kid))}" method="get">
|
|
<div class="guideleft searchpadding">
|
|
<input type="text" id="searchkeyword" name="keyword" value="{$keyword}" placeholder="请输入{if condition='$kind eq 1'}登记托管名称或代码{else}托管名称或托管代码{/if}">
|
|
</div>
|
|
<div class="guideright" style="padding-right:10px;">
|
|
{:token('__category__')}
|
|
<div class=" iconfont icon-sousuo searchicon searchForm"></div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="tabs modeub modeac" style="margin-top:0px;">
|
|
<div class="tabstitle">{$parent}</div>
|
|
<div class="tabstitle tabslast modef1 {if condition="($kid eq '' and !in_array($kind,[1])) or (in_array($kind,[1,9]) and $cid eq '')"}active{/if}"><a {if condition="in_array($kind,[1])"}href="{:url('category',array('kind'=>$kind))}"{else}href="{:url('category',array('kind'=>$kind,'cid'=>$cid))}"{/if}>全部</a></div>
|
|
{if condition="count($categorys)"}
|
|
{foreach $categorys as $key=>$vo}
|
|
<div class="tabstitle modef1 {if condition="$key eq $kid or (in_array($kind,[1]) and $key eq $cid)"}active{/if}"><a {if condition="in_array($kind,[1])"}href="{:url('category',array('kind'=>$kind,'cid'=>$key))}"{else}href="{:url('category',array('kind'=>$kind,'cid'=>$cid,'kid'=>$key))}"{/if}>{$vo}</a></div>
|
|
{/foreach}
|
|
{/if}
|
|
<div class="marketsegment segment"> </div>
|
|
<div class="iconfont icon-fanhui backcolor"></div>
|
|
<div class="tabslastfont " onclick='window.location.href="{:url('category',array('kind'=>$kind))}"'>上一页</div>
|
|
</div>
|
|
{if condition="$kind eq 4 and $cid eq 11"}
|
|
<div class="tabdesc" style="font-size:1em;line-height:1.8em;padding:10px;text-indent:18px;color:#666;">
|
|
<p>艺术金融平台是深圳文交所的主营业务之一,以艺术品资产化为方向,以艺术品投资为指向,以艺术品资产的版权化、数字化、金融化为手段,通过艺术金融综合服务平台和五大交易平台应用场景,提供集登记、托管、信息发布、资产交易、资产管理、投融资服务为一体的业务生态,解决艺术资产流通瓶颈,促进市场资源合理高效配置,赋能文化艺术品产业。</p>
|
|
<p> 古陶瓷专区是深圳文交所艺术金融平台专题发展中心业务产品,主要为广大古陶瓷持有者、投资者和投融资客户提供资产<span style="color:#043fd9">登记托管、确权确价、托管、协议转让与拍卖交易、展览展销、融资和资产管理服务</span>,实现古陶瓷门类资产的展示、价值发现、交易流通、投融资功能,是服务于全国古陶瓷资产的专业化艺术金融综合平台。</p>
|
|
<p>古陶瓷业务咨询热线:<span style="color:#043fd9">0755——8325 1987</span>; 王女士<span style="color:#043fd9">158 0755 1658</span>(微信同号)</p>
|
|
</div>
|
|
{/if}
|
|
<div class="detailsdes-new detailview" {if condition="$showtype eq 1"}style="display:none;"{/if}>
|
|
<div class="products-wrapper clearfix">
|
|
{foreach $products as $key=>$vo}
|
|
<div class="product">
|
|
<figure class="fig-default">
|
|
<div class="fig-media">
|
|
<a {if condition="isset($vo['c_jump']) and $vo['c_jump']"}onclick='window.open("{$vo.c_jump}")'{elseif condition="$kind eq 11"}href="{:url('news/finance',array('c_id'=>$vo['c_id'],'kind'=>$kind,'parent'=>$vo['c_parent']))}"{else} href="{:url('news/finance',array('c_id'=>$vo['c_id'],'kind'=>$kind,'parent'=>$cid))}"{/if} class="href-abs"></a>
|
|
<div class="img-shell">
|
|
{notempty name="vo.c_logo"}<img src="{$vo.c_logo}" />{/notempty}
|
|
</div>
|
|
{if condition="isset($vo['detect']) and !is_null($vo['detect'])"}<div class="detect">{$vo.detect==1?'检测未通过':($vo.detect==2?'检测通过':'未检测')}</div>{/if}
|
|
</div>
|
|
<figcaption class="fig-info" onclick='window.open("{if condition="isset($vo['c_jump']) and $vo['c_jump']"}{$vo.c_jump}{elseif condition="$kind eq 11"}{:url('news/finance',array('c_id'=>$vo['c_id'],'kind'=>$kind,'parent'=>$vo['c_parent']))}{else}{:url('news/finance',array('c_id'=>$vo['c_id'],'kind'=>$kind,'parent'=>$cid))}{/if}")'>
|
|
<h2 class="tit">{$vo.c_name}</h2>
|
|
|
|
{if condition="!isset($cid) or (isset($cid) and $cid neq 16)"}
|
|
<div class="attrs">
|
|
{if condition="!in_array($kind,[4,9,1,7,8])"}
|
|
<p>资产代码:{$vo.c_code}</p>
|
|
<p>卖家自报价:{$vo.c_price}</p>
|
|
<p>文交所指导价:{$vo.c_gprice}</p>
|
|
<p>第三方评估价:{$vo.c_tprice}</p>
|
|
{elseif condition="in_array($kind,[7,8])"}
|
|
{elseif condition="$kind eq 9" }
|
|
<p>名称:{$vo.c_name}</p>
|
|
<p>年代:{$vo.c_year|default="--"}</p>
|
|
{elseif condition="$kind eq 1"}
|
|
<p>企业名称:{$vo.c_name}</p>
|
|
<p>挂牌代码:{$vo.c_code|default="--"}</p>
|
|
{else}
|
|
<p>资产托管代码:{$vo.c_code}</p>
|
|
<p>卖家报价:{$vo.c_price}</p>
|
|
<p>本所指导价:{$vo.c_gprice}</p>
|
|
{if condition="!empty($vo['c_tprice']) and $vo['c_tprice']!='/'"}
|
|
<p>第三方评估价:{$vo.c_tprice}</p>
|
|
{/if}
|
|
{/if}
|
|
</div>
|
|
{/if}
|
|
</figcaption>
|
|
</figure>
|
|
</div>
|
|
{/foreach}
|
|
</div>
|
|
</div>
|
|
{if condition="$kind eq 4"}
|
|
<div class="detailsdes-list detailview" {if condition="$showtype eq 1"}style="display:block;"{/if}>
|
|
<table border="0" cellspacing="0" cellpadding="0" align="center" width="100%" style="margin-top:15px;cursor:pointer;">
|
|
<thead>
|
|
<tr class="tabletitle" style="font-size:1.1em;line-height:1.6em;">
|
|
<th width="4%" style="text-align: center">资产托管代码</th>
|
|
<th width="10%" style="text-align: center">托管资产名称</th>
|
|
<th width="5%" style="text-align: center">卖家报价</th>
|
|
<th width="5%" style="text-align: center">年代</th>
|
|
<th width="5%" style="text-align: center">披露起始日期</th>
|
|
<th width="5%" style="text-align: center">点击量</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{foreach $products as $index=>$vo}
|
|
<tr class="tabletitle" {if condition="isset($vo['c_jump']) and $vo['c_jump']"}onclick='window.open("{$vo.c_jump}")'{else} onclick="window.location.href='{:url('news/finance',array('c_id'=>$vo['c_id'],'kind'=>$kind,'state'=>$index))}'"{/if} >
|
|
<th width="4%" style="text-align: center;line-height:2em;">{$vo.c_code}</th>
|
|
<th width="10%" style="text-align: left">{$vo.c_name}</th>
|
|
<th width="5%" style="text-align: center">{$vo.c_price}</th>
|
|
<th width="5%" style="text-align: center">{$vo.c_year|default="--"}</th>
|
|
<th width="5%" style="text-align: center">{$vo.c_gptime?date('Y-m-d',$vo['c_gptime']):''}</th>
|
|
<th width="5%" style="text-align: center">{$vo.c_count}</th>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{/if}
|
|
<div class="col-xs-12 text-center list-page">{$show}</div>
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{include file="public:footer"/}
|
|
{include file="public:scripts"/}
|
|
<script>
|
|
function keyPress(){
|
|
var keyCode=event.keyCode;
|
|
if(keyCode>=48&&keyCode<=57){
|
|
event.returnValue=true;
|
|
}else{
|
|
event.returnValue=false;
|
|
}
|
|
}
|
|
function layerAlert(msg,type,call) {
|
|
var icon=0;
|
|
if(type=='error'){
|
|
icon=5;
|
|
}else if(type=='success'){
|
|
icon=6;
|
|
}
|
|
layer.alert(msg, {icon: icon,
|
|
cancel:function () {
|
|
call&&call();
|
|
}},
|
|
function (index) {
|
|
layer.close(index);
|
|
call&&call();
|
|
}
|
|
);
|
|
}
|
|
function toThousands(num) {
|
|
var result = [ ], counter = 0;
|
|
num = (num || 0).toString().split('');
|
|
console.log("num",num);
|
|
for (var i = num.length - 1; i >= 0; i--) {
|
|
counter++;
|
|
result.unshift(num[i]);
|
|
if (!(counter % 3) && i != 0) { result.unshift(','); }
|
|
}
|
|
var str=result.join('');
|
|
return str;
|
|
}
|
|
$(function(){
|
|
/*******banner滚动********/
|
|
var swiper = new Swiper('#bannerswiper', {
|
|
paginationClickable: true,
|
|
centeredSlides: true,
|
|
autoplay: 2500,
|
|
autoplayDisableOnInteraction : false,
|
|
loop:true,
|
|
autoplayDisableOnInteraction: false
|
|
});
|
|
var yearsort="{:$yearsort}";
|
|
var pricesort="{:$pricesort}";
|
|
var url="{:url('category',['kind'=>$kind,'cid'=>$cid])}?page={$page}&showtype={$showtype}";
|
|
var mprice=sprice='';
|
|
{if condition="$sprice"}
|
|
sprice={$sprice};
|
|
sprice=toThousands(sprice);
|
|
$("#sprice").val(sprice)
|
|
{/if}
|
|
{if condition="$mprice"}
|
|
mprice={$mprice};
|
|
mprice=toThousands(mprice);
|
|
$("#mprice").val(mprice)
|
|
{/if}
|
|
|
|
$("#sprice").focusout(function(){
|
|
sprice=$(this).val();
|
|
sprice=sprice.replace(",","");
|
|
$(this).data('val',sprice);
|
|
sprice=toThousands(sprice);
|
|
console.log("sprice",sprice);
|
|
$(this).val(sprice);
|
|
})
|
|
|
|
$("#mprice").focusout(function(){
|
|
mprice=$(this).val();
|
|
mprice=mprice.replace(",","");
|
|
sprice=$("#sprice").val();
|
|
var sval=$("#sprice").data('val');
|
|
if(parseInt(mprice)<parseInt(sval)){
|
|
return layerAlert("最大价格不能小于最小价格");
|
|
}
|
|
$(this).val(toThousands(mprice))
|
|
setTimeout(function(){
|
|
window.location.href=url+"&yearsort="+yearsort+"&pricesort="+pricesort+"&mprice="+mprice+"&sprice="+sprice;
|
|
},1000);
|
|
})
|
|
|
|
$(".changeview").click(function(){
|
|
var parent=$(this).parents(".categorylist");
|
|
parent.find(".changeview a").removeClass("active");
|
|
$(this).find('a').addClass("active");
|
|
var index=$(this).index(".changeview");
|
|
parent.find(".detailview").hide();
|
|
console.log("index:",index);
|
|
$(".detailview").eq(index).show();
|
|
var len=$(".pagination").length;
|
|
$("#showtype").val(index);
|
|
if(len){
|
|
$(".pagination a").each(function(){
|
|
var href=$(this).attr("href");
|
|
href+="&showtype="+index;
|
|
$(this).attr("href",href);
|
|
});
|
|
}
|
|
});
|
|
$(".yearsort").click(function(){
|
|
var key="";
|
|
var has=$(this).hasClass("fall");
|
|
if(has)key="desc";
|
|
var has=$(this).hasClass("rising");
|
|
if(has)key="asc";
|
|
yearsort=key
|
|
$("#yearsort").val(key);
|
|
window.location.href=url+"&yearsort="+key+"&pricesort="+pricesort+"&mprice="+mprice+"&sprice="+sprice;
|
|
});
|
|
$(".pricesort").click(function(){
|
|
var key="";
|
|
var has=$(this).hasClass("fall");
|
|
if(has)key="desc";
|
|
var has=$(this).hasClass("rising");
|
|
if(has)key="asc";
|
|
pricesort=key;
|
|
$("#pricesort").val(key);
|
|
window.location.href=url+"&yearsort="+yearsort+"&pricesort="+key;
|
|
});
|
|
$(".searchForm").click(function(){
|
|
var keyword=$("#searchkeyword").val();
|
|
var token=$("input[name='__category__']").val();
|
|
var kind="{:$kind}"
|
|
if(kind==4){
|
|
window.location.href=url+"&yearsort="+yearsort+"&pricesort="+pricesort+"&mprice="+mprice+"&sprice="+sprice+"&keyword="+keyword+"&__category__="+token;
|
|
}else{
|
|
window.location.href=url+"&keyword="+keyword+"&__category__="+token;
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|