335 lines
14 KiB
HTML
335 lines
14 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
||
<head>
|
||
<base href="/twoduty/">
|
||
<meta charset="UTF-8">
|
||
<title>众力监督平台-首页</title>
|
||
<link rel="stylesheet" href="assets/web/css/reset.css">
|
||
<link rel="stylesheet" href="assets/web/css/style.css">
|
||
</head>
|
||
<body>
|
||
<div id="app">
|
||
<div class="header">
|
||
<div class="banner">
|
||
<img src="assets/web/images/banner.png" alt="">
|
||
</div>
|
||
<div class="nav">
|
||
<ul class="clearFloat" v-cloak>
|
||
<li class="active">
|
||
<a href="javascript: void(0);">
|
||
<div class="left fl">
|
||
<span>首页</span>
|
||
<p>众力监督平台</p>
|
||
</div>
|
||
<div class="right fr">
|
||
<img src="assets/web/images/nav-icon1.png" alt="">
|
||
</div>
|
||
</a>
|
||
</li>
|
||
<li>
|
||
<a href="route/web/notice.html">
|
||
<div class="left fl">
|
||
<span>相关通知</span>
|
||
<p>各部门通知公告</p>
|
||
</div>
|
||
<div class="right fr">
|
||
<img src="assets/web/images/nav-icon2.png" alt="">
|
||
</div>
|
||
</a>
|
||
</li>
|
||
<li v-for="(nav, idx) in topNavList" @click="goNav(nav.id)">
|
||
<a href="javascript: void(0);">
|
||
<div class="left fl">
|
||
<span>{{nav.name}}</span>
|
||
</div>
|
||
<div class="right fr">
|
||
<img src="assets/web/images/nav-icon3.png" alt="" v-if="idx == 0">
|
||
<img src="assets/web/images/nav-icon5.png" alt="" v-if="idx == 1">
|
||
<img src="assets/web/images/nav-icon6.png" alt="" v-if="idx == 2">
|
||
</div>
|
||
</a>
|
||
</li>
|
||
<li class="log-out">
|
||
<div class="left fl">
|
||
<span th:text="${userName}" th:if="${userUserName eq 'admin'}"></span>
|
||
<span th:text="${userName}" th:if="${userUserName ne 'admin'}" class="not-admin"></span>
|
||
<a href="default-main" th:if="${userUserName eq 'admin'}">后台</a>
|
||
</div>
|
||
<div class="right fr">
|
||
<a href="oauth/logout">退出</a>
|
||
</div>
|
||
</li>
|
||
<!-- <li>-->
|
||
<!-- <a href="route/web/assessment.html">-->
|
||
<!-- <div class="left fl">-->
|
||
<!-- <span>记实考核</span>-->
|
||
<!-- <p>各类记实考核</p>-->
|
||
<!-- </div>-->
|
||
<!-- <div class="right fr">-->
|
||
<!-- <img src="assets/web/images/nav-icon4.png" alt="">-->
|
||
<!-- </div>-->
|
||
<!-- </a>-->
|
||
<!-- </li>-->
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="mid-link">
|
||
<img src="assets/web/images/text.png" alt="" class="text">
|
||
<div class="link">
|
||
<a href="javascript: void(0);" class="link-box">
|
||
<img src="assets/web/images/mid-img1.png" alt="">
|
||
</a>
|
||
<a href="javascript: void(0);" class="link-box">
|
||
<img src="assets/web/images/mid-img2.png" alt="">
|
||
</a>
|
||
<a href="javascript: void(0);" class="link-box">
|
||
<img src="assets/web/images/mid-img3.png" alt="">
|
||
</a>
|
||
<a href="javascript: void(0);" class="link-box">
|
||
<img src="assets/web/images/mid-img4.png" alt="">
|
||
</a>
|
||
</div>
|
||
</div>
|
||
<div class="news clearFloat">
|
||
<div class="news-box">
|
||
<div class="box-title">
|
||
<span>一周新闻</span>
|
||
<a href="route/web/list.html?title=一周新闻&id=045d07ca-4300-4071-81ed-b3c549915820">更多+</a>
|
||
</div>
|
||
<div class="news-list">
|
||
<ul v-cloak>
|
||
<li v-for="news in weekNews">
|
||
<a :href="'route/web/detail.html?contentId=' + news.contentId" :title="news.subTitle">{{news.subTitle}}</a>
|
||
<span>{{news.publishDate}}</span>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="news-box">
|
||
<div class="box-title">
|
||
<span>最新动态</span>
|
||
<a href="route/web/list.html?title=最新动态&id=b6ca6135-d469-453b-93d5-8a3f47340f0a">更多+</a>
|
||
</div>
|
||
<div class="news-list">
|
||
<ul v-cloak>
|
||
<li v-for="news in dynamicList">
|
||
<a :href="'route/web/detail.html?contentId=' + news.contentId" :title="news.subTitle">{{news.subTitle}}</a>
|
||
<span>{{news.publishDate}}</span>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="news-box">
|
||
<div class="box-title">
|
||
<span>信息公开</span>
|
||
<a href="route/web/list.html?title=信息公开&id=e1b31bdd-4537-4c97-ae59-d2a922a61cbd">更多+</a>
|
||
</div>
|
||
<div class="news-list">
|
||
<ul v-cloak>
|
||
<li v-for="news in infoPublic">
|
||
<a :href="'route/web/detail.html?contentId=' + news.contentId" :title="news.subTitle">{{news.subTitle}}</a>
|
||
<span>{{news.publishDate}}</span>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="slide-news">
|
||
<div class="slide">
|
||
<div class="bd">
|
||
<ul>
|
||
<li>
|
||
<a href="javascript: void(0);">
|
||
<img src="assets/web/images/slide.png" alt="">
|
||
<div class="slide-text">公安厅党委委员、副厅长(正厅级)赵云辉接受纪律审查和监察调查</div>
|
||
</a>
|
||
</li>
|
||
<li>
|
||
<a href="javascript: void(0);">
|
||
<img src="assets/web/images/slide.png" alt="">
|
||
<div class="slide-text">公安厅党委委员、副厅长(正厅级)赵云辉接受纪律审查和监察调查</div>
|
||
</a>
|
||
</li>
|
||
<li>
|
||
<a href="javascript: void(0);">
|
||
<img src="assets/web/images/slide.png" alt="">
|
||
<div class="slide-text">公安厅党委委员、副厅长(正厅级)赵云辉接受纪律审查和监察调查</div>
|
||
</a>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
<a href="javascript: void(0);" class="prev"></a>
|
||
<a href="javascript: void(0);" class="next"></a>
|
||
</div>
|
||
<div class="exposure-news">
|
||
<div class="exposure">
|
||
<div class="exposure-box">
|
||
<img src="assets/web/images/exposure.png" alt="">
|
||
</div>
|
||
<div class="exposure-title" v-cloak>
|
||
<a :href="'route/web/detail.html?contentId=' + exposureFirst.contentId">{{exposureFirst.subTitle}}</a>
|
||
<p>{{exposureFirst.publishDate}}</p>
|
||
</div>
|
||
</div>
|
||
<div class="exposure-news-list">
|
||
<ul v-cloak>
|
||
<li v-for="news in exposureList">
|
||
<a :href="'route/web/detail.html?contentId=' + news.contentId" :title="news.subTitle">{{news.subTitle}}</a>
|
||
<span>{{news.publishDate}}</span>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="bottom-nav">
|
||
<div class="nav-title">门户导航</div>
|
||
<div class="nav-list" v-cloak>
|
||
<a :href="nav.dataSummary" v-for="nav in bottomNavList" target="_blank">{{nav.dataName}}</a>
|
||
</div>
|
||
</div>
|
||
<div class="footer">
|
||
<!-- 版权所有:杭锦旗纪委监察局 备案号:蒙ICP备 14000612 技术支持:内蒙古成迈信息科技有限公司(0471-5316868)-->
|
||
</div>
|
||
</div>
|
||
<script src="assets/web/js/jquery-2.1.4.min.js"></script>
|
||
<script src="assets/web/js/jquery.SuperSlide.2.1.1.js"></script>
|
||
<script src="assets/web/js/vue.js"></script>
|
||
<script src="assets/web/js/ajax.js"></script>
|
||
<script src="assets/js/restajax.js"></script>
|
||
<script src="assets/web/layer-v3.3.0/layer/layer.js"></script>
|
||
<script>
|
||
var vue = new Vue({
|
||
el: '#app',
|
||
data: {
|
||
topNavList: [],
|
||
bottomNavList: [],
|
||
weekNews: [],
|
||
dynamicList: [],
|
||
infoPublic: [],
|
||
exposureList: [],
|
||
exposureFirst: {}
|
||
},
|
||
methods: {
|
||
// 获取顶部导航
|
||
getTopNav: function () {
|
||
var self = this
|
||
// var loadLayerIndex;
|
||
top.restAjax.get(top.restAjax.path('api/indexlib/listwebtags', []), {}, null, function(code, data) {
|
||
self.topNavList = data
|
||
}, function(code, data) {
|
||
layer.msg(data.msg);
|
||
}, function() {
|
||
// loadLayerIndex = layer.load(0, {shade: false});
|
||
}, function() {
|
||
// layer.close(loadLayerIndex);
|
||
});
|
||
},
|
||
// 顶部导航跳转页面
|
||
goNav: function (id) {
|
||
window.location.href = 'route/web/public.html?id=' + id
|
||
},
|
||
// 获取门户导航
|
||
getGateNav: function () {
|
||
var self = this
|
||
top.restAjax.get(top.restAjax.path('api/data/listbyparentid/{dataParentId}', ['3a32e7d5-a2ee-4cdf-959d-70d0e50e4389']), {}, null, function(code, data) {
|
||
self.bottomNavList = data
|
||
}, function(code, data) {
|
||
layer.msg(data.msg);
|
||
}, function() {
|
||
// loadLayerIndex = layer.load(0, {shade: false});
|
||
}, function() {
|
||
// layer.close(loadLayerIndex);
|
||
});
|
||
},
|
||
// 获取一周新闻列表
|
||
getWeekNews: function () {
|
||
var self = this
|
||
top.restAjax.get(top.restAjax.path('api/content/listpage', []), {
|
||
page: 1,
|
||
rows: 5,
|
||
categoryId: '045d07ca-4300-4071-81ed-b3c549915820'
|
||
}, null, function(code, data) {
|
||
self.weekNews = data.rows
|
||
}, function(code, data) {
|
||
layer.msg(data.msg);
|
||
}, function() {
|
||
}, function() {
|
||
});
|
||
},
|
||
// 获取最新动态
|
||
getLatestDynamic: function () {
|
||
var self = this
|
||
top.restAjax.get(top.restAjax.path('api/content/listpage', []), {
|
||
page: 1,
|
||
rows: 5,
|
||
categoryId: 'b6ca6135-d469-453b-93d5-8a3f47340f0a'
|
||
}, null, function(code, data) {
|
||
self.dynamicList = data.rows
|
||
}, function(code, data) {
|
||
layer.msg(data.msg);
|
||
}, function() {
|
||
}, function() {
|
||
});
|
||
},
|
||
// 获取信息公开
|
||
getInfoPublic: function () {
|
||
var self = this
|
||
top.restAjax.get(top.restAjax.path('api/content/listpage', []), {
|
||
page: 1,
|
||
rows: 5,
|
||
categoryId: 'e1b31bdd-4537-4c97-ae59-d2a922a61cbd'
|
||
}, null, function(code, data) {
|
||
self.infoPublic = data.rows
|
||
}, function(code, data) {
|
||
layer.msg(data.msg);
|
||
}, function() {
|
||
}, function() {
|
||
});
|
||
},
|
||
// 获取轮播图
|
||
getBanner: function () {
|
||
var self = this
|
||
top.restAjax.get(top.restAjax.path('api/content/listpage', []), {
|
||
page: 1,
|
||
rows: 5,
|
||
categoryId: '7a9b2dcb-8d24-4d05-8f57-2ebbd63a8d90'
|
||
}, null, function(code, data) {
|
||
self.infoPublic = data.rows
|
||
}, function(code, data) {
|
||
layer.msg(data.msg);
|
||
}, function() {
|
||
}, function() {
|
||
});
|
||
},
|
||
// 获取通报曝光
|
||
getExposure: function () {
|
||
var self = this
|
||
top.restAjax.get(top.restAjax.path('api/content/listpage', []), {
|
||
page: 1,
|
||
rows: 6,
|
||
categoryId: 'e50b0c87-2416-4995-8561-f7502c1e2cdd'
|
||
}, null, function(code, data) {
|
||
self.exposureFirst = data.rows[0]
|
||
data.rows.splice(0,1)
|
||
self.exposureList = data.rows
|
||
}, function(code, data) {
|
||
layer.msg(data.msg);
|
||
}, function() {
|
||
}, function() {
|
||
});
|
||
},
|
||
},
|
||
mounted: function () {
|
||
this.getTopNav()
|
||
this.getGateNav()
|
||
this.getWeekNews()
|
||
this.getLatestDynamic()
|
||
this.getInfoPublic()
|
||
this.getExposure()
|
||
jQuery(".slide").slide({mainCell:".bd ul",effect:"left",autoPlay:true,delayTime:700});
|
||
}
|
||
})
|
||
</script>
|
||
</body>
|
||
</html>
|