|
@@ -10,7 +10,7 @@ require('./../css/reset.css');
|
|
|
require('./../css/cdss.less');
|
|
|
require('./../css/popup.css');
|
|
|
require('./../css/followUpV.less');
|
|
|
-require('./../css/staticSearch.css')
|
|
|
+require('../css/staticSearch.less')
|
|
|
require('./../js/staticSearch.js');//静态知识搜索
|
|
|
require('./../images/empty.png').replace(/^undefined/g, '')
|
|
|
require('./../images/empty2.png').replace(/^undefined/g, '')
|
|
@@ -609,8 +609,8 @@ function renderItemWrapper(list, showNum, type, hasInfo) {
|
|
|
shortStr += `<span class="showMore"><img class="iconArrowImg" src="${iconArrowDown}"></span>`
|
|
|
longStr += `<span class="showLess"><img class="iconArrowImg" src="${iconArrowUp}"></span>`
|
|
|
return {
|
|
|
- shortStr:`<div class="shortBox clearfix">${shortStr}</div>`,
|
|
|
- longStr:`<div class="longBox clearfix">${longStr}</div>`
|
|
|
+ shortStr:`<div class="shortBox">${shortStr}</div>`,
|
|
|
+ longStr:`<div class="longBox">${longStr}</div>`
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -629,11 +629,11 @@ function bindOpenInfo(){
|
|
|
}
|
|
|
|
|
|
function bindSlide(){
|
|
|
- $(".showMore").on("click", function(){
|
|
|
+ $(".showMore").off("click").on("click", function(){
|
|
|
$(this).parent().parent().find(".longBox").css("display","block")
|
|
|
$(this).parent().parent().find(".shortBox").css("display","none")
|
|
|
})
|
|
|
- $(".showLess").on("click", function(){
|
|
|
+ $(".showLess").off("click").on("click", function(){
|
|
|
$(this).parent().parent().find(".longBox").css("display","none")
|
|
|
$(this).parent().parent().find(".shortBox").css("display","block")
|
|
|
})
|
|
@@ -703,7 +703,7 @@ function titleStr2(name){
|
|
|
}
|
|
|
|
|
|
function bindTabClick(){
|
|
|
- $(".tabList .tab").on("click", function(){
|
|
|
+ $(".tabList .tab").off("click").on("click", function(){
|
|
|
$(".activeTab").removeClass("activeTab")
|
|
|
$(this).addClass("activeTab")
|
|
|
const moduleName = $(this).attr("data-name")
|
|
@@ -725,22 +725,22 @@ function getModuleShow(moduleClassName){
|
|
|
}
|
|
|
}
|
|
|
function bindGeneralSlide(){
|
|
|
- $(".showMoreGeneralTreat").on("click",function(){
|
|
|
+ $(".showMoreGeneralTreat").off("click").on("click",function(){
|
|
|
$(".generalTreatInfo").toggleClass("isOverFlow")
|
|
|
$(".showMoreGeneralTreat").toggle()
|
|
|
})
|
|
|
- $(".showLessGeneralTreat").on("click",function(){
|
|
|
+ $(".showLessGeneralTreat").off("click").on("click",function(){
|
|
|
$(".generalTreatInfo").toggleClass("isOverFlow")
|
|
|
$(".showMoreGeneralTreat").toggle()
|
|
|
})
|
|
|
|
|
|
}
|
|
|
function bindSlideCaseWriting(){
|
|
|
- $(".showMoreCaseWriting").on("click",function(){
|
|
|
+ $(".showMoreCaseWriting").off("click").on("click",function(){
|
|
|
$(this).parents(".casewritingWrapper ").find(".shortStrBox").css("display","none")
|
|
|
$(this).parents(".casewritingWrapper ").find(".longStrBox").css("display","block")
|
|
|
})
|
|
|
- $(".showLessCaseWriting").on("click",function(){
|
|
|
+ $(".showLessCaseWriting").off("click").on("click",function(){
|
|
|
$(this).parents(".casewritingWrapper ").find(".shortStrBox").css("display","block")
|
|
|
$(this).parents(".casewritingWrapper ").find(".longStrBox").css("display","none")
|
|
|
})
|