From 95248d010524583e72e766cc4224dd795ca94cce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Thu, 24 Jul 2025 09:12:26 +0800 Subject: [PATCH] =?UTF-8?q?task=20=E9=85=8D=E7=BD=AE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sunVillage_info/static/js/api/index.js | 2 +- sunVillage_info/static/js/common/main.js | 6 +++--- sunVillage_info/static/js/project/index.js | 22 ++++++++++++++++------ 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/sunVillage_info/static/js/api/index.js b/sunVillage_info/static/js/api/index.js index aa5a4cd..a0e992b 100644 --- a/sunVillage_info/static/js/api/index.js +++ b/sunVillage_info/static/js/api/index.js @@ -92,7 +92,7 @@ var zjdzdxxGet = '/open/house/zjdzdxx/' //查询宅基地详情 /* @purl /open/house/policy/list */ -var webList = '/open/house/policy/list/level' //查询落款 +var webList = '/open/typz/list' //查询落款 /* @purl /open/house/policy/get diff --git a/sunVillage_info/static/js/common/main.js b/sunVillage_info/static/js/common/main.js index 24d8422..c99128a 100644 --- a/sunVillage_info/static/js/common/main.js +++ b/sunVillage_info/static/js/common/main.js @@ -1,6 +1,6 @@ requirejs.config({ urlArgs: "ver=1.0_" + (new Date).getTime(), - baseUrl: '/infoport/static/js/', + baseUrl: '/sunVillage_info/static/js/', paths: { //第三方库的路径配置 jquery: 'lib/jquery/jquery-1.9.1.min', //jquery @@ -22,8 +22,8 @@ requirejs.config({ 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',//用户信息接口 register:'api/register',//用户注册接口 ajaxUploadImage:'lib/ajaxUpload/ajaxupload',//上传图片 diff --git a/sunVillage_info/static/js/project/index.js b/sunVillage_info/static/js/project/index.js index 3c5f4d3..2b70d15 100644 --- a/sunVillage_info/static/js/project/index.js +++ b/sunVillage_info/static/js/project/index.js @@ -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); } }