<!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"><label class=""></label>
|
<a href="${base}/ewyw/emanagehome.html"><span></span></a>知识管理</header>
|
<nav class="kltwo clearfix">
|
<div class="kltwowrap3">
|
<a href="#" hidefocus="true" class="active" v="0">知识维护</a>
|
<a href="#" hidefocus="true" v="1">知识审核</a>
|
</div>
|
</nav>
|
<div class="pt22 pb22">
|
<div class="swiper-pages swiper-container zstjcon">
|
<div class="swiper-wrapper">
|
<div class="swiper-slide">
|
<div id="main0"></div>
|
<div id="page0" class="loadmore"></div>
|
</div>
|
<div class="swiper-slide">
|
<div id="main1"></div>
|
<div id="page1" class="loadmore"></div>
|
</div>
|
</div>
|
</div>
|
</div>
|
[#assign label = "knowgl"]
|
[#include "/business/wechat/include/knowfooter.html"]
|
</body>
|
<script type="text/javascript">
|
var initIndex = 0;
|
n=$('.kltwowrap3 a').size();
|
var wh=100*n+"%";
|
$('.kltwowrap3').width(wh);
|
var lt=(100/n/2);
|
var lt_li=lt+"%";
|
$('.kltwowrap3 a').width(lt_li);
|
$(".kltwowrap3 a").on('touchstart mousedown',function(e){
|
e.preventDefault()
|
$(".kltwowrap3 .active").removeClass('active');
|
$(this).addClass('active');
|
tabsSwiper.slideTo($(this).index());
|
});
|
|
$(".kltwowrap3 a").click(function(e){
|
e.preventDefault();
|
});
|
var tabsSwiper = new Swiper(".swiper-container",{
|
initialSlide : initIndex,
|
setWrapperSize :true,
|
onSlideChangeStart: function(sw){
|
$(".kltwowrap3 .active").removeClass('active');
|
$(".kltwowrap3 a").eq(tabsSwiper.activeIndex).addClass('active');
|
|
//sw.width
|
var currTab = $(".kltwowrap3 a").eq(tabsSwiper.activeIndex);
|
var panelIndex = tabsSwiper.activeIndex;
|
currTab.parent().css("left",-parseInt(sw.activeIndex/2)*sw.width);
|
query(panelIndex,"main"+panelIndex,"page"+panelIndex);
|
}
|
});
|
|
|
|
function query(flowstate,dataId,pageId) {
|
var $main = $("#"+dataId);
|
var $page = $("#"+pageId);
|
if(flowstate == 0){
|
if($.util.isEmpty($main.html())) {
|
var param = {"flowstate":flowstate};
|
$main.empty();
|
$page.pagination({
|
durl:"${base}/ewyw/ewKnowledge/ewMyKnowData.html",
|
curl:"${base}/ewyw/ewKnowledge/ewMyKnowCount.html",
|
pdiv:pageId,
|
mdiv:dataId,
|
perPage : 5,
|
param:param,
|
|
});
|
}
|
}else if(flowstate == 1){
|
if($.util.isEmpty($main.html())) {
|
var param = {"flowstate":flowstate};
|
$main.empty();
|
$page.pagination({
|
durl:"${base}/ewyw/ewKnowledge/ewKnowledgeShData.html",
|
curl:"${base}/ewyw/ewKnowledge/ewKnowledgeShCount.html",
|
pdiv:pageId,
|
mdiv:dataId,
|
perPage : 5,
|
param:param,
|
|
});
|
}
|
}
|
|
}
|
|
$(function() {
|
query(0,"main0","page0");
|
})
|
|
|
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>
|
</html>
|