This commit is contained in:
2025-11-10 13:58:41 +08:00
parent b6d39a2288
commit 9a74364c18
14 changed files with 1223 additions and 134 deletions

View File

@@ -196,9 +196,9 @@ var country_data = [
{ "name": "Zimbabwe", "value": 0 },
]
if (!document.getElementById('worldMap_notice')) {
if (footer_map_ID == '125') {
// 编委国际化图表
$('.topics>div').prepend('<div><p style="text-align: center;margin-top: 30px;font-size: 22px;font-weight: bolder">Countries/Regions</p>' +
'<div id="worldMap_notice" style="width: 100%;height: 500px;margin: 0 auto 50px auto"></div></div>' +
@@ -310,6 +310,7 @@ if (footer_map_ID == '125') {
ShowDanger("error");
}
})
} else if (footer_map_ID == '2') {
@@ -1078,12 +1079,12 @@ if (footer_map_ID == '125') {
}
})
}
}
// 侧栏小地图
// tmr,life,感染,胃肠,精准,历史与哲学
// Jour_num == "1"||Jour_num == "4"||Jour_num == "7"||Jour_num == "8"||Jour_num == "13"||Jour_num == "14"
function renderMap(height,callback) {
function renderMap(height, callback) {
if (Jour_num == "1" || Jour_num == "8" || Jour_num == "14") {
// 编委国际化图表
$.ajax({
@@ -1124,7 +1125,12 @@ function renderMap(height,callback) {
// 绘制图表
var worldChart = echarts.init(document.getElementById('worldMap'));
var worldChart2 = null;
if(document.getElementById('worldMap2')){
worldChart2 = echarts.init(document.getElementById('worldMap2'));
}
// 数据
var dataMap = country_data
var option = {
@@ -1199,10 +1205,14 @@ function renderMap(height,callback) {
}],
};
worldChart.setOption(option);
if(callback){
callback();
}
if (worldChart2) {
worldChart2.setOption(option);
}
if (callback) {
callback();
}
} else {
// ShowDanger("请求失败!");
}