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.
284 lines
14 KiB
284 lines
14 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="img('{$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">
|
|
|
|
<div class="tabs modeub modeac" style="border:none;height:34px;">
|
|
<div class="filterwraper" style="right:10px;">
|
|
<div class="pricewraper">
|
|
<div class="tabstitle label"> 价格区间(CNY):</div>
|
|
<div class="tabstitle priceview"><input type="text" onkeypress="keyPress()" name="sprice" id="sprice" value="{$sprice}"/></div>
|
|
<div class="tabstitle label"> -</div>
|
|
<div class="tabstitle priceview"><input type="text" onkeypress="keyPress()" 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="searchwraper" style="display:inline-block;vertical-align:top;padding-top:0px;margin-top:-1px;">
|
|
<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>
|
|
</div>
|
|
</div>
|
|
{if condition="count($states) and empty($cid)"}
|
|
|
|
{foreach $states as $index=>$jo}
|
|
{if condition="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))"}
|
|
<?php $current=0;?>
|
|
{foreach $list as $index=>$jo}
|
|
<?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 $sey=>$ko}
|
|
<div class="tabstitle modef1"><a {if condition="$current eq 2"}href="{:url('category',array('kind'=>$kind,'cid'=>$sey))}"{else}href="{:url('category',array('kind'=>$kind,'cid'=>$jo['id'],'kid'=>$sey))}"{/if}>{$ko}</a></div>
|
|
{/foreach}
|
|
<div class="tabstitle tabslast modef1" style="position:absolute;z-index:99;right:0px;top:12px;"><a {if condition="$current eq 2"} href="{:url('category',array('kind'=>4,'cid'=>0))}" {else} href="{:url('category',array('kind'=>$kind,'cid'=>$jo['id']))}" {/if}>更多</a></div>
|
|
|
|
</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="$current neq 2"} href="{:url('news/finance',array('c_id'=>$vo['c_id'],'kind'=>$kind,'parent'=>$jo['id']))}"{else}href="{:url('news/finance',array('c_id'=>$vo['c_id'],'kind'=>$kind,'parent'=>$vo['c_parent']))}"{/if} class="href-abs"></a>
|
|
<div class="img-shell">
|
|
{notempty name="vo.c_logo"}<img src="{$vo.c_logo}" />{/notempty}
|
|
{if condition="$index neq 1 and $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="$current neq 2"}{:url('news/finance',array('c_id'=>$vo['c_id'],'kind'=>$kind,'parent'=>$jo['id']))} {else}{:url('news/finance',array('c_id'=>$vo['c_id'],'kind'=>$kind,'parent'=>$vo['c_parent']))}{/if}")' >
|
|
<h2 class="tit">{$vo.c_name}</h2>
|
|
{if condition="$index neq 1"}
|
|
<div class="attrs">
|
|
<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}
|
|
</div>
|
|
{/if}
|
|
</figcaption>
|
|
</figure>
|
|
</div>
|
|
{/foreach}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
{/foreach}
|
|
{/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(){
|
|
/*******banner滚动********/
|
|
var swiper = new Swiper('#bannerswiper', {
|
|
paginationClickable: true,
|
|
centeredSlides: true,
|
|
autoplay: 2500,
|
|
autoplayDisableOnInteraction : false,
|
|
loop:true,
|
|
autoplayDisableOnInteraction: false
|
|
});
|
|
|
|
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;
|
|
}
|
|
var yearsort="{:$yearsort}";
|
|
var pricesort="{:$pricesort}";
|
|
var url="{:url('search',['kind'=>$kind,'cid'=>$cid])}?page={$page}&showtype={$showtype}";
|
|
var mprice=sprice='';
|
|
$("#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(",","");
|
|
$(this).data('val',mprice);
|
|
sprice=$("#sprice").val();
|
|
var sval=$("#sprice").data('val');
|
|
|
|
if(parseInt(mprice)<parseInt(sval)){
|
|
console.log("111");
|
|
return layerAlert("最大价格不能小于最小价格");
|
|
}
|
|
$(this).val(toThousands(mprice))
|
|
setTimeout(function(){
|
|
window.location.href=url+"&yearsort="+yearsort+"&pricesort="+pricesort+"&mprice="+mprice+"&sprice="+sprice;
|
|
},1000);
|
|
})
|
|
|
|
|
|
$(".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=$("#search-keyword").val();
|
|
var token=$("input[name='__category__']").val();
|
|
var kind="{:$kind}"
|
|
window.location.href=url+"&keyword="+keyword+"&__category__="+token;
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|