@@ -0,0 +1,169 @@ | |||
<!DOCTYPE html | |||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="zh-CN" xml:lang="zh-CN"> | |||
<head> | |||
<meta charset="utf-8"> | |||
<title>农村资源信息港</title> | |||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |||
<meta name="keywords" content="" /> | |||
<meta name="description" cxontent="" /> | |||
<link href="static/css/main.css" rel="stylesheet" type="text/css" /> | |||
<link href="static/css/index.css" rel="stylesheet" type="text/css" /> | |||
</head> | |||
<body> | |||
<div class="main" id="page"> | |||
<div class="header flex_dom flex_item_between flex_item_mid"> | |||
<p id="titContent"> | |||
<script id="titData" type="text/html"> | |||
{{webList.top.contentValue}} | |||
</script> | |||
</p> | |||
<div class="wid25 flex_dom flex_item_between flex_item_mid"> | |||
<div class="header_nav"> | |||
<a href="index.html"> | |||
<div> | |||
<i class="i1"></i> | |||
</div> | |||
<p>新闻资讯</p> | |||
</a> | |||
</div> | |||
<div class="header_nav"> | |||
<a href="property.html"> | |||
<div> | |||
<i class="i2"></i> | |||
</div> | |||
<p>资产信息</p> | |||
</a> | |||
</div> | |||
<div class="header_nav"> | |||
<a href="resourceNew.html"> | |||
<div> | |||
<i class="i3"></i> | |||
</div> | |||
<p>资源信息</p> | |||
</a> | |||
</div> | |||
<div class="header_nav"> | |||
<a href="homestead.html"> | |||
<div> | |||
<i class="i4"></i> | |||
</div> | |||
<p>宅基地信息</p> | |||
</a> | |||
</div> | |||
<div class="header_nav active"> | |||
<a href="homestead.html"> | |||
<div> | |||
<i class="i5"></i> | |||
<img src="static/images/nav_bg.png" class="i_bg xuanzhuan" alt=""> | |||
</div> | |||
<p>四议两公开</p> | |||
</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="search"> | |||
<input type="search" placeholder="搜索您需要的讯息" id="searchInput" oninput="searchChange()" > | |||
</div> | |||
<div class="new"> | |||
<div class="personalTit-banner"> | |||
<div class="swiper-container" id="bannerFocusNextWrap"> | |||
<div class="swiper-wrapper" id="bannerFocusNextContent"> | |||
<script id="newListDataImg" type="text/html"> | |||
{{if newImgList.length>0}} | |||
{{each newImgList as value i}} | |||
<div class="swiper-slide"> | |||
<a href="#"><img src="/api{{value}}" alt=""></a> | |||
</div> | |||
{{/each}} | |||
{{else}} | |||
<div class="swiper-slide"> | |||
<a href="#"><img src="static/images/news2.jpg" alt=""></a> | |||
</div> | |||
{{/if}} | |||
</script> | |||
</div> | |||
<div class="page-pagination a2"></div> | |||
</div> | |||
</div> | |||
<div class="new_list"> | |||
<div class="new_list_tit"> | |||
<p>四议两公开</p> | |||
<p id="nowDateNYR">2023.03.15</p> | |||
</div> | |||
<div id="review_box" style="height: 36vh;overflow: hidden;margin-top: 2.5vh;"> | |||
<div class="new_list_ul" id="newListContent"> | |||
<script id="newListData" type="text/html"> | |||
{{each newList as value i}} | |||
<div class="new_list_li"> | |||
<a href="discussionsDetail.html?id={{value.id}}">{{value.openName}}</a> | |||
<p>{{value.bookName}}</p> | |||
<p>{{value.jueyiAt}}</p> | |||
</div> | |||
{{/each}} | |||
</script> | |||
</div> | |||
<div class="new_list_ul" id="newListContent2"></div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="footer" id="webContent"> | |||
<script id="webData" type="text/html"> | |||
<div class="footer_link"> | |||
<!-- <p class="footer_link_tit">友情链接</p>--> | |||
<!-- {{each webList.botoom1 as value i}}--> | |||
<!-- <a class="hotFile" target="_blank" href="{{value.contentUrl}}">{{value.contentValue}}</a>--> | |||
<!-- {{/each}}--> | |||
<img src="static/images/link_00.png" alt=""> | |||
<!-- <a href=""><img src="static/images/link_01.png" alt="" ></a>--> | |||
<!-- <a href=""><img src="static/images/link_02.png" alt=""></a>--> | |||
{{each webList.botoom1 as value i}} | |||
<a href="{{value.contentUrl}}" style="background: url('static/images/{{value.contentIcon}}.png') no-repeat center;background-size: 100% 100%;" target="_blank"> | |||
<!-- <img src="static/images/{{value.contentIcon}}.png" alt="" >--> | |||
<p class="link_tt">{{value.contentValue}}</p> | |||
</a> | |||
{{/each}} | |||
</div> | |||
<div class="footer_link_filings"> | |||
{{each webList.botoom2 as value i}} | |||
<div class="footer_link_filings_left"> | |||
<p style="background-image: url('static/images/{{value.contentIcon}}')">{{value.contentTitle}}</p> | |||
<a href="#">{{value.contentValue}}</a> | |||
</div> | |||
{{/each}} | |||
</div> | |||
<div class="footer_link_company"> | |||
{{each webList.botoom3 as value i}} | |||
<div> | |||
<p>{{value.contentTitle}}</p> | |||
<a target="{{value.contentUrl ? '_blank' : '_self' }}" href="{{value.contentUrl ? value.contentUrl : 'javascript:void(0)' }}">{{value.contentValue}}</a> | |||
</div> | |||
{{/each}} | |||
</div> | |||
</script> | |||
</div> | |||
<!-- <div class="footer_link_filings_right">--> | |||
<!-- <p>服务热线</p>--> | |||
<!-- <a href="#">{{webList[4].contentValue}}</a>--> | |||
<!-- </div>--> | |||
</div> | |||
</body> | |||
<script src="./static/js/common/require.js" data-main="./static/js/common/main.js?t=101" id="require-page" target-module="./static/js/project/discussions.js" defer type="text/javascript"></script> | |||
</html> |
@@ -0,0 +1,92 @@ | |||
<!DOCTYPE html | |||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="zh-CN" xml:lang="zh-CN"> | |||
<head> | |||
<meta charset="utf-8"> | |||
<title>农村资源信息港</title> | |||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |||
<meta name="keywords" content="" /> | |||
<meta name="description" cxontent="" /> | |||
<link href="static/css/main.css" rel="stylesheet" type="text/css" /> | |||
<link href="static/css/index.css" rel="stylesheet" type="text/css" /> | |||
<link href="static/css/newDetail.css" rel="stylesheet" type="text/css" /> | |||
</head> | |||
<body> | |||
<div class="main" id="page"> | |||
<div class="new_content"> | |||
<div class="new_content_left"> | |||
<div class="new_content_left_tit"> | |||
<a href="discussions.html"><i></i></a> | |||
<p id="name"></p> | |||
</div> | |||
<div class="new_content_left_come"> | |||
<p id="creatBy"></p> | |||
<p id="creatTime"></p> | |||
</div> | |||
<div class="new_content_content" id="jueyiAt"></div> | |||
<div class="new_content_content" id="jueyiPic"></div> | |||
<div class="new_content_content" id="shishiAt"></div> | |||
<div class="new_content_content" id="shishiPic"></div> | |||
<div class="new_content_content" id="remark"></div> | |||
</div> | |||
<div class="new_content_right"> | |||
<div class="new_content_right_tit">四议两公开列表</div> | |||
<div class="new_content_right_main" id="newListContent"> | |||
<script id="newListData" type="text/html"> | |||
{{each newList as value i}} | |||
<p><a href="discussionsDetail.html?id={{value.id}}">{{value.openName}}</a></p> | |||
{{/each}} | |||
</script> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="footer" id="webContent"> | |||
<script id="webData" type="text/html"> | |||
<div class="footer_link"> | |||
<!-- <p class="footer_link_tit">友情链接</p>--> | |||
<!-- {{each webList.botoom1 as value i}}--> | |||
<!-- <a class="hotFile" target="_blank" href="{{value.contentUrl}}">{{value.contentValue}}</a>--> | |||
<!-- {{/each}}--> | |||
<img src="static/images/link_00.png" alt=""> | |||
<!-- <a href=""><img src="static/images/link_01.png" alt="" ></a>--> | |||
<!-- <a href=""><img src="static/images/link_02.png" alt=""></a>--> | |||
{{each webList.botoom1 as value i}} | |||
<a href="{{value.contentUrl}}" style="background: url('static/images/{{value.contentIcon}}.png') no-repeat center;background-size: 100% 100%;" target="_blank"> | |||
<!-- <img src="static/images/{{value.contentIcon}}.png" alt="" >--> | |||
<p class="link_tt">{{value.contentValue}}</p> | |||
</a> | |||
{{/each}} | |||
</div> | |||
<div class="footer_link_filings"> | |||
{{each webList.botoom2 as value i}} | |||
<div class="footer_link_filings_left"> | |||
<p style="background-image: url('static/images/{{value.contentIcon}}')">{{value.contentTitle}}</p> | |||
<a href="#">{{value.contentValue}}</a> | |||
</div> | |||
{{/each}} | |||
</div> | |||
<div class="footer_link_company"> | |||
{{each webList.botoom3 as value i}} | |||
<div> | |||
<p>{{value.contentTitle}}</p> | |||
<a target="{{value.contentUrl ? '_blank' : '_self' }}" href="{{value.contentUrl ? value.contentUrl : 'javascript:void(0)' }}">{{value.contentValue}}</a> | |||
</div> | |||
{{/each}} | |||
</div> | |||
</script> | |||
</div> | |||
</div> | |||
</body> | |||
<script src="./static/js/common/require.js" data-main="./static/js/common/main.js?t=101" id="require-page" target-module="./static/js/project/discussionsDetail.js" defer type="text/javascript"></script> | |||
</html> |
@@ -86,6 +86,14 @@ | |||
<p>宅基地信息</p> | |||
</a> | |||
</div> | |||
<div class="header_nav"> | |||
<a href="discussions.html"> | |||
<div> | |||
<i class="i5"></i> | |||
</div> | |||
<p>四议两公开</p> | |||
</a> | |||
</div> | |||
</div> | |||
</div> | |||
@@ -56,6 +56,14 @@ | |||
<p>宅基地信息</p> | |||
</a> | |||
</div> | |||
<div class="header_nav"> | |||
<a href="discussions.html"> | |||
<div> | |||
<i class="i5"></i> | |||
</div> | |||
<p>四议两公开</p> | |||
</a> | |||
</div> | |||
</div> | |||
</div> | |||
@@ -88,6 +88,14 @@ | |||
<p>宅基地信息</p> | |||
</a> | |||
</div> | |||
<div class="header_nav"> | |||
<a href="discussions.html"> | |||
<div> | |||
<i class="i5"></i> | |||
</div> | |||
<p>四议两公开</p> | |||
</a> | |||
</div> | |||
</div> | |||
</div> | |||
@@ -86,6 +86,14 @@ | |||
<p>宅基地信息</p> | |||
</a> | |||
</div> | |||
<div class="header_nav"> | |||
<a href="discussions.html"> | |||
<div> | |||
<i class="i5"></i> | |||
</div> | |||
<p>四议两公开</p> | |||
</a> | |||
</div> | |||
</div> | |||
</div> | |||
@@ -56,6 +56,10 @@ | |||
background: url("../images/nav_8.png") no-repeat center; | |||
background-size: 100% 100%; | |||
} | |||
.active .i5{ | |||
background: url("../images/nav_10.png") no-repeat center; | |||
background-size: 100% 100%; | |||
} | |||
.header .active{ | |||
position: relative; | |||
} | |||
@@ -85,6 +89,11 @@ | |||
background-size: 100% 100%; | |||
transition: all 0.4s ease-in-out; | |||
} | |||
.header .header_nav:hover .i5{ | |||
background: url("../images/nav_10.png") no-repeat center; | |||
background-size: 100% 100%; | |||
transition: all 0.4s ease-in-out; | |||
} | |||
.header .header_nav{ | |||
cursor: pointer; | |||
} | |||
@@ -126,6 +135,10 @@ | |||
background: url("../images/nav_4.png") no-repeat center; | |||
background-size: 100% 100%; | |||
} | |||
.i5{ | |||
background: url("../images/nav_9.png") no-repeat center; | |||
background-size: 100% 100%; | |||
} | |||
.search{ | |||
@@ -198,6 +211,10 @@ | |||
cursor: pointer; | |||
} | |||
.new_list_li a{ | |||
width: 50%; | |||
} | |||
.new_list_li:first-child{ | |||
/*margin-top: 2.5vh;*/ | |||
@@ -105,3 +105,7 @@ var webGet = '/open/house/policy/get/' //查询落款 | |||
dictType:project_type | |||
*/ | |||
var webDeptType = '/transaction/website/transfer/'//标的物类型查询接口 | |||
var listSiyigongkai = '/open/villageAffairs/public/siyigongkaiList'//查询四议两公开列表 | |||
var siyigongkaiDetail = '/open/villageAffairs/public/siyigongkaiDetail'//查询四议两公开列表 |
@@ -0,0 +1,103 @@ | |||
/** | |||
* Created by Administrator on 2021/4/5. | |||
*/ | |||
define(['jquery', "template", "Tools", 'swiper'], function ($, template, Tools, swiper) { | |||
//数据存储 | |||
var module = { | |||
data: { | |||
//服务器地址 | |||
serverApi:'', | |||
//焦点图数据 | |||
focusList: [], | |||
communicateList: [], | |||
newImgList:[] | |||
}, | |||
}; | |||
var tools = new Tools(); | |||
module.init = function (page) { | |||
//新闻列表 | |||
tools.doGet(listSiyigongkai, {pageNum:1,pageSize:8}, module.newsList , true); | |||
tools.doGet(webList, {}, module.webList , true); | |||
// new Swiper('#bannerFocusNextWrap', { | |||
// paginationClickable: true, | |||
// pagination: '.a2', | |||
// autoplay : 2000, | |||
// loop:true | |||
// }) | |||
$("#nowDateNYR").html(new Date().getFullYear()+'-'+(new Date().getMonth()+1)+'-'+new Date().getDate()); | |||
}; | |||
module.newsList = function (data) { | |||
if (data.code == 200) { | |||
var content = data.rows; | |||
module.data.newList = content; | |||
var newListData = template('newListData', module.data); | |||
$("#newListContent").html(newListData); | |||
var newImgList = []; | |||
// content.map(rr=>{ | |||
// if (rr.jueyiPic!=null&&rr.jueyiPic!=""){ | |||
// rr.jueyiPic.split(','); | |||
// newImgList.push(rr.jueyiPic); | |||
// } | |||
// }) | |||
module.data.newImgList = newImgList; | |||
var newListDataImg = template('newListDataImg', module.data); | |||
$("#bannerFocusNextContent").html(newListDataImg); | |||
// roll(20) | |||
} | |||
} | |||
module.webList = function (data) { | |||
if (data.code == 200) { | |||
var content = data.data; | |||
module.data.webList = content; | |||
var webData = template('webData', module.data); | |||
$("#webContent").html(webData); | |||
var titData = template('titData', module.data); | |||
$("#titContent").html(titData); | |||
} | |||
} | |||
searchChange = function () { | |||
console.log(1111111111); | |||
tools.doGet(listSiyigongkai, {pageNum:1,pageSize:8,openName:$("#searchInput").val()}, module.newsList , true); | |||
} | |||
function roll(t) { | |||
var ul1 = document.getElementById("newListContent"); | |||
var ul2 = document.getElementById("newListContent2"); | |||
var ulbox = document.getElementById("review_box"); | |||
ul2.innerHTML = ul1.innerHTML; | |||
ulbox.scrollTop = 0; // 开始无滚动时设为0 | |||
var timer = setInterval(rollStart, t); // 设置定时器,参数t用在这为间隔时间(单位毫秒),参数t越小,滚动速度越快 | |||
// 鼠标移入div时暂停滚动 | |||
ulbox.onmouseover = function () { | |||
clearInterval(timer); | |||
} | |||
// 鼠标移出div后继续滚动 | |||
ulbox.onmouseout = function () { | |||
timer = setInterval(rollStart, t); | |||
} | |||
} | |||
// 开始滚动函数 | |||
function rollStart() { | |||
// 上面声明的DOM对象为局部对象需要再次声明 | |||
var ul1 = document.getElementById("newListContent"); | |||
var ul2 = document.getElementById("newListContent2"); | |||
var ulbox = document.getElementById("review_box"); | |||
// 正常滚动不断给scrollTop的值+1,当滚动高度大于列表内容高度时恢复为0 | |||
console.log(ulbox.scrollTop+'--------'+ul1.scrollHeight) | |||
if (ulbox.scrollTop >= ul1.scrollHeight) { | |||
ulbox.scrollTop = 0; | |||
} else { | |||
ulbox.scrollTop += 1; | |||
} | |||
} | |||
return module; | |||
}); |
@@ -0,0 +1,83 @@ | |||
/** | |||
* Created by Administrator on 2021/4/5. | |||
*/ | |||
define(['jquery', "template", "Tools"], function ($, template, Tools) { | |||
//数据存储 | |||
var module = { | |||
data: { | |||
//服务器地址 | |||
serverApi:'', | |||
//焦点图数据 | |||
focusList: [], | |||
communicateList: [], | |||
}, | |||
}; | |||
var tools = new Tools(); | |||
module.init = function (page) { | |||
//新闻详情 | |||
tools.doGet(siyigongkaiDetail, {id:getQueryVariable('id')}, module.newsDetail , true); | |||
//新闻列表 | |||
tools.doGet(listSiyigongkai, {pageNum:1,pageSize:8}, module.newsList , true); | |||
tools.doGet(webList, {}, module.webList , true); | |||
}; | |||
//获取地址栏参数 | |||
function getQueryVariable(variable){ | |||
var query = window.location.search.substring(1); | |||
var vars = query.split("&"); | |||
for (var i=0;i<vars.length;i++) { | |||
var pair = vars[i].split("="); | |||
if(pair[0] == variable){return pair[1];} | |||
} | |||
return(false); | |||
} | |||
module.webList = function (data) { | |||
if (data.code == 200) { | |||
var content = data.data; | |||
module.data.webList = content; | |||
var webData = template('webData', module.data); | |||
$("#webContent").html(webData); | |||
var titData = template('titData', module.data); | |||
$("#titContent").html(titData); | |||
} | |||
} | |||
module.newsDetail = function (data) { | |||
if (data.code == 200) { | |||
var content = data.data; | |||
$('#name')[0].innerHTML = content.openName; | |||
$('#jueyiAt')[0].innerHTML = '決议公开日期:'+content.jueyiAt; | |||
let arr = content.jueyiPic.split(','); | |||
console.log(arr) | |||
$('#jueyiPic')[0].innerHTML = '决议公开图片:<br/>'; | |||
for (let i = 0;i < arr.length; i++){ | |||
$('#jueyiPic')[0].innerHTML += '<img src="/api'+arr[i]+'" style="width: 200px;height: 150px;margin-right: 10px;">'; | |||
} | |||
let arr2 = content.shishiPic.split(','); | |||
$('#shishiPic')[0].innerHTML = '实施公开图片:<br/>'; | |||
for (let i = 0;i < arr2.length; i++){ | |||
$('#shishiPic')[0].innerHTML += '<img src="/api'+arr2[i]+'" style="width: 200px;height: 150px;margin-right: 10px;">'; | |||
} | |||
$('#shishiAt')[0].innerHTML = '实施公开日期:'+content.shishiAt; | |||
$('#remark')[0].innerHTML = '备注:'+content.remark; | |||
} | |||
} | |||
module.newsList = function (data) { | |||
if (data.code == 200) { | |||
var content = data.rows; | |||
module.data.newList = content; | |||
var newListData = template('newListData', module.data); | |||
$("#newListContent").html(newListData); | |||
} | |||
} | |||
return module; | |||
}); |
@@ -38,7 +38,7 @@ | |||
</div> | |||
<div class="partition"></div> | |||
<!-- 轮播图 --> | |||
<img src="static/images/banner.jpg" alt=""/> | |||
<img src="static/images/banner.jpg" style="width: 100%;" alt=""/> | |||
<!-- 新闻模块 --> | |||
<div class="newBox w-1200"> | |||
<p class="crumbs">首页 ></p> | |||
@@ -389,14 +389,6 @@ | |||
<ul id="managementContent"></ul> | |||
</div> | |||
<div class="supplyBox m-t-15"> | |||
<div class="titBox"> | |||
<div class="fl"> | |||
<p class="font36 newBox_list_titBg">SUPPLY</p> | |||
<p class="newBox_list_tit">供应信息</p> | |||
</div> | |||
<a href="view/supply/index.html?type=gongying" class="fr font16 more">更多<span class="jiantou"></span></a> | |||
<div class="clear"></div> | |||
</div> | |||
<div class="titBox"> | |||
<div class="fl"> | |||
<p class="font36 newBox_list_titBg">SERVICE</p> | |||
@@ -106,9 +106,9 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa | |||
for ( var i = 0 ; i < content.length ; i++ ){ | |||
content[i].unit = module.selectDictLabel(module.data.unitOptions,content[i].unit); | |||
// content[i].unit = module.selectDictLabel(module.data.unitOptions,content[i].unit); | |||
content[i].supplyMasterMap = serverApi + content[i].supplyMasterMap ; | |||
content[i].supplyMasterMap = serverApi + ((content[i].supplyMasterMap || content[i].supplyMasterMap != '')?content[i].supplyMasterMap: 'null') ; | |||
} | |||
@@ -127,7 +127,7 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa | |||
content[i].unit = module.selectDictLabel(module.data.unitOptions,content[i].unit); | |||
content[i].supplyMasterMap = serverApi + content[i].supplyMasterMap ; | |||
content[i].supplyMasterMap = serverApi + ((content[i].supplyMasterMap || content[i].supplyMasterMap != '')?content[i].supplyMasterMap: 'null') ; | |||
} | |||
@@ -146,7 +146,7 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa | |||
content[i].unit = module.selectDictLabel(module.data.unitOptions,content[i].unit); | |||
content[i].supplyMasterMap = serverApi + content[i].supplyMasterMap ; | |||
content[i].supplyMasterMap = serverApi + ((content[i].supplyMasterMap || content[i].supplyMasterMap != '')?content[i].supplyMasterMap: 'null') ; | |||
} | |||
@@ -171,7 +171,7 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa | |||
content[i].industryClassificationType = secondArray; | |||
} | |||
console.log(content[i].industryClassificationType) | |||
content[i].masterMap = serverApi + content[i].masterMap ; | |||
content[i].masterMap = serverApi + ((content[i].masterMap || content[i].masterMap != '')?content[i].masterMap: 'null') ; | |||
} | |||
@@ -55,6 +55,7 @@ define(['jquery', "template", "Tools", 'LeftNav', 'dateTime'], function ($, temp | |||
}); | |||
tools.doGet(dictType + '/supply_demand_unit', {}, module.dictType , true); | |||
tools.doGet(productCategories , {}, module.projectList , true); | |||
tools.getWebConfig(); | |||
}; | |||
module.dictType = function (data) { | |||
@@ -93,7 +94,7 @@ define(['jquery', "template", "Tools", 'LeftNav', 'dateTime'], function ($, temp | |||
content[i].unit = module.selectDictLabel(module.data.unitOptions,content[i].unit); | |||
content[i].supplyMasterMap = serverApi + content[i].supplyMasterMap ; | |||
content[i].supplyMasterMap = serverApi + ((content[i].supplyMasterMap || content[i].supplyMasterMap != '')?content[i].supplyMasterMap: 'null') ; | |||
} | |||
@@ -112,7 +113,7 @@ define(['jquery', "template", "Tools", 'LeftNav', 'dateTime'], function ($, temp | |||
content[i].unit = module.selectDictLabel(module.data.unitOptions,content[i].unit); | |||
content[i].supplyMasterMap = serverApi + content[i].supplyMasterMap ; | |||
content[i].supplyMasterMap = serverApi + ((content[i].supplyMasterMap || content[i].supplyMasterMap != '')?content[i].supplyMasterMap: 'null') ; | |||
} | |||
@@ -130,7 +131,7 @@ define(['jquery', "template", "Tools", 'LeftNav', 'dateTime'], function ($, temp | |||
content[i].unit = module.selectDictLabel(module.data.unitOptions,content[i].unit); | |||
content[i].supplyMasterMap = serverApi + content[i].supplyMasterMap ; | |||
content[i].supplyMasterMap = serverApi + ((content[i].supplyMasterMap || content[i].supplyMasterMap != '')?content[i].supplyMasterMap: 'null') ; | |||
} | |||
module.data.recommendList = content; | |||
@@ -189,9 +190,9 @@ define(['jquery', "template", "Tools", 'LeftNav', 'dateTime'], function ($, temp | |||
for ( var i = 0 ; i < content.length ; i++ ){ | |||
content[i].unit = module.selectDictLabel(module.data.unitOptions,content[i].unit); | |||
// content[i].unit = module.selectDictLabel(module.data.unitOptions,content[i].unit); | |||
content[i].supplyMasterMap = serverApi + content[i].supplyMasterMap ; | |||
content[i].supplyMasterMap = serverApi + ((content[i].supplyMasterMap || content[i].supplyMasterMap != '')?content[i].supplyMasterMap: 'null') ; | |||
} | |||
@@ -238,4 +239,4 @@ define(['jquery', "template", "Tools", 'LeftNav', 'dateTime'], function ($, temp | |||
} | |||
return module; | |||
}) | |||
}) |
@@ -36,6 +36,8 @@ define(['jquery', "template", "Tools", 'LeftNav', 'dateTime'], function ($, temp | |||
//console.log(res) | |||
} | |||
}) | |||
tools.getWebConfig(); | |||
}; | |||
//新闻列表 | |||
@@ -61,7 +63,7 @@ define(['jquery', "template", "Tools", 'LeftNav', 'dateTime'], function ($, temp | |||
var content = data.data; | |||
for ( var i = 0 ; i < content.length ; i++ ){ | |||
content[i].trainingType = module.selectDictLabel(module.data.trainingTypeOptions,content[i].trainingType); | |||
content[i].masterMap = serverApi + content[i].masterMap; | |||
content[i].masterMap = serverApi + ((content[i].masterMap || content[i].masterMap != '')?content[i].masterMap: 'null'); | |||
} | |||
module.data.technologyList = content; | |||
var technologyData = template('technologyData', module.data); | |||
@@ -147,4 +149,4 @@ define(['jquery', "template", "Tools", 'LeftNav', 'dateTime'], function ($, temp | |||
} | |||
return module; | |||
}) | |||
}) |
@@ -78,59 +78,59 @@ | |||
<table width="100%" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td></td> | |||
<td>山芋粉</td> | |||
<td>大果</td> | |||
<td>中果</td> | |||
<td>小果</td> | |||
<td>小果</td> | |||
<td>小果</td> | |||
<td>小果</td> | |||
<td>小果</td> | |||
<td>小果</td> | |||
<td>小果</td> | |||
<td>玉米</td> | |||
<td>小麦</td> | |||
<td>大豆</td> | |||
<td>水稻</td> | |||
<td>梨</td> | |||
<td>苹果</td> | |||
<td>葡萄</td> | |||
<td>大白菜</td> | |||
<td>生菜</td> | |||
<td>空心菜</td> | |||
</tr> | |||
<tr> | |||
<td>指导价格</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>26元/500g</td> | |||
<td>1.58元/500g</td> | |||
<td>1.21元/500g</td> | |||
<td>1.2元/500g</td> | |||
<td>6.2元/500g</td> | |||
<td>8元/500g</td> | |||
<td>9元/500g</td> | |||
<td>3.2元/500g</td> | |||
<td>3.5元/500g</td> | |||
<td>5.1元/500g</td> | |||
</tr> | |||
<tr> | |||
<td>最新价格</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>27元/500g</td> | |||
<td>1.58元/500g</td> | |||
<td>1.2元/500g</td> | |||
<td>1.2元/500g</td> | |||
<td>6元/500g</td> | |||
<td>8元/500g</td> | |||
<td>8元/500g</td> | |||
<td>3.5元/500g</td> | |||
<td>3.8元/500g</td> | |||
<td>5元/500g</td> | |||
</tr> | |||
<tr> | |||
<td>日均价格</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>2.5/500g</td> | |||
<td>25.6元/500g</td> | |||
<td>1.6元/500g</td> | |||
<td>1.21元/500g</td> | |||
<td>1.22元/500g</td> | |||
<td>5.94元/500g</td> | |||
<td>7.64元/500g</td> | |||
<td>7.75元/500g</td> | |||
<td>3元/500g</td> | |||
<td>4元/500g</td> | |||
<td>4.8元/500g</td> | |||
</tr> | |||
</table> | |||
</div> | |||
<div style="height: 200px;"></div> | |||
<div style="height: 30px;"></div> | |||
<div class="recommendTit "> | |||
<p class="fl"><i class="lvd"></i>产品分类</p> | |||
<div class="clear"></div> | |||
@@ -214,8 +214,7 @@ | |||
<img src="../../static/images/img2.jpg" width="25%" height="128" alt="" class="fl"/> | |||
<table class="fl informationTable"> | |||
<tr> | |||
<td colspan="2"><p class="font16 color-333">{{value.title}}<i class="bq">{{value.techniqueType}}</i></p></td> | |||
<td><p class="supplyList_time">{{value.handleTime}}</p></td> | |||
<td colspan="3"><p class="font16 color-333">{{value.seekTitle}}<i class="bq">{{value.techniqueType}}</i></p></td> | |||
</tr> | |||
<tr> | |||
<td> </td> | |||
@@ -223,13 +222,13 @@ | |||
<td> </td> | |||
</tr> | |||
<tr> | |||
<td width="190"><p class="font16"><span class="color-666 font14">发布人</span> {{value.submitName}}</p></td> | |||
<td width="190"><p class="font16"><span class="color-666 font14">发布人</span> {{value.createBy}}</p></td> | |||
<td colspan="2"><p class="font16"><span class="color-666 font14">发布时间</span> {{value.createTime.substr(0,10)}}</p></td> | |||
</tr> | |||
<tr> | |||
<td><p class="font16"><span class="color-666 font14">答复专家</span> {{value.handleName}}</p></td> | |||
<td><p class="font16"><span class="color-666 font14">答复时间</span> {{value.handleTime}}</p></td> | |||
<td><p class="supplyList_tel"><i class="icon_tel"></i>{{value.phone}}</p></td> | |||
<td><p class="font16"><span class="color-666 font14">答复专家</span> {{value.seekName}}</p></td> | |||
<td><p class="font16"><span class="color-666 font14">答复时间</span> {{value.seekDate}}</p></td> | |||
<td><p class="supplyList_tel"><i class="icon_tel"></i>{{value.seekPhone}}</p></td> | |||
</tr> | |||
</table> | |||
<div class="clear"></div> | |||