Sfoglia il codice sorgente

task 配置修改

rongxin_dev
庞东旭 2 giorni fa
parent
commit
95248d0105
3 ha cambiato i file con 20 aggiunte e 10 eliminazioni
  1. +1
    -1
      sunVillage_info/static/js/api/index.js
  2. +3
    -3
      sunVillage_info/static/js/common/main.js
  3. +16
    -6
      sunVillage_info/static/js/project/index.js

+ 1
- 1
sunVillage_info/static/js/api/index.js Vedi File

@@ -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


+ 3
- 3
sunVillage_info/static/js/common/main.js Vedi File

@@ -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',//上传图片


+ 16
- 6
sunVillage_info/static/js/project/index.js Vedi File

@@ -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);
}
}



Caricamento…
Annulla
Salva