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.
149 lines
6.7 KiB
149 lines
6.7 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<link rel="stylesheet" href="__TMPL__/static/css/layui.css" />
|
|
<!-- 通用 -->
|
|
{include file="common/head" /}
|
|
<!-- 当前 -->
|
|
<link rel="stylesheet" href="__TMPL__/static/css/mixin.css" />
|
|
<!-- <link rel="stylesheet" href="__TMPL__/static/css/xiqian.css" /> -->
|
|
<link rel="stylesheet" href="__TMPL__/static/scss/fanxiqian.css" />
|
|
</head>
|
|
|
|
<body>
|
|
<!-- header start -->
|
|
{include file="common/header" /}
|
|
<!-- header end -->
|
|
<div class="bannerList">
|
|
<div class="img">
|
|
<img src="__TMPL__/static/images/touzi/img-1.jpg" alt="" />
|
|
</div>
|
|
<div class="w1280">
|
|
<div class="bannerTitle">投资者教育</div>
|
|
<div class="bannerTips">
|
|
为投资者提供严谨细致的交易、交割、结算、质押等服务
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="pageListNav">
|
|
<div class="w1280">
|
|
{if $current_cate['parent_id'] == 46 || $current_cate['parent_id'] == 124}
|
|
{hcTaglib:subcategory pid="5" item="vo" field="id,title" sort="sort asc"}
|
|
<a href="{:hcUrl('list/index',['id'=>$vo.id])}" class="{$current_cate['parent_id']==$vo.id?'on':''}">{$vo.title}</a>
|
|
{/hcTaglib:subcategory}
|
|
{else /}
|
|
{hcTaglib:subcategory pid="5" item="vo" field="id,title" sort="sort asc"}
|
|
{if $vo.id == 46}
|
|
<a href="{:hcUrl('list/index',['id'=>48])}" class="{$current_cate['id']==$vo.id?'on':''}">{$vo.title}</a>
|
|
{elseif $vo.id == 124 /}
|
|
<a href="{:hcUrl('list/index',['id'=>125])}" class="{$current_cate['id']==$vo.id?'on':''}">{$vo.title}</a>
|
|
{else /}
|
|
<a href="{:hcUrl('list/index',['id'=>$vo.id])}" class="{$current_cate['id']==$vo.id?'on':''}">{$vo.title}</a>
|
|
{/if}
|
|
{/hcTaglib:subcategory}
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
<div class="investList">
|
|
<div class="w1280">
|
|
<div class="left">
|
|
<div class="tit">
|
|
<img src="__TMPL__/static/images/investListImg.png" alt="">
|
|
<p>投资者教育</p>
|
|
</div>
|
|
<ul>
|
|
{hcTaglib:allSubcategory pid="5" item="vo" maxLevel="2" field="id,title,parent_id" sort="sort asc"}
|
|
<li class="{$current_cate['id']==$vo.id?'on':''}">
|
|
<a href="{:hcUrl('list/index',['id'=>$vo.id])}">{$vo.title}<i><img src="__TMPL__/static/images/investListImg2.png" alt=""></i></a>
|
|
{if !empty($vo.children) }
|
|
<div class="childList">
|
|
<div class="center">
|
|
{volist name="$vo.children" id="vv"}
|
|
<a href="{:hcUrl('list/index',['id'=>$vv.id])}">{$vv.title}</a>
|
|
{/volist}
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
|
|
</li>
|
|
{/hcTaglib:allSubcategory}
|
|
</ul>
|
|
</div>
|
|
<div class="mobPageNav">
|
|
{if $current_cate['parent_id'] == 46 || $current_cate['parent_id'] == 124}
|
|
{hcTaglib:subcategory pid="$current_cate['parent_id']" item="vv" field="id,title" sort="sort asc"}
|
|
<a href="{:hcUrl('list/index',['id'=>$vv.id])}" class="{$vv.id == $current_cate.id ? 'on' : ''}">{$vv.title}</a>
|
|
{/hcTaglib:subcategory}
|
|
{else /}
|
|
{hcTaglib:subcategory pid="$current_cate['id']" item="vv" field="id,title" sort="sort asc"}
|
|
<a href="{:hcUrl('list/index',['id'=>$vv.id])}" class="{$vv.id == $current_cate.id ? 'on' : ''}">{$vv.title}</a>
|
|
{/hcTaglib:subcategory}
|
|
{/if}
|
|
</div>
|
|
<div class="right">
|
|
<div class="tit">{$current_cate['title']}</div>
|
|
<div class="content">
|
|
{hcTaglib:contentPage moduleId="1" name="articleList" mainField="id,title,description,publish_time"}
|
|
<div class="list">
|
|
<a href="{:hcUrl('detail/index',['id'=>$vo.id,'cid'=>$vo.category_id])}" target="{$current_cate['parent_id'] == 124 || $current_cate['id'] == 124 ? '_blank' : '_self' }" >{$vo.title}</a>
|
|
<p>{$vo.publish_time|date='Y.m.d'}</p>
|
|
</div>
|
|
{/hcTaglib:contentPage}
|
|
{$articleList|raw}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- footer start-->
|
|
{include file="common/footer" /}
|
|
<!-- footer end -->
|
|
<!-- 通用 -->
|
|
{include file="common/foot" /}
|
|
<!-- 当前 -->
|
|
<script src="__TMPL__/static/js/layui.js"></script>
|
|
|
|
<script>
|
|
$('.investList .w1280 .left ul li .childList .center a').each(function(){
|
|
console.log($(this).attr('href'))
|
|
console.log(window.location.pathname)
|
|
if($(this).attr('href') == window.location.pathname){
|
|
$(this).parents('.childList').siblings().addClass('active')
|
|
$(this).parents('li').addClass('on')
|
|
$(this).addClass('on')
|
|
$(this).parents('.childList').css({'height':$(this).parent().outerHeight(true)})
|
|
}
|
|
})
|
|
// 点就下拉
|
|
$('.investList .w1280 .left ul li > a').click(function(event){
|
|
if($(this).siblings('.childList').children('.center').children('a').length < 1){
|
|
|
|
}else{
|
|
event.preventDefault()
|
|
if($(this).hasClass('active')){
|
|
$(this).removeClass('active')
|
|
$('.investList .w1280 .left ul li .childList').stop().animate({'height':0})
|
|
}else{
|
|
$(this).addClass('active')
|
|
if($(this).siblings('.childList').children('.center').children('a').length > 0){
|
|
$(this).siblings().stop().animate({'height':$(this).siblings().children().outerHeight(true)})
|
|
return
|
|
}
|
|
}
|
|
}
|
|
})
|
|
//
|
|
|
|
let pageListNav2 = $('.mobPageNav').html()
|
|
if(pageListNav){
|
|
let pageListNavOffset2 = $('.mobPageNav a.on').offset().left
|
|
$('.mobPageNav').scrollLeft(pageListNavOffset2 - $('.mobPageNav').offset().left)
|
|
}else{
|
|
pageListNav2 = 0
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|