@@ -0,0 +1,112 @@ | |||||
.nav_box { | |||||
width: 100%; | |||||
height: 100%; | |||||
display: block; | |||||
background: #fff; | |||||
margin-top: 15px; | |||||
} | |||||
.nav_box .nav { | |||||
width: 100%; | |||||
font-size: 16px; | |||||
} | |||||
.nav_box .nav li, | |||||
.left_nav_name { | |||||
cursor: pointer; | |||||
} | |||||
.nav_box .nav li em { | |||||
width: 100%; | |||||
height: 100%; | |||||
display: block; | |||||
} | |||||
.nav_box .nav .nav_ul { | |||||
display: none; | |||||
padding: 0; | |||||
} | |||||
.nav_box .nav>li>ul.nav_ul { | |||||
display: block; | |||||
} | |||||
.nav_box .nav .level0 { | |||||
display: none; | |||||
} | |||||
.left_nav_name, | |||||
.nav_li { | |||||
height: 40px; | |||||
line-height: 40px; | |||||
color: #333; | |||||
padding: 0 30px; | |||||
position: relative; | |||||
} | |||||
.noBefore.left_nav_name:before{ | |||||
content: none | |||||
} | |||||
.left_nav_name:before { | |||||
content: ""; | |||||
height: 5px; | |||||
display: inline-block; | |||||
border: 8px solid; | |||||
width: 0; | |||||
height: 0; | |||||
transition: transform .5s; | |||||
border-color: transparent transparent transparent #333; | |||||
position: absolute; | |||||
right: 0; | |||||
top: 10px; | |||||
} | |||||
.left_nav_name.nav_open:before { | |||||
top: 15px; | |||||
right: 5px; | |||||
border-color: #FEFFFF transparent transparent transparent; | |||||
} | |||||
/*.nav_open+*/ | |||||
.nav_ul li.nav_li_open, | |||||
.left_nav_name:hover, | |||||
.nav_li:hover, | |||||
.nav_open{ | |||||
background: #168a44!important; | |||||
color: #fff!important; | |||||
} | |||||
.nav-move{ | |||||
background: transparent!important; | |||||
color: #333!important; | |||||
} | |||||
.nav-move:before{ | |||||
border-color: #333 transparent transparent transparent!important; | |||||
} | |||||
.nav-move:hover:before{ | |||||
border-color: #FEFFFF transparent transparent transparent!important; | |||||
} | |||||
.left_nav_name:hover:before { | |||||
border-color: transparent transparent transparent #FEFFFF; | |||||
} | |||||
.left_nav_name:hover.nav_open:before { | |||||
border-color: #FEFFFF transparent transparent transparent; | |||||
} | |||||
.nav_box .level2 em { | |||||
padding-left: 10px; | |||||
} | |||||
.nav_box .level3 em { | |||||
padding-left: 20px; | |||||
} | |||||
.nav_box .level4 em { | |||||
padding-left: 30px; | |||||
} | |||||
.nav_box .level5 em { | |||||
padding-left: 40px; | |||||
} |
@@ -107,7 +107,7 @@ input[type = 'radio']{ | |||||
font-size: 16px; | font-size: 16px; | ||||
} | } | ||||
.supplyType_left ul li:hover{ | .supplyType_left ul li:hover{ | ||||
color: #168a44!important; | |||||
color: #168a44; | |||||
cursor: pointer; | cursor: pointer; | ||||
} | } | ||||
.searchBox{ | .searchBox{ | ||||
@@ -280,6 +280,12 @@ input[type = 'radio']{ | |||||
width: 20%; | width: 20%; | ||||
text-align: center; | text-align: center; | ||||
} | } | ||||
.detail_box_table ul li img { | |||||
width: 20px; | |||||
height: 20px; | |||||
vertical-align: middle; | |||||
cursor: pointer; | |||||
} | |||||
.detail_box_table ul li input[type='text']{ | .detail_box_table ul li input[type='text']{ | ||||
text-align: center; | text-align: center; | ||||
padding: 5px 0; | padding: 5px 0; | ||||
@@ -342,6 +348,7 @@ input[type = 'radio']{ | |||||
line-height: 16px; | line-height: 16px; | ||||
cursor: pointer; | cursor: pointer; | ||||
margin: 0 auto; | margin: 0 auto; | ||||
display: inline-block; | |||||
} | } | ||||
.add{ | .add{ | ||||
background: #168a44; | background: #168a44; | ||||
@@ -350,9 +357,10 @@ input[type = 'radio']{ | |||||
font-size: 24px; | font-size: 24px; | ||||
width: 20px; | width: 20px; | ||||
height: 20px; | height: 20px; | ||||
line-height: 20px; | |||||
line-height: 16px; | |||||
cursor: pointer; | cursor: pointer; | ||||
margin: 0 auto; | margin: 0 auto; | ||||
display: inline-block; | |||||
} | } | ||||
.tipsBox{ | .tipsBox{ | ||||
padding: 30px 0; | padding: 30px 0; | ||||
@@ -32,4 +32,30 @@ var financial = '/webSite/operators/financial' //首页-金融服务列表 | |||||
var financialDetails = '/webSite/operators/financialDetails' //首页-金融服务详情 | var financialDetails = '/webSite/operators/financialDetails' //首页-金融服务详情 | ||||
var projectClassification = '/webSite/operators/projectClassification' //项目分类 | |||||
var guideQuery = '/webSite/operators/guideQuery' //项目指南列表 | |||||
var addGuideQueryBc = '/webSite/operators/addGuideQueryBc' //项目申报保存 | |||||
var knowledgeClassification = '/webSite/operators/knowledgeClassification' //资源库-农技分类 | |||||
var expertDatabase = '/webSite/operators/expertDatabase' //资源库-专家库 | |||||
var articleLibrary = '/webSite/operators/articleLibrary' //资源库-文章库 | |||||
var videoLibrary = '/webSite/operators/videoLibrary' //资源库-视频库 | |||||
var technologyTraining = '/webSite/operators/technologyTraining' //农技服务-农技培训 | |||||
var technologyTrainingDetails = '/webSite/operators/technologyTrainingDetails' //农技服务-农技培训详情 | |||||
var technologyTrainingStudents = '/webSite/operators/technologyTrainingStudents/add' //农技服务-学员添加 | |||||
var technologyTrainingStudentsRemove = '/webSite/operators/technologyTrainingStudents/remove' //农技服务-学员添加 | |||||
var technologyConsulting = '/webSite/operators/technologyConsulting' //农技服务-农技咨询 | |||||
var technologyConsultingDetails = '/webSite/operators/technologyConsultingDetails' //农技服务-农技咨询 | |||||
var dictType = '/webSite/operators/data/type' //首页-字典查询 | var dictType = '/webSite/operators/data/type' //首页-字典查询 |
@@ -20,6 +20,7 @@ requirejs.config({ | |||||
paging:'lib/paging/page_common',//分页插件 | paging:'lib/paging/page_common',//分页插件 | ||||
cupload:'lib/cupload/cupload',//上传图片插件 | cupload:'lib/cupload/cupload',//上传图片插件 | ||||
dateTime:'lib/dateTime/dateTime.min',//时间选择器 | dateTime:'lib/dateTime/dateTime.min',//时间选择器 | ||||
LeftNav:'lib/LeftNav/LeftNav',//树状标签插件 | |||||
//自己写的路径配置 | //自己写的路径配置 | ||||
Tools: '/newBusinessEntities/static/js/common/tools', | Tools: '/newBusinessEntities/static/js/common/tools', | ||||
@@ -61,6 +62,10 @@ requirejs.config({ | |||||
deps: ['jquery'], | deps: ['jquery'], | ||||
exports: 'ajaxUploadImage' | exports: 'ajaxUploadImage' | ||||
}, | }, | ||||
LeftNav: { | |||||
deps: ['jquery'], | |||||
exports: 'LeftNav' | |||||
}, | |||||
} | } | ||||
}); | }); | ||||
@@ -1,4 +1,4 @@ | |||||
var serverApi = 'http://192.168.31.91:8080'; | |||||
var serverApi = 'http://192.168.31.145:8080'; | |||||
var friendsLinksList = []; | var friendsLinksList = []; | ||||
var themeColor = ''; | var themeColor = ''; | ||||
var logo = ''; | var logo = ''; | ||||
@@ -0,0 +1,96 @@ | |||||
function leftNav(where, data) { | |||||
var where = where; | |||||
var menu = ""; | |||||
var html = ""; | |||||
var defaultmenu = { | |||||
name: '', //名字 | |||||
level:'0',//第几级 | |||||
haschildren: true, //是否有子节点 | |||||
url: '#', //url路径 | |||||
isopen: false, //是否展开 | |||||
children: [{ //子节点 | |||||
name: '1', | |||||
level: '1', | |||||
haschildren: true, | |||||
url: '', | |||||
isopen: true, | |||||
children: [{ | |||||
name: '1.1', | |||||
level: '2', | |||||
haschildren: true, | |||||
url: '', | |||||
isopen: true, | |||||
children: [{ | |||||
name: '1.1.1', | |||||
level: '3', | |||||
haschildren: false, | |||||
url: './14-1.html', | |||||
isopen: true, | |||||
children: '' | |||||
}] | |||||
}] | |||||
}] | |||||
}; | |||||
var here = $("body").find(where); | |||||
if(!here.length) { | |||||
where = "body"; | |||||
} | |||||
if(data) { | |||||
menu = data; | |||||
} else { | |||||
menu = defaultmenu; | |||||
} | |||||
$(where).append('<div class="nav_box"><ul class="nav"></ul></div>'); | |||||
sidebarNav(menu); | |||||
function sidebarNav(data) { | |||||
html += '<li class="left_nav_list">'; | |||||
html += '<div class="left_nav_name level' + data.level; | |||||
html += '" data-id = ' + data.id + '><em>' + data.classificationName + '</em></div>'; | |||||
if(data.children!=[]) { | |||||
html += '<ul class="nav_ul">'; | |||||
for(var i = 0, l = data.children.length; i < l; i++) { | |||||
var children = data.children[i]; | |||||
if(children.children.length>0) { | |||||
sidebarNav(children); | |||||
} else { | |||||
html += '<li class="nav_li" data-id=' + children.id; | |||||
html += '>'; | |||||
html += '<em>' + children.classificationName + '</em>'; | |||||
html += '</li>'; | |||||
} | |||||
} | |||||
html += '</ul>'; | |||||
} | |||||
html += '</li>'; | |||||
} | |||||
$(where + " .nav").html('<div class="left_nav_name noBefore" data-id=""><em>全部项目</em></div>'+html); | |||||
$(where + " .left_nav_name").on("click", function() { | |||||
var open = $(this).hasClass("nav_open"); | |||||
var id = $(this).attr("data-id"); | |||||
$(where + " .nav_li").removeClass("nav_li_open"); | |||||
$(where + " .left_nav_name").removeClass("nav_open"); | |||||
if(open) { | |||||
$(this).removeClass("nav_open"); | |||||
$(this).removeClass("nav-move"); | |||||
searchType(""); | |||||
$(this).next(".nav_ul").slideUp(); | |||||
} else { | |||||
$(this).addClass("nav_open"); | |||||
$(this).next(".nav_ul").slideDown(); | |||||
$(this).parents(".left_nav_list").siblings("li").find(".nav_ul").slideUp(); | |||||
$(this).parents(".left_nav_list").siblings("li").find(".left_nav_name").removeClass("nav_open"); | |||||
searchType(id); | |||||
} | |||||
}) | |||||
$(where + " .nav_li").on("click", function() { | |||||
$(where + " .nav_li").removeClass("nav_li_open"); | |||||
// $(where + " .left_nav_name").removeClass("nav_open"); | |||||
$(this).addClass("nav_li_open"); | |||||
$(this).parents(".nav_ul").siblings(".left_nav_name").addClass("nav-move"); | |||||
$(this).siblings(".left_nav_list").find(".nav_ul").slideUp(); | |||||
$(this).siblings(".left_nav_list").find(".left_nav_name").removeClass("nav_open"); | |||||
var id = $(this).attr("data-id"); | |||||
searchType(id); | |||||
}) | |||||
} |
@@ -1,104 +0,0 @@ | |||||
/** | |||||
* Created by Administrator on 2021/4/5. | |||||
*/ | |||||
define(['jquery', "template", "Tools", "echarts", 'swiper', "paging"], function ($, template, Tools, echarts, swiper) { | |||||
//数据存储 | |||||
var module = { | |||||
data: { | |||||
//服务器地址 | |||||
serverApi:'', | |||||
//焦点图数据 | |||||
focusList: [], | |||||
newList: [], | |||||
//页码 | |||||
pageNum: 1, | |||||
//页码集合 | |||||
pageList: [], | |||||
//每页数量 | |||||
pageSize: 5, | |||||
//总页数 | |||||
pageCount:0 | |||||
}, | |||||
}; | |||||
var tools = new Tools(); | |||||
module.init = function (page) { | |||||
//新闻管理列表 | |||||
// tools.doGet(news + '/003//7', {}, module.focusNews , true); | |||||
var _height=$("body").height();//获取当前窗口的高度 | |||||
var boxHeight = _height-520; | |||||
// | |||||
module.data.pageSize = (boxHeight/40).toFixed(0); | |||||
$('#newContent').height(boxHeight); | |||||
tools.doGet(getTopDeptId, {}, module.getInformation , true); | |||||
}; | |||||
module.getInformation = function (data) { | |||||
console.log(data) | |||||
module.data.deptId = data.data; | |||||
tools.doGet(newsList, { | |||||
number: '002', | |||||
deptId: data.data, | |||||
pageNum: 1, | |||||
pageSize: module.data.pageSize, | |||||
}, module.newList , true); | |||||
} | |||||
//新闻列表 | |||||
module.newList = function (data) { | |||||
console.log(data) | |||||
if (data.code == 200) { | |||||
var pageCount = (data.total/module.data.pageSize).toFixed(0); | |||||
if (pageCount < 1){ | |||||
pageCount = 1; | |||||
} | |||||
if(module.data.newList == '') { | |||||
console.log(pageCount) | |||||
// 初始化 分页器 | |||||
var page_s1 = createPage('.page_s1'); | |||||
// 设置分页 | |||||
setPage(page_s1, { | |||||
pageTotal: data.total, // 数据总条数 | |||||
pageSize: module.data.pageSize, // 每页显示条数 | |||||
pageCurrent: 1, // 当前页 | |||||
maxBtnNum: 5, // 最多按钮个数 (最少5个) | |||||
}) | |||||
$('#page_s1').html('共' + pageCount + '页'); | |||||
} | |||||
var content = data.rows; | |||||
module.data.newList = content; | |||||
var newData = template('newData', module.data); | |||||
$("#newContent").html(newData); | |||||
} | |||||
} | |||||
goSearch = function(){ | |||||
$('#page_s1').html(''); | |||||
$('.page_s1').html(''); | |||||
module.data.newList=[]; | |||||
tools.doGet(newsList, { | |||||
number: '002', | |||||
deptId: module.data.deptId, | |||||
pageNum: 1, | |||||
pageSize: module.data.pageSize, | |||||
title:$('#title').val() | |||||
}, module.newList , true); | |||||
} | |||||
turnThePage = function (pageNum) { | |||||
module.data.pageNum = pageNum ; | |||||
console.log($('#title').val()) | |||||
tools.doGet(newsList, { | |||||
number: '002', | |||||
deptId: module.data.deptId, | |||||
pageNum: pageNum, | |||||
pageSize: module.data.pageSize, | |||||
title:$('#title').val() | |||||
}, module.newList , true); | |||||
} | |||||
goDetail = function(id){ | |||||
tools.skip('/agriculturalLawEnforcement/view/basis/basisDetail.html?id='+id); | |||||
} | |||||
return module; | |||||
}); |
@@ -1,52 +0,0 @@ | |||||
/** | |||||
* Created by Administrator on 2021/4/5. | |||||
*/ | |||||
define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, template, Tools, echarts, swiper) { | |||||
//数据存储 | |||||
var module = { | |||||
data: { | |||||
//服务器地址 | |||||
serverApi:'', | |||||
//焦点图数据 | |||||
focusList: [], | |||||
communicateList: [], | |||||
}, | |||||
}; | |||||
var tools = new Tools(); | |||||
module.init = function (page) { | |||||
//新闻管理列表 | |||||
tools.doGet(news + '/' + getQueryVariable('id'), {}, module.newList , 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.newList = function (data) { | |||||
console.log(data) | |||||
if (data.code == 200) { | |||||
var content = data.data; | |||||
$("#newTitle").html(content.title); | |||||
$("#newTime").html('发布时间:'+content.newsTime); | |||||
$("#newCome").html('来源:'+content.createBy); | |||||
$("#newContent").html(content.content); | |||||
if (document.body.scrollHeight > document.body.offsetHeight){ | |||||
document.getElementById('bottomInformation').style.position = 'relative'; | |||||
} | |||||
} | |||||
} | |||||
goDetail = function(id){ | |||||
tools.skip('/agriculturalLawEnforcement/view/workDynamics/workDetail.html?id='+id); | |||||
} | |||||
return module; | |||||
}); |
@@ -1,101 +0,0 @@ | |||||
/** | |||||
* Created by Administrator on 2021/4/5. | |||||
*/ | |||||
define(['jquery', "template", "Tools", "echarts", 'swiper', "paging"], function ($, template, Tools, echarts, swiper) { | |||||
//数据存储 | |||||
var module = { | |||||
data: { | |||||
//服务器地址 | |||||
serverApi:'', | |||||
//焦点图数据 | |||||
focusList: [], | |||||
newList: [], | |||||
//页码 | |||||
pageNum: 1, | |||||
//页码集合 | |||||
pageList: [], | |||||
//每页数量 | |||||
pageSize: 5, | |||||
//总页数 | |||||
pageCount:0 | |||||
}, | |||||
}; | |||||
var tools = new Tools(); | |||||
module.init = function (page) { | |||||
//新闻管理列表 | |||||
// tools.doGet(news + '/003//7', {}, module.focusNews , true); | |||||
var _height=$("body").height();//获取当前窗口的高度 | |||||
var boxHeight = _height-520; | |||||
// | |||||
module.data.pageSize = (boxHeight/40).toFixed(0); | |||||
$('#newContent').height(boxHeight); | |||||
tools.doGet(getTopDeptId, {}, module.getInformation , true); | |||||
}; | |||||
module.getInformation = function (data) { | |||||
console.log(data) | |||||
module.data.deptId = data.data; | |||||
tools.doGet(communicateList, { | |||||
deptId: data.data, | |||||
pageNum: 1, | |||||
pageSize: module.data.pageSize, | |||||
}, module.newList , true); | |||||
} | |||||
//新闻列表 | |||||
module.newList = function (data) { | |||||
console.log(data) | |||||
if (data.code == 200) { | |||||
var pageCount = (data.total/module.data.pageSize).toFixed(0); | |||||
if (pageCount < 1){ | |||||
pageCount = 1; | |||||
} | |||||
if(module.data.newList == '') { | |||||
console.log(pageCount) | |||||
// 初始化 分页器 | |||||
var page_s1 = createPage('.page_s1'); | |||||
// 设置分页 | |||||
setPage(page_s1, { | |||||
pageTotal: data.total, // 数据总条数 | |||||
pageSize: module.data.pageSize, // 每页显示条数 | |||||
pageCurrent: 1, // 当前页 | |||||
maxBtnNum: 5, // 最多按钮个数 (最少5个) | |||||
}) | |||||
$('#page_s1').html('共' + pageCount + '页'); | |||||
} | |||||
var content = data.rows; | |||||
module.data.newList = content; | |||||
var newData = template('newData', module.data); | |||||
$("#newContent").html(newData); | |||||
} | |||||
} | |||||
goSearch = function(){ | |||||
$('#page_s1').html(''); | |||||
$('.page_s1').html(''); | |||||
module.data.newList=[]; | |||||
tools.doGet(communicateList, { | |||||
deptId: module.data.deptId, | |||||
pageNum: 1, | |||||
pageSize: module.data.pageSize, | |||||
title:$('#title').val() | |||||
}, module.newList , true); | |||||
} | |||||
turnThePage = function (pageNum) { | |||||
module.data.pageNum = pageNum ; | |||||
console.log($('#title').val()) | |||||
tools.doGet(communicateList, { | |||||
deptId: module.data.deptId, | |||||
pageNum: pageNum, | |||||
pageSize: module.data.pageSize, | |||||
title:$('#title').val() | |||||
}, module.newList , true); | |||||
} | |||||
goDetail = function(id){ | |||||
tools.skip('/agriculturalLawEnforcement/view/complaint/complaintDetail.html?id='+id); | |||||
} | |||||
return module; | |||||
}); |
@@ -1,69 +0,0 @@ | |||||
/** | |||||
* Created by Administrator on 2021/4/5. | |||||
*/ | |||||
define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, template, Tools, echarts, swiper) { | |||||
//数据存储 | |||||
var module = { | |||||
data: { | |||||
//服务器地址 | |||||
serverApi:'', | |||||
//焦点图数据 | |||||
focusList: [], | |||||
communicateList: [], | |||||
deptId:'' | |||||
}, | |||||
}; | |||||
var tools = new Tools(); | |||||
module.init = function (page) { | |||||
tools.doGet(getTopDeptId, {}, module.getInformation , true); | |||||
if (document.body.scrollHeight <= document.body.offsetHeight){ | |||||
document.getElementById('bottomInformation').style.position = 'fixed'; | |||||
document.getElementById('bottomInformation').style.bottom = '0'; | |||||
} | |||||
}; | |||||
module.getInformation = function (data) { | |||||
console.log(data) | |||||
module.data.deptId = data.data; | |||||
} | |||||
goAdd = function () { | |||||
if($('#title').val()=="" || $('#title').val()==undefined){ | |||||
tools.initError('标题不能为空!'); | |||||
} else if($('#content').val()=="" || $('#content').val()==undefined){ | |||||
tools.initError('内容不能为空!'); | |||||
} else if($('#phone').val()=="" || $('#phone').val()==undefined){ | |||||
tools.initError('联系方式不能为空!'); | |||||
} else{ | |||||
var form = { | |||||
title:$('#title').val(), | |||||
communicateType:$('input:radio:checked').val(), | |||||
content:$('#content').val(), | |||||
name:$('#name').val(), | |||||
phone:$('#phone').val(), | |||||
} | |||||
tools.doPost(communicateAdd, { | |||||
title:$('#title').val(), | |||||
communicateType:$('input:radio:checked').val(), | |||||
content:$('#content').val(), | |||||
name:$('#name').val(), | |||||
phone:$('#phone').val(), | |||||
deptId:module.data.deptId | |||||
}, module.addEnd , true); | |||||
} | |||||
} | |||||
module.addEnd = function(data){ | |||||
tools.initError('发布成功'); | |||||
setTimeout(function(){ | |||||
tools.skip('complaintList.html') | |||||
},2000) | |||||
} | |||||
goDetail = function(id){ | |||||
tools.skip('/agriculturalLawEnforcement/view/complaint/complaintDetail.html?id='+id); | |||||
} | |||||
return module; | |||||
}); |
@@ -1,71 +0,0 @@ | |||||
/** | |||||
* Created by Administrator on 2021/4/5. | |||||
*/ | |||||
define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, template, Tools, echarts, swiper) { | |||||
//数据存储 | |||||
var module = { | |||||
data: { | |||||
//服务器地址 | |||||
serverApi:'', | |||||
//焦点图数据 | |||||
focusList: [], | |||||
communicateList: [], | |||||
communicateOptions:[] | |||||
}, | |||||
}; | |||||
var tools = new Tools(); | |||||
module.init = function (page) { | |||||
//新闻管理列表 | |||||
tools.doGet(dictType + '/communicate_type', {}, module.dictType , 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.dictType = function (data) { | |||||
module.data.communicateOptions = data.data; | |||||
tools.doGet(communicateDetail + '/' + getQueryVariable('id'), {}, module.newList , true); | |||||
} | |||||
//新闻列表 | |||||
module.newList = function (data) { | |||||
console.log(data) | |||||
if (data.code == 200) { | |||||
var content = data.data; | |||||
content.communicateType = module.selectDictLabel(module.data.communicateOptions,content.communicateType) | |||||
module.data.newList = content; | |||||
var newData = template('newData', module.data); | |||||
$("#newContent").html(newData); | |||||
if (document.body.scrollHeight > document.body.offsetHeight){ | |||||
document.getElementById('bottomInformation').style.position = 'relative'; | |||||
} | |||||
} | |||||
} | |||||
module.selectDictLabel = function (datas, value) { | |||||
var actions = []; | |||||
Object.keys(datas).some((key) => { | |||||
if (datas[key].dictValue == ('' + value)) { | |||||
actions.push(datas[key].dictLabel); | |||||
return true; | |||||
} | |||||
}) | |||||
return actions.join(''); | |||||
} | |||||
goDetail = function(id){ | |||||
tools.skip('/agriculturalLawEnforcement/view/workDynamics/workDetail.html?id='+id); | |||||
} | |||||
return module; | |||||
}); |
@@ -0,0 +1,45 @@ | |||||
/** | |||||
* Created by Administrator on 2021/4/5. | |||||
*/ | |||||
define(['jquery', "template", "Tools"], function ($, template, Tools) { | |||||
//数据存储 | |||||
var module = { | |||||
data: { | |||||
}, | |||||
}; | |||||
var tools = new Tools(); | |||||
module.init = function (page) { | |||||
}; | |||||
goPreservation = function() { | |||||
const data = { | |||||
projectType:$('#projectType').val(), | |||||
itemName:$('#itemName').val(), | |||||
startTime:$('#startTime').val(), | |||||
projectSite:$('#projectSite').val(), | |||||
subjectApply:$('#subjectApply').val(), | |||||
projectName:$('#projectName').val(), | |||||
phone:$('#phone').val(), | |||||
constructionWay:$('#constructionWay').val(), | |||||
constructionContent:$('#constructionContent').val(), | |||||
amountTotal:$('#amountTotal').val(), | |||||
raisedFunds:$('#raisedFunds').val(), | |||||
policySubsidy:$('#policySubsidy').val(), | |||||
pullPay:$('#pullPay').val(), | |||||
note:$('#note').val(), | |||||
projectStatus:$('#projectStatus').val(), | |||||
}; | |||||
console.log(data) | |||||
tools.doPost(addGuideQueryBc, data, function (res) { | |||||
console.log(res) | |||||
} , true); | |||||
document.getElementById('failDialog').style.display = 'block'; | |||||
} | |||||
return module; | |||||
}); |
@@ -0,0 +1,67 @@ | |||||
/** | |||||
* Created by Administrator on 2021/4/5. | |||||
*/ | |||||
define(['jquery', "template", "Tools", "echarts", 'swiper' , 'LeftNav'], function ($, template, Tools, echarts, swiper , LeftNav) { | |||||
//数据存储 | |||||
var module = { | |||||
data: { | |||||
//服务器地址 | |||||
serverApi:'', | |||||
//焦点图数据 | |||||
focusList: [], | |||||
communicateList: [], | |||||
noticeList: [], | |||||
policyList: [], | |||||
newList: [], | |||||
dataList:{ | |||||
children: [], | |||||
haschildren: true, | |||||
isopen: false, | |||||
level: "0", | |||||
name: "", | |||||
url: "#", | |||||
} | |||||
}, | |||||
}; | |||||
var tools = new Tools(); | |||||
module.init = function (page) { | |||||
//新闻管理列表 | |||||
tools.doGet(projectClassification, {}, module.projectList , true); | |||||
tools.doPost(guideQuery, {}, module.guideQueryList , true); | |||||
}; | |||||
//新闻列表 | |||||
module.projectList = function (data) { | |||||
if (data.code == 200) { | |||||
var content = data.data; | |||||
content.forEach(res=>{ | |||||
module.data.dataList.children.push(res) | |||||
}) | |||||
leftNav(".left",module.data.dataList); | |||||
} | |||||
} | |||||
//新闻列表 | |||||
module.guideQueryList = function (data) { | |||||
if (data.code == 200) { | |||||
var content = data.data; | |||||
module.data.directoriesList = content; | |||||
var directoriesData = template('directoriesData', module.data); | |||||
$("#directoriesContent").html(directoriesData); | |||||
} | |||||
} | |||||
goSearch = function () { | |||||
console.log($("#searchInput").val()) | |||||
tools.doPost(guideQuery, {projectTitle:$("#searchInput").val()}, module.guideQueryList , true); | |||||
} | |||||
searchType = function (id) { | |||||
console.log(id) | |||||
tools.doPost(guideQuery, {projectType:id}, module.guideQueryList , true); | |||||
} | |||||
return module; | |||||
}); |
@@ -1,101 +0,0 @@ | |||||
/** | |||||
* Created by Administrator on 2021/4/5. | |||||
*/ | |||||
define(['jquery', "template", "Tools", "echarts", 'swiper', "paging"], function ($, template, Tools, echarts, swiper) { | |||||
//数据存储 | |||||
var module = { | |||||
data: { | |||||
//服务器地址 | |||||
serverApi:'', | |||||
//焦点图数据 | |||||
focusList: [], | |||||
newList: [], | |||||
//页码 | |||||
pageNum: 1, | |||||
//页码集合 | |||||
pageList: [], | |||||
//每页数量 | |||||
pageSize: 5, | |||||
//总页数 | |||||
pageCount:0 | |||||
}, | |||||
}; | |||||
var tools = new Tools(); | |||||
module.init = function (page) { | |||||
//新闻管理列表 | |||||
// tools.doGet(news + '/003//7', {}, module.focusNews , true); | |||||
var _height=$("body").height();//获取当前窗口的高度 | |||||
var boxHeight = _height-520; | |||||
// | |||||
module.data.pageSize = (boxHeight/55).toFixed(0); | |||||
$('#newBox').height(boxHeight); | |||||
tools.doGet(getTopDeptId, {}, module.getInformation , true); | |||||
}; | |||||
module.getInformation = function (data) { | |||||
console.log(data) | |||||
module.data.deptId = data.data; | |||||
tools.doGet(productList, { | |||||
deptId: data.data, | |||||
pageNum: 1, | |||||
pageSize: module.data.pageSize, | |||||
}, module.newList , true); | |||||
} | |||||
//新闻列表 | |||||
module.newList = function (data) { | |||||
console.log(data) | |||||
if (data.code == 200) { | |||||
var pageCount = (data.total/module.data.pageSize).toFixed(0); | |||||
if (pageCount < 1){ | |||||
pageCount = 1; | |||||
} | |||||
if(module.data.newList == '') { | |||||
console.log(pageCount) | |||||
// 初始化 分页器 | |||||
var page_s1 = createPage('.page_s1'); | |||||
// 设置分页 | |||||
setPage(page_s1, { | |||||
pageTotal: data.total, // 数据总条数 | |||||
pageSize: module.data.pageSize, // 每页显示条数 | |||||
pageCurrent: 1, // 当前页 | |||||
maxBtnNum: 5, // 最多按钮个数 (最少5个) | |||||
}) | |||||
$('#page_s1').html('共' + pageCount + '页'); | |||||
} | |||||
var content = data.rows; | |||||
module.data.newList = content; | |||||
var newData = template('newData', module.data); | |||||
$("#newContent").html(newData); | |||||
} | |||||
} | |||||
goSearch = function(){ | |||||
$('#page_s1').html(''); | |||||
$('.page_s1').html(''); | |||||
module.data.newList=[]; | |||||
tools.doGet(productList, { | |||||
deptId: module.data.deptId, | |||||
pageNum: 1, | |||||
pageSize: module.data.pageSize, | |||||
productName:$('#productName').val() | |||||
}, module.newList , true); | |||||
} | |||||
turnThePage = function (pageNum) { | |||||
module.data.pageNum = pageNum ; | |||||
console.log($('#title').val()) | |||||
tools.doGet(productList, { | |||||
deptId: module.data.deptId, | |||||
pageNum: pageNum, | |||||
pageSize: module.data.pageSize, | |||||
productName:$('#productName').val() | |||||
}, module.newList , true); | |||||
} | |||||
goDetail = function(id){ | |||||
tools.skip('/agriculturalLawEnforcement/view/workDynamics/workDetail.html?id='+id); | |||||
} | |||||
return module; | |||||
}); |
@@ -1,89 +0,0 @@ | |||||
/** | |||||
* Created by Administrator on 2021/4/5. | |||||
*/ | |||||
define(['jquery', "template", "Tools", "echarts", 'swiper', "paging"], function ($, template, Tools, echarts, swiper) { | |||||
//数据存储 | |||||
var module = { | |||||
data: { | |||||
//服务器地址 | |||||
serverApi:'', | |||||
//焦点图数据 | |||||
focusList: [], | |||||
newList: [], | |||||
//页码 | |||||
pageNum: 1, | |||||
//页码集合 | |||||
pageList: [], | |||||
//每页数量 | |||||
pageSize: 5, | |||||
//总页数 | |||||
pageCount:0 | |||||
}, | |||||
}; | |||||
var tools = new Tools(); | |||||
module.init = function (page) { | |||||
//新闻管理列表 | |||||
// tools.doGet(news + '/003//7', {}, module.focusNews , true); | |||||
var _height=$("body").height();//获取当前窗口的高度 | |||||
var boxHeight = _height-520; | |||||
module.data.pageSize = (boxHeight/40).toFixed(0); | |||||
console.log(module.data.pageSize) | |||||
$('#newContent').height(boxHeight); | |||||
tools.doGet(getTopDeptId, {}, module.getInformation , true); | |||||
}; | |||||
module.getInformation = function (data) { | |||||
console.log(data) | |||||
module.data.deptId = data.data; | |||||
tools.doGet(newsList, { | |||||
number: '001', | |||||
deptId: data.data, | |||||
pageNum: 1, | |||||
pageSize: module.data.pageSize, | |||||
}, module.newList , true); | |||||
} | |||||
//新闻列表 | |||||
module.newList = function (data) { | |||||
console.log(data) | |||||
if (data.code == 200) { | |||||
var pageCount = (data.total/module.data.pageSize).toFixed(0); | |||||
if (pageCount < 1){ | |||||
pageCount = 1; | |||||
} | |||||
if(module.data.newList == '') { | |||||
// 初始化 分页器 | |||||
var page_s1 = createPage('.page_s1'); | |||||
// 设置分页 | |||||
setPage(page_s1, { | |||||
pageTotal: data.total, // 数据总条数 | |||||
pageSize: module.data.pageSize, // 每页显示条数 | |||||
pageCurrent: 1, // 当前页 | |||||
maxBtnNum: 5, // 最多按钮个数 (最少5个) | |||||
}) | |||||
$('#page_s1').html('共' + pageCount + '页'); | |||||
} | |||||
var content = data.rows; | |||||
module.data.newList = content; | |||||
var newData = template('newData', module.data); | |||||
$("#newContent").html(newData); | |||||
} | |||||
} | |||||
turnThePage = function (pageNum) { | |||||
module.data.pageNum = pageNum ; | |||||
tools.doGet(newsList, { | |||||
number: '001', | |||||
deptId: module.data.deptId, | |||||
pageNum: pageNum, | |||||
pageSize: module.data.pageSize, | |||||
}, module.newList , true); | |||||
} | |||||
goDetail = function(id){ | |||||
tools.skip('/agriculturalLawEnforcement/view/noticeAnnouncement/noticeDetail.html?id='+id); | |||||
} | |||||
return module; | |||||
}); |
@@ -1,52 +0,0 @@ | |||||
/** | |||||
* Created by Administrator on 2021/4/5. | |||||
*/ | |||||
define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, template, Tools, echarts, swiper) { | |||||
//数据存储 | |||||
var module = { | |||||
data: { | |||||
//服务器地址 | |||||
serverApi:'', | |||||
//焦点图数据 | |||||
focusList: [], | |||||
communicateList: [], | |||||
}, | |||||
}; | |||||
var tools = new Tools(); | |||||
module.init = function (page) { | |||||
//新闻管理列表 | |||||
tools.doGet(news + '/' + getQueryVariable('id'), {}, module.newList , 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.newList = function (data) { | |||||
console.log(data) | |||||
if (data.code == 200) { | |||||
var content = data.data; | |||||
$("#newTitle").html(content.title); | |||||
$("#newTime").html('发布时间:'+content.newsTime); | |||||
$("#newCome").html('来源:'+content.createBy); | |||||
$("#newContent").html(content.content); | |||||
if (document.body.scrollHeight > document.body.offsetHeight){ | |||||
document.getElementById('bottomInformation').style.position = 'relative'; | |||||
} | |||||
} | |||||
} | |||||
goDetail = function(id){ | |||||
tools.skip('/agriculturalLawEnforcement/view/workDynamics/workDetail.html?id='+id); | |||||
} | |||||
return module; | |||||
}); |
@@ -0,0 +1,125 @@ | |||||
define(['jquery', "template", "Tools", 'LeftNav'], function ($, template, Tools, LeftNav) { | |||||
//数据存储 | |||||
var module = { | |||||
data: { | |||||
//服务器地址 | |||||
serverApi: '', | |||||
//焦点图数据 | |||||
focusList: [], | |||||
communicateList: [], | |||||
knowledgeOptions: [], | |||||
noticeList: [], | |||||
policyList: [], | |||||
newList: [], | |||||
dataList: { | |||||
children: [], | |||||
haschildren: true, | |||||
isopen: false, | |||||
level: "0", | |||||
name: "", | |||||
url: "#", | |||||
}, | |||||
switchTab:'expert' | |||||
}, | |||||
}; | |||||
var tools = new Tools(); | |||||
module.init = function (page) { | |||||
//新闻管理列表 | |||||
tools.doGet(knowledgeClassification, {}, module.projectList, true); | |||||
tools.doPost(expertDatabase, {}, module.expertDatabaseList, true); | |||||
tools.doPost(articleLibrary, {}, module.articleLibraryList, true); | |||||
tools.doPost(videoLibrary, {}, module.videoLibraryList, true); | |||||
}; | |||||
//新闻列表 | |||||
module.projectList = function (data) { | |||||
if (data.code == 200) { | |||||
var content = data.data; | |||||
content.forEach(res => { | |||||
module.data.dataList.children.push(res); | |||||
}) | |||||
leftNav(".left", module.data.dataList); | |||||
} | |||||
} | |||||
//专家列表 | |||||
module.expertDatabaseList = function (data) { | |||||
if (data.code == 200) { | |||||
var content = data.data; | |||||
for ( var i = 0 ; i < content.length ; i++ ){ | |||||
content[i].expertsImage = serverApi + content[i].expertsImage; | |||||
} | |||||
module.data.directoriesList = content; | |||||
var directoriesData = template('directoriesData', module.data); | |||||
$("#directoriesContent").html(directoriesData); | |||||
} | |||||
} | |||||
//文章列表 | |||||
module.articleLibraryList = function (data) { | |||||
if (data.code == 200) { | |||||
var content = data.data; | |||||
for ( var i = 0 ; i < content.length ; i++ ){ | |||||
content[i].cover = serverApi + content[i].cover; | |||||
} | |||||
module.data.articleList = content; | |||||
var articleData = template('articleData', module.data); | |||||
$("#articleContent").html(articleData); | |||||
} | |||||
} | |||||
//视频列表 | |||||
module.videoLibraryList = function (data) { | |||||
if (data.code == 200) { | |||||
var content = data.data; | |||||
for ( var i = 0 ; i < content.length ; i++ ){ | |||||
content[i].cover = serverApi + content[i].cover; | |||||
} | |||||
module.data.videoList = content; | |||||
var videoData = template('videoData', module.data); | |||||
$("#videoContent").html(videoData); | |||||
} | |||||
} | |||||
switchTab = function (type) { | |||||
$(".left .left_nav_name").removeClass("nav_open"); | |||||
$(".left .nav_li").removeClass("nav_li_open"); | |||||
tools.doPost(expertDatabase, {}, module.expertDatabaseList, true); | |||||
tools.doPost(articleLibrary, {}, module.articleLibraryList, true); | |||||
tools.doPost(videoLibrary, {}, module.videoLibraryList, true); | |||||
$("#"+type+"Tit").addClass("active").siblings().removeClass("active"); | |||||
$("#"+type+"").css('display','block').siblings().css('display','none'); | |||||
module.data.switchTab = type; | |||||
} | |||||
goSearch = function (type) { | |||||
if (type == 'expert'){ | |||||
tools.doPost(expertDatabase, {name: $("#searchInput").val()}, module.expertDatabaseList, true); | |||||
} | |||||
if (type == 'article'){ | |||||
tools.doPost(articleLibrary, {headline: $("#articleSearchInput").val()}, module.articleLibraryList, true); | |||||
} | |||||
if (type == 'video'){ | |||||
tools.doPost(videoLibrary, {headline: $("#videoSearchInput").val()}, module.videoLibraryList, true); | |||||
} | |||||
} | |||||
searchType = function (id) { | |||||
console.log(module.data.switchTab) | |||||
$(".left .left_nav_name").removeClass("nav_open"); | |||||
if (module.data.switchTab == 'expert'){ | |||||
tools.doPost(expertDatabase, {field: id}, module.expertDatabaseList, true); | |||||
} | |||||
if (module.data.switchTab == 'article'){ | |||||
console.log('article------'+id) | |||||
tools.doPost(articleLibrary, {knowledgeType: id}, module.articleLibraryList, true); | |||||
} | |||||
if (module.data.switchTab == 'video'){ | |||||
console.log('video------'+id) | |||||
tools.doPost(videoLibrary, {knowledgeType: id}, module.videoLibraryList, true); | |||||
} | |||||
} | |||||
return module; | |||||
}) |
@@ -1,86 +0,0 @@ | |||||
/** | |||||
* Created by Administrator on 2021/4/5. | |||||
*/ | |||||
define(['jquery', "template", "Tools", "echarts", 'swiper', "paging"], function ($, template, Tools, echarts, swiper) { | |||||
//数据存储 | |||||
var module = { | |||||
data: { | |||||
//服务器地址 | |||||
serverApi:'', | |||||
//焦点图数据 | |||||
focusList: [], | |||||
newList: [], | |||||
//页码 | |||||
pageNum: 1, | |||||
//页码集合 | |||||
pageList: [], | |||||
//每页数量 | |||||
pageSize: 5, | |||||
//总页数 | |||||
pageCount:0 | |||||
}, | |||||
}; | |||||
var tools = new Tools(); | |||||
module.init = function (page) { | |||||
//新闻管理列表 | |||||
// tools.doGet(news + '/003//7', {}, module.focusNews , true); | |||||
var _height=$("body").height();//获取当前窗口的高度 | |||||
var boxHeight = _height-520; | |||||
// | |||||
module.data.pageSize = (boxHeight/40).toFixed(0); | |||||
$('#newContent').height(boxHeight); | |||||
tools.doGet(getTopDeptId, {}, module.getInformation , true); | |||||
}; | |||||
module.getInformation = function (data) { | |||||
console.log(data) | |||||
module.data.deptId = data.data; | |||||
tools.doGet(schemeList, { | |||||
deptId: data.data, | |||||
pageNum: 1, | |||||
pageSize: module.data.pageSize, | |||||
}, module.newList , true); | |||||
} | |||||
//新闻列表 | |||||
module.newList = function (data) { | |||||
if (data.code == 200) { | |||||
var pageCount = (data.total/module.data.pageSize).toFixed(0); | |||||
if (pageCount < 1){ | |||||
pageCount = 1; | |||||
} | |||||
if(module.data.newList == '') { | |||||
console.log(pageCount) | |||||
// 初始化 分页器 | |||||
var page_s1 = createPage('.page_s1'); | |||||
// 设置分页 | |||||
setPage(page_s1, { | |||||
pageTotal: data.total, // 数据总条数 | |||||
pageSize: module.data.pageSize, // 每页显示条数 | |||||
pageCurrent: 1, // 当前页 | |||||
maxBtnNum: 5, // 最多按钮个数 (最少5个) | |||||
}) | |||||
$('#page_s1').html('共' + pageCount + '页'); | |||||
} | |||||
var content = data.rows; | |||||
module.data.newList = content; | |||||
var newData = template('newData', module.data); | |||||
$("#newContent").html(newData); | |||||
} | |||||
} | |||||
turnThePage = function (pageNum) { | |||||
module.data.pageNum = pageNum ; | |||||
tools.doGet(schemeList, { | |||||
deptId: module.data.deptId, | |||||
pageNum: pageNum, | |||||
pageSize: module.data.pageSize, | |||||
}, module.newList , true ); | |||||
} | |||||
goDetail = function(id){ | |||||
tools.skip('/agriculturalLawEnforcement/view/schemeDisclosure/schemeDetail.html?id='+id); | |||||
} | |||||
return module; | |||||
}); |
@@ -1,51 +0,0 @@ | |||||
/** | |||||
* Created by Administrator on 2021/4/5. | |||||
*/ | |||||
define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, template, Tools, echarts, swiper) { | |||||
//数据存储 | |||||
var module = { | |||||
data: { | |||||
//服务器地址 | |||||
serverApi:'', | |||||
//焦点图数据 | |||||
focusList: [], | |||||
communicateList: [], | |||||
}, | |||||
}; | |||||
var tools = new Tools(); | |||||
module.init = function (page) { | |||||
//新闻管理列表 | |||||
tools.doGet(schemeDetail + '/' + getQueryVariable('id'), {}, module.newList , 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.newList = function (data) { | |||||
console.log(data) | |||||
if (data.code == 200) { | |||||
var content = data.data; | |||||
module.data.newList = content; | |||||
var newData = template('newData', module.data); | |||||
$("#newContent").html(newData); | |||||
if (document.body.scrollHeight > document.body.offsetHeight){ | |||||
document.getElementById('bottomInformation').style.position = 'relative'; | |||||
} | |||||
} | |||||
} | |||||
goDetail = function(id){ | |||||
tools.skip('/agriculturalLawEnforcement/view/workDynamics/workDetail.html?id='+id); | |||||
} | |||||
return module; | |||||
}); |
@@ -0,0 +1,181 @@ | |||||
define(['jquery', "template", "Tools",'swiper',], function ($, template, Tools, swiper) { | |||||
//数据存储 | |||||
var module = { | |||||
data: { | |||||
//服务器地址 | |||||
serverApi: '', | |||||
trainStudentsList:[{ | |||||
name:'', | |||||
phone:'', | |||||
sex: '', | |||||
trainId:'' | |||||
}] | |||||
}, | |||||
}; | |||||
var tools = new Tools(); | |||||
module.init = function (page) { | |||||
//新闻管理列表 | |||||
tools.doGet(dictType + '/training_type', {}, module.dictType , true); | |||||
tools.doGet(dictType + '/apply_state', {}, function(data){module.data.studentsTypeOptions = data.data;} , true); | |||||
module.data.trainStudentsList[0].trainId = getQueryVariable('id'); | |||||
}; | |||||
module.dictType = function (data) { | |||||
module.data.trainingTypeOptions = data.data; | |||||
tools.doPost(technologyTrainingDetails + '/' + getQueryVariable('id'), {}, module.technologyTrainingDetails, 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.swiperBanner = function (type) { | |||||
var viewSwiper = new Swiper('.view .swiper-container', { | |||||
onSlideChangeStart: function() { | |||||
updateNavPosition() | |||||
} | |||||
}) | |||||
$('.view .arrow-left,.preview .arrow-left').on('click', function(e) { | |||||
e.preventDefault() | |||||
if (viewSwiper.activeIndex == 0) { | |||||
viewSwiper.swipeTo(viewSwiper.slides.length - 1, 1000); | |||||
return | |||||
} | |||||
viewSwiper.swipePrev() | |||||
}) | |||||
$('.view .arrow-right,.preview .arrow-right').on('click', function(e) { | |||||
e.preventDefault() | |||||
if (viewSwiper.activeIndex == viewSwiper.slides.length - 1) { | |||||
viewSwiper.swipeTo(0, 1000); | |||||
return | |||||
} | |||||
viewSwiper.swipeNext() | |||||
}) | |||||
var previewSwiper = new Swiper('.preview .swiper-container', { | |||||
visibilityFullFit: true, | |||||
slidesPerView: 'auto', | |||||
onlyExternal: true, | |||||
onSlideClick: function() { | |||||
viewSwiper.swipeTo(previewSwiper.clickedSlideIndex) | |||||
} | |||||
}) | |||||
function updateNavPosition() { | |||||
$('.preview .active-nav').removeClass('active-nav') | |||||
var activeNav = $('.preview .swiper-slide').eq(viewSwiper.activeIndex).addClass('active-nav') | |||||
if (!activeNav.hasClass('swiper-slide-visible')) { | |||||
if (activeNav.index() > previewSwiper.activeIndex) { | |||||
var thumbsPerNav = Math.floor(previewSwiper.width / activeNav.width()) - 1 | |||||
previewSwiper.swipeTo(activeNav.index() - thumbsPerNav) | |||||
} else { | |||||
previewSwiper.swipeTo(activeNav.index()) | |||||
} | |||||
} | |||||
} | |||||
} | |||||
//专家列表 | |||||
module.technologyTrainingDetails = function (data) { | |||||
if (data.code == 200) { | |||||
var content = data.data; | |||||
content.trainingType = module.selectDictLabel(module.data.trainingTypeOptions,content.trainingType); | |||||
for (var i = 0 ; i < content.tEntityTrainStudentsList.length ; i++){ | |||||
content.tEntityTrainStudentsList[i].applyState = module.selectDictLabel(module.data.studentsTypeOptions,content.tEntityTrainStudentsList[i].applyState); | |||||
} | |||||
const masterMapList = content.masterMap.split(","); | |||||
for (var i = 0 ; i < masterMapList.length ; i++){ | |||||
masterMapList[i] = serverApi + masterMapList[i]; | |||||
} | |||||
console.log(masterMapList) | |||||
content.masterMap = masterMapList; | |||||
module.data.technologyDetail = content; | |||||
var technologyData = template('technologyData', module.data); | |||||
$("#technologyContent").html(technologyData); | |||||
$('#detailBox').html(content.briefIntroduction) | |||||
module.swiperBanner(); | |||||
} | |||||
} | |||||
module.selectDictLabel = function (datas, value) { | |||||
var actions = []; | |||||
Object.keys(datas).some((key) => { | |||||
if (datas[key].dictValue == ('' + value)) { | |||||
actions.push(datas[key].dictLabel); | |||||
return true; | |||||
} | |||||
}) | |||||
return actions.join(''); | |||||
} | |||||
goDelete = function(index){ | |||||
tools.doPost(technologyTrainingStudentsRemove+'/'+module.data.technologyDetail.tEntityTrainStudentsList[index].id, {}, module.updateList , true); | |||||
module.data.technologyDetail.tEntityTrainStudentsList.splice(index, 1); | |||||
var technologyData = template('technologyData', module.data); | |||||
$("#technologyContent").html(technologyData); | |||||
} | |||||
goStudentsDelete = function(index){ | |||||
module.data.trainStudentsList.splice(index, 1); | |||||
var technologyData = template('technologyData', module.data); | |||||
$("#technologyContent").html(technologyData); | |||||
} | |||||
goSubmit = function(index){ | |||||
tools.doPost(technologyTrainingStudents, module.data.trainStudentsList[index], module.updateList , true); | |||||
var technologyData = template('technologyData', module.data); | |||||
$("#technologyContent").html(technologyData); | |||||
} | |||||
module.updateList = function(data){ | |||||
if (data.code == 200){ | |||||
tools.doPost(technologyTrainingDetails + '/' + getQueryVariable('id'), {}, module.technologyTrainingDetails, true); | |||||
var technologyData = template('technologyData', module.data); | |||||
$("#technologyContent").html(technologyData); | |||||
} | |||||
} | |||||
inputNameChange = function(index){ | |||||
module.data.trainStudentsList[index].name = $('#name'+index+'').val(); | |||||
} | |||||
inputPhoneChange = function(index){ | |||||
module.data.trainStudentsList[index].phone = $('#phone'+index+'').val(); | |||||
} | |||||
inputSexChange = function(index){ | |||||
module.data.trainStudentsList[index].sex = $('#sex'+index+'').val(); | |||||
} | |||||
goAdd = function(){ | |||||
for (var i = 0 ; i < module.data.trainStudentsList.length ; i++){ | |||||
if (module.data.trainStudentsList[i].name == '' || module.data.trainStudentsList[i].phone == '' || module.data.trainStudentsList[i].sex == ''){ | |||||
return; | |||||
} | |||||
} | |||||
module.data.trainStudentsList.push({ | |||||
name:'', | |||||
phone:'', | |||||
sex:'', | |||||
trainId:getQueryVariable('id') | |||||
}); | |||||
var technologyData = template('technologyData', module.data); | |||||
$("#technologyContent").html(technologyData); | |||||
} | |||||
return module; | |||||
}) |
@@ -0,0 +1,150 @@ | |||||
define(['jquery', "template", "Tools", 'LeftNav', 'dateTime'], function ($, template, Tools, LeftNav) { | |||||
//数据存储 | |||||
var module = { | |||||
data: { | |||||
//服务器地址 | |||||
serverApi: '', | |||||
dataList: { | |||||
children: [], | |||||
haschildren: true, | |||||
isopen: false, | |||||
level: "0", | |||||
name: "", | |||||
url: "#", | |||||
}, | |||||
}, | |||||
}; | |||||
var tools = new Tools(); | |||||
module.init = function (page) { | |||||
tools.doGet(knowledgeClassification, {}, module.projectList, true); | |||||
//新闻管理列表 | |||||
tools.doGet(dictType + '/training_type', {}, module.dictType , true); | |||||
$("#signStartTimeStr").datetime({ | |||||
type: "date", | |||||
value: [new Date().getFullYear(),new Date().getMonth()+1,new Date().getDate()], | |||||
success: function (res) { | |||||
//console.log(res) | |||||
} | |||||
}) | |||||
$("#signEndTimeStr").datetime({ | |||||
type: "date", | |||||
value: [new Date().getFullYear(),new Date().getMonth()+1,new Date().getDate()], | |||||
success: function (res) { | |||||
//console.log(res) | |||||
} | |||||
}) | |||||
}; | |||||
//新闻列表 | |||||
module.projectList = function (data) { | |||||
if (data.code == 200) { | |||||
var content = data.data; | |||||
content.forEach(res => { | |||||
module.data.dataList.children.push(res); | |||||
}) | |||||
leftNav(".left", module.data.dataList); | |||||
} | |||||
} | |||||
module.dictType = function (data) { | |||||
module.data.trainingTypeOptions = data.data; | |||||
tools.doPost(technologyTraining, {}, module.technologyTrainingList, true); | |||||
tools.doPost(technologyConsulting, {}, module.technologyConsultingList, true); | |||||
} | |||||
//专家列表 | |||||
module.technologyTrainingList = function (data) { | |||||
if (data.code == 200) { | |||||
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; | |||||
} | |||||
module.data.technologyList = content; | |||||
var technologyData = template('technologyData', module.data); | |||||
$("#technologyContent").html(technologyData); | |||||
} | |||||
} | |||||
//专家列表 | |||||
module.technologyConsultingList = function (data) { | |||||
if (data.code == 200) { | |||||
var content = data.data; | |||||
module.data.technologyConsultingList = content; | |||||
var technologyConsultingData = template('technologyConsultingData', module.data); | |||||
$("#technologyConsultingContent").html(technologyConsultingData); | |||||
} | |||||
} | |||||
module.selectDictLabel = function (datas, value) { | |||||
var actions = []; | |||||
Object.keys(datas).some((key) => { | |||||
if (datas[key].dictValue == ('' + value)) { | |||||
actions.push(datas[key].dictLabel); | |||||
return true; | |||||
} | |||||
}) | |||||
return actions.join(''); | |||||
} | |||||
switchTab = function (type) { | |||||
$("#"+type+"Btn").addClass("active").siblings().removeClass("active"); | |||||
$("#"+type+"").css('display','block').siblings().css('display','none'); | |||||
module.data.switchTab = type; | |||||
} | |||||
searchType = function (id) { | |||||
console.log(id) | |||||
$(".left .left_nav_name").removeClass("nav_open"); | |||||
tools.doPost(technologyConsulting, {techniqueType: id}, module.technologyConsultingList, true); | |||||
} | |||||
technologySearch = function(){ | |||||
const data = {} | |||||
if ($("input[name='searchType']:checked").val() == 'title'){ | |||||
data.trainingName = $('#technologyInput').val(); | |||||
}else{ | |||||
data.briefIntroduction = $('#technologyInput').val(); | |||||
} | |||||
if ($('#signStartTimeStr').val()){ | |||||
data.startTime = $('#signStartTimeStr').val() + ' 00:00:00'; | |||||
} | |||||
if ($('#signEndTimeStr').val()){ | |||||
data.endTime = $('#signEndTimeStr').val() + ' 00:00:00'; | |||||
} | |||||
console.log(data) | |||||
tools.doPost(technologyTraining, data, module.technologyTrainingList, true); | |||||
} | |||||
consultingSearch = function(){ | |||||
const data = {} | |||||
if ($("input[name='consultingType']:checked").val() == 'title'){ | |||||
data.title = $('#consultingInput').val(); | |||||
}else{ | |||||
data.handleName = $('#consultingInput').val(); | |||||
} | |||||
// data.startTime = $('#technologyInput').val(); | |||||
// data.endTime = $('#technologyInput').val(); | |||||
console.log(data) | |||||
tools.doPost(technologyConsulting, data, module.technologyConsultingList, true); | |||||
} | |||||
goSearch = function (type) { | |||||
if (type == 'expert'){ | |||||
tools.doPost(expertDatabase, {name: $("#searchInput").val()}, module.expertDatabaseList, true); | |||||
} | |||||
if (type == 'article'){ | |||||
tools.doPost(articleLibrary, {headline: $("#articleSearchInput").val()}, module.articleLibraryList, true); | |||||
} | |||||
if (type == 'video'){ | |||||
tools.doPost(videoLibrary, {headline: $("#videoSearchInput").val()}, module.videoLibraryList, true); | |||||
} | |||||
} | |||||
return module; | |||||
}) |
@@ -0,0 +1,179 @@ | |||||
define(['jquery', "template", "Tools",'swiper',], function ($, template, Tools, swiper) { | |||||
//数据存储 | |||||
var module = { | |||||
data: { | |||||
//服务器地址 | |||||
serverApi: '', | |||||
trainStudentsList:[{ | |||||
name:'', | |||||
phone:'', | |||||
sex: '', | |||||
trainId:'' | |||||
}] | |||||
}, | |||||
}; | |||||
var tools = new Tools(); | |||||
module.init = function (page) { | |||||
//新闻管理列表techniqueType | |||||
tools.doGet(dictType + '/technique_type', {}, module.dictType , true); | |||||
tools.doGet(dictType + '/apply_state', {}, function(data){module.data.studentsTypeOptions = data.data;} , true); | |||||
}; | |||||
module.dictType = function (data) { | |||||
module.data.trainingTypeOptions = data.data; | |||||
tools.doPost(technologyConsultingDetails + '/' + getQueryVariable('id'), {}, module.technologyTrainingDetails, 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.swiperBanner = function (type) { | |||||
var viewSwiper = new Swiper('.view .swiper-container', { | |||||
onSlideChangeStart: function() { | |||||
updateNavPosition() | |||||
} | |||||
}) | |||||
$('.view .arrow-left,.preview .arrow-left').on('click', function(e) { | |||||
e.preventDefault() | |||||
if (viewSwiper.activeIndex == 0) { | |||||
viewSwiper.swipeTo(viewSwiper.slides.length - 1, 1000); | |||||
return | |||||
} | |||||
viewSwiper.swipePrev() | |||||
}) | |||||
$('.view .arrow-right,.preview .arrow-right').on('click', function(e) { | |||||
e.preventDefault() | |||||
if (viewSwiper.activeIndex == viewSwiper.slides.length - 1) { | |||||
viewSwiper.swipeTo(0, 1000); | |||||
return | |||||
} | |||||
viewSwiper.swipeNext() | |||||
}) | |||||
var previewSwiper = new Swiper('.preview .swiper-container', { | |||||
visibilityFullFit: true, | |||||
slidesPerView: 'auto', | |||||
onlyExternal: true, | |||||
onSlideClick: function() { | |||||
viewSwiper.swipeTo(previewSwiper.clickedSlideIndex) | |||||
} | |||||
}) | |||||
function updateNavPosition() { | |||||
$('.preview .active-nav').removeClass('active-nav') | |||||
var activeNav = $('.preview .swiper-slide').eq(viewSwiper.activeIndex).addClass('active-nav') | |||||
if (!activeNav.hasClass('swiper-slide-visible')) { | |||||
if (activeNav.index() > previewSwiper.activeIndex) { | |||||
var thumbsPerNav = Math.floor(previewSwiper.width / activeNav.width()) - 1 | |||||
previewSwiper.swipeTo(activeNav.index() - thumbsPerNav) | |||||
} else { | |||||
previewSwiper.swipeTo(activeNav.index()) | |||||
} | |||||
} | |||||
} | |||||
} | |||||
//专家列表 | |||||
module.technologyTrainingDetails = function (data) { | |||||
if (data.code == 200) { | |||||
var content = data.data; | |||||
// content.trainingType = module.selectDictLabel(module.data.trainingTypeOptions,content.trainingType); | |||||
// | |||||
// for (var i = 0 ; i < content.tEntityTrainStudentsList.length ; i++){ | |||||
// content.tEntityTrainStudentsList[i].applyState = module.selectDictLabel(module.data.studentsTypeOptions,content.tEntityTrainStudentsList[i].applyState); | |||||
// } | |||||
// | |||||
// const masterMapList = content.masterMap.split(","); | |||||
// for (var i = 0 ; i < masterMapList.length ; i++){ | |||||
// masterMapList[i] = serverApi + masterMapList[i]; | |||||
// } | |||||
// console.log(masterMapList) | |||||
// content.masterMap = masterMapList; | |||||
module.data.technologyDetail = content; | |||||
var technologyData = template('technologyData', module.data); | |||||
$("#technologyContent").html(technologyData); | |||||
// $('#detailBox').html(content.briefIntroduction) | |||||
// module.swiperBanner(); | |||||
} | |||||
} | |||||
module.selectDictLabel = function (datas, value) { | |||||
var actions = []; | |||||
Object.keys(datas).some((key) => { | |||||
if (datas[key].dictValue == ('' + value)) { | |||||
actions.push(datas[key].dictLabel); | |||||
return true; | |||||
} | |||||
}) | |||||
return actions.join(''); | |||||
} | |||||
goDelete = function(index){ | |||||
tools.doPost(technologyTrainingStudentsRemove+'/'+module.data.technologyDetail.tEntityTrainStudentsList[index].id, {}, module.updateList , true); | |||||
module.data.technologyDetail.tEntityTrainStudentsList.splice(index, 1); | |||||
var technologyData = template('technologyData', module.data); | |||||
$("#technologyContent").html(technologyData); | |||||
} | |||||
goStudentsDelete = function(index){ | |||||
module.data.trainStudentsList.splice(index, 1); | |||||
var technologyData = template('technologyData', module.data); | |||||
$("#technologyContent").html(technologyData); | |||||
} | |||||
goSubmit = function(index){ | |||||
tools.doPost(technologyTrainingStudents, module.data.trainStudentsList[index], module.updateList , true); | |||||
var technologyData = template('technologyData', module.data); | |||||
$("#technologyContent").html(technologyData); | |||||
} | |||||
module.updateList = function(data){ | |||||
if (data.code == 200){ | |||||
tools.doPost(technologyTrainingDetails + '/' + getQueryVariable('id'), {}, module.technologyTrainingDetails, true); | |||||
var technologyData = template('technologyData', module.data); | |||||
$("#technologyContent").html(technologyData); | |||||
} | |||||
} | |||||
inputNameChange = function(index){ | |||||
module.data.trainStudentsList[index].name = $('#name'+index+'').val(); | |||||
} | |||||
inputPhoneChange = function(index){ | |||||
module.data.trainStudentsList[index].phone = $('#phone'+index+'').val(); | |||||
} | |||||
inputSexChange = function(index){ | |||||
module.data.trainStudentsList[index].sex = $('#sex'+index+'').val(); | |||||
} | |||||
goAdd = function(){ | |||||
for (var i = 0 ; i < module.data.trainStudentsList.length ; i++){ | |||||
if (module.data.trainStudentsList[i].name == '' || module.data.trainStudentsList[i].phone == '' || module.data.trainStudentsList[i].sex == ''){ | |||||
return; | |||||
} | |||||
} | |||||
module.data.trainStudentsList.push({ | |||||
name:'', | |||||
phone:'', | |||||
sex:'', | |||||
trainId:getQueryVariable('id') | |||||
}); | |||||
var technologyData = template('technologyData', module.data); | |||||
$("#technologyContent").html(technologyData); | |||||
} | |||||
return module; | |||||
}) |
@@ -1,844 +0,0 @@ | |||||
/** | |||||
* Created by Administrator on 2021/4/5. | |||||
*/ | |||||
define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor"], function ($, template, Tools ) { | |||||
//数据存储 | |||||
var module = { | |||||
data: { | |||||
userInformationDetail:[], | |||||
userSupplyInformationList:'', | |||||
consultingInformationList:'', | |||||
biddingInformationList:'', | |||||
//页码 | |||||
pageNum: 1, | |||||
//页码集合 | |||||
pageList: [], | |||||
//每页数量 | |||||
pageSize: 5, | |||||
//总页数 | |||||
pageCount:0, | |||||
//用户ID | |||||
memberId:0, | |||||
//用户资料form | |||||
form:{ | |||||
}, | |||||
modifyUrl:'', | |||||
detailUrl:'' | |||||
}, | |||||
}; | |||||
var tools = new Tools(); | |||||
module.init = function (page) { | |||||
//底部友情链接 | |||||
tools.doGet(friendsLinks, {}, module.bottomFriendsLinks, true); | |||||
//用户资料 | |||||
tools.doGet(userData, {}, module.userData); | |||||
if(!tools.getCookie('Admin-Token')){ | |||||
tools.skip('../../index.html') | |||||
} | |||||
//用户资料 | |||||
//tools.doPut(userData, {id:}, module.userData,true); | |||||
//个人中心选项卡鼠标悬浮 | |||||
module.userListHover(); | |||||
//网站配置信息(网站名称 底部联系方式 公安备案号 网站备案号) | |||||
tools.getWebConfig(); | |||||
window.KindEditor.create('#editor_id') | |||||
//console.log(tools.getParam('type')) | |||||
var type = tools.getParam('type'); | |||||
module.getType(type); | |||||
setTimeout(function(){ | |||||
//主题图片切换 | |||||
module.switchTheme(); | |||||
},500) | |||||
}; | |||||
//主题图片切换 | |||||
module.switchTheme = function(){ | |||||
if(themeColor == 'red'){ | |||||
module.data.modifyUrl = '../../static/images/modify_red.png'; | |||||
module.data.detailUrl = '../../static/images/detail_red.png'; | |||||
}else if(themeColor == 'green'){ | |||||
module.data.modifyUrl = '../../static/images/modify.png'; | |||||
module.data.detailUrl = '../../static/images/detail.png'; | |||||
} | |||||
} | |||||
//底部友情链接 | |||||
module.bottomFriendsLinks = function (data) { | |||||
if (data.code == 200) { | |||||
var content = data.data; | |||||
//console.log(content) | |||||
module.data.friendsLinksList = content; | |||||
var friendsLinksData = template('friendsLinksData', module.data); | |||||
$("#friendsLinksContent").html(friendsLinksData); | |||||
} | |||||
} | |||||
//获取类型 | |||||
module.getType = function(type){ | |||||
if (type == 'info'){ | |||||
document.getElementById("icon-list1").click(); | |||||
} | |||||
if (type == 'demand'){ | |||||
document.getElementById("icon-list2").click(); | |||||
} | |||||
if (type == 'interact'){ | |||||
document.getElementById("icon-list3").click(); | |||||
} | |||||
if (type == 'bidding'){ | |||||
document.getElementById("icon-list4").click(); | |||||
} | |||||
if (type == 'goDemand'){ | |||||
document.getElementById("icon-list2").click(); | |||||
document.getElementById("goSupply").click(); | |||||
} | |||||
if (type == 'goInteract'){ | |||||
document.getElementById("icon-list3").click(); | |||||
document.getElementById("goRelease").click(); | |||||
} | |||||
} | |||||
//个人中心用户信息 | |||||
module.userData = function(data){ | |||||
if (data.code == 200) { | |||||
var content = data.user; | |||||
//console.log(content) | |||||
module.data.userId = content.userId; | |||||
tools.doGet(userMember + '/' + content.userId, {}, module.userMember);//memberType 1个人 2单位 | |||||
} | |||||
} | |||||
//个人中心用户资料 | |||||
module.userMember = function(data){ | |||||
if (data.code == 200) { | |||||
var content = data.data; | |||||
//console.log(data) | |||||
module.data.userInformationDetail = content; | |||||
module.data.memberType = content.memberType; | |||||
if(content.memberType == '1'){ | |||||
document.getElementById('companyInformationContent').style.display = 'none'; | |||||
document.getElementById('userInformationContent').style.display = 'block'; | |||||
var userInformationData = template('userInformationData', module.data); | |||||
$("#userInformationContent").html(userInformationData); | |||||
}else{ | |||||
document.getElementById('companyInformationContent').style.display = 'block'; | |||||
document.getElementById('userInformationContent').style.display = 'none'; | |||||
var companyInformationData = template('companyInformationData', module.data); | |||||
$("#companyInformationContent").html(companyInformationData); | |||||
} | |||||
document.getElementById('bankAddress').value = content.bankAddress; | |||||
document.getElementById('bankCardName').value = content.bankCardName; | |||||
document.getElementById('bankCardNum').value = content.bankCardNum; | |||||
document.getElementById('phone').innerHTML = content.phone; | |||||
module.data.memberId = content.id; | |||||
//console.log(module.data.userId) | |||||
//用户图片 | |||||
tools.doGet(showUserImg+'/'+module.data.memberId, {}, module.showUserImage); | |||||
//我的供求 | |||||
tools.doGet(userSupply, {memberId:content.id,pageNum:module.data.pageNum,pageSize:10}, module.userSupply); | |||||
//我的咨询 | |||||
tools.doGet(userConsulting, {memberId:content.id,pageNum:module.data.pageNum,pageSize:module.data.pageSize}, module.consulting); | |||||
//我的竞价 | |||||
tools.doGet(userBidding, {memberId:content.id,pageNum:module.data.pageNum,pageSize:module.data.pageSize}, module.bidding); | |||||
//个人资料提交 | |||||
$('#supplyAction').on('click', module.supplyAction) | |||||
$('#releaseAction').on('click', module.releaseAction) | |||||
//获取附件的值 | |||||
//$('#upLoadBtn').on('click',module.upLoadAction) | |||||
//document.getElementById('userAction').addEventListener('click',module.formAction); | |||||
} | |||||
} | |||||
module.showUserImage = function(data){ | |||||
//console.log(data) | |||||
if (data.code == 200) { | |||||
var content = data.data; | |||||
var fileUrlList = []; | |||||
var fileNum = []; | |||||
for (var i = 0 ; i < content.length ; i++){ | |||||
fileUrlList[i] = serverApi + content[i].fileUrl ; | |||||
fileNum[i] = content[i].id; | |||||
} | |||||
if (fileUrlList.length == 0){ | |||||
fileUrlList = ''; | |||||
} | |||||
//console.log(fileUrlList) | |||||
module.data.fileNum = fileNum; | |||||
if(module.data.memberType == '1'){ | |||||
var cupload2 = new Cupload ({ | |||||
ele: '#cupload-3', | |||||
num: 5, | |||||
data:fileUrlList | |||||
}); | |||||
}else{ | |||||
var cupload2 = new Cupload ({ | |||||
ele: '#cupload-2', | |||||
num: 5, | |||||
data:fileUrlList | |||||
}); | |||||
} | |||||
} | |||||
} | |||||
module.showSupplyImage = function(data){ | |||||
//console.log(data) | |||||
if (data.code == 200) { | |||||
var content = data.data; | |||||
var fileUrlList = []; | |||||
var fileNum = []; | |||||
for (var i = 0 ; i < content.length ; i++){ | |||||
fileUrlList[i] = serverApi + content[i].fileUrl ; | |||||
fileNum[i] = content[i].id; | |||||
} | |||||
if (fileUrlList.length == 0){ | |||||
fileUrlList = ''; | |||||
} | |||||
//console.log(fileUrlList) | |||||
document.getElementById('cupload-1').innerHTML = ''; | |||||
module.data.fileNum = fileNum; | |||||
var cupload1 = new Cupload ({ | |||||
ele: '#cupload-1', | |||||
num: 5, | |||||
data:fileUrlList | |||||
}); | |||||
} | |||||
} | |||||
deleteList = function(){ | |||||
//console.log(module.data.fileNum[deleteNum]) | |||||
tools.doGet(deleteUserImg+'/'+module.data.fileNum[deleteNum], {}, module.Tips); | |||||
} | |||||
module.getData = function(data){ | |||||
upLoadAction(data.data) | |||||
} | |||||
//获取上传图片list | |||||
upLoadAction = function(type){ | |||||
//console.log(type) | |||||
var upLoadList = []; | |||||
var data = {}; | |||||
if(type == 'user'){ | |||||
if(module.data.memberType == '1'){ | |||||
$('#cupload-3').find('input').each(function() { | |||||
if($(this).val()!=''&&$(this).val().indexOf('http') == -1){ | |||||
upLoadList.push($(this).val()) | |||||
} | |||||
}) | |||||
}else{ | |||||
$('#cupload-2').find('input').each(function() { | |||||
if($(this).val()!=''&&$(this).val().indexOf('http') == -1){ | |||||
upLoadList.push($(this).val()) | |||||
} | |||||
}) | |||||
} | |||||
data["tableName"] = 't_transaction_member'; | |||||
data["tableId"] = module.data.memberId; | |||||
}else{ | |||||
$('#cupload-1').find('input').each(function() { | |||||
if($(this).val()!=''&&$(this).val().indexOf('http') == -1){ | |||||
upLoadList.push($(this).val()) | |||||
} | |||||
}) | |||||
data["tableName"] = 't_transaction_supply_demand'; | |||||
data["tableId"] = type; | |||||
setTimeout(function(){ | |||||
tools.doGet(userSupply, {memberId:module.data.memberId,pageNum:module.data.pageNum,pageSize:module.data.pageSize}, module.userSupply) | |||||
document.getElementById('supplyInformation').style.display = "block"; | |||||
document.getElementById('releaseSupply').style.display = "none"; | |||||
$('#demandType').val(''); | |||||
$('#projectName').val(''); | |||||
$('#location').val(''); | |||||
$('#projectRealName').val(''); | |||||
$('#projectPhone').val(''); | |||||
$('#projectContent').val(''); | |||||
},2000) | |||||
} | |||||
data["files"] = upLoadList; | |||||
data["fileType"] = ''; | |||||
data["bizPath"] = 'transaction'; | |||||
tools.doPostImg(base64Attach, data, module.upLoadOver);//memberType 1个人 2单位 | |||||
tools.initError('发布成功'); | |||||
} | |||||
module.upLoadOver = function(){ | |||||
} | |||||
//删除供求 | |||||
deleteUserSupply = function(ids){ | |||||
tools.doGet(deleteSupply+'/'+ids, {}, module.Tips); | |||||
} | |||||
//个人中心我的供求 | |||||
module.userSupply = function(data){ | |||||
//console.log(data) | |||||
if (data.code == 200) { | |||||
var content = data.rows; | |||||
//console.log(data) | |||||
var pageCount = (data.total/10).toFixed(0); | |||||
if (pageCount < 1){ | |||||
pageCount = 1; | |||||
} | |||||
if(module.data.userSupplyInformationList == ''){ | |||||
$('.page_s1').html(''); | |||||
// 初始化 分页器 | |||||
var page_s1 = createPage('.page_s1'); | |||||
// 设置分页 | |||||
setPage(page_s1, { | |||||
pageTotal: data.total, // 数据总条数 | |||||
pageSize: 10, // 每页显示条数 | |||||
pageCurrent: 1, // 当前页 | |||||
maxBtnNum: 5, // 最多按钮个数 (最少5个) | |||||
}) | |||||
$('#page_s1').html('共' + pageCount + '页') | |||||
} | |||||
module.data.userSupplyInformationList = content; | |||||
var userSupplyInformationData = template('userSupplyInformationData', module.data); | |||||
$("#userSupplyInformationContent").html(userSupplyInformationData); | |||||
} | |||||
} | |||||
//个人中心我的咨询 | |||||
module.consulting = function(data){ | |||||
if (data.code == 200) { | |||||
var content = data.rows; | |||||
//console.log(data ) | |||||
var pageCount = (data.total/module.data.pageSize).toFixed(0); | |||||
if (pageCount < 1){ | |||||
pageCount = 1; | |||||
} | |||||
$('.page_s2').html(''); | |||||
// 初始化 分页器 | |||||
var page_s1 = createPage('.page_s2'); | |||||
// 设置分页 | |||||
setPage(page_s1, { | |||||
pageTotal: data.total, // 数据总条数 | |||||
pageSize: module.data.pageSize, // 每页显示条数 | |||||
pageCurrent: 1, // 当前页 | |||||
maxBtnNum: 5, // 最多按钮个数 (最少5个) | |||||
}) | |||||
module.data.consultingInformationList = content; | |||||
$('#page_s2').html('共'+pageCount+'页') | |||||
var consultingInformationData = template('consultingInformationData', module.data); | |||||
$("#consultingInformationContent").html(consultingInformationData); | |||||
} | |||||
} | |||||
//个人中心我的竞价 | |||||
module.bidding = function(data){ | |||||
if (data.code == 200) { | |||||
var content = data.rows; | |||||
//console.log(content) | |||||
var pageCount = (data.total/module.data.pageSize).toFixed(0); | |||||
if (pageCount < 1){ | |||||
pageCount = 1; | |||||
} | |||||
if(module.data.biddingInformationList == '') { | |||||
// 初始化 分页器 | |||||
var page_s1=createPage('.page_s3'); | |||||
// 设置分页 | |||||
setPage(page_s1, { | |||||
pageTotal: data.total, // 数据总条数 | |||||
pageSize: module.data.pageSize, // 每页显示条数 | |||||
pageCurrent: 1, // 当前页 | |||||
maxBtnNum: 5, // 最多按钮个数 (最少5个) | |||||
}) | |||||
$('#page_s3').html('共' + pageCount + '页') | |||||
} | |||||
module.data.biddingInformationList = content; | |||||
var biddingInformationData = template('biddingInformationData', module.data); | |||||
$("#biddingInformationContent").html(biddingInformationData); | |||||
} | |||||
} | |||||
tabCheck = function(type){ | |||||
document.getElementById('user').className = ''; | |||||
document.getElementById('bank').className = ''; | |||||
document.getElementById('passWord').className = ''; | |||||
document.getElementById(type).className = 'active'; | |||||
//console.log(type) | |||||
document.getElementById('userInformationContent').style.display = 'none'; | |||||
document.getElementById('companyInformationContent').style.display = 'none'; | |||||
document.getElementById('bankInformationContent').style.display = 'none'; | |||||
document.getElementById('phoneInformationContent').style.display = 'none'; | |||||
document.getElementById('passWordInformationContent').style.display = 'none'; | |||||
if (module.data.memberType == '2' && type == 'user'){ | |||||
document.getElementById('companyInformationContent').style.display = 'block'; | |||||
}else if (module.data.memberType == '1' && type == 'user'){ | |||||
document.getElementById('userInformationContent').style.display = 'block'; | |||||
}else{ | |||||
document.getElementById(type+'InformationContent').style.display = 'block'; | |||||
} | |||||
} | |||||
phoneUpdate = function(type){ | |||||
document.getElementById(type+'InformationContent').style.display = 'none'; | |||||
document.getElementById('phoneInformationContent').style.display = 'block'; | |||||
} | |||||
tabLeftCheck = function(type){ | |||||
for (var i = 1 ; i < 5 ; i++){ | |||||
document.getElementById('icon-list'+i).className = ''; | |||||
} | |||||
document.getElementById(type).className = 'active'; | |||||
document.getElementById('userInformation').style.display = 'none'; | |||||
document.getElementById('supplyInformation').style.display = 'none'; | |||||
document.getElementById('consultingInformation').style.display = 'none'; | |||||
document.getElementById('biddingInformation').style.display = 'none'; | |||||
document.getElementById('releaseSupply').style.display = 'none'; | |||||
document.getElementById('release').style.display = 'none'; | |||||
if(type == 'icon-list1'){ | |||||
document.getElementById('userInformation').style.display = 'block'; | |||||
} | |||||
if(type == 'icon-list2'){ | |||||
document.getElementById('supplyInformation').style.display = 'block'; | |||||
module.data.clickType = 'supply'; | |||||
$('#demandType').val(''); | |||||
$('#projectName').val(''); | |||||
$('#location').val(''); | |||||
$('#projectRealName').val(''); | |||||
$('#projectPhone').val(''); | |||||
$('#projectContent').val(''); | |||||
} | |||||
if(type == 'icon-list3'){ | |||||
document.getElementById('consultingInformation').style.display = 'block'; | |||||
module.data.clickType = 'consulting'; | |||||
$('#title').val(''); | |||||
$('#releaseContent').val(''); | |||||
$('#releaseRealName').val(''); | |||||
$('#releasePhone').val(''); | |||||
} | |||||
if(type == 'icon-list4'){ | |||||
document.getElementById('biddingInformation').style.display = 'block'; | |||||
module.data.clickType = 'bidding'; | |||||
} | |||||
module.data.pageNum = 1 ; | |||||
} | |||||
goSupply = function(){ | |||||
document.getElementById('supplyInformation').style.display = "none"; | |||||
document.getElementById('releaseSupply').style.display = "block"; | |||||
document.getElementById('cupload-1').innerHTML = ''; | |||||
var cupload1 = new Cupload ({ | |||||
ele: '#cupload-1', | |||||
num: 5, | |||||
}); | |||||
} | |||||
gosupplyTable = function(){ | |||||
document.getElementById('supplyInformation').style.display = "block"; | |||||
document.getElementById('releaseSupply').style.display = "none"; | |||||
$('#demandType').val(''); | |||||
$('#projectName').val(''); | |||||
$('#location').val(''); | |||||
$('#projectRealName').val(''); | |||||
$('#projectPhone').val(''); | |||||
$('#projectContent').val(''); | |||||
} | |||||
goRelease = function(){ | |||||
document.getElementById('consultingInformation').style.display = "none"; | |||||
document.getElementById('release').style.display = "block"; | |||||
} | |||||
goReleaseTable = function(){ | |||||
document.getElementById('consultingInformation').style.display = "block"; | |||||
document.getElementById('release').style.display = "none"; | |||||
$('#title').val(''); | |||||
$('#releaseContent').val(''); | |||||
$('#releaseRealName').val(''); | |||||
$('#releasePhone').val(''); | |||||
} | |||||
//翻页 | |||||
turnThePage = function (pageNum) { | |||||
module.data.pageNum = pageNum ; | |||||
if(module.data.clickType == 'supply'){ | |||||
tools.doGet(userSupply, {memberId:module.data.memberId,pageNum:pageNum,pageSize:module.data.pageSize}, module.userSupply); | |||||
} | |||||
if(module.data.clickType == 'consulting'){ | |||||
tools.doGet(userConsulting, {memberId:module.data.memberId,pageNum:pageNum,pageSize:module.data.pageSize}, module.consulting); | |||||
} | |||||
if(module.data.clickType == 'bidding'){ | |||||
tools.doGet(userBidding, {memberId:module.data.memberId,pageNum:pageNum,pageSize:module.data.pageSize}, module.bidding); | |||||
} | |||||
} | |||||
//个人用户资料修改 | |||||
formAction = function (type){ | |||||
var data = {}; | |||||
//var password = $('#password').val(); | |||||
module.data.userFormType = type ; | |||||
if(type == 'company'){ | |||||
//公司用户信息 | |||||
var companyName = $('#companyName').val(); | |||||
var idCardNum = $('#idCardNum').val(); | |||||
var realname = $('#realname').val(); | |||||
var companyCode = $('#companyCode').val(); | |||||
var companyNature = $('#companyNature').val(); | |||||
var companyScope = $('#companyScope').val(); | |||||
var companyTimeLimit = $('#companyTimeLimit').val(); | |||||
var companySetupTime = $('#companySetupTime').val(); | |||||
var companyCapital = $('#companyCapital').val(); | |||||
var companyLicense = $('#companyLicense').val(); | |||||
var address = $('#address').val(); | |||||
data['companyName'] = companyName; | |||||
data['idCardNum'] = idCardNum; | |||||
data['realname'] = realname; | |||||
data['companyCode'] = companyCode; | |||||
data['companyName'] = companyName; | |||||
data['companyNature'] = companyNature; | |||||
data['companyScope'] = companyScope; | |||||
data['companyTimeLimit'] = companyTimeLimit; | |||||
data['companySetupTime'] = companySetupTime; | |||||
data['companyCapital'] = companyCapital; | |||||
data['companyLicense'] = companyLicense; | |||||
data['address'] = address; | |||||
tools.setCookie('userName',realname,24 * 60 * 60) | |||||
tools.setCookie('idCardNum',idCardNum,24 * 60 * 60) | |||||
tools.setCookie('address',address,24 * 60 * 60) | |||||
upLoadAction('user'); | |||||
} | |||||
if(type == 'user'){ | |||||
//个人用户信息 | |||||
var userFormRealName = $('#userFormRealName').val(); | |||||
var userFormIdCard = $('#userFormIdCard').val(); | |||||
var userFormAddress = $('#userFormAddress').val(); | |||||
data['idCardNum'] = userFormIdCard; | |||||
data['realname'] = userFormRealName; | |||||
data['address'] = userFormAddress; | |||||
tools.setCookie('userName',userFormRealName,24 * 60 * 60) | |||||
tools.setCookie('idCardNum',userFormIdCard,24 * 60 * 60) | |||||
tools.setCookie('address',userFormAddress,24 * 60 * 60) | |||||
upLoadAction('user'); | |||||
} | |||||
if(type == 'bank'){ | |||||
//银行卡信息 | |||||
var bankCardName = $('#bankCardName').val(); | |||||
var bankCardNum = $('#bankCardNum').val(); | |||||
var bankAddress = $('#bankAddress').val(); | |||||
data['bankCardName'] = bankCardName; | |||||
data['bankCardNum'] = bankCardNum; | |||||
data['bankAddress'] = bankAddress; | |||||
tools.setCookie('bankCardName',bankCardName,24 * 60 * 60) | |||||
tools.setCookie('bankCardNum',bankCardNum,24 * 60 * 60) | |||||
tools.setCookie('bankAddress',bankAddress,24 * 60 * 60) | |||||
} | |||||
//data['password'] = password; | |||||
data['id'] = module.data.memberId; | |||||
tools.doPost(userUpdate, data, module.Tips) | |||||
} | |||||
editPassword = function(){ | |||||
var data = {}; | |||||
if(module.passWordCompare()){ | |||||
var oldPassWord = $('#originalPassWord').val(); | |||||
var newPassWord = $('#newPassWord').val(); | |||||
data['oldPassword'] = oldPassWord; | |||||
data['newPassword'] = newPassWord; | |||||
tools.doPost(updatePwd, data, module.Tips) | |||||
} | |||||
} | |||||
//手动验证密码是否一致 | |||||
module.passWordCompare = function(){ | |||||
var newPassword = $('#newPassWord').val(); | |||||
var determinePassWord = $('#determinePassWord').val(); | |||||
var originalPassWord = $('#originalPassWord').val(); | |||||
/*原密码*/ | |||||
if (originalPassWord == '') { | |||||
$('#originalPassWord')[0].focus() | |||||
tools.initTips('请输入原密码', 'right', $('#originalPassWord')[0], 2000) | |||||
return false; | |||||
} | |||||
/* 新密码 */ | |||||
if (newPassword == '') { | |||||
$('#newPassWord')[0].focus() | |||||
tools.initTips('请输入新密码', 'right', $('#newPassWord')[0], 2000) | |||||
return false; | |||||
} | |||||
/* 确认密码 */ | |||||
if (determinePassWord == '') { | |||||
$('#determinePassWord')[0].focus() | |||||
tools.initTips('请确认密码', 'right', $('#determinePassWord')[0], 2000) | |||||
return false; | |||||
} | |||||
return true; | |||||
} | |||||
//发布供求 | |||||
module.supplyAction = function (){ | |||||
var data = {}; | |||||
if(module.supplyCheck()){ | |||||
//供求信息 | |||||
var demandType = $('#demandType').val(); | |||||
var projectName = $('#projectName').val(); | |||||
var location = $('#location').val(); | |||||
var projectRealName = $('#projectRealName').val(); | |||||
var projectPhone = $('#projectPhone').val(); | |||||
var projectContent = $('#projectContent').val(); | |||||
var logintime = tools.getNowFormatDate(); | |||||
//console.log(demandType); | |||||
data['projectName'] = projectName; | |||||
data['location'] = location; | |||||
data['realname'] = projectRealName; | |||||
data['phone'] = projectPhone; | |||||
data['projectContent'] = projectContent; | |||||
data['logintime'] = logintime; | |||||
data['supplyDemandType'] = demandType; | |||||
data['deptId'] = 100; | |||||
data['memberId'] = module.data.memberId; | |||||
if(module.data.supplyType == 'edit'){ | |||||
tools.doPost(userEdit, data, module.getData) | |||||
}else{ | |||||
tools.doPost(userDemand, data, module.getData) | |||||
} | |||||
} | |||||
} | |||||
//发布咨询 | |||||
module.releaseAction = function (){ | |||||
var data = {}; | |||||
if(module.releaseCheck()){ | |||||
//供求信息 | |||||
var title = $('#title').val(); | |||||
var releaseContent = $('#releaseContent').val(); | |||||
var releaseRealName = $('#releaseRealName').val(); | |||||
var releasePhone = $('#releasePhone').val(); | |||||
var logintime = tools.getNowFormatDate(); | |||||
data['title'] = title; | |||||
data['content'] = releaseContent; | |||||
data['realname'] = releaseRealName; | |||||
data['phone'] = releasePhone; | |||||
data['logintime'] = logintime; | |||||
data['deptId'] = 100; | |||||
data['memberId'] = module.data.memberId; | |||||
tools.doPost(userCommunicate, data, module.releaseActionYes) | |||||
} | |||||
} | |||||
module.releaseActionYes = function(data){ | |||||
tools.initError(data.msg); | |||||
setTimeout(function(){ | |||||
tools.doGet(userConsulting, {memberId:module.data.memberId,pageNum:module.data.pageNum,pageSize:module.data.pageSize}, module.consulting); | |||||
document.getElementById('consultingInformation').style.display = "block"; | |||||
document.getElementById('release').style.display = "none"; | |||||
$('#title').val(''); | |||||
$('#releaseContent').val(''); | |||||
$('#releaseRealName').val(''); | |||||
$('#releasePhone').val(''); | |||||
},2000) | |||||
} | |||||
module.Tips = function(data){ | |||||
tools.initError(data.msg); | |||||
} | |||||
//手动验证表单 | |||||
module.check = function () { | |||||
var usernameVal = $('#username').val(); | |||||
var passwordVal = $('#password').val(); | |||||
var codeVal = $('#code').val(); | |||||
/* 手机号 */ | |||||
if (usernameVal == '') { | |||||
$('#username')[0].focus() | |||||
tools.initTips('请输入用户名', 'right', $('#username')[0], 2000) | |||||
return false; | |||||
} | |||||
/* 密码 */ | |||||
if (passwordVal == '') { | |||||
$('#password')[0].focus() | |||||
tools.initTips('请输入密码', 'right', $('#password')[0], 2000) | |||||
return false; | |||||
} else if (parseInt(passwordVal.length) < 6 || parseInt(passwordVal.length) > 18) { | |||||
$('#password')[0].focus() | |||||
tools.initTips('请输入正确格式密码', 'right', $('#password')[0], 2000) | |||||
return false; | |||||
} | |||||
/*图形验证码*/ | |||||
if (module.uuid == '' || codeVal == '') { | |||||
$('#code')[0].focus() | |||||
tools.initTips('请输入图形验证码', 'right', $('#code')[0], 2000) | |||||
return false; | |||||
} | |||||
return true; | |||||
} | |||||
module.supplyCheck = function () { | |||||
var projectName = $('#projectName').val(); | |||||
var location = $('#location').val(); | |||||
var projectRealName = $('#projectRealName').val(); | |||||
var projectPhone = $('#projectPhone').val(); | |||||
var projectContent = $('#projectContent').val(); | |||||
if (projectName == '') { | |||||
$('#projectName')[0].focus() | |||||
tools.initTips('请输入项目名称', 'right', $('#projectName')[0], 2000) | |||||
return false; | |||||
} | |||||
if (location == '') { | |||||
$('#location')[0].focus() | |||||
tools.initTips('请输入项目地址', 'right', $('#location')[0], 2000) | |||||
return false; | |||||
} | |||||
if (projectRealName == '') { | |||||
$('#projectRealName')[0].focus() | |||||
tools.initTips('请输入姓名', 'right', $('#projectRealName')[0], 2000) | |||||
return false; | |||||
} | |||||
if (projectPhone == '') { | |||||
$('#projectPhone')[0].focus() | |||||
tools.initTips('请输入联系电话', 'right', $('#projectPhone')[0], 2000) | |||||
return false; | |||||
} | |||||
if (projectContent == '') { | |||||
$('#projectContent')[0].focus() | |||||
tools.initTips('请输入项目详情', 'right', $('#projectContent')[0], 2000) | |||||
return false; | |||||
} | |||||
return true; | |||||
} | |||||
module.releaseCheck = function () { | |||||
var title = $('#title').val(); | |||||
var releaseContent = $('#releaseContent').val(); | |||||
var releaseRealName = $('#releaseRealName').val(); | |||||
var releasePhone = $('#releasePhone').val(); | |||||
if (title == '') { | |||||
$('#title')[0].focus() | |||||
tools.initTips('请输入标题', 'right', $('#title')[0], 2000) | |||||
return false; | |||||
} | |||||
if (releaseContent == '') { | |||||
$('#releaseContent')[0].focus() | |||||
tools.initTips('请输入咨询内容', 'right', $('#releaseContent')[0], 2000) | |||||
return false; | |||||
} | |||||
if (releaseRealName == '') { | |||||
$('#releaseRealName')[0].focus() | |||||
tools.initTips('请输入姓名', 'right', $('#releaseRealName')[0], 2000) | |||||
return false; | |||||
} | |||||
if (releasePhone == '') { | |||||
$('#releasePhone')[0].focus() | |||||
tools.initTips('请输入联系电话', 'right', $('#releasePhone')[0], 2000) | |||||
return false; | |||||
} | |||||
return true; | |||||
} | |||||
//个人中心选项卡鼠标悬浮 | |||||
module.userListHover = function(){ | |||||
document.getElementById('icon-list1').onmouseout = function(){ | |||||
document.getElementById('icon1').src = '../../static/images/user_index_icon1.png' | |||||
} | |||||
document.getElementById('icon-list1').onmouseover = function(){ | |||||
if(themeColor == 'red'){ | |||||
document.getElementById('icon1').src = '../../static/images/user_index_icon5_red.png' | |||||
}else if(themeColor == 'green'){ | |||||
document.getElementById('icon1').src = '../../static/images/user_index_icon5.png' | |||||
} | |||||
} | |||||
document.getElementById('icon-list2').onmouseout = function(){ | |||||
document.getElementById('icon2').src = '../../static/images/user_index_icon2.png' | |||||
} | |||||
document.getElementById('icon-list2').onmouseover = function(){ | |||||
if(themeColor == 'red'){ | |||||
document.getElementById('icon2').src = '../../static/images/user_index_icon6_red.png' | |||||
}else if(themeColor == 'green') { | |||||
document.getElementById('icon2').src = '../../static/images/user_index_icon6.png' | |||||
} | |||||
} | |||||
document.getElementById('icon-list3').onmouseout = function(){ | |||||
document.getElementById('icon3').src = '../../static/images/user_index_icon3.png' | |||||
} | |||||
document.getElementById('icon-list3').onmouseover = function(){ | |||||
if(themeColor == 'red'){ | |||||
document.getElementById('icon3').src = '../../static/images/user_index_icon7_red.png' | |||||
}else if(themeColor == 'green') { | |||||
document.getElementById('icon3').src = '../../static/images/user_index_icon7.png' | |||||
} | |||||
} | |||||
document.getElementById('icon-list4').onmouseout = function(){ | |||||
document.getElementById('icon4').src = '../../static/images/user_index_icon4.png' | |||||
} | |||||
document.getElementById('icon-list4').onmouseover = function(){ | |||||
if(themeColor == 'red'){ | |||||
document.getElementById('icon4').src = '../../static/images/user_index_icon8_red.png' | |||||
}else if(themeColor == 'green') { | |||||
document.getElementById('icon4').src = '../../static/images/user_index_icon8.png' | |||||
} | |||||
} | |||||
} | |||||
goSearch = function () { | |||||
var searchTitle = $('#searchTitle').val(); | |||||
var searchContent = $('#searchContent').val(); | |||||
//console.log(searchTitle) | |||||
module.data.searchType = 'YES'; | |||||
tools.doGet(userConsulting,{title:searchTitle,content:searchContent,memberId:module.data.memberId,pageNum:module.data.pageNum,pageSize:module.data.pageSize},module.consulting); | |||||
} | |||||
selectUserSupply = function(ids) { | |||||
module.data.supplyType = 'edit' | |||||
//console.log('点击修改') | |||||
tools.doGet(selectSupply + '/' + ids, {}, module.selectSupplyDetail);//memberType 1个人 2单位 | |||||
} | |||||
module.selectSupplyDetail = function(data){ | |||||
console.log('进入修改供求') | |||||
document.getElementById('supplyInformation').style.display = "none"; | |||||
document.getElementById('releaseSupply').style.display = "block"; | |||||
var content = data.data | |||||
$('#demandType').val(content.supplyDemandType); | |||||
$('#projectName').val(content.projectName); | |||||
$('#location').val(content.location); | |||||
$('#projectRealName').val(content.realname); | |||||
$('#projectPhone').val(content.phone); | |||||
$('#projectContent').val(content.projectContent); | |||||
tools.doGet(supplyDemandImg+'/'+content.id, {}, module.showSupplyImage); | |||||
} | |||||
goProject = function(id){ | |||||
tools.skip('../listingItems/itemsDetail.html?id='+id) | |||||
} | |||||
return module; | |||||
}); |
@@ -1,148 +0,0 @@ | |||||
/** | |||||
* Created by admin on 2021/4/5. | |||||
* | |||||
*/ | |||||
define(['jquery', "Tools","user"], function ($, Tools) { | |||||
//数据存储 | |||||
var module = { | |||||
uuid: '' //验证码uuid | |||||
}; | |||||
//自定义公共方法 | |||||
var tools = new Tools(); | |||||
//默认进入页面加载方法 | |||||
module.init = function (page) { | |||||
//点击登录 | |||||
$('#login-submit').on('click', module.login) | |||||
//点击图形验证码 | |||||
$('#graphicImg').on('click', module.verificationCode) | |||||
//图形验证码加载 | |||||
module.verificationCode() | |||||
//背景高度 | |||||
module.register() | |||||
//网站配置信息(网站名称 底部联系方式 公安备案号 网站备案号) | |||||
tools.getWebConfig(); | |||||
document.onkeydown = function (event) { | |||||
var e = event || window.event; | |||||
if (e && e.keyCode == 13) { //回车键的键值为13 | |||||
$("#login-submit").click(); //调用登录按钮的登录事件 | |||||
} | |||||
}; | |||||
}; | |||||
//底部友情链接 | |||||
module.bottomFriendsLinks = function (data) { | |||||
if (data.code == 200) { | |||||
var content = data.data; | |||||
console.log(content) | |||||
module.data.friendsLinksList = content; | |||||
var friendsLinksData = template('friendsLinksData', module.data); | |||||
$("#friendsLinksContent").html(friendsLinksData); | |||||
} | |||||
} | |||||
/*-----------------------------自定义方法-------------------------------------*/ | |||||
//登录方式切换 | |||||
loginTab = function(type){ | |||||
document.getElementById('loginTab').style.display = 'none' | |||||
document.getElementById('phoneTab').style.display = 'none' | |||||
document.getElementById(type+'Tab').style.display = 'block' | |||||
} | |||||
//背景高度 | |||||
module.register = function(){ | |||||
document.getElementById('registerBody').style.height = (document.body.offsetHeight - 112) +'px'; | |||||
} | |||||
//图形验证码 | |||||
module.verificationCode = function () { | |||||
tools.doGet(captchaImage_get, {}, module.verificationAjax, true) | |||||
} | |||||
module.verificationAjax = function (data) { | |||||
if (data.code == 200) { | |||||
$('#graphicImg').attr('src', 'data:image/gif;base64,' + data.img) | |||||
module.uuid = data.uuid; | |||||
} | |||||
} | |||||
//用户登录 | |||||
module.login = function () { | |||||
if (module.check()) { | |||||
var data = {}; | |||||
var usernameVal = $('#username').val(); | |||||
var passwordVal = $('#password').val(); | |||||
var codeVal = $('#code').val(); | |||||
data['username'] = usernameVal; | |||||
data['password'] = passwordVal; | |||||
data['code'] = codeVal; | |||||
data['uuid'] = module.uuid; | |||||
tools.doPost(login_post, data, module.loginData, true) | |||||
} | |||||
}; | |||||
//手动验证表单 | |||||
module.check = function () { | |||||
var usernameVal = $('#username').val(); | |||||
var passwordVal = $('#password').val(); | |||||
var codeVal = $('#code').val(); | |||||
/* 手机号 */ | |||||
if (usernameVal == '') { | |||||
$('#username')[0].focus() | |||||
tools.initTips('请输入用户名', 'right', $('#username')[0], 2000) | |||||
return false; | |||||
} | |||||
/* 密码 */ | |||||
if (passwordVal == '') { | |||||
$('#password')[0].focus() | |||||
tools.initTips('请输入密码', 'right', $('#password')[0], 2000) | |||||
return false; | |||||
} else if (parseInt(passwordVal.length) < 6 || parseInt(passwordVal.length) > 18) { | |||||
$('#password')[0].focus() | |||||
tools.initTips('请输入正确格式密码', 'right', $('#password')[0], 2000) | |||||
return false; | |||||
} | |||||
/*图形验证码*/ | |||||
if (module.uuid == '' || codeVal == '') { | |||||
$('#code')[0].focus() | |||||
tools.initTips('请输入图形验证码', 'right', $('#code')[0], 2000) | |||||
return false; | |||||
} | |||||
return true; | |||||
} | |||||
//登录校验 | |||||
module.loginData = function (data) { | |||||
console.log(data) | |||||
if (data.code == 500) { | |||||
module.verificationCode() | |||||
} else { | |||||
tools.setCookie('Admin-Token', data.token, 24 * 60 * 60) | |||||
//用户资料 | |||||
tools.doGet(userData, {}, module.userData); | |||||
//tools.skip('/') | |||||
} | |||||
} | |||||
//个人中心用户信息 | |||||
module.userData = function(data){ | |||||
if (data.code == 200) { | |||||
var content = data.user; | |||||
console.log(content) | |||||
tools.setCookie('userId', content.userId, 24 * 60 * 60); | |||||
tools.doGet(userMember + '/' + content.userId, {}, module.userMember);//memberType 1个人 2单位 | |||||
} | |||||
} | |||||
//个人中心用户资料 | |||||
module.userMember = function(data){ | |||||
if (data.code == 200) { | |||||
var content = data.data; | |||||
console.log(data) | |||||
console.log(content.realname) | |||||
tools.setCookie('userName', content.realname, 24 * 60 * 60); | |||||
tools.setCookie('memberId', content.id, 24 * 60 * 60); | |||||
tools.setCookie('idCardNum',content.idCardNum,24 * 60 * 60) | |||||
tools.setCookie('phone',content.phone,24 * 60 * 60) | |||||
tools.setCookie('address',content.address,24 * 60 * 60) | |||||
tools.setCookie('bankAddress',content.bankAddress,24 * 60 * 60) | |||||
tools.setCookie('bankCardName',content.bankCardName,24 * 60 * 60) | |||||
tools.setCookie('bankCardNum',content.bankCardNum,24 * 60 * 60) | |||||
tools.skip('/') | |||||
} | |||||
} | |||||
return module; | |||||
}); |
@@ -1,78 +0,0 @@ | |||||
/** | |||||
* Created by Administrator on 2021/4/5. | |||||
*/ | |||||
define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, template, Tools, echarts, swiper) { | |||||
//数据存储 | |||||
var module = { | |||||
data: { | |||||
type:0 | |||||
}, | |||||
}; | |||||
var tools = new Tools(); | |||||
module.init = function (page) { | |||||
//背景高度 | |||||
module.register(); | |||||
module.data.type = getQueryVariable("type") | |||||
//网站配置信息(网站名称 底部联系方式 公安备案号 网站备案号) | |||||
tools.getWebConfig(); | |||||
setTimeout(function(){ | |||||
//主题图片切换 | |||||
module.switchTheme(); | |||||
},500) | |||||
}; | |||||
//主题图片切换 | |||||
module.switchTheme = function(){ | |||||
if(themeColor == 'red'){ | |||||
if (getQueryVariable('type')){ | |||||
document.getElementById('registerTit').src = '../../static/images/registerTit_red.png' | |||||
}else{ | |||||
document.getElementById('icon1').src = '../../static/images/register_icon2_red.png' | |||||
document.getElementById('icon2').src = '../../static/images/register_icon1_red.png' | |||||
} | |||||
}else if(themeColor == 'green'){ | |||||
if (getQueryVariable('type')){ | |||||
document.getElementById('registerTit').src = '../../static/images/registerTit.png' | |||||
}else{ | |||||
document.getElementById('icon2').src = '../../static/images/register_icon1.png' | |||||
document.getElementById('icon1').src = '../../static/images/register_icon2.png' | |||||
} | |||||
} | |||||
} | |||||
//底部友情链接 | |||||
module.bottomFriendsLinks = function (data) { | |||||
if (data.code == 200) { | |||||
var content = data.data; | |||||
//console.log(content) | |||||
module.data.friendsLinksList = content; | |||||
var friendsLinksData = template('friendsLinksData', module.data); | |||||
$("#friendsLinksContent").html(friendsLinksData); | |||||
} | |||||
} | |||||
//获取地址栏参数 | |||||
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.register = function(){ | |||||
document.getElementById('registerBody').style.height = (document.body.offsetHeight - 112) +'px'; | |||||
} | |||||
goAgree = function(){ | |||||
tools.skip('registerFrom.html?type='+module.data.type) | |||||
} | |||||
goRegister = function(){ | |||||
tools.skip('register.html') | |||||
} | |||||
return module; | |||||
}); |
@@ -1,247 +0,0 @@ | |||||
/** | |||||
* Created by Administrator on 2021/4/5. | |||||
*/ | |||||
define(['jquery', "template", "Tools", "echarts", 'register', 'swiper'], function ($, template, Tools, echarts, swiper) { | |||||
//数据存储 | |||||
var module = { | |||||
data: { | |||||
type: 1 | |||||
}, | |||||
}; | |||||
var tools = new Tools(); | |||||
module.init = function (page) { | |||||
//点击注册 | |||||
$('#register-submit').on('click', module.register) | |||||
//点击图形验证码 | |||||
$('#graphicImgBtn').on('click', module.verificationCode) | |||||
//图形验证码加载 | |||||
module.verificationCode() | |||||
//网站配置信息(网站名称 底部联系方式 公安备案号 网站备案号) | |||||
tools.getWebConfig(); | |||||
module.getType(); | |||||
tools.doGet(Dictionaries+'/economic_type', {}, module.economicTypeDictionaries,true); | |||||
}; | |||||
//底部友情链接 | |||||
module.bottomFriendsLinks = function (data) { | |||||
if (data.code == 200) { | |||||
var content = data.data; | |||||
console.log(content) | |||||
module.data.friendsLinksList = content; | |||||
var friendsLinksData = template('friendsLinksData', module.data); | |||||
$("#friendsLinksContent").html(friendsLinksData); | |||||
} | |||||
} | |||||
//获取地址栏参数 | |||||
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.economicTypeDictionaries = function (data) { | |||||
if (data.code == 200) { | |||||
var content = data.data; | |||||
console.log(content) | |||||
module.data.outProjectInformationDetail = content; | |||||
var outProjectInformationData = template('outProjectInformationData', module.data); | |||||
$("#economicType").html(outProjectInformationData); | |||||
} | |||||
} | |||||
module.getType = function(){ | |||||
var type = getQueryVariable("type"); | |||||
if (type == 1){ | |||||
document.getElementById("userBtn").className = "active"; | |||||
document.getElementById("companyBtn").className = ""; | |||||
tabCheck('user'); | |||||
module.data.type = type; | |||||
}else if(type == 2){ | |||||
document.getElementById("userBtn").className = ""; | |||||
document.getElementById("companyBtn").className = "active"; | |||||
tabCheck('company'); | |||||
module.data.type = type; | |||||
} | |||||
} | |||||
tabCheck = function(type,typeNum){ | |||||
document.getElementById("userBtn").className = ""; | |||||
document.getElementById("companyBtn").className = ""; | |||||
document.getElementById("userTable").style.display = "none"; | |||||
document.getElementById("companyTable").style.display = "none"; | |||||
module.data.type = typeNum; | |||||
document.getElementById(type+'Btn').className = 'active'; | |||||
document.getElementById(type+'Table').style.display = 'block'; | |||||
} | |||||
//图形验证码 | |||||
module.verificationCode = function () { | |||||
tools.doGet(captchaImage_get, {}, module.verificationAjax, true) | |||||
} | |||||
module.verificationAjax = function (data) { | |||||
if (data.code == 200) { | |||||
$('#graphicImg').attr('src', 'data:image/gif;base64,' + data.img) | |||||
module.uuid = data.uuid; | |||||
} | |||||
} | |||||
//用户注册 | |||||
module.register = function (data) { | |||||
var data = {}; | |||||
if(module.check()){ | |||||
if (module.data.type == 1){ | |||||
var phone = $('#phone').val(); | |||||
var passwordVal = $('#password').val(); | |||||
var codeVal = $('#code').val(); | |||||
var realName = $('#realName').val(); | |||||
var idCardNum = $('#idCardNum').val(); | |||||
var address = $('#address').val(); | |||||
var memberType = 1 ; | |||||
data['phone'] = phone; | |||||
data['password'] = passwordVal; | |||||
data['code'] = codeVal; | |||||
data['realname'] = realName; | |||||
data['idCardNum'] = idCardNum; | |||||
data['address'] = address; | |||||
data['economicType'] = 1; | |||||
} | |||||
if (module.data.type == 2){ | |||||
var phone = $('#phone').val(); | |||||
var passwordVal = $('#password').val(); | |||||
var codeVal = $('#code').val(); | |||||
var companyName = $('#companyName').val(); | |||||
var realName = $('#companyRealName').val(); | |||||
var idCardNum = $('#companyIdCardNum').val(); | |||||
var address = $('#companyAddress').val(); | |||||
var companyLicense = $('#companyLicense').val(); | |||||
var companyCode = $('#companyCode').val(); | |||||
var economicType = $('#economicType').val(); | |||||
data['phone'] = phone; | |||||
data['password'] = passwordVal; | |||||
data['code'] = codeVal; | |||||
data['realname'] = realName; | |||||
data['idCardNum'] = idCardNum; | |||||
data['address'] = address; | |||||
data['companyName'] = companyName; | |||||
data['companyLicense'] = companyLicense; | |||||
data['companyCode'] = companyCode; | |||||
data['economicType'] = economicType; | |||||
} | |||||
data['memberType'] = module.data.type; | |||||
tools.doPost(userRegister, data, module.registerData, true) | |||||
} | |||||
} | |||||
//注册校验 | |||||
module.registerData = function (data) { | |||||
console.log(data) | |||||
if (data.code == 500) { | |||||
module.verificationCode() | |||||
} | |||||
if (data.code == 200){ | |||||
tools.initError("注册成功"); | |||||
setTimeout(function(){ | |||||
tools.skip('login.html') | |||||
},2000) | |||||
} | |||||
} | |||||
//手动验证表单 | |||||
module.check = function () { | |||||
var phone = $('#phone').val(); | |||||
var passwordVal = $('#password').val(); | |||||
var codeVal = $('#code').val(); | |||||
var realName = $('#realName').val(); | |||||
var idCardNum = $('#idCardNum').val(); | |||||
var address = $('#address').val(); | |||||
var companyRealName = $('#companyRealName').val(); | |||||
var companyIdCardNum = $('#companyIdCardNum').val(); | |||||
var companyAddress = $('#companyAddress').val(); | |||||
/* 手机号 */ | |||||
if (phone == '') { | |||||
$('#phone')[0].focus() | |||||
tools.initTips('请输入手机号', 'right', $('#phone')[0], 2000) | |||||
return false; | |||||
} | |||||
if (module.data.type == 1) { | |||||
/* 姓名 */ | |||||
if (realName == '') { | |||||
$('#realName')[0].focus() | |||||
tools.initTips('请输入姓名', 'right', $('#realName')[0], 2000) | |||||
return false; | |||||
} | |||||
/* 身份证号 */ | |||||
if (idCardNum == '') { | |||||
$('#idCardNum')[0].focus() | |||||
tools.initTips('请输入身份证号', 'right', $('#idCardNum')[0], 2000) | |||||
return false; | |||||
} | |||||
/* 地址 */ | |||||
if (address == '') { | |||||
$('#address')[0].focus() | |||||
tools.initTips('请输入地址', 'right', $('#address')[0], 2000) | |||||
return false; | |||||
} | |||||
} | |||||
if (module.data.type == 2){ | |||||
/* 姓名 */ | |||||
if (companyRealName == '') { | |||||
$('#companyRealName')[0].focus() | |||||
tools.initTips('请输入姓名', 'right', $('#companyRealName')[0], 2000) | |||||
return false; | |||||
} | |||||
/* 身份证号 */ | |||||
if (companyIdCardNum == '') { | |||||
$('#companyIdCardNum')[0].focus() | |||||
tools.initTips('请输入身份证号', 'right', $('#companyIdCardNum')[0], 2000) | |||||
return false; | |||||
} | |||||
/* 地址 */ | |||||
if (companyAddress == '') { | |||||
$('#companyAddress')[0].focus() | |||||
tools.initTips('请输入地址', 'right', $('#companyAddress')[0], 2000) | |||||
return false; | |||||
} | |||||
} | |||||
/* 密码 */ | |||||
if (passwordVal == '') { | |||||
$('#password')[0].focus() | |||||
tools.initTips('请输入密码', 'right', $('#password')[0], 2000) | |||||
return false; | |||||
} else if (parseInt(passwordVal.length) < 6 || parseInt(passwordVal.length) > 18) { | |||||
$('#password')[0].focus() | |||||
tools.initTips('请输入正确格式密码', 'right', $('#password')[0], 2000) | |||||
return false; | |||||
}else if($('#password').val() != $('#passwordAgain').val()){ | |||||
$('#password')[0].focus() | |||||
tools.initTips('两次密码输入不一致', 'right', $('#password')[0], 2000) | |||||
return false; | |||||
} | |||||
/*图形验证码*/ | |||||
if (module.uuid == '' || codeVal == '') { | |||||
$('#code')[0].focus() | |||||
tools.initTips('请输入图形验证码', 'right', $('#code')[0], 2000) | |||||
return false; | |||||
} | |||||
console.log($('#iAgree:checked').val()) | |||||
if ($('#iAgree:checked').val() == undefined){ | |||||
tools.initTips('请选择我已同意', 'right', $('#iAgree')[0], 2000) | |||||
return false; | |||||
} | |||||
return true; | |||||
} | |||||
return module; | |||||
}); |
@@ -1,88 +0,0 @@ | |||||
/** | |||||
* Created by Administrator on 2021/4/5. | |||||
*/ | |||||
define(['jquery', "template", "Tools", "echarts", 'swiper', "paging"], function ($, template, Tools, echarts, swiper) { | |||||
//数据存储 | |||||
var module = { | |||||
data: { | |||||
//服务器地址 | |||||
serverApi:'', | |||||
//焦点图数据 | |||||
focusList: [], | |||||
newList: [], | |||||
//页码 | |||||
pageNum: 1, | |||||
//页码集合 | |||||
pageList: [], | |||||
//每页数量 | |||||
pageSize: 5, | |||||
//总页数 | |||||
pageCount:0 | |||||
}, | |||||
}; | |||||
var tools = new Tools(); | |||||
module.init = function (page) { | |||||
//新闻管理列表 | |||||
// tools.doGet(news + '/003//7', {}, module.focusNews , true); | |||||
var _height=$("body").height();//获取当前窗口的高度 | |||||
var boxHeight = _height-520; | |||||
module.data.pageSize = (boxHeight/40).toFixed(0); | |||||
console.log(module.data.pageSize) | |||||
$('#newContent').height(boxHeight); | |||||
tools.doGet(getTopDeptId, {}, module.getInformation , true); | |||||
}; | |||||
module.getInformation = function (data) { | |||||
console.log(data) | |||||
module.data.deptId = data.data; | |||||
tools.doGet(newsList, { | |||||
number: '003', | |||||
deptId: data.data, | |||||
pageNum: 1, | |||||
pageSize: module.data.pageSize, | |||||
}, module.newList , true); | |||||
} | |||||
//新闻列表 | |||||
module.newList = function (data) { | |||||
console.log(data) | |||||
if (data.code == 200) { | |||||
var pageCount = (data.total/module.data.pageSize).toFixed(0); | |||||
if (pageCount < 1){ | |||||
pageCount = 1; | |||||
} | |||||
if(module.data.newList == '') { | |||||
// 初始化 分页器 | |||||
var page_s1 = createPage('.page_s1'); | |||||
// 设置分页 | |||||
setPage(page_s1, { | |||||
pageTotal: data.total, // 数据总条数 | |||||
pageSize: module.data.pageSize, // 每页显示条数 | |||||
pageCurrent: 1, // 当前页 | |||||
maxBtnNum: 5, // 最多按钮个数 (最少5个) | |||||
}) | |||||
$('#page_s1').html('共' + pageCount + '页'); | |||||
} | |||||
var content = data.rows; | |||||
module.data.newList = content; | |||||
var newData = template('newData', module.data); | |||||
$("#newContent").html(newData); | |||||
} | |||||
} | |||||
goDetail = function(id){ | |||||
tools.skip('/agriculturalLawEnforcement/view/workDynamics/workDetail.html?id='+id); | |||||
} | |||||
turnThePage = function (pageNum) { | |||||
module.data.pageNum = pageNum ; | |||||
tools.doGet(newsList, { | |||||
number: '003', | |||||
deptId: module.data.deptId, | |||||
pageNum: pageNum, | |||||
pageSize: module.data.pageSize, | |||||
}, module.newList , true); | |||||
} | |||||
return module; | |||||
}); |
@@ -1,52 +0,0 @@ | |||||
/** | |||||
* Created by Administrator on 2021/4/5. | |||||
*/ | |||||
define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, template, Tools, echarts, swiper) { | |||||
//数据存储 | |||||
var module = { | |||||
data: { | |||||
//服务器地址 | |||||
serverApi:'', | |||||
//焦点图数据 | |||||
focusList: [], | |||||
communicateList: [], | |||||
}, | |||||
}; | |||||
var tools = new Tools(); | |||||
module.init = function (page) { | |||||
//新闻管理列表 | |||||
tools.doGet(news + '/' + getQueryVariable('id'), {}, module.newList , 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.newList = function (data) { | |||||
console.log(data) | |||||
if (data.code == 200) { | |||||
var content = data.data; | |||||
$("#newTitle").html(content.title); | |||||
$("#newTime").html('发布时间:'+content.newsTime); | |||||
$("#newCome").html('来源:'+content.createBy); | |||||
$("#newContent").html(content.content); | |||||
if (document.body.scrollHeight > document.body.offsetHeight){ | |||||
document.getElementById('bottomInformation').style.position = 'relative'; | |||||
} | |||||
} | |||||
} | |||||
goDetail = function(id){ | |||||
tools.skip('/agriculturalLawEnforcement/view/workDynamics/workDetail.html?id='+id); | |||||
} | |||||
return module; | |||||
}); |
@@ -59,34 +59,34 @@ | |||||
<div class="w-1200"> | <div class="w-1200"> | ||||
<p class="crumbs">首页 > 项目指南 > 项目申报</p> | <p class="crumbs">首页 > 项目指南 > 项目申报</p> | ||||
<div class="detail_box"> | <div class="detail_box"> | ||||
<p class="recommendTit"><i class="lvd"></i>填写经纪人申请信息<span style="float: right;font-size: 14px;line-height: 26px;">NO.102034 经纪人信息</span></p> | |||||
<p class="recommendTit"><i class="lvd"></i>填写项目申报信息<span style="float: right;font-size: 14px;line-height: 26px;">NO.102034 经纪人信息</span></p> | |||||
<div class="detail_box_comm"> | <div class="detail_box_comm"> | ||||
<table width="100%"> | <table width="100%"> | ||||
<tr> | <tr> | ||||
<td width="100">项目类别</td> | <td width="100">项目类别</td> | ||||
<td colspan="3"><input type="text"/></td> | |||||
<td colspan="3"><input type="text" placeholder="请输入项目类别" id="projectType"/></td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>项目名称</td> | <td>项目名称</td> | ||||
<td colspan="3"><input type="text"/></td> | |||||
<td colspan="3"><input type="text" placeholder="请输入项目名称" id="itemName"/></td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>申报日期</td> | <td>申报日期</td> | ||||
<td colspan="3"><input type="text"/></td> | |||||
<td colspan="3"><input type="text" placeholder="请输入申报日期" id="startTime"/></td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>项目地点</td> | <td>项目地点</td> | ||||
<td colspan="3"><input type="text"/></td> | |||||
<td colspan="3"><input type="text" placeholder="请输入项目地点" id="projectSite"/></td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>申请主体</td> | <td>申请主体</td> | ||||
<td colspan="3"><input type="text"/></td> | |||||
<td colspan="3"><input type="text" placeholder="请输入申请主体" id="subjectApply"/></td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>项目负责人</td> | <td>项目负责人</td> | ||||
<td><input type="text"/></td> | |||||
<td><input type="text" placeholder="请输入项目负责人" id="projectName"/></td> | |||||
<td align="center">联系电话</td> | <td align="center">联系电话</td> | ||||
<td><input type="text"/></td> | |||||
<td><input type="text" placeholder="请输入联系电话" id="phone"/></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<div class="clear"></div> | <div class="clear"></div> | ||||
@@ -96,29 +96,29 @@ | |||||
<table width="100%"> | <table width="100%"> | ||||
<tr> | <tr> | ||||
<td width="100">建设方式</td> | <td width="100">建设方式</td> | ||||
<td colspan="3"><input type="text"/></td> | |||||
<td colspan="3"><input type="text" placeholder="请输入建设方式" id="constructionWay"/></td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>建设内容</td> | <td>建设内容</td> | ||||
<td colspan="3"> | <td colspan="3"> | ||||
<textarea name="" cols="30" rows="10" style="width: 100%;border: 1px solid #cccccc;padding: 12px 10px;"></textarea> | |||||
<textarea placeholder="请输入建设内容" id="constructionContent" cols="30" rows="10" style="width: 100%;border: 1px solid #cccccc;padding: 12px 10px;"></textarea> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>项目总额</td> | <td>项目总额</td> | ||||
<td><input type="text"/></td> | |||||
<td><input type="text" placeholder="请输入项目总额" id="amountTotal"/></td> | |||||
<td align="center">财政补助</td> | <td align="center">财政补助</td> | ||||
<td><input type="text"/></td> | |||||
<td><input type="text" placeholder="请输入财政补助" id="policySubsidy"/></td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>自筹资金</td> | <td>自筹资金</td> | ||||
<td><input type="text"/></td> | |||||
<td><input type="text" placeholder="请输入自筹资金" id="raisedFunds"/></td> | |||||
<td align="center">已<i style="margin-right: 0.5rem;"></i>拨<i style="margin-right: 0.5rem;"></i>付</td> | <td align="center">已<i style="margin-right: 0.5rem;"></i>拨<i style="margin-right: 0.5rem;"></i>付</td> | ||||
<td><input type="text"/></td> | |||||
<td><input type="text" placeholder="请输入已拨付" id="pullPay"/></td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>项目状态</td> | <td>项目状态</td> | ||||
<td colspan="3"><input type="text"/></td> | |||||
<td colspan="3"><input type="text" placeholder="请输入项目状态" id="projectStatus"/></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<div class="clear"></div> | <div class="clear"></div> | ||||
@@ -128,18 +128,17 @@ | |||||
<table width="100%"> | <table width="100%"> | ||||
<tr> | <tr> | ||||
<td width="100">备注</td> | <td width="100">备注</td> | ||||
<td colspan="3"><input type="text"/></td> | |||||
<td colspan="3"><input type="text" placeholder="请输入备注" id="note"/></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<div class="clear"></div> | <div class="clear"></div> | ||||
</div> | </div> | ||||
<div class="submitBtn"> | <div class="submitBtn"> | ||||
<input type="button" value="保存" onclick="document.getElementById('failDialog').style.display = 'block'"/> | |||||
<input type="button" value="提交"/> | |||||
<input type="button" value="保存" onclick="goPreservation()"/> | |||||
<input type="button" value="提交" onclick="goSubmit()"/> | |||||
<div class="clear"></div> | <div class="clear"></div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="failDialog" id="failDialog"> | <div class="failDialog" id="failDialog"> | ||||
<p class="failTit">提示<span onclick="document.getElementById('failDialog').style.display = 'none'">×</span></p> | <p class="failTit">提示<span onclick="document.getElementById('failDialog').style.display = 'none'">×</span></p> | ||||
@@ -178,7 +177,7 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</body> | </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/index.js" defer type="text/javascript"></script>--> | |||||
<script src="../../static/js/common/require.js" data-main="../../static/js/common/main.js?t=101" id="require-page" | |||||
target-module="../../static/js/project/directories/declare.js" defer type="text/javascript"></script> | |||||
</html> | </html> |
@@ -12,6 +12,7 @@ | |||||
<link href="../../static/css/main.css" rel="stylesheet" type="text/css" /> | <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/index.css" rel="stylesheet" type="text/css" /> | ||||
<link href="../../static/css/supply.css" rel="stylesheet" type="text/css" /> | <link href="../../static/css/supply.css" rel="stylesheet" type="text/css" /> | ||||
<link href="../../static/css/LeftNav.css" rel="stylesheet" type="text/css" /> | |||||
<style> | <style> | ||||
.projectList { | .projectList { | ||||
background: #FFFFFF; | background: #FFFFFF; | ||||
@@ -40,6 +41,14 @@ | |||||
.projectList ul li span{ | .projectList ul li span{ | ||||
color: #666666; | color: #666666; | ||||
} | } | ||||
.supplyType_left ul li{ | |||||
float: none; | |||||
border: none; | |||||
margin: 0; | |||||
} | |||||
.supplyType_left ul{ | |||||
margin: 0; | |||||
} | |||||
</style> | </style> | ||||
</head> | </head> | ||||
@@ -76,14 +85,14 @@ | |||||
<div class="w-1200"> | <div class="w-1200"> | ||||
<p class="crumbs">首页 > 项目指南</p> | <p class="crumbs">首页 > 项目指南</p> | ||||
<div class="supplyType_left fl"> | <div class="supplyType_left fl"> | ||||
<p class="recommendTit"><i class="lvd"></i>供应类别</p> | |||||
<p class="recommendTit"><i class="lvd"></i>项目类别</p> | |||||
<div class="left"></div> | |||||
</div> | </div> | ||||
<div class="fr" style="width: 895px"> | <div class="fr" style="width: 895px"> | ||||
<div class="searchBox"> | <div class="searchBox"> | ||||
<p class="recommendTit"><i class="lvd"></i>查询</p> | <p class="recommendTit"><i class="lvd"></i>查询</p> | ||||
<div class="l-h-30 m-t-10"> | <div class="l-h-30 m-t-10"> | ||||
<input type="text" placeholder="请输入关键词搜索" class="fl searchOne" /> | |||||
<input type="text" placeholder="请输入关键词搜索" class="fl searchOne" id="searchInput" /> | |||||
<div class="fr"> | <div class="fr"> | ||||
<p class="fl color-666 m-r-5">地区</p> | <p class="fl color-666 m-r-5">地区</p> | ||||
<select class="fl m-r-20"> | <select class="fl m-r-20"> | ||||
@@ -98,7 +107,7 @@ | |||||
<option>张村镇</option> | <option>张村镇</option> | ||||
<option>张村镇</option> | <option>张村镇</option> | ||||
</select> | </select> | ||||
<p class="fl searchBtn">查询</p> | |||||
<p class="fl searchBtn" onclick="goSearch()">查询</p> | |||||
<div class="clear"></div> | <div class="clear"></div> | ||||
</div> | </div> | ||||
<div class="clear"></div> | <div class="clear"></div> | ||||
@@ -113,37 +122,23 @@ | |||||
<a href="declare.html" class="fr searchBtn l-h-30" style="margin-top: 12px;color: #FFF;">项目申报</a> | <a href="declare.html" class="fr searchBtn l-h-30" style="margin-top: 12px;color: #FFF;">项目申报</a> | ||||
<div class="clear"></div> | <div class="clear"></div> | ||||
</div> | </div> | ||||
<ul class="m-t-25"> | |||||
<li> | |||||
<a href="detail.html"> | |||||
<table width="100%"> | |||||
<tr> | |||||
<td width="70%">申报指南标题指南标题指南标题指南标题</td> | |||||
<td align="center"><p>项目类别</p></td> | |||||
<td align="right"><span>2021-7-14</span></td> | |||||
</tr> | |||||
</table> | |||||
</a> | |||||
</li> | |||||
<li> | |||||
<table width="100%"> | |||||
<tr> | |||||
<td width="70%">申报指南标题指南标题指南标题指南标题</td> | |||||
<td align="center"><p>项目类别</p></td> | |||||
<td align="right"><span>2021-7-14</span></td> | |||||
</tr> | |||||
</table> | |||||
</li> | |||||
<li> | |||||
<table width="100%"> | |||||
<tr> | |||||
<td width="70%">申报指南标题指南标题指南标题指南标题</td> | |||||
<td align="center"><p>项目类别</p></td> | |||||
<td align="right"><span>2021-7-14</span></td> | |||||
</tr> | |||||
</table> | |||||
</li> | |||||
</ul> | |||||
<script id="directoriesData" type="text/html"> | |||||
{{each directoriesList as value i}} | |||||
<li> | |||||
<a href="detail.html"> | |||||
<table width="100%"> | |||||
<tr> | |||||
<td width="70%">{{value.projectTitle}}</td> | |||||
<td width="17%" align="center"><p>{{value.projectType}}</p></td> | |||||
<td align="right"><span>{{value.startTime}}</span></td> | |||||
</tr> | |||||
</table> | |||||
</a> | |||||
</li> | |||||
{{/each}} | |||||
<div class="clear"></div> | |||||
</script> | |||||
<ul class="m-t-25" id="directoriesContent"></ul> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="clear"></div> | <div class="clear"></div> | ||||
@@ -154,7 +149,7 @@ | |||||
<div class="bottomLink"> | <div class="bottomLink"> | ||||
<div class="w-1200"> | <div class="w-1200"> | ||||
<div class="w-1000 fl"> | <div class="w-1000 fl"> | ||||
<p class="bottomLink-tit"><img src="../static/images/newBusinessEntities/icon_link.png" alt=""/>友情链接</p> | |||||
<p class="bottomLink-tit"><img src="../../static/images/icon_link.png" alt=""/>友情链接</p> | |||||
<div class="bottomLink-linkList"> | <div class="bottomLink-linkList"> | ||||
<a href="javascript:void(0);" target="_blank">农燊高科新型经营主体网站</a> | <a href="javascript:void(0);" target="_blank">农燊高科新型经营主体网站</a> | ||||
<a href="javascript:void(0);" target="_blank">农燊高科新型经营主体网站</a> | <a href="javascript:void(0);" target="_blank">农燊高科新型经营主体网站</a> | ||||
@@ -179,7 +174,7 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</body> | </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/index.js" defer type="text/javascript"></script>--> | |||||
<script src="../../static/js/common/require.js" data-main="../../static/js/common/main.js?t=101" id="require-page" | |||||
target-module="../../static/js/project/directories/index.js" defer type="text/javascript"></script> | |||||
</html> | </html> |
@@ -12,6 +12,24 @@ | |||||
<link href="../../static/css/main.css" rel="stylesheet" type="text/css" /> | <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/index.css" rel="stylesheet" type="text/css" /> | ||||
<link href="../../static/css/supply.css" rel="stylesheet" type="text/css" /> | <link href="../../static/css/supply.css" rel="stylesheet" type="text/css" /> | ||||
<link href="../../static/css/LeftNav.css" rel="stylesheet" type="text/css" /> | |||||
<style> | |||||
.supplyType_left ul li{ | |||||
float: none; | |||||
border: none; | |||||
margin: 0; | |||||
} | |||||
.supplyType_left ul{ | |||||
margin: 0; | |||||
} | |||||
.directoriesList ul li{ | |||||
height: 155px; | |||||
padding-right: 10px; | |||||
} | |||||
.watchBtn{ | |||||
right: 10px; | |||||
} | |||||
</style> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
@@ -45,137 +63,232 @@ | |||||
</div> | </div> | ||||
<div class="partition"></div> | <div class="partition"></div> | ||||
<div class="w-1200"> | <div class="w-1200"> | ||||
<p class="crumbs">首页 > 供应链</p> | |||||
<p class="crumbs">首页 > 资源库</p> | |||||
<ul class="tab"> | <ul class="tab"> | ||||
<li class="active">专家库</li> | |||||
<li>文章库</li> | |||||
<li>视频库</li> | |||||
<li class="active" id="expertTit" onclick="switchTab('expert')">专家库</li> | |||||
<li id="articleTit" onclick="switchTab('article')">文章库</li> | |||||
<li id="videoTit" onclick="switchTab('video')">视频库</li> | |||||
<div class="clear"></div> | <div class="clear"></div> | ||||
</ul> | </ul> | ||||
<div class="supplyType_left fl m-t-15"> | <div class="supplyType_left fl m-t-15"> | ||||
<p class="recommendTit"><i class="lvd"></i>知识分类</p> | <p class="recommendTit"><i class="lvd"></i>知识分类</p> | ||||
<dl> | |||||
<dd class="active">合作社</dd> | |||||
<dd>龙头企业</dd> | |||||
<dd>家庭农场</dd> | |||||
<dd>种养大户</dd> | |||||
<dd>现代化庄园</dd> | |||||
</dl> | |||||
<div class="left"></div> | |||||
</div> | </div> | ||||
<div class="fr m-t-15" style="width: 895px"> | |||||
<div class="searchBox"> | |||||
<p class="recommendTit"><i class="lvd"></i>专家库</p> | |||||
<div class="l-h-30 m-t-10"> | |||||
<input type="text" placeholder="请输入关键词搜索" class="fl searchOne" /> | |||||
<div class="fr"> | |||||
<p class="fl color-666 m-r-5">地区</p> | |||||
<select class="fl m-r-20"> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
</select> | |||||
<select class="fl m-r-20"> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
</select> | |||||
<p class="fl searchBtn">查询</p> | |||||
<div class="fr"> | |||||
<div class="m-t-15" id="expert" style="width: 895px;display: block;"> | |||||
<div class="searchBox"> | |||||
<p class="recommendTit"><i class="lvd"></i>专家库</p> | |||||
<div class="l-h-30 m-t-10"> | |||||
<input type="text" placeholder="请输入专家姓名搜索" id="searchInput" class="fl searchOne" /> | |||||
<div class="fr"> | |||||
<p class="fl color-666 m-r-5">地区</p> | |||||
<select class="fl m-r-20"> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
</select> | |||||
<select class="fl m-r-20"> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
</select> | |||||
<p class="fl searchBtn" onclick="goSearch('expert')">查询</p> | |||||
<div class="clear"></div> | |||||
</div> | |||||
<div class="clear"></div> | <div class="clear"></div> | ||||
</div> | </div> | ||||
<div class="clear"></div> | |||||
</div> | |||||
<div class="directoriesList m-t-15"> | |||||
<div class="titBox"> | |||||
<div class="fl"> | |||||
<p class="font36 newBox_list_titBg">LIST</p> | |||||
<p class="newBox_list_tit">专家列表</p> | |||||
</div> | |||||
<div class="clear"></div> | |||||
</div> | |||||
<script id="directoriesData" type="text/html"> | |||||
{{each directoriesList as value i}} | |||||
<li onclick="window.location='detail.html'"> | |||||
{{if value.expertsImage.indexOf(null)>0}} | |||||
<img src="../../static/images/img7.jpg" class="fl" width="35%" alt=""/> | |||||
{{else}} | |||||
<img src="{{value.expertsImage}}" class="fl" width="35%" height="100%" alt=""/> | |||||
{{/if}} | |||||
<table class="fr" width="63%"> | |||||
<tr> | |||||
<td colspan="2" class="font16 color-333">{{value.name}}<i class="bq fr">{{value.field}}专家</i></td> | |||||
</tr> | |||||
<tr> | |||||
<td width="70">行业</td> | |||||
<td>{{value.industry}}</td> | |||||
</tr> | |||||
<tr> | |||||
<td>个人描述</td> | |||||
<td>{{value.describe}}</td> | |||||
</tr> | |||||
<tr> | |||||
<td>学历</td> | |||||
<td>{{value.record}}</td> | |||||
</tr> | |||||
<tr> | |||||
<td>培训次数</td> | |||||
<td>{{value.training}}</td> | |||||
</tr> | |||||
</table> | |||||
<div class="clear"></div> | |||||
<a href="detail.html" class="watchBtn">查看</a> | |||||
</li> | |||||
{{/each}} | |||||
<div class="clear"></div> | |||||
</script> | |||||
<ul id="directoriesContent"></ul> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="directoriesList m-t-15"> | |||||
<div class="titBox"> | |||||
<div class="fl"> | |||||
<p class="font36 newBox_list_titBg">LIST</p> | |||||
<p class="newBox_list_tit">专家列表</p> | |||||
<div class="m-t-15" id="article" style="width: 895px;display: none;"> | |||||
<div class="searchBox"> | |||||
<p class="recommendTit"><i class="lvd"></i>文章库</p> | |||||
<div class="l-h-30 m-t-10"> | |||||
<input type="text" placeholder="请输入文章标题搜索" id="articleSearchInput" class="fl searchOne" /> | |||||
<div class="fr"> | |||||
<p class="fl color-666 m-r-5">地区</p> | |||||
<select class="fl m-r-20"> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
</select> | |||||
<select class="fl m-r-20"> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
</select> | |||||
<p class="fl searchBtn" onclick="goSearch('article')">查询</p> | |||||
<div class="clear"></div> | |||||
</div> | |||||
<div class="clear"></div> | |||||
</div> | |||||
</div> | |||||
<div class="directoriesList m-t-15"> | |||||
<div class="titBox"> | |||||
<div class="fl"> | |||||
<p class="font36 newBox_list_titBg">LIST</p> | |||||
<p class="newBox_list_tit">文章列表</p> | |||||
</div> | |||||
<div class="clear"></div> | |||||
</div> | </div> | ||||
<div class="clear"></div> | |||||
<script id="articleData" type="text/html"> | |||||
{{each articleList as value i}} | |||||
<li onclick="window.location='detail.html'"> | |||||
{{if value.cover.indexOf(null)>0}} | |||||
<img src="../../static/images/img7.jpg" class="fl" width="35%" alt=""/> | |||||
{{else}} | |||||
<img src="{{value.cover}}" class="fl" width="35%" height="100%" alt=""/> | |||||
{{/if}} | |||||
<table class="fr" width="63%"> | |||||
<tr> | |||||
<!-- <i class="bq fr">{{value.knowledgeClassification}}</i>--> | |||||
<td colspan="2" class="font16 color-333">{{value.headline}}</td> | |||||
</tr> | |||||
<tr> | |||||
<td width="70">知识类型</td> | |||||
<td>{{value.knowledgeType}}</td> | |||||
</tr> | |||||
<tr> | |||||
<td>发布者</td> | |||||
<td>{{value.createBy}}</td> | |||||
</tr> | |||||
<tr> | |||||
<td>发布时间</td> | |||||
<td>{{value.publishTime}}</td> | |||||
</tr> | |||||
<tr> | |||||
<td>浏览量</td> | |||||
<td>{{value.pageView}}</td> | |||||
</tr> | |||||
</table> | |||||
<div class="clear"></div> | |||||
<a href="detail.html" class="watchBtn">查看</a> | |||||
</li> | |||||
{{/each}} | |||||
<div class="clear"></div> | |||||
</script> | |||||
<ul id="articleContent"></ul> | |||||
</div> | </div> | ||||
<ul> | |||||
<li onclick="window.location='detail.html'"> | |||||
<img src="../../static/images/img7.jpg" class="fl" width="35%" alt=""/> | |||||
<table class="fr" width="63%"> | |||||
<tr> | |||||
<td colspan="2" class="font16 color-333">张德林<i class="bq">水稻种子培育专家</i></td> | |||||
</tr> | |||||
<tr> | |||||
<td width="70">主营业务</td> | |||||
<td>蔬菜种植</td> | |||||
</tr> | |||||
<tr> | |||||
<td>地址</td> | |||||
<td>山东省威海市环翠区张村镇刘家村沈阳路91号</td> | |||||
</tr> | |||||
<tr> | |||||
<td>荣誉称号</td> | |||||
<td>种子培育专家</td> | |||||
</tr> | |||||
<tr> | |||||
<td>联系电话</td> | |||||
<td>15314031621</td> | |||||
</tr> | |||||
</table> | |||||
</div> | |||||
<div class="m-t-15" id="video" style="width: 895px;display: none;"> | |||||
<div class="searchBox"> | |||||
<p class="recommendTit"><i class="lvd"></i>视频库</p> | |||||
<div class="l-h-30 m-t-10"> | |||||
<input type="text" placeholder="请输入视频标题搜索" id="videoSearchInput" class="fl searchOne" /> | |||||
<div class="fr"> | |||||
<p class="fl color-666 m-r-5">地区</p> | |||||
<select class="fl m-r-20"> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
</select> | |||||
<select class="fl m-r-20"> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
</select> | |||||
<p class="fl searchBtn" onclick="goSearch('video')">查询</p> | |||||
<div class="clear"></div> | |||||
</div> | |||||
<div class="clear"></div> | <div class="clear"></div> | ||||
<a href="detail.html" class="watchBtn">查看</a> | |||||
</li> | |||||
<li onclick="window.location='detail.html'"> | |||||
<img src="../../static/images/img7.jpg" class="fl" width="35%" alt=""/> | |||||
<table class="fr" width="63%"> | |||||
<tr> | |||||
<td colspan="2" class="font16 color-333">张德林<i class="bq">水稻种子培育专家</i></td> | |||||
</tr> | |||||
<tr> | |||||
<td width="70">主营业务</td> | |||||
<td>蔬菜种植</td> | |||||
</tr> | |||||
<tr> | |||||
<td>地址</td> | |||||
<td>山东省威海市环翠区张村镇刘家村沈阳路91号</td> | |||||
</tr> | |||||
<tr> | |||||
<td>荣誉称号</td> | |||||
<td>种子培育专家</td> | |||||
</tr> | |||||
<tr> | |||||
<td>联系电话</td> | |||||
<td>15314031621</td> | |||||
</tr> | |||||
</table> | |||||
</div> | |||||
</div> | |||||
<div class="directoriesList m-t-15"> | |||||
<div class="titBox"> | |||||
<div class="fl"> | |||||
<p class="font36 newBox_list_titBg">LIST</p> | |||||
<p class="newBox_list_tit">视频列表</p> | |||||
</div> | |||||
<div class="clear"></div> | <div class="clear"></div> | ||||
<a href="detail.html" class="watchBtn">查看</a> | |||||
</li> | |||||
<li onclick="window.location='detail.html'"> | |||||
<img src="../../static/images/img7.jpg" class="fl" width="35%" alt=""/> | |||||
<table class="fr" width="63%"> | |||||
<tr> | |||||
<td colspan="2" class="font16 color-333">张德林<i class="bq">水稻种子培育专家</i></td> | |||||
</tr> | |||||
<tr> | |||||
<td width="70">主营业务</td> | |||||
<td>蔬菜种植</td> | |||||
</tr> | |||||
<tr> | |||||
<td>地址</td> | |||||
<td>山东省威海市环翠区张村镇刘家村沈阳路91号</td> | |||||
</tr> | |||||
<tr> | |||||
<td>荣誉称号</td> | |||||
<td>种子培育专家</td> | |||||
</tr> | |||||
<tr> | |||||
<td>联系电话</td> | |||||
<td>15314031621</td> | |||||
</tr> | |||||
</table> | |||||
</div> | |||||
<script id="videoData" type="text/html"> | |||||
{{each videoList as value i}} | |||||
<li onclick="window.location='detail.html'"> | |||||
{{if value.cover.indexOf(null)>0}} | |||||
<img src="../../static/images/img7.jpg" class="fl" width="35%" alt=""/> | |||||
{{else}} | |||||
<img src="{{value.cover}}" class="fl" width="35%" height="100%" alt=""/> | |||||
{{/if}} | |||||
<table class="fr" width="63%"> | |||||
<tr> | |||||
<!-- <i class="bq fr">{{value.knowledgeClassification}}</i>--> | |||||
<td colspan="2" class="font16 color-333">{{value.headline}}</td> | |||||
</tr> | |||||
<tr> | |||||
<td width="70">视频类型</td> | |||||
<td>{{value.knowledgeType}}</td> | |||||
</tr> | |||||
<tr> | |||||
<td>发布者</td> | |||||
<td>{{value.createBy}}</td> | |||||
</tr> | |||||
<tr> | |||||
<td>发布时间</td> | |||||
<td>{{value.publishTime}}</td> | |||||
</tr> | |||||
<tr> | |||||
<td>浏览量</td> | |||||
<td>{{value.pageView}}</td> | |||||
</tr> | |||||
</table> | |||||
<div class="clear"></div> | |||||
<a href="detail.html" class="watchBtn">查看</a> | |||||
</li> | |||||
{{/each}} | |||||
<div class="clear"></div> | <div class="clear"></div> | ||||
<a href="detail.html" class="watchBtn">查看</a> | |||||
</li> | |||||
<div class="clear"></div> | |||||
</ul> | |||||
</script> | |||||
<ul id="videoContent"></ul> | |||||
</div> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="clear"></div> | <div class="clear"></div> | ||||
@@ -211,7 +324,7 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</body> | </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/index.js" defer type="text/javascript"></script>--> | |||||
<script src="../../static/js/common/require.js" data-main="../../static/js/common/main.js?t=101" id="require-page" | |||||
target-module="../../static/js/project/resources/index.js" defer type="text/javascript"></script> | |||||
</html> | </html> |
@@ -12,6 +12,99 @@ | |||||
<link href="../../static/css/main.css" rel="stylesheet" type="text/css" /> | <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/index.css" rel="stylesheet" type="text/css" /> | ||||
<link href="../../static/css/supply.css" rel="stylesheet" type="text/css" /> | <link href="../../static/css/supply.css" rel="stylesheet" type="text/css" /> | ||||
<link href="../../static/css/swiper-bundle.min.css" rel="stylesheet" type="text/css"/> | |||||
<style type="text/css"> | |||||
.swiperDiv{ | |||||
border: 1px solid #eaeaea; | |||||
margin-top: 20px; | |||||
} | |||||
.pc-slide { | |||||
width: 37%; | |||||
margin: 0 auto; | |||||
} | |||||
.view .swiper-container { | |||||
width: 100%; | |||||
height: 350px; | |||||
} | |||||
.view .arrow-left { | |||||
background: url(../../static/images/feel3.png) no-repeat left top; | |||||
position: absolute; | |||||
left: 10px; | |||||
top: 50%; | |||||
margin-top: -25px; | |||||
width: 30px; | |||||
height: 30px; | |||||
z-index: 10; | |||||
background-size: 100%; | |||||
} | |||||
.view .arrow-right { | |||||
background: url(../../static/images/feel4.png) no-repeat left bottom; | |||||
position: absolute; | |||||
right: 10px; | |||||
top: 50%; | |||||
margin-top: -25px; | |||||
width: 30px; | |||||
height: 30px; | |||||
z-index: 10; | |||||
background-size: 100%; | |||||
} | |||||
.preview { | |||||
width: 100%; | |||||
margin-top: 10px; | |||||
position: relative; | |||||
} | |||||
.preview .swiper-container { | |||||
width: calc(100% - 70px); | |||||
height: 82px; | |||||
margin-left: 35px; | |||||
} | |||||
.preview .swiper-slide { | |||||
width: 87px; | |||||
height: 82px; | |||||
} | |||||
.preview .slide6 { | |||||
width: 82px; | |||||
} | |||||
.preview .arrow-left { | |||||
background: url(../../static/images/feel6.png) no-repeat left top; | |||||
position: absolute; | |||||
left: 10px; | |||||
top: 50%; | |||||
margin-top: -9px; | |||||
width: 9px; | |||||
height: 18px; | |||||
z-index: 10; | |||||
} | |||||
.preview .arrow-right { | |||||
background: url(../../static/images/feel5.png) no-repeat left bottom; | |||||
position: absolute; | |||||
right: 10px; | |||||
top: 50%; | |||||
margin-top: -9px; | |||||
width: 9px; | |||||
height: 18px; | |||||
z-index: 10; | |||||
} | |||||
.preview img { | |||||
padding: 1px; | |||||
} | |||||
.preview .active-nav img { | |||||
padding: 0; | |||||
border: 1px solid #F00; | |||||
} | |||||
</style> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
@@ -46,51 +139,87 @@ | |||||
<div class="partition"></div> | <div class="partition"></div> | ||||
<div class="w-1200"> | <div class="w-1200"> | ||||
<p class="crumbs">首页 > 农技服务 > 农技培训 > 活动详情</p> | <p class="crumbs">首页 > 农技服务 > 农技培训 > 活动详情</p> | ||||
<div class="detail_box" > | |||||
<p class="recommendTit"><i class="lvd"></i>三季度蔬菜种植专家农技专家培训活动<span style="float: right;font-size: 14px;line-height: 26px;">NO.102034 培训活动</span></p> | |||||
<script id="technologyData" type="text/html"> | |||||
<p class="recommendTit"><i class="lvd"></i>{{technologyDetail.trainingName}}<span style="float: right;font-size: 14px;line-height: 26px;">NO.{{technologyDetail.periods}} 培训活动</span></p> | |||||
<div class="detail_box_comm"> | <div class="detail_box_comm"> | ||||
<img src="../../static/images/img5.jpg" alt="" width="32%" class="fl"/> | |||||
<table class="fr" width="63%"> | |||||
<div class="pc-slide fl"> | |||||
<div class="view"> | |||||
<div class="swiper-container"> | |||||
<a class="arrow-left" href="#"></a> | |||||
<a class="arrow-right" href="#"></a> | |||||
<div class="swiper-wrapper"> | |||||
{{each technologyDetail.masterMap as value i}} | |||||
{{if technologyDetail.masterMap == ''}} | |||||
<div class="swiper-slide"> | |||||
<a href="javascript:void(0);" ><img src="../../static/images/zwtp.jpg" alt=""></a> | |||||
</div> | |||||
{{else}} | |||||
<div class="swiper-slide"> | |||||
<a href="javascript:void(0);" ><img src="{{value}}" alt=""></a> | |||||
</div> | |||||
{{/if}} | |||||
{{/each}} | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="preview"> | |||||
<a class="arrow-left" href="#"></a> | |||||
<a class="arrow-right" href="#"></a> | |||||
<div class="swiper-container"> | |||||
<div class="swiper-wrapper"> | |||||
{{each technologyDetail.masterMap as value i}} | |||||
{{if technologyDetail.masterMap == ''}} | |||||
<div class="swiper-slide active-nav"> | |||||
<img src="../../static/images/zwtp.jpg" alt=""> | |||||
</div> | |||||
{{else}} | |||||
<div class="swiper-slide {{i==0?'active-nav':''}}"> | |||||
<img src="{{value}}" alt=""> | |||||
</div> | |||||
{{/if}} | |||||
{{/each}} | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<table class="fr" width="60%"> | |||||
<tr> | <tr> | ||||
<td>培训名称</td> | <td>培训名称</td> | ||||
<td colspan="3">三季度蔬菜种植专家农技专家培训活动<i class="bq">农技专题</i></td> | |||||
<td colspan="3">{{technologyDetail.trainingName}}<i class="bq">{{technologyDetail.trainingType}}</i></td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>培训地址</td> | <td>培训地址</td> | ||||
<td colspan="3">山东省威海市环翠区张村镇刘家村</td> | |||||
<td colspan="3">{{technologyDetail.trainingSite}}</td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>培训类别</td> | <td>培训类别</td> | ||||
<td colspan="3">种植农技</td> | |||||
<td colspan="3">{{technologyDetail.trainingType}}</td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>主讲专家</td> | <td>主讲专家</td> | ||||
<td>刘永超</td> | |||||
<td>{{technologyDetail.keynoteSpeaker}}</td> | |||||
<td>最大人数</td> | <td>最大人数</td> | ||||
<td>50人</td> | |||||
<td>{{technologyDetail.planNumber}}人</td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>联系人</td> | <td>联系人</td> | ||||
<td>王先生</td> | |||||
<td>{{technologyDetail.keynoteSpeaker}}</td> | |||||
<td>已报名人数</td> | <td>已报名人数</td> | ||||
<td>37人</td> | |||||
<td>{{technologyDetail.attendance}}人</td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>培训时间</td> | <td>培训时间</td> | ||||
<td>2020-7-14</td> | |||||
<td>{{technologyDetail.startTime}}</td> | |||||
<td>联系电话</td> | <td>联系电话</td> | ||||
<td>15314031621</td> | |||||
<td>{{technologyDetail.tal}}</td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<div class="clear"></div> | <div class="clear"></div> | ||||
</div> | </div> | ||||
<div class="detail_box_imgList m-t-30"> | <div class="detail_box_imgList m-t-30"> | ||||
<p class="recommendTit"><i class="lvd"></i>详情描述</p> | <p class="recommendTit"><i class="lvd"></i>详情描述</p> | ||||
<div class="m-t-25"> | |||||
<p>大量应急蔬菜供应销售。白菜、莴苣、黄瓜、辣椒、芹菜、线茄、等,批发市场供应。</p> | |||||
<img src="../../static/images/img6.jpg" alt=""/> | |||||
<p>欢迎咨询够买。</p> | |||||
</div> | |||||
<div class="m-t-25" id="detailBox"></div> | |||||
</div> | </div> | ||||
<p class="recommendTit"><i class="lvd"></i>报名人员信息</p> | <p class="recommendTit"><i class="lvd"></i>报名人员信息</p> | ||||
<div class="detail_box_table"> | <div class="detail_box_table"> | ||||
@@ -102,40 +231,45 @@ | |||||
<li>操作</li> | <li>操作</li> | ||||
<div class="clear"></div> | <div class="clear"></div> | ||||
</ul> | </ul> | ||||
<ul> | |||||
<li>张三</li> | |||||
<li>15314031621</li> | |||||
<li>男</li> | |||||
<li><span class="fail" onclick="document.getElementById('failDialog').style.display = 'block'">未通过</span></li> | |||||
<li><p class="delete">-</p></li> | |||||
<div class="clear"></div> | |||||
</ul> | |||||
<ul> | |||||
<li>张三</li> | |||||
<li>15314031621</li> | |||||
<li>男</li> | |||||
<li>已通过</li> | |||||
<li><p class="delete">-</p></li> | |||||
<div class="clear"></div> | |||||
</ul> | |||||
<ul> | |||||
<li>张三</li> | |||||
<li>15314031621</li> | |||||
<li>男</li> | |||||
<li>已通过</li> | |||||
<li><p class="delete">-</p></li> | |||||
<div class="clear"></div> | |||||
</ul> | |||||
<ul> | |||||
<li><input type="text" placeholder="请输入姓名"/></li> | |||||
<li><input type="text" placeholder="请输入电话"/></li> | |||||
<li><input type="text" placeholder="请输入性别"/></li> | |||||
<li></li> | |||||
<li><p class="add">+</p></li> | |||||
<div class="clear"></div> | |||||
</ul> | |||||
{{each technologyDetail.tEntityTrainStudentsList as value i}} | |||||
<ul> | |||||
<li>{{value.name}}</li> | |||||
<li>{{value.phone}}</li> | |||||
<li>{{value.sex == 0 ? '男' : '女'}}</li> | |||||
{{if value.applyState.indexOf("未通过")!=-1}} | |||||
<li><span class="fail" onclick="document.getElementById('failDialog').style.display = 'block'">{{value.applyState}}</span></li> | |||||
{{else}} | |||||
<li>{{value.applyState}}</li> | |||||
{{/if}} | |||||
<li> | |||||
<img src="../../static/images/delete.png" onclick="goDelete({{i}})"/> | |||||
<!-- <p class="delete" onclick="goDelete({{i}})">-</p>--> | |||||
</li> | |||||
<div class="clear"></div> | |||||
</ul> | |||||
{{/each}} | |||||
{{each trainStudentsList as value i}} | |||||
<ul> | |||||
<li><input type="text" placeholder="请输入姓名" id="name{{i}}" oninput="inputNameChange({{i}})"/></li> | |||||
<li><input type="text" placeholder="请输入电话" id="phone{{i}}" oninput="inputPhoneChange({{i}})"/></li> | |||||
<li><input type="text" placeholder="请输入性别" id="sex{{i}}" oninput="inputSexChange({{i}})"/></li> | |||||
<li></li> | |||||
{{if i==(trainStudentsList.length-1)}} | |||||
<li> | |||||
<img src="../../static/images/add.png" onclick="goAdd()"/> | |||||
<img src="../../static/images/submit.png" onclick="goSubmit({{i}})" /> | |||||
</li> | |||||
{{else}} | |||||
<li> | |||||
<img src="../../static/images/delete.png" onclick="goStudentsDelete({{i}})"/> | |||||
</li> | |||||
{{/if}} | |||||
<div class="clear"></div> | |||||
</ul> | |||||
{{/each}} | |||||
</div> | </div> | ||||
</div> | |||||
</script> | |||||
<div class="detail_box" id="technologyContent"></div> | |||||
</div> | </div> | ||||
<div class="failDialog" id="failDialog"> | <div class="failDialog" id="failDialog"> | ||||
<p class="failTit">提示<span onclick="document.getElementById('failDialog').style.display = 'none'">×</span></p> | <p class="failTit">提示<span onclick="document.getElementById('failDialog').style.display = 'none'">×</span></p> | ||||
@@ -174,7 +308,7 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</body> | </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/index.js" defer type="text/javascript"></script>--> | |||||
<script src="../../static/js/common/require.js" data-main="../../static/js/common/main.js?t=101" id="require-page" | |||||
target-module="../../static/js/project/train/detail.js" defer type="text/javascript"></script> | |||||
</html> | </html> |
@@ -12,10 +12,33 @@ | |||||
<link href="../../static/css/main.css" rel="stylesheet" type="text/css" /> | <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/index.css" rel="stylesheet" type="text/css" /> | ||||
<link href="../../static/css/supply.css" rel="stylesheet" type="text/css" /> | <link href="../../static/css/supply.css" rel="stylesheet" type="text/css" /> | ||||
<link href="../../static/css/LeftNav.css" rel="stylesheet" type="text/css" /> | |||||
<link href="../../static/css/dateTime.css" rel="stylesheet" type="text/css" /> | |||||
<style> | <style> | ||||
.informationTable tr:last-child td{ | .informationTable tr:last-child td{ | ||||
padding-top: 5px; | padding-top: 5px; | ||||
} | } | ||||
.supplyType_left ul li{ | |||||
float: none; | |||||
border: none; | |||||
margin: 0; | |||||
} | |||||
.supplyType_left ul{ | |||||
margin: 0; | |||||
} | |||||
.directoriesList ul li{ | |||||
height: 155px; | |||||
padding-right: 10px; | |||||
} | |||||
.watchBtn{ | |||||
right: 10px; | |||||
} | |||||
.dateTimeWrap select{ | |||||
background-color: transparent; | |||||
border: 1px solid #bfbfbf; | |||||
height: 26px; | |||||
padding-left: 5px; | |||||
} | |||||
</style> | </style> | ||||
</head> | </head> | ||||
@@ -55,114 +78,106 @@ | |||||
<li | <li | ||||
id="trainBtn" | id="trainBtn" | ||||
class="active" | class="active" | ||||
onclick=" | |||||
this.className = 'active'; | |||||
document.getElementById('serviceBtn').className = ''; | |||||
document.getElementById('train').style.display = 'block'; | |||||
document.getElementById('service').style.display = 'none';" | |||||
onclick="switchTab('train')" | |||||
>农技培训</li> | >农技培训</li> | ||||
<li | <li | ||||
id="serviceBtn" | id="serviceBtn" | ||||
onclick=" | |||||
this.className = 'active'; | |||||
document.getElementById('trainBtn').className = ''; | |||||
document.getElementById('train').style.display = 'none'; | |||||
document.getElementById('service').style.display = 'block';" | |||||
onclick="switchTab('service')" | |||||
>农技咨询</li> | >农技咨询</li> | ||||
<div class="clear"></div> | <div class="clear"></div> | ||||
</ul> | </ul> | ||||
<div id="train" class="m-t-15"> | |||||
<div class="searchBox"> | |||||
<p class="recommendTit"><i class="lvd"></i>查询</p> | |||||
<div class="l-h-30 m-t-10"> | |||||
<input type="text" placeholder="请输入关键词搜索" class="fl searchOne" /> | |||||
<div class="fl"> | |||||
<label><p class="color-666">详情</p><input type="radio" name="searchType" value=""/></label> | |||||
<label><p class="color-666">标题</p><input type="radio" name="searchType" value=""/></label> | |||||
</div> | |||||
<div class="fl searchTow m-l-30"> | |||||
<span class="m-r-5 color-666">日期</span><input type="text" class="m-r-5"/><span class="m-r-5">至</span><input type="text" class="m-r-10"/> | |||||
</div> | |||||
<div class="fr"> | |||||
<p class="fl color-666 m-r-5">地区</p> | |||||
<select class="fl m-r-20"> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
</select> | |||||
<select class="fl m-r-20"> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
</select> | |||||
<p class="fl searchBtn">查询</p> | |||||
<div class="m-t-15"> | |||||
<div id="train"> | |||||
<div class="searchBox"> | |||||
<p class="recommendTit"><i class="lvd"></i>查询</p> | |||||
<div class="l-h-30 m-t-10"> | |||||
<input type="text" placeholder="请输入关键词搜索" class="fl searchOne" id="technologyInput" /> | |||||
<div class="fl"> | |||||
<label><p class="color-666">标题</p><input type="radio" name="searchType" value="title" checked/></label> | |||||
<label><p class="color-666">详情</p><input type="radio" name="searchType" value="detail"/></label> | |||||
</div> | |||||
<div class="fl searchTow m-l-30"> | |||||
<span class="m-r-5 color-666">日期</span><input type="text" class="data_input datas_input m-r-5 p-l-5" placeholder="请选择日期" id="signStartTimeStr" autocomplete="off"><span class="m-r-5">至</span><input type="text" class="data_input2 datas_input p-l-5" placeholder="请选择日期" id="signEndTimeStr" autocomplete="off"> | |||||
</div> | |||||
<div class="fr"> | |||||
<p class="fl color-666 m-r-5">地区</p> | |||||
<select class="fl m-r-20"> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
</select> | |||||
<select class="fl m-r-20"> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
<option>张村镇</option> | |||||
</select> | |||||
<p class="fl searchBtn" onclick="technologySearch()">查询</p> | |||||
<div class="clear"></div> | |||||
</div> | |||||
<div class="clear"></div> | <div class="clear"></div> | ||||
</div> | </div> | ||||
<div class="clear"></div> | |||||
<div class="clear"></div> | |||||
</div> | </div> | ||||
</div> | |||||
<div class="supplyList m-t-15"> | |||||
<div class="supplyList_tit" style="border-bottom:1px solid #e3e3e3;padding-bottom: 15px;"> | |||||
<p class="font18 color-333 fl" style="line-height: 47px;"><i class="lvd"></i>培训列表</p> | |||||
<ul class="fr"> | |||||
<li>发布时间<img src="../../static/images/icon_pc.png" alt=""/></li> | |||||
<li style="border: none;">关注量<img src="../../static/images/icon_pc.png" alt=""/></li> | |||||
<div class="supplyList m-t-15"> | |||||
<div class="supplyList_tit" style="border-bottom:1px solid #e3e3e3;padding-bottom: 15px;"> | |||||
<p class="font18 color-333 fl" style="line-height: 47px;"><i class="lvd"></i>培训列表</p> | |||||
<ul class="fr"> | |||||
<li>发布时间<img src="../../static/images/icon_pc.png" alt=""/></li> | |||||
<li style="border: none;">关注量<img src="../../static/images/icon_pc.png" alt=""/></li> | |||||
<div class="clear"></div> | |||||
</ul> | |||||
<div class="clear"></div> | <div class="clear"></div> | ||||
</ul> | |||||
<div class="clear"></div> | |||||
</div> | |||||
<script id="technologyData" type="text/html"> | |||||
{{each technologyList as value i}} | |||||
<li> | |||||
<a href="detail.html?id={{value.id}}"> | |||||
{{if value.masterMap.indexOf(null)>0}} | |||||
<img src="../../static/images/img2.jpg" width="18%" height="128" alt="" class="fl"/> | |||||
{{else}} | |||||
<img src="{{value.masterMap}}" width="18%" height="128" alt="" class="fl"/> | |||||
{{/if}} | |||||
<table class="fl" style="width: 77%;"> | |||||
<tr> | |||||
<td colspan="2"><p class="font16 color-333">{{value.trainingName}}<i class="bq">{{value.trainingType}}</i></p></td> | |||||
<td style="text-align: right;color:#a7a6a6;">{{value.applyEndTime.substr(0,10)}}</td> | |||||
</tr> | |||||
<tr> | |||||
<td colspan="2"><p class="color-666">{{value.keynoteSpeakerIntroduction}}</p></td> | |||||
<td><p class="supplyList_tel"><i class="icon_tel"></i>{{value.tal}}</p></td> | |||||
</tr> | |||||
<tr> | |||||
<td colspan="3"> </td> | |||||
</tr> | |||||
<tr> | |||||
<td><p class="color-666">主讲专家 <span style="color: #168a44;font-size: 16px;font-weight: bold;">{{value.keynoteSpeaker}}</span></p></td> | |||||
<td><p class="color-666">活动地址 {{value.trainingSite}}</p></td> | |||||
<td><p class="supplyList_time color-666">培训时间 {{value.startTime.substr(0,10)}}</p></td> | |||||
</tr> | |||||
</table> | |||||
<div class="clear"></div> | |||||
</a> | |||||
</li> | |||||
{{/each}} | |||||
</script> | |||||
<ul class="supplyList_list" id="technologyContent"></ul> | |||||
</div> | </div> | ||||
<ul class="supplyList_list"> | |||||
<li> | |||||
<a href="detail.html"> | |||||
<img src="../../static/images/img2.jpg" width="18%" height="128" alt="" class="fl"/> | |||||
<table class="fl" style="width: 77%;"> | |||||
<tr> | |||||
<td colspan="2"><p class="font16 color-333">三季度蔬菜种植专家农技专家培训活动<i class="bq">农技专题</i></p></td> | |||||
<td style="text-align: right;color:#a7a6a6;">2021-07-14</td> | |||||
</tr> | |||||
<tr> | |||||
<td colspan="2"><p class="color-666">新2021年桐庐县水稻育秧期间植保技术意见</p></td> | |||||
<td><p class="supplyList_tel"><i class="icon_tel"></i>15314031621</p></td> | |||||
</tr> | |||||
<tr> | |||||
<td colspan="3"> </td> | |||||
</tr> | |||||
<tr> | |||||
<td><p class="color-666">主讲专家 <span style="color: #168a44;font-size: 16px;font-weight: bold;">刘永超</span></p></td> | |||||
<td><p class="color-666">活动地址 刘山东省威海市环翠区张村镇刘家村沈阳路91号</p></td> | |||||
<td><p class="supplyList_time color-666">培训时间 2021-07-14</p></td> | |||||
</tr> | |||||
</table> | |||||
<div class="clear"></div> | |||||
</a> | |||||
</li> | |||||
</ul> | |||||
</div> | </div> | ||||
</div> | |||||
<div id="service" style="display: none;" class="m-t-15"> | |||||
<div id="service" style="display: none;"> | |||||
<div class="supplyType_left fl"> | <div class="supplyType_left fl"> | ||||
<p class="recommendTit"><i class="lvd"></i>知识分类</p> | <p class="recommendTit"><i class="lvd"></i>知识分类</p> | ||||
<dl> | |||||
<dd class="active">合作社</dd> | |||||
<dd>龙头企业</dd> | |||||
<dd>家庭农场</dd> | |||||
<dd>种养大户</dd> | |||||
<dd>现代化庄园</dd> | |||||
</dl> | |||||
<div class="left"></div> | |||||
</div> | </div> | ||||
<div class="fr" style="width: 895px"> | <div class="fr" style="width: 895px"> | ||||
<div class="searchBox"> | <div class="searchBox"> | ||||
<p class="recommendTit"><i class="lvd"></i>查询</p> | <p class="recommendTit"><i class="lvd"></i>查询</p> | ||||
<div class="l-h-30 m-t-10"> | <div class="l-h-30 m-t-10"> | ||||
<input type="text" placeholder="请输入关键词搜索" class="fl searchOne" /> | |||||
<input type="text" placeholder="请输入关键词搜索" class="fl searchOne" id="consultingInput" /> | |||||
<div class="fl"> | <div class="fl"> | ||||
<label><p class="color-666">标题</p><input type="radio" name="searchType" value=""/></label> | |||||
<label><p class="color-666">答复专家</p><input type="radio" name="searchType" value=""/></label> | |||||
<label><p class="color-666">标题</p><input type="radio" name="consultingType" value="title" checked/></label> | |||||
<label><p class="color-666">答复专家</p><input type="radio" name="consultingType" value="handle"/></label> | |||||
</div> | </div> | ||||
<div class="fr"> | <div class="fr"> | ||||
<p class="fl color-666 m-r-5">地区</p> | <p class="fl color-666 m-r-5">地区</p> | ||||
@@ -178,7 +193,7 @@ | |||||
<option>张村镇</option> | <option>张村镇</option> | ||||
<option>张村镇</option> | <option>张村镇</option> | ||||
</select> | </select> | ||||
<p class="fl searchBtn">查询</p> | |||||
<p class="fl searchBtn" onclick="consultingSearch()">查询</p> | |||||
<div class="clear"></div> | <div class="clear"></div> | ||||
</div> | </div> | ||||
<div class="clear"></div> | <div class="clear"></div> | ||||
@@ -197,91 +212,42 @@ | |||||
</ul> | </ul> | ||||
<div class="clear"></div> | <div class="clear"></div> | ||||
</div> | </div> | ||||
<ul class="supplyList_list"> | |||||
<li> | |||||
<a href="severDetail.html"> | |||||
<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">三季度蔬菜种植专家农技专家培训活动<i class="bq">知识分类</i></p></td> | |||||
<td><p class="supplyList_time">2021-07-14</p></td> | |||||
</tr> | |||||
<tr> | |||||
<td> </td> | |||||
<td> </td> | |||||
<td> </td> | |||||
</tr> | |||||
<tr> | |||||
<td><p class="font16"><span class="color-666 font14">发布人</span> 刘永超</p></td> | |||||
<td colspan="2"><p class="font16"><span class="color-666 font14">发布时间</span> 2021-07-14</p></td> | |||||
</tr> | |||||
<tr> | |||||
<td><p class="font16"><span class="color-666 font14">答复专家</span> 刘山东</p></td> | |||||
<td><p class="font16"><span class="color-666 font14">答复时间</span> 2021-07-14</p></td> | |||||
<td><p class="supplyList_tel"><i class="icon_tel"></i>15314031621</p></td> | |||||
</tr> | |||||
</table> | |||||
<div class="clear"></div> | |||||
</a> | |||||
</li> | |||||
<li> | |||||
<a href="detail.html"> | |||||
<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">三季度蔬菜种植专家农技专家培训活动<i class="bq">知识分类</i></p></td> | |||||
<td><p class="supplyList_time">2021-07-14</p></td> | |||||
</tr> | |||||
<tr> | |||||
<td> </td> | |||||
<td> </td> | |||||
<td> </td> | |||||
</tr> | |||||
<tr> | |||||
<td><p class="font16"><span class="color-666 font14">发布人</span> 刘永超</p></td> | |||||
<td colspan="2"><p class="font16"><span class="color-666 font14">发布时间</span> 2021-07-14</p></td> | |||||
</tr> | |||||
<tr> | |||||
<td><p class="font16"><span class="color-666 font14">答复专家</span> 刘山东</p></td> | |||||
<td><p class="font16"><span class="color-666 font14">答复时间</span> 2021-07-14</p></td> | |||||
<td><p class="supplyList_tel"><i class="icon_tel"></i>15314031621</p></td> | |||||
</tr> | |||||
</table> | |||||
<div class="clear"></div> | |||||
</a> | |||||
</li> | |||||
<li> | |||||
<a href="detail.html"> | |||||
<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">三季度蔬菜种植专家农技专家培训活动<i class="bq">知识分类</i></p></td> | |||||
<td><p class="supplyList_time">2021-07-14</p></td> | |||||
</tr> | |||||
<tr> | |||||
<td> </td> | |||||
<td> </td> | |||||
<td> </td> | |||||
</tr> | |||||
<tr> | |||||
<td><p class="font16"><span class="color-666 font14">发布人</span> 刘永超</p></td> | |||||
<td colspan="2"><p class="font16"><span class="color-666 font14">发布时间</span> 2021-07-14</p></td> | |||||
</tr> | |||||
<tr> | |||||
<td><p class="font16"><span class="color-666 font14">答复专家</span> 刘山东</p></td> | |||||
<td><p class="font16"><span class="color-666 font14">答复时间</span> 2021-07-14</p></td> | |||||
<td><p class="supplyList_tel"><i class="icon_tel"></i>15314031621</p></td> | |||||
</tr> | |||||
</table> | |||||
<div class="clear"></div> | |||||
</a> | |||||
</li> | |||||
</ul> | |||||
<script id="technologyConsultingData" type="text/html"> | |||||
{{each technologyConsultingList as value i}} | |||||
<li> | |||||
<a href="severDetail.html?id={{value.id}}"> | |||||
<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> | |||||
</tr> | |||||
<tr> | |||||
<td> </td> | |||||
<td> </td> | |||||
<td> </td> | |||||
</tr> | |||||
<tr> | |||||
<td width="190"><p class="font16"><span class="color-666 font14">发布人</span> {{value.submitName}}</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> | |||||
</tr> | |||||
</table> | |||||
<div class="clear"></div> | |||||
</a> | |||||
</li> | |||||
{{/each}} | |||||
</script> | |||||
<ul class="supplyList_list" id="technologyConsultingContent"></ul> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="clear"></div> | <div class="clear"></div> | ||||
</div> | </div> | ||||
</div> | |||||
</div> | </div> | ||||
<!--底部链接 --> | <!--底部链接 --> | ||||
@@ -313,7 +279,7 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</body> | </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/index.js" defer type="text/javascript"></script>--> | |||||
<script src="../../static/js/common/require.js" data-main="../../static/js/common/main.js?t=101" id="require-page" | |||||
target-module="../../static/js/project/train/index.js" defer type="text/javascript"></script> | |||||
</html> | </html> |
@@ -12,6 +12,99 @@ | |||||
<link href="../../static/css/main.css" rel="stylesheet" type="text/css" /> | <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/index.css" rel="stylesheet" type="text/css" /> | ||||
<link href="../../static/css/supply.css" rel="stylesheet" type="text/css" /> | <link href="../../static/css/supply.css" rel="stylesheet" type="text/css" /> | ||||
<link href="../../static/css/swiper-bundle.min.css" rel="stylesheet" type="text/css"/> | |||||
<style type="text/css"> | |||||
.swiperDiv{ | |||||
border: 1px solid #eaeaea; | |||||
margin-top: 20px; | |||||
} | |||||
.pc-slide { | |||||
width: 37%; | |||||
margin: 0 auto; | |||||
} | |||||
.view .swiper-container { | |||||
width: 100%; | |||||
height: 350px; | |||||
} | |||||
.view .arrow-left { | |||||
background: url(../../static/images/feel3.png) no-repeat left top; | |||||
position: absolute; | |||||
left: 10px; | |||||
top: 50%; | |||||
margin-top: -25px; | |||||
width: 30px; | |||||
height: 30px; | |||||
z-index: 10; | |||||
background-size: 100%; | |||||
} | |||||
.view .arrow-right { | |||||
background: url(../../static/images/feel4.png) no-repeat left bottom; | |||||
position: absolute; | |||||
right: 10px; | |||||
top: 50%; | |||||
margin-top: -25px; | |||||
width: 30px; | |||||
height: 30px; | |||||
z-index: 10; | |||||
background-size: 100%; | |||||
} | |||||
.preview { | |||||
width: 100%; | |||||
margin-top: 10px; | |||||
position: relative; | |||||
} | |||||
.preview .swiper-container { | |||||
width: calc(100% - 70px); | |||||
height: 82px; | |||||
margin-left: 35px; | |||||
} | |||||
.preview .swiper-slide { | |||||
width: 87px; | |||||
height: 82px; | |||||
} | |||||
.preview .slide6 { | |||||
width: 82px; | |||||
} | |||||
.preview .arrow-left { | |||||
background: url(../../static/images/feel6.png) no-repeat left top; | |||||
position: absolute; | |||||
left: 10px; | |||||
top: 50%; | |||||
margin-top: -9px; | |||||
width: 9px; | |||||
height: 18px; | |||||
z-index: 10; | |||||
} | |||||
.preview .arrow-right { | |||||
background: url(../../static/images/feel5.png) no-repeat left bottom; | |||||
position: absolute; | |||||
right: 10px; | |||||
top: 50%; | |||||
margin-top: -9px; | |||||
width: 9px; | |||||
height: 18px; | |||||
z-index: 10; | |||||
} | |||||
.preview img { | |||||
padding: 1px; | |||||
} | |||||
.preview .active-nav img { | |||||
padding: 0; | |||||
border: 1px solid #F00; | |||||
} | |||||
</style> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
@@ -46,51 +139,91 @@ | |||||
<div class="partition"></div> | <div class="partition"></div> | ||||
<div class="w-1200"> | <div class="w-1200"> | ||||
<p class="crumbs">首页 > 农技服务 > 农技咨询 > 咨询详情</p> | <p class="crumbs">首页 > 农技服务 > 农技咨询 > 咨询详情</p> | ||||
<div class="detail_box" > | |||||
<p class="recommendTit"><i class="lvd"></i>三季度蔬菜种植专家农技专家培训活动<span style="float: right;font-size: 14px;line-height: 26px;">NO.102034 培训活动</span></p> | |||||
<script id="technologyData" type="text/html"> | |||||
<p class="recommendTit"><i class="lvd"></i>{{technologyDetail.title}}<span style="float: right;font-size: 14px;line-height: 26px;">NO.{{technologyDetail.id}} 农技咨询</span></p> | |||||
<div class="detail_box_comm"> | <div class="detail_box_comm"> | ||||
<img src="../../static/images/img5.jpg" alt="" width="32%" class="fl"/> | |||||
<table class="fr" width="63%"> | |||||
<!-- <div class="pc-slide fl">--> | |||||
<!-- <div class="view">--> | |||||
<!-- <div class="swiper-container">--> | |||||
<!-- <a class="arrow-left" href="#"></a>--> | |||||
<!-- <a class="arrow-right" href="#"></a>--> | |||||
<!-- <div class="swiper-wrapper">--> | |||||
<!-- {{each technologyDetail.masterMap as value i}}--> | |||||
<!-- {{if technologyDetail.masterMap == ''}}--> | |||||
<!-- <div class="swiper-slide">--> | |||||
<!-- <a href="javascript:void(0);" ><img src="../../static/images/zwtp.jpg" alt=""></a>--> | |||||
<!-- </div>--> | |||||
<!-- {{else}}--> | |||||
<!-- <div class="swiper-slide">--> | |||||
<!-- <a href="javascript:void(0);" ><img src="{{value}}" alt=""></a>--> | |||||
<!-- </div>--> | |||||
<!-- {{/if}}--> | |||||
<!-- {{/each}}--> | |||||
<!-- </div>--> | |||||
<!-- </div>--> | |||||
<!-- </div>--> | |||||
<!-- <div class="preview">--> | |||||
<!-- <a class="arrow-left" href="#"></a>--> | |||||
<!-- <a class="arrow-right" href="#"></a>--> | |||||
<!-- <div class="swiper-container">--> | |||||
<!-- <div class="swiper-wrapper">--> | |||||
<!-- {{each technologyDetail.masterMap as value i}}--> | |||||
<!-- {{if technologyDetail.masterMap == ''}}--> | |||||
<!-- <div class="swiper-slide active-nav">--> | |||||
<!-- <img src="../../static/images/zwtp.jpg" alt="">--> | |||||
<!-- </div>--> | |||||
<!-- {{else}}--> | |||||
<!-- <div class="swiper-slide {{i==0?'active-nav':''}}">--> | |||||
<!-- <img src="{{value}}" alt="">--> | |||||
<!-- </div>--> | |||||
<!-- {{/if}}--> | |||||
<!-- {{/each}}--> | |||||
<!-- </div>--> | |||||
<!-- </div>--> | |||||
<!-- </div>--> | |||||
<!-- </div>--> | |||||
<table width="100%"> | |||||
<tr> | <tr> | ||||
<td width="100px">标题</td> | <td width="100px">标题</td> | ||||
<td><p class="font18">三季度蔬菜种植专家农技专家培训活动<i class="bq">知识分类</i></p></td> | |||||
<td><p class="font18">{{technologyDetail.title}}</p></td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>咨询内容</td> | <td>咨询内容</td> | ||||
<td>山东省威海市环翠区张村镇刘家村种植农技相关问题山东省威海市环翠区张村镇刘家村种植农技相关问题</td> | |||||
<td>{{technologyDetail.adviceContent}}</td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>发布人</td> | <td>发布人</td> | ||||
<td>刘永超</td> | |||||
<td>{{technologyDetail.submitName}}</td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>发布时间</td> | <td>发布时间</td> | ||||
<td>2011年11月20日</td> | |||||
<td>{{technologyDetail.createTime}}</td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>联系方式</td> | <td>联系方式</td> | ||||
<td>13906311234</td> | |||||
<td>{{technologyDetail.phone}}</td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>知识分类</td> | <td>知识分类</td> | ||||
<td>种养知识</td> | |||||
<td>{{technologyDetail.techniqueType}}</td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>答复专家</td> | <td>答复专家</td> | ||||
<td>王红</td> | |||||
<td>{{technologyDetail.handleName}}</td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>答复内容</td> | <td>答复内容</td> | ||||
<td>山东省威海市环翠区张村镇刘家村种植农技相关问题山东省威海市环翠区张村镇刘家村种植农技相关问题</td> | |||||
<td>{{technologyDetail.adviceReply}}</td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>答复时间</td> | <td>答复时间</td> | ||||
<td>2021年11月20日</td> | |||||
<td>{{technologyDetail.handleTime}}</td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<div class="clear"></div> | <div class="clear"></div> | ||||
</div> | </div> | ||||
</div> | |||||
</script> | |||||
<div class="detail_box" id="technologyContent"></div> | |||||
</div> | </div> | ||||
<!--底部链接 --> | <!--底部链接 --> | ||||
<div class="bottomLink"> | <div class="bottomLink"> | ||||
@@ -121,7 +254,7 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</body> | </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/index.js" defer type="text/javascript"></script>--> | |||||
<script src="../../static/js/common/require.js" data-main="../../static/js/common/main.js?t=101" id="require-page" | |||||
target-module="../../static/js/project/train/severDetail.js" defer type="text/javascript"></script> | |||||
</html> | </html> |