|
@@ -56,16 +56,14 @@ function initHead(data){
|
|
|
let html = '<div class="title" id="name">' + data.name + '</div>' +
|
|
|
'<div class="other">' +
|
|
|
'<ul>' +
|
|
|
- '<li id="district">所在区:'+data.address+'</li>' +
|
|
|
- '<li id="natureOfTheSchool">学校性质:'+natureType+'</li>' +
|
|
|
- '<li title="'+canteenType+'">餐食情况:'+canteenType+'</li>' +
|
|
|
- '<li>上级主管部门:'+competentDepartment+'</li>' +
|
|
|
+ '<li id="district">所在区:'+data.address+'</li>' +
|
|
|
+ '<li id="natureOfTheSchool">学校性质:'+natureType+'</li>' +
|
|
|
+ '<li>上级主管部门:'+competentDepartment+'</li>' +
|
|
|
'</ul>' +
|
|
|
'<ul>' +
|
|
|
- '<li id="postcode">邮编:'+postal+'</li>' +
|
|
|
- '<li id="schoolClasses">学校类别:'+schoolType+'</li>' +
|
|
|
- '<li title="'+recruitType+'">招生方式:'+recruitType+'</li>' +
|
|
|
- '<li>监督电话:'+superviseTel+'</li>' +
|
|
|
+ '<li id="postcode">邮编:'+postal+'</li>' +
|
|
|
+ '<li id="schoolClasses">学校类别:'+schoolType+'</li>' +
|
|
|
+ '<li>监督电话:'+superviseTel+'</li>' +
|
|
|
'</ul>' +
|
|
|
'</div>' +
|
|
|
'<ul class="bottom">' +
|
|
@@ -80,14 +78,14 @@ function initHead(data){
|
|
|
function gotos(src){
|
|
|
|
|
|
// console.log(src)
|
|
|
- window.open(src);
|
|
|
+ window.location.href=src;
|
|
|
}
|
|
|
let p =[]
|
|
|
function initbody(data){
|
|
|
p.push(data.introduce)
|
|
|
p.push(data.principalIntroduce)
|
|
|
- p.push(data.traffic)
|
|
|
- p.push(data.recruitInfo)
|
|
|
+ p.push(data.canteenType)
|
|
|
+ p.push(data.recruitType)
|
|
|
document.getElementById('contentText').innerHTML = p[0]
|
|
|
document.getElementById('jsao').innerHTML = data.countrySupport
|
|
|
}
|