cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!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>