|
|
@@ -16,7 +16,7 @@ define(['jquery', "template", "Tools", 'swiper'], function ($, template, Tools, |
|
|
|
var tools = new Tools(); |
|
|
|
|
|
|
|
module.init = function (page) { |
|
|
|
tools.doGet(webList, {}, module.webList , true); |
|
|
|
tools.doGet(webList, { configKey: 'web.open' }, module.webList , true); |
|
|
|
//新闻列表 |
|
|
|
}; |
|
|
|
|
|
|
@@ -50,13 +50,23 @@ define(['jquery', "template", "Tools", 'swiper'], function ($, template, Tools, |
|
|
|
|
|
|
|
module.webList = function (data) { |
|
|
|
if (data.code == 200) { |
|
|
|
var content = data.data; |
|
|
|
var content = data.rows; |
|
|
|
|
|
|
|
$("#tt").html(content.top.contentValue); |
|
|
|
$("#phone").html('投诉电话:' + content.botoom2[0].contentValue); |
|
|
|
$("#zcdw").html('支持单位:' + content.botoom3[1].contentValue); |
|
|
|
content.map(rr=>{ |
|
|
|
if (rr.configKey == 'web.open.technique'){ |
|
|
|
$("#zcdw").html(rr.configValue); |
|
|
|
} |
|
|
|
if (rr.configKey == "web.open.phone"){ |
|
|
|
$("#phone").html(rr.configValue); |
|
|
|
} |
|
|
|
if (rr.configKey == "web.open.qrcode"){ |
|
|
|
$('#ewm').attr('src', rr.configValue); |
|
|
|
} |
|
|
|
if (rr.configKey == "web.open.title"){ |
|
|
|
$("#tt").html(rr.configValue); |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
$('#ewm').attr('src', 'static/images/'+content.top.bz); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|