|
@@ -22,7 +22,6 @@
|
|
|
background: #f60;
|
|
background: #f60;
|
|
|
color: #fff;
|
|
color: #fff;
|
|
|
padding: 0 10px;
|
|
padding: 0 10px;
|
|
|
- margin-top: 12px;
|
|
|
|
|
}
|
|
}
|
|
|
.black-gray {
|
|
.black-gray {
|
|
|
background: #ccc;
|
|
background: #ccc;
|
|
@@ -39,13 +38,14 @@
|
|
|
<div th:replace="~{home/common/header :: nav}"></div>
|
|
<div th:replace="~{home/common/header :: nav}"></div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
-<div class="main">
|
|
|
|
|
|
|
+<div class="main list-main">
|
|
|
|
|
|
|
|
<!--面包屑-->
|
|
<!--面包屑-->
|
|
|
<div class="container projects">
|
|
<div class="container projects">
|
|
|
- <div class="row">
|
|
|
|
|
- <div class="col-sm-6 col-md-6 col-lg-8 hidden-xs" style="padding-left: 0;">
|
|
|
|
|
- <ol class="breadcrumb" style="padding-top: 15px;border-bottom: 0px solid #fff;margin-bottom: 0;">
|
|
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <!--class="col-sm-6 col-md-6 col-lg-8 hidden-xs"-->
|
|
|
|
|
+ <div style="padding-left: 0;">
|
|
|
|
|
+ <ol class="breadcrumbFixed clearfix" style="border-bottom: 0px solid #fff;margin-bottom: 0;">
|
|
|
<li>
|
|
<li>
|
|
|
<a th:href="@{/home}">首页</a>
|
|
<a th:href="@{/home}">首页</a>
|
|
|
</li>
|
|
</li>
|
|
@@ -53,18 +53,18 @@
|
|
|
</ol>
|
|
</ol>
|
|
|
</div>
|
|
</div>
|
|
|
<!--搜索框-->
|
|
<!--搜索框-->
|
|
|
- <div class="col-sm-6 col-md-6 col-lg-4 col-xs-12">
|
|
|
|
|
- <div style="display: inline-block;float: right;padding-top: 10px;width: 100%;">
|
|
|
|
|
- <span style="display: inline-block;width:100%">
|
|
|
|
|
- <input type="text" name="keyword" lay-verify="required" placeholder="请输入关键字搜索"
|
|
|
|
|
- autocomplete="off" class="layui-input" style="width: 100%;display: inline-block">
|
|
|
|
|
- </span>
|
|
|
|
|
- <button onclick="onInit(1)" id="keywordSearch"
|
|
|
|
|
- style="display: inline-block;float: right;background:none;border:none;">
|
|
|
|
|
- <i class=" iconfont icon-sousuo"></i>
|
|
|
|
|
- </button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <!--<div class="col-sm-6 col-md-6 col-lg-4 col-xs-12">-->
|
|
|
|
|
+ <!--<div style="display: inline-block;float: right;padding-top: 10px;width: 100%;">-->
|
|
|
|
|
+ <!--<span style="display: inline-block;width:100%">-->
|
|
|
|
|
+ <!--<input type="text" name="keyword" lay-verify="required" placeholder="请输入关键字搜索"-->
|
|
|
|
|
+ <!--autocomplete="off" class="layui-input" style="width: 100%;display: inline-block">-->
|
|
|
|
|
+ <!--</span>-->
|
|
|
|
|
+ <!--<button onclick="onInit(1)" id="keywordSearch"-->
|
|
|
|
|
+ <!--style="display: inline-block;float: right;background:none;border:none;">-->
|
|
|
|
|
+ <!--<i class=" iconfont icon-sousuo"></i>-->
|
|
|
|
|
+ <!--</button>-->
|
|
|
|
|
+ <!--</div>-->
|
|
|
|
|
+ <!--</div>-->
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div id="activity_box" class="container projects" hidden>
|
|
<div id="activity_box" class="container projects" hidden>
|
|
@@ -93,9 +93,9 @@
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div id="news_box" class="container projects" style="margin-top: 20px;">
|
|
|
|
|
|
|
+ <div id="news_box" class="container projects">
|
|
|
<div class="row">
|
|
<div class="row">
|
|
|
- <div class="col-sm-12 col-md-12 col-lg-12" id="centerContent"></div>
|
|
|
|
|
|
|
+ <div class="col-sm-12 col-md-12 col-lg-12 activityList" id="centerContent"></div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<!--分页-->
|
|
<!--分页-->
|
|
@@ -122,7 +122,7 @@
|
|
|
</p>
|
|
</p>
|
|
|
<p style="display: inline-block;margin: 0 0 10px;" class="fr textColor hidden-xs">{{ content.create_time }}</p>
|
|
<p style="display: inline-block;margin: 0 0 10px;" class="fr textColor hidden-xs">{{ content.create_time }}</p>
|
|
|
</div>
|
|
</div>
|
|
|
- <p class="textEllipsis1">{{ content.brief }}</p>
|
|
|
|
|
|
|
+ <!--<p class="textEllipsis1">{{ content.brief }}</p>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
{{/each}}
|
|
{{/each}}
|
|
@@ -201,10 +201,10 @@
|
|
|
laypage.render({
|
|
laypage.render({
|
|
|
elem: 'paging',
|
|
elem: 'paging',
|
|
|
count: result.obj.counts,
|
|
count: result.obj.counts,
|
|
|
- first: '首页',
|
|
|
|
|
- last: '尾页',
|
|
|
|
|
- prev: '<em>上一页</em>',
|
|
|
|
|
- next: '<em>下一页</em>',
|
|
|
|
|
|
|
+ first: '1',
|
|
|
|
|
+ last: Math.ceil(result.obj.counts/10),
|
|
|
|
|
+ prev: '<em><</em>',
|
|
|
|
|
+ next: '<em>></em>',
|
|
|
curr: result.obj.page_no, //当前页
|
|
curr: result.obj.page_no, //当前页
|
|
|
jump: function (obj, first) { //触发分页后的回调
|
|
jump: function (obj, first) { //触发分页后的回调
|
|
|
//触发分页后的回调,并传递当前页obj.cuur
|
|
//触发分页后的回调,并传递当前页obj.cuur
|
|
@@ -309,9 +309,9 @@
|
|
|
str += '<p><i class="iconfont"></i> ' + newList[i].activity_starttime.substring(0, 4) + '年' + newList[i].activity_starttime.substring(5, 7) + '月' + newList[i].activity_starttime.substring(8, 10) + '日' + newList[i].activity_starttime.substring(10, 16) + '</p>'
|
|
str += '<p><i class="iconfont"></i> ' + newList[i].activity_starttime.substring(0, 4) + '年' + newList[i].activity_starttime.substring(5, 7) + '月' + newList[i].activity_starttime.substring(8, 10) + '日' + newList[i].activity_starttime.substring(10, 16) + '</p>'
|
|
|
str += '<p><i class="iconfont"></i> ' + newList[i].activity_location + '</p>'
|
|
str += '<p><i class="iconfont"></i> ' + newList[i].activity_location + '</p>'
|
|
|
str += '<div>'
|
|
str += '<div>'
|
|
|
- if (newList[i].can_sign_up === true) {
|
|
|
|
|
|
|
+ if (newList[i].activity_deadline == '0') {
|
|
|
str += '<a href="' + pagePath + '/home/activityDetail/' + newList[i].id + '" class="btn btn-success radius" onclick="" target="_blank">参与报名</a>'
|
|
str += '<a href="' + pagePath + '/home/activityDetail/' + newList[i].id + '" class="btn btn-success radius" onclick="" target="_blank">参与报名</a>'
|
|
|
- } else if (newList[i].can_sign_up === false) {
|
|
|
|
|
|
|
+ } else if (newList[i].activity_deadline == '1') {
|
|
|
str += '<a href="' + pagePath + '/home/activityDetail/' + newList[i].id + '" class="btn btn-success radius" onclick="" target="_blank">活动详情</a>'
|
|
str += '<a href="' + pagePath + '/home/activityDetail/' + newList[i].id + '" class="btn btn-success radius" onclick="" target="_blank">活动详情</a>'
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -328,9 +328,9 @@
|
|
|
elem: 'paging',
|
|
elem: 'paging',
|
|
|
count: result.obj.counts,
|
|
count: result.obj.counts,
|
|
|
first: '首页',
|
|
first: '首页',
|
|
|
- last: '尾页',
|
|
|
|
|
- prev: '<em>上一页</em>',
|
|
|
|
|
- next: '<em>下一页</em>',
|
|
|
|
|
|
|
+ last: Math.ceil(result.obj.counts/10),
|
|
|
|
|
+ prev: '<em><</em>',
|
|
|
|
|
+ next: '<em>></em>',
|
|
|
curr: result.obj.page_no, //当前页
|
|
curr: result.obj.page_no, //当前页
|
|
|
jump: function (obj, first) { //触发分页后的回调
|
|
jump: function (obj, first) { //触发分页后的回调
|
|
|
//触发分页后的回调,并传递当前页obj.cuur
|
|
//触发分页后的回调,并传递当前页obj.cuur
|
|
@@ -461,7 +461,7 @@
|
|
|
// }
|
|
// }
|
|
|
else {
|
|
else {
|
|
|
applyStatus = "申报中";
|
|
applyStatus = "申报中";
|
|
|
- html += '<li class="clearfix row">' +
|
|
|
|
|
|
|
+ html += '<li class="clearfix">' +
|
|
|
' <div style="float:left; width:100px">' +
|
|
' <div style="float:left; width:100px">' +
|
|
|
' <span class="project-apply" id="apply_status">'+ applyStatus +'</span>' +
|
|
' <span class="project-apply" id="apply_status">'+ applyStatus +'</span>' +
|
|
|
' </div>' ;
|
|
' </div>' ;
|
|
@@ -476,8 +476,8 @@
|
|
|
' '+ projects[i].project_source_name +'】 ' +
|
|
' '+ projects[i].project_source_name +'】 ' +
|
|
|
' '+ projects[i].project_name +'</a>' +
|
|
' '+ projects[i].project_name +'</a>' +
|
|
|
' </p>' +
|
|
' </p>' +
|
|
|
- ' <p style="display: inline-block;margin: 0 0 10px;" class="fr textColor hidden-xs">'+ projects[i].create_time +'</p>' +
|
|
|
|
|
- ' <p>申报截止日期:'+ projects[i].apply_enddate +'</p>' +
|
|
|
|
|
|
|
+ ' <p style="display: inline-block;" class="fr textColor hidden-xs">'+ projects[i].create_time +'</p>' +
|
|
|
|
|
+ // ' <p>申报截止日期:'+ projects[i].apply_enddate +'</p>' +
|
|
|
' </div>' +
|
|
' </div>' +
|
|
|
' </li>';
|
|
' </li>';
|
|
|
}
|
|
}
|
|
@@ -488,10 +488,10 @@
|
|
|
laypage.render({
|
|
laypage.render({
|
|
|
elem: 'paging',
|
|
elem: 'paging',
|
|
|
count: result.obj.counts,
|
|
count: result.obj.counts,
|
|
|
- first: '首页',
|
|
|
|
|
- last: '尾页',
|
|
|
|
|
- prev: '<em>上一页</em>',
|
|
|
|
|
- next: '<em>下一页</em>',
|
|
|
|
|
|
|
+ first: '1',
|
|
|
|
|
+ last: Math.ceil(result.obj.counts/10),
|
|
|
|
|
+ prev: '<em><</em>',
|
|
|
|
|
+ next: '<em>></em>',
|
|
|
curr: result.obj.page_no, //当前页
|
|
curr: result.obj.page_no, //当前页
|
|
|
jump: function (obj, first) { //触发分页后的回调
|
|
jump: function (obj, first) { //触发分页后的回调
|
|
|
//触发分页后的回调,并传递当前页obj.cuur
|
|
//触发分页后的回调,并传递当前页obj.cuur
|