|
@@ -6,25 +6,19 @@ layui.use(['element', 'form', 'tree', 'util', 'laydate'], function () {
|
|
|
layer = layui.layer,
|
|
|
util = layui.util,
|
|
|
element = layui.element;
|
|
|
- resizeFrame()
|
|
|
- setHeader()
|
|
|
- setFooter()
|
|
|
+ // resizeFrame()
|
|
|
+ // setHeader()
|
|
|
+ // setFooter()
|
|
|
init();
|
|
|
|
|
|
});
|
|
|
const PATH = "https://www.cqna.gov.cn/data";
|
|
|
// const PATH = "https://192.168.0.13:7777";
|
|
|
|
|
|
-function isMobileUserAgent() {
|
|
|
- return /iphone|ipod|android.*mobile|windows.*phone|blackberry.*mobile/i.test(
|
|
|
- window.parent.navigator.userAgent.toLowerCase("")
|
|
|
- );
|
|
|
-}
|
|
|
function init(){
|
|
|
var searchUrl = window.parent.location.href;
|
|
|
var searchData = searchUrl.split("=");
|
|
|
let id = searchData[1]
|
|
|
- // let id = "school2022NACC7"
|
|
|
get('/nazwSchool/info', true, {"id":id}, function (res) {
|
|
|
let data = res.data;
|
|
|
if (!data) {
|
|
@@ -39,18 +33,11 @@ function init(){
|
|
|
function back(){
|
|
|
window.location.replace(PATH + "/school/school.html")
|
|
|
}
|
|
|
-function resizeFrame(){
|
|
|
- var content_iframe = window.parent.document.getElementsByTagName("iframe");//获取iframeID
|
|
|
- $(content_iframe[1]).css("width", "100%")
|
|
|
-}
|
|
|
+// function resizeFrame(){
|
|
|
+// var content_iframe = window.parent.document.getElementsByTagName("iframe");//获取iframeID
|
|
|
+// $(content_iframe[1]).css("width", "100%")
|
|
|
+// }
|
|
|
|
|
|
-function setHeader(){
|
|
|
- $("#header").load("https://www.cqna.gov.cn/ggbf_search/ggyr/2022top/head.html")
|
|
|
-}
|
|
|
-
|
|
|
-function setFooter(){
|
|
|
- $("#footer").load("https://www.cqna.gov.cn/ggbf_search/ggyr/2022foot/foot.html")
|
|
|
-}
|
|
|
|
|
|
function initHead(data){
|
|
|
// data.schoolImg
|