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.
286 lines
14 KiB
286 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;max-height: 56px; 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="alllist categorylist" style="padding: 0 20px 20px 20px;">
|
|
<div class="tabs modeub modeac">
|
|
<div class="filterwraper" style="right:230px;">
|
|
<div class="pricewraper">
|
|
<div class="tabstitle label"> 价格区间:</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="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>
|
|
<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/search',array('kind'=>$kind))}" method="post">
|
|
<div class="guideleft searchpadding">
|
|
<input type="text" id="searchkeyword" name="keyword" value="{$keyword}" placeholder="请输入托管名称或托管代码">
|
|
</div>
|
|
<div class="guideright" style="padding-right:10px;">
|
|
{:token('__searchcate__')}
|
|
<div class=" iconfont icon-sousuo searchicon searchForm"></div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<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}")'{else} href="{:url('news/finance',array('c_id'=>$vo['c_id'],'kind'=>$kind))}"{/if} class="href-abs"></a>
|
|
<div class="img-shell">
|
|
{notempty name="vo.c_logo"}<img src="{$vo.c_logo}" />{/notempty}
|
|
</div>
|
|
</div>
|
|
<figcaption class="fig-info" onclick='window.open(" {if condition="isset($vo['c_jump']) and $vo['c_jump']"}{$vo.c_jump}{else}{:url('news/finance',array('c_id'=>$vo['c_id'],'kind'=>$kind))}{/if}")'>
|
|
<h2 class="tit">{$vo.c_name}</h2>
|
|
<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>
|
|
</figcaption>
|
|
</figure>
|
|
</div>
|
|
{/foreach}
|
|
</div>
|
|
</div>
|
|
<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',###}</th>
|
|
<th width="5%" style="text-align: center">{$vo.c_count}</th>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="col-xs-12 text-center list-page">{$show}</div>
|
|
</div>
|
|
</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 toThousands(num) {
|
|
var result = [ ], counter = 0;
|
|
num = (num || 0).toString().split('');
|
|
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 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
|
|
});
|
|
var yearsort="{:$yearsort}";
|
|
var pricesort="{:$pricesort}";
|
|
var url="{:url('search',['kind'=>$kind])}?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='__searchcate__']").val();
|
|
window.location.href=url+"&yearsort="+yearsort+"&pricesort="+pricesort+"&mprice="+mprice+"&sprice="+sprice+"&keyword="+keyword+"&__searchcate__="+token;
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|