|
|
@@ -109,6 +109,8 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa |
|
|
|
module.init = function (page) { |
|
|
|
//获取焦点图信息 |
|
|
|
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(websiteNew + '/1/0/4', {}, module.focusNews , true); |
|
|
@@ -211,6 +213,15 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//焦点图数据 |
|
|
|
module.focusNewsPC = function (data) { |
|
|
|
if (data.code == 200) { |
|
|
|
module.data.focusListPC = data.data; |
|
|
|
var bannerFocusDataPC = template('bannerFocusDataPC', module.data); |
|
|
|
$("#bannerFocusPCContent").html(bannerFocusDataPC); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//焦点图数据 |
|
|
|
module.focusNews = function (data) { |
|
|
|
if (data.code == 200) { |
|
|
|