|
@@ -395,6 +395,7 @@ function renderpushByMayDisease(name, i, e) {
|
|
bindOpenInfo()
|
|
bindOpenInfo()
|
|
moreInfo()
|
|
moreInfo()
|
|
bindSlide();
|
|
bindSlide();
|
|
|
|
+ empty()
|
|
}
|
|
}
|
|
// renderMaySymptomPush(symptomPush)
|
|
// renderMaySymptomPush(symptomPush)
|
|
// renderMayVitalPush(vitalPush)
|
|
// renderMayVitalPush(vitalPush)
|
|
@@ -449,6 +450,7 @@ function renderpushByHasDisease(name, i, e) {
|
|
bindOpenInfo()
|
|
bindOpenInfo()
|
|
moreInfo()
|
|
moreInfo()
|
|
bindSlide();
|
|
bindSlide();
|
|
|
|
+ empty()
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
@@ -1370,6 +1372,7 @@ function renderTab(tabList) {
|
|
let showModuleName = $(".tabList .tab").eq(tabNum).attr("data-name")
|
|
let showModuleName = $(".tabList .tab").eq(tabNum).attr("data-name")
|
|
getModuleShow(moduleConfig[showModuleName])
|
|
getModuleShow(moduleConfig[showModuleName])
|
|
bindTabClick()
|
|
bindTabClick()
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
function titleStr(type) {
|
|
function titleStr(type) {
|
|
@@ -1385,6 +1388,7 @@ function titleStr2(name) {
|
|
|
|
|
|
function bindTabClick() {
|
|
function bindTabClick() {
|
|
$(".tabList .tab").off("click").on("click", function () {
|
|
$(".tabList .tab").off("click").on("click", function () {
|
|
|
|
+
|
|
$(".activeTab").removeClass("activeTab")
|
|
$(".activeTab").removeClass("activeTab")
|
|
$(this).addClass("activeTab")
|
|
$(this).addClass("activeTab")
|
|
const moduleName = $(this).attr("data-name")
|
|
const moduleName = $(this).attr("data-name")
|
|
@@ -1396,6 +1400,7 @@ function bindTabClick() {
|
|
|
|
|
|
// $(".contentWrapper").css("overflowY","auto")
|
|
// $(".contentWrapper").css("overflowY","auto")
|
|
}
|
|
}
|
|
|
|
+ empty()
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1440,6 +1445,8 @@ function empty() {
|
|
setTimeout(function () {
|
|
setTimeout(function () {
|
|
const emptyShownBox = $('.recommendWrap .empty-box:visible').length;
|
|
const emptyShownBox = $('.recommendWrap .empty-box:visible').length;
|
|
const configShownBox = $('.recommendWrap .moduleItem:visible').length;
|
|
const configShownBox = $('.recommendWrap .moduleItem:visible').length;
|
|
|
|
+ console.log(configShownBox,111);
|
|
|
|
+ console.log(configShownBox,222);
|
|
if (configShownBox === 0 && emptyShownBox === 0) { //有配置但没数据
|
|
if (configShownBox === 0 && emptyShownBox === 0) { //有配置但没数据
|
|
$('.empty-box').hide();
|
|
$('.empty-box').hide();
|
|
$('.recommendBox .empty-null').show();
|
|
$('.recommendBox .empty-null').show();
|