<!doctype html>
|
<html>
|
<head>
|
<meta charset="utf-8">
|
[#include "/business/wechat/include/title.html" /]
|
[#include "/business/wechat/include/wheader.html" /]
|
</head>
|
|
<body>
|
<header class="kltit tcenter"><a href="${base}/ewyw/ewfulltext/ewKw.html"><label></label></a><a href="javascript:history.go(-1);"><span></span></a>知识库</header>
|
<nav class="kltwo clearfix">
|
<div class="kltwowrap">
|
<a href="#" hidefocus="true" class="active">全部</a>
|
<a href="#" hidefocus="true">知识分类</a>
|
<a href="#" hidefocus="true">配置分类</a>
|
<a href="#" hidefocus="true">服务目录</a>
|
</div>
|
</nav>
|
<div class="swiper-container" id="swiper-pages">
|
<div class="swiper-wrapper">
|
<div class="swiper-slide">
|
<section>
|
<div id="main">
|
|
</div>
|
|
<div id="pagination" class="loadmore"></div>
|
|
|
</section>
|
</div>
|
<div class="swiper-slide">
|
<section class="kltype">
|
[#if knowcate?? && knowcate?size>0]
|
[#list knowcate as know]
|
<a href="${base}/ewyw/ewKnowledge/ewcompanyknowcate.html?pid=${know.ID}&cusId=${RequestParameters.cusId}"><p><em></em>${know.TITLE}</p></a>
|
[/#list]
|
[/#if]
|
</section>
|
</div>
|
<div class="swiper-slide">
|
<section class="kltype">
|
[#if cicate?? && cicate?size>0]
|
[#list cicate as ci]
|
<a href="${base}/ewyw/ewKnowledge/ewcompanycicate.html?pid=${ci.ID}&cusId=${RequestParameters.cusId}"><p><em></em>${ci.NAME}</p></a>
|
[/#list]
|
[/#if]
|
</section>
|
</div>
|
<div class="swiper-slide">
|
<section class="kltype">
|
[#if servicecate?? && servicecate?size>0]
|
[#list servicecate as service]
|
<a href="${base}/ewyw/ewKnowledge/ewcompanyservicecate.html?pid=${service.ID}&cusId=${RequestParameters.cusId}"><p><em></em>${service.CATEGORY_NAME}</p></a>
|
[/#list]
|
[/#if]
|
</section>
|
</div>
|
</div>
|
</div>
|
<script type="text/javascript">
|
n=$('.kltwowrap a').size();
|
var wh=100*n+"%";
|
$('.kltwowrap').width(wh);
|
var lt=(100/n/4);
|
var lt_li=lt+"%";
|
$('.kltwowrap a').width(lt_li);
|
$(".kltwowrap a").on('touchstart mousedown',function(e){
|
e.preventDefault()
|
$(".kltwowrap .active").removeClass('active');
|
$(this).addClass('active');
|
tabsSwiper.slideTo($(this).index());
|
});
|
|
$(".kltwowrap a").click(function(e){
|
e.preventDefault();
|
});
|
|
window.onload=function(){
|
var pages = document.getElementById("swiper-pages");
|
var scale = window.screen.height / window.screen.width;
|
pages.style.height = document.body.clientWidth * scale -$('.kltit').height()-$('.kltwo').height() -20 + "px";
|
}
|
|
var tabsSwiper = new Swiper(".swiper-container",{
|
setWrapperSize :true,
|
onSlideChangeStart: function(sw){
|
$(".kltwowrap .active").removeClass('active');
|
$(".kltwowrap a").eq(tabsSwiper.activeIndex).addClass('active');
|
|
var currTab = $(".kltwowrap a").eq(tabsSwiper.activeIndex);
|
currTab.parent().css("left",-parseInt(sw.activeIndex/4)*sw.width);
|
}
|
});
|
var cusId = '${RequestParameters.cusId}';
|
function query() {
|
var param = {"cusId":cusId};
|
$("#main").empty();
|
$("#pagination").pagination({
|
durl:"${base}/ewyw/ewKnowledge/eknowcompanynewData.html",
|
curl:"${base}/ewyw/ewKnowledge/eknowcompanynewCount.html",
|
pdiv:"pagination",
|
mdiv:"main",
|
perPage : 5,
|
param:param
|
});
|
}
|
|
$(function() {
|
query();
|
})
|
function search(kw) {
|
if($.util.isEmpty(kw)) {
|
window.location.reload(true);
|
return;
|
}
|
|
if(kw.length == 1) {
|
popupTips("关键词至少为2个字");
|
return;
|
}
|
|
kw = $.util.encode($.util.encode(kw));
|
window.location.href="${base}/ewyw/ewfulltext/ewKw.html?kw="+kw;
|
}
|
</script>
|
</body>
|
</html>
|