|
@@ -112,12 +112,12 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa |
|
|
|
|
|
|
|
|
module.init = function (page) { |
|
|
module.init = function (page) { |
|
|
//获取焦点图信息 |
|
|
//获取焦点图信息 |
|
|
// tools.doGet(websitePicture, {picType:1,status:0,orderByColumn:'picSort',isAsc:'desc'}, module.focusNewsTop , true); |
|
|
|
|
|
|
|
|
tools.doGet(websitePicture, {picType:1,status:0,orderByColumn:'picSort',isAsc:'desc'}, module.focusNewsTop , true); |
|
|
//获取焦点图信息 |
|
|
//获取焦点图信息 |
|
|
tools.doGet(websitePicture, {picType:2,status:0,orderByColumn:'picSort',isAsc:'desc'}, module.focusNewsPC , true); |
|
|
tools.doGet(websitePicture, {picType:2,status:0,orderByColumn:'picSort',isAsc:'desc'}, module.focusNewsPC , true); |
|
|
|
|
|
|
|
|
//获取焦点图信息 |
|
|
//获取焦点图信息 |
|
|
tools.doGet(websiteNew + '/1/0/4', {}, module.focusNews , true); |
|
|
|
|
|
|
|
|
//tools.doGet(websiteNew + '/1/0/4', {}, module.focusNews , true); |
|
|
|
|
|
|
|
|
//新闻资讯 |
|
|
//新闻资讯 |
|
|
//tools.doGet(websiteNew + '/2/0/6', {}, module.NewsInformation , true); |
|
|
//tools.doGet(websiteNew + '/2/0/6', {}, module.NewsInformation , true); |
|
@@ -210,27 +210,27 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa |
|
|
|
|
|
|
|
|
if(data.data.length<1){ |
|
|
if(data.data.length<1){ |
|
|
focusArray.push({ |
|
|
focusArray.push({ |
|
|
picUrl:'../static/images/banner1.png' |
|
|
|
|
|
|
|
|
img:'../static/images/banner1.png' |
|
|
},{ |
|
|
},{ |
|
|
picUrl:'../static/images/banner2.png' |
|
|
|
|
|
|
|
|
img:'../static/images/banner2.png' |
|
|
},{ |
|
|
},{ |
|
|
picUrl:'../static/images/banner3.png' |
|
|
|
|
|
|
|
|
img:'../static/images/banner3.png' |
|
|
}) |
|
|
}) |
|
|
}else{ |
|
|
}else{ |
|
|
data.data.forEach(res=>{ |
|
|
data.data.forEach(res=>{ |
|
|
focusArray.push({ |
|
|
focusArray.push({ |
|
|
picUrl:'/api'+res.picUrl |
|
|
|
|
|
|
|
|
img:'/api'+res.picUrl |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
module.data.focusListTop = focusArray; |
|
|
|
|
|
var bannerFocusDataTop = template('bannerFocusDataTop', module.data); |
|
|
|
|
|
$("#bannerFocusTopContent").html(bannerFocusDataTop); |
|
|
|
|
|
|
|
|
|
|
|
new Swiper('#bannerFocusWrapTop', { |
|
|
|
|
|
|
|
|
module.data.focusList = focusArray; |
|
|
|
|
|
var bannerFocusData = template('bannerFocusData', module.data); |
|
|
|
|
|
$("#bannerFocusContent").html(bannerFocusData); |
|
|
|
|
|
new Swiper('#bannerFocusWrap', { |
|
|
|
|
|
pagination: '.page-pagination', |
|
|
paginationClickable: true, |
|
|
paginationClickable: true, |
|
|
autoplay : 4000, |
|
|
|
|
|
|
|
|
autoplay : 2000, |
|
|
loop:true |
|
|
loop:true |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|