部分接口替换
This commit is contained in:
212
js/notice.js
212
js/notice.js
@@ -181,13 +181,17 @@ function notice_con() {
|
||||
|
||||
if (arr.title == 'Editorial Board') {
|
||||
$.ajax({
|
||||
type: 'post', url: apiUrl + 'api/Journal/getBoard',
|
||||
type: 'post', url: apiUrl + 'api/Journal/getBoard1',
|
||||
data: {
|
||||
"journal_id": Jour_num
|
||||
},
|
||||
success: function (result) {
|
||||
if (result.code == 0) {
|
||||
var arg = result.data.boards;
|
||||
// 编委会成员
|
||||
var arg = result.data.data.boards;
|
||||
// 期刊委员会
|
||||
var committees = result.data.data.committees;
|
||||
var editors = result.data.data.editors;
|
||||
var str = '';
|
||||
|
||||
if (arg.main == undefined) {
|
||||
@@ -195,20 +199,27 @@ function notice_con() {
|
||||
} else {
|
||||
str += '<b>Editor-in-Chief</b><br><br>'
|
||||
for (var i = 0; i < arg.main.length; i++) {
|
||||
if (arg.main[i].board_icon == '') {
|
||||
var icon_img = '<img src="img/rev_user.png" style="position: absolute;left: 0;top: 0;width: 75px;height: 75px;border-radius: 10px;">'
|
||||
if (arg.main[i].icon == '') {
|
||||
var icon_img = '<img src="img/rev_user.png" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
|
||||
} else {
|
||||
var icon_img = '<img src="' + apiUrlImg + arg.main[i].board_icon + '" style="position: absolute;left: 0;top: 0;width: 75px;height: 75px;border-radius: 10px;">'
|
||||
var icon_img = '<img src="' + apiSubmission + 'public/usericon/' + arg.main[i].icon + '" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
|
||||
}
|
||||
if (arg.main[i].field == '') {
|
||||
if (arg.main[i].research_areas == '') {
|
||||
var dis_line = ''
|
||||
} else {
|
||||
var dis_line = 'Research areas: ' + arg.main[i].field
|
||||
var dis_line = '<b>Research areas: </b>' + arg.main[i].research_areas
|
||||
}
|
||||
if(arg.main[i].website != ''){
|
||||
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
|
||||
'<a href="' + arg.main[i].website + '" target="_blank" style="color: #006699">' + arg.main[i].name + '</a>, '
|
||||
+ arg.main[i].dr + ' ' + arg.main[i].title + '<br/>' + arg.main[i].email + '<br/>'
|
||||
+ arg.main[i].address + ' ' + arg.main[i].country + '<br/>' + dis_line + icon_img + '</li><br><br>'
|
||||
'<a href="' + arg.main[i].website + '" target="_blank" style="color: #006699">' + arg.main[i].realname + '</a>, Ph.D. '
|
||||
+ arg.main[i].technical + '<br/>' + arg.main[i].email + '<br/>'
|
||||
+ arg.main[i].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
|
||||
}else{
|
||||
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
|
||||
arg.main[i].realname + ', Ph.D. '
|
||||
+ arg.main[i].technical + '<br/>' + arg.main[i].email + '<br/>'
|
||||
+ arg.main[i].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
|
||||
}
|
||||
}
|
||||
}
|
||||
if (arg.remain == undefined) {
|
||||
@@ -216,20 +227,27 @@ function notice_con() {
|
||||
} else {
|
||||
str += '<b>Vice Editor-in-Chief</b><br><br>'
|
||||
for (var i = 0; i < arg.remain.length; i++) {
|
||||
if (arg.remain[i].board_icon == '') {
|
||||
var icon_img = '<img src="img/rev_user.png" style="position: absolute;left: 0;top: 0;width: 75px;height: 75px;border-radius: 10px;">'
|
||||
if (arg.remain[i].icon == '') {
|
||||
var icon_img = '<img src="img/rev_user.png" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
|
||||
} else {
|
||||
var icon_img = '<img src="' + apiUrlImg + arg.remain[i].board_icon + '" style="position: absolute;left: 0;top: 0;width: 75px;height: 75px;border-radius: 10px;">'
|
||||
var icon_img = '<img src="' + apiSubmission + 'public/usericon/' + arg.remain[i].icon + '" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
|
||||
}
|
||||
if (arg.remain[i].field == '') {
|
||||
if (arg.remain[i].research_areas == '') {
|
||||
var dis_line = ''
|
||||
} else {
|
||||
var dis_line = 'Research areas: ' + arg.remain[i].field
|
||||
var dis_line = '<b>Research areas: </b>' + arg.remain[i].research_areas
|
||||
}
|
||||
if(arg.remain[i].website != ''){
|
||||
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
|
||||
'<a href="' + arg.remain[i].website + '" target="_blank" style="color: #006699">' + arg.remain[i].name + '</a>, '
|
||||
+ arg.remain[i].dr + ' ' + arg.remain[i].title + '<br/>' + arg.remain[i].email + '<br/>'
|
||||
+ arg.remain[i].address + ' ' + arg.remain[i].country + '<br/>' + dis_line + icon_img + '</li><br><br>'
|
||||
'<a href="' + arg.remain[i].website + '" target="_blank" style="color: #006699">' + arg.remain[i].realname + '</a>, Ph.D. '
|
||||
+ arg.remain[i].technical + '<br/>' + arg.remain[i].email + '<br/>'
|
||||
+ arg.remain[i].company + ' <br/>' + dis_line + icon_img + '</li><br><br>'
|
||||
}else{
|
||||
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
|
||||
arg.remain[i].realname + ', Ph.D. '
|
||||
+ arg.remain[i].technical + '<br/>' + arg.remain[i].email + '<br/>'
|
||||
+ arg.remain[i].company + ' <br/>' + dis_line + icon_img + '</li><br><br>'
|
||||
}
|
||||
}
|
||||
str += '<br>'
|
||||
}
|
||||
@@ -237,52 +255,154 @@ function notice_con() {
|
||||
str += ''
|
||||
} else {
|
||||
str += '<b>Editorial Board Members</b><br><br>'
|
||||
// 未分组
|
||||
$.each(arg.member, function (key, value) { //遍历键值对
|
||||
if ($.isArray(arg.member[key]) == true) {
|
||||
if(key == 'nogroup'){
|
||||
for (var j = 0; j < arg.member[key].length; j++) {
|
||||
if (arg.member[key][j].icon == '') {
|
||||
var icon_img = '<img src="img/rev_user.png" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
|
||||
} else {
|
||||
var icon_img = '<img src="' + apiSubmission + 'public/usericon/' + arg.member[key][j].icon + '" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
|
||||
}
|
||||
if (arg.member[key][j].research_areas == '') {
|
||||
var dis_line = ''
|
||||
} else {
|
||||
var dis_line = '<b>Research areas: </b>' + arg.member[key][j].research_areas
|
||||
}
|
||||
if (arg.member[key][j].realname == 'Jian Hao' || arg.member[key][j].realname == 'Mathew Goss' || arg.member[key][j].realname == 'Lucy Pi (Nuo-Xi Pi)' || arg.member[key][j].realname == 'Richard Shane Palmer' || arg.member[key][j].realname == 'Xin-Yun Zhang') {
|
||||
if(arg.member[key][j].website != ''){
|
||||
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
|
||||
'<a href="' + arg.member[key][j].website + '" target="_blank" style="color: #006699">' + arg.member[key][j].realname + '</a>, Ph.D. '
|
||||
+ arg.member[key][j].technical + '<br/>' + arg.member[key][j].email + '<br/>'
|
||||
+ arg.member[key][j].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
|
||||
}else{
|
||||
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
|
||||
arg.member[key][j].realname + ', Ph.D. '
|
||||
+ arg.member[key][j].technical + '<br/>' + arg.member[key][j].email + '<br/>'
|
||||
+ arg.member[key][j].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
|
||||
}
|
||||
} else {
|
||||
if(arg.member[key][j].website != ''){
|
||||
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
|
||||
'<a href="' + arg.member[key][j].website + '" target="_blank" style="color: #006699">' + arg.member[key][j].realname + '</a>, Ph.D. '
|
||||
+ arg.member[key][j].technical + '<br/>' + arg.member[key][j].email + '<br/>'
|
||||
+ arg.member[key][j].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
|
||||
}else{
|
||||
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
|
||||
arg.member[key][j].realname + ', Ph.D. '
|
||||
+ arg.member[key][j].technical + '<br/>' + arg.member[key][j].email + '<br/>'
|
||||
+ arg.member[key][j].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
// 有分组
|
||||
$.each(arg.member, function (key, value) { //遍历键值对
|
||||
if ($.isArray(arg.member[key]) == true) {
|
||||
if(key != 'nogroup'){
|
||||
str += '<b>' + key + '</b><br><br>'
|
||||
for (var j = 0; j < arg.member[key].length; j++) {
|
||||
if (arg.member[key][j].board_icon == '') {
|
||||
var icon_img = '<img src="img/rev_user.png" style="position: absolute;left: 0;top: 0;width: 75px;height: 75px;border-radius: 10px;">'
|
||||
if (arg.member[key][j].icon == '') {
|
||||
var icon_img = '<img src="img/rev_user.png" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
|
||||
} else {
|
||||
var icon_img = '<img src="' + apiUrlImg + arg.member[key][j].board_icon + '" style="position: absolute;left: 0;top: 0;width: 75px;height: 75px;border-radius: 10px;">'
|
||||
var icon_img = '<img src="' + apiSubmission + 'public/usericon/' + arg.member[key][j].icon + '" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
|
||||
}
|
||||
if (arg.member[key][j].field == '') {
|
||||
if (arg.member[key][j].research_areas == '') {
|
||||
var dis_line = ''
|
||||
} else {
|
||||
var dis_line = 'Research areas: ' + arg.member[key][j].field
|
||||
var dis_line = '<b>Research areas: </b>' + arg.member[key][j].research_areas
|
||||
}
|
||||
if (arg.member[key][j].name == 'Jian Hao' || arg.member[key][j].name == 'Mathew Goss' || arg.member[key][j].name == 'Lucy Pi (Nuo-Xi Pi)' || arg.member[key][j].name == 'Richard Shane Palmer' || arg.member[key][j].name == 'Xin-Yun Zhang') {
|
||||
if (arg.member[key][j].realname == 'Jian Hao' || arg.member[key][j].realname == 'Mathew Goss' || arg.member[key][j].realname == 'Lucy Pi (Nuo-Xi Pi)' || arg.member[key][j].realname == 'Richard Shane Palmer' || arg.member[key][j].realname == 'Xin-Yun Zhang') {
|
||||
if(arg.member[key][j].website != ''){
|
||||
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
|
||||
'<a href="' + arg.member[key][j].website + '" target="_blank" style="color: #006699">' + arg.member[key][j].name + '</a>, '
|
||||
+ arg.member[key][j].dr + ' ' + arg.member[key][j].title + '<br/>' + arg.member[key][j].email + '<br/>'
|
||||
+ arg.member[key][j].address + '<br/>' + dis_line + icon_img + '</li><br><br>'
|
||||
'<a href="' + arg.member[key][j].website + '" target="_blank" style="color: #006699">' + arg.member[key][j].realname + '</a>, Ph.D. '
|
||||
+ arg.member[key][j].technical + '<br/>' + arg.member[key][j].email + '<br/>'
|
||||
+ arg.member[key][j].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
|
||||
}else{
|
||||
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
|
||||
arg.member[key][j].realname + ', Ph.D. '
|
||||
+ arg.member[key][j].technical + '<br/>' + arg.member[key][j].email + '<br/>'
|
||||
+ arg.member[key][j].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
|
||||
}
|
||||
} else {
|
||||
if(arg.member[key][j].website != ''){
|
||||
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
|
||||
'<a href="' + arg.member[key][j].website + '" target="_blank" style="color: #006699">' + arg.member[key][j].name + '</a>, '
|
||||
+ arg.member[key][j].dr + ' ' + arg.member[key][j].title + '<br/>' + arg.member[key][j].email + '<br/>'
|
||||
+ arg.member[key][j].address + ' ' + arg.member[key][j].country + '<br/>' + dis_line + icon_img + '</li><br><br>'
|
||||
'<a href="' + arg.member[key][j].website + '" target="_blank" style="color: #006699">' + arg.member[key][j].realname + '</a>, Ph.D. '
|
||||
+ arg.member[key][j].technical + '<br/>' + arg.member[key][j].email + '<br/>'
|
||||
+ arg.member[key][j].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
|
||||
}else{
|
||||
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
|
||||
arg.member[key][j].realname + ', Ph.D. '
|
||||
+ arg.member[key][j].technical + '<br/>' + arg.member[key][j].email + '<br/>'
|
||||
+ arg.member[key][j].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (arg.member[key].board_icon == '') {
|
||||
var icon_img = '<img src="img/rev_user.png" style="position: absolute;left: 0;top: 0;width: 75px;height: 75px;border-radius: 10px;">'
|
||||
} else {
|
||||
var icon_img = '<img src="' + apiUrlImg + arg.member[key].board_icon + '" style="position: absolute;left: 0;top: 0;width: 75px;height: 75px;border-radius: 10px;">'
|
||||
}
|
||||
if (arg.member[key].field == '') {
|
||||
var dis_line = ''
|
||||
} else {
|
||||
var dis_line = 'Research areas: ' + arg.member[key].field
|
||||
}
|
||||
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
|
||||
'<a href="' + arg.member[key].website + '" target="_blank" style="color: #006699">' + arg.member[key].name + '</a>, '
|
||||
+ arg.member[key].dr + ' ' + arg.member[key].title + '<br/>' + arg.member[key].email + '<br/>'
|
||||
+ arg.member[key].address + ' ' + arg.member[key].country + '<br/>' + dis_line + icon_img + '</li><br><br>'
|
||||
}}
|
||||
}
|
||||
})
|
||||
str += '<br>'
|
||||
}
|
||||
|
||||
// 期刊委员会
|
||||
if(committees && committees.length > 0){
|
||||
str += '<b>Academic Integrity Committee</b><br><br>'
|
||||
for (var i = 0; i < committees.length; i++) {
|
||||
if (committees[i].icon == '') {
|
||||
var icon_img = '<img src="img/rev_user.png" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
|
||||
} else {
|
||||
var icon_img = '<img src="' + apiSubmission + 'public/usericon/' + committees[i].icon + '" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
|
||||
}
|
||||
if (committees[i].research_areas == '') {
|
||||
var dis_line = ''
|
||||
} else {
|
||||
var dis_line = '<b>Research areas: </b>' + committees[i].research_areas
|
||||
}
|
||||
if(committees[i].website != ''){
|
||||
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
|
||||
'<a href="' + committees[i].website + '" target="_blank" style="color: #006699">' + committees[i].realname + '</a>, Ph.D. '
|
||||
+ committees[i].technical + '<br/>' + committees[i].email + '<br/>'
|
||||
+ committees[i].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
|
||||
}else{
|
||||
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
|
||||
committees[i].realname + ', Ph.D. '
|
||||
+ committees[i].technical + '<br/>' + committees[i].email + '<br/>'
|
||||
+ committees[i].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
|
||||
}
|
||||
}
|
||||
}else{
|
||||
str += '';
|
||||
}
|
||||
|
||||
// 期刊编辑
|
||||
if(editors && editors.length > 0){
|
||||
str += '<b>Editors & Staff</b><br><br>'
|
||||
for (var i = 0; i < editors.length; i++) {
|
||||
if (editors[i].icon == '') {
|
||||
var icon_img = '<img src="img/rev_user.png" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
|
||||
} else {
|
||||
var icon_img = '<img src="' + apiSubmission + 'public/usericon/' + editors[i].icon + '" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
|
||||
}
|
||||
if(editors[i].website != ''){
|
||||
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px; width: 200px; float:left; margin-right:10px;">' +
|
||||
'<a href="' + editors[i].website + '" target="_blank" style="color: #006699">' + editors[i].realname + '</a>,'
|
||||
+ editors[i].editor_title + '<br/>' + editors[i].email + '<br/>'
|
||||
+ icon_img + '</li>'
|
||||
}else{
|
||||
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px; width: 200px; float:left; margin-right:10px;">' +
|
||||
editors[i].realname + ', '
|
||||
+ editors[i].editor_title + '<br/>' + editors[i].email + '<br/>'
|
||||
+ icon_img + '</li>'
|
||||
}
|
||||
}
|
||||
str += '<li style="clear:both">';
|
||||
|
||||
}else{
|
||||
str += ''
|
||||
}
|
||||
|
||||
$('.topics>div').append('<ul style="overflow: hidden;">' + str + '</ul>');
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user