| @@ -92,7 +92,7 @@ var zjdzdxxGet = '/open/house/zjdzdxx/' //查询宅基地详情 | |||||
| /* | /* | ||||
| @purl /open/house/policy/list | @purl /open/house/policy/list | ||||
| */ | */ | ||||
| var webList = '/open/house/policy/list/level' //查询落款 | |||||
| var webList = '/open/typz/list' //查询落款 | |||||
| /* | /* | ||||
| @purl /open/house/policy/get | @purl /open/house/policy/get | ||||
| @@ -1,6 +1,6 @@ | |||||
| requirejs.config({ | requirejs.config({ | ||||
| urlArgs: "ver=1.0_" + (new Date).getTime(), | urlArgs: "ver=1.0_" + (new Date).getTime(), | ||||
| baseUrl: '/infoport/static/js/', | |||||
| baseUrl: '/sunVillage_info/static/js/', | |||||
| paths: { | paths: { | ||||
| //第三方库的路径配置 | //第三方库的路径配置 | ||||
| jquery: 'lib/jquery/jquery-1.9.1.min', //jquery | jquery: 'lib/jquery/jquery-1.9.1.min', //jquery | ||||
| @@ -22,8 +22,8 @@ requirejs.config({ | |||||
| dateTime:'lib/dateTime/dateTime.min',//时间选择器 | dateTime:'lib/dateTime/dateTime.min',//时间选择器 | ||||
| //自己写的路径配置 | //自己写的路径配置 | ||||
| Tools: '/infoport/static/js/common/tools', | |||||
| addressApi: '/infoport/static/js/api/index', //所有Ajax接口存放地 | |||||
| Tools: '/sunVillage_info/static/js/common/tools', | |||||
| addressApi: '/sunVillage_info/static/js/api/index', //所有Ajax接口存放地 | |||||
| user: 'api/user',//用户信息接口 | user: 'api/user',//用户信息接口 | ||||
| register:'api/register',//用户注册接口 | register:'api/register',//用户注册接口 | ||||
| ajaxUploadImage:'lib/ajaxUpload/ajaxupload',//上传图片 | ajaxUploadImage:'lib/ajaxUpload/ajaxupload',//上传图片 | ||||
| @@ -16,7 +16,7 @@ define(['jquery', "template", "Tools", 'swiper'], function ($, template, Tools, | |||||
| var tools = new Tools(); | var tools = new Tools(); | ||||
| module.init = function (page) { | 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) { | module.webList = function (data) { | ||||
| if (data.code == 200) { | 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); | |||||
| } | } | ||||
| } | } | ||||