This commit is contained in:
dong_bo0602 2021-09-02 11:06:41 +08:00
parent d39f376f01
commit b2ab6536f9
6 changed files with 83 additions and 73 deletions

View File

@ -157,7 +157,7 @@
.main-list{margin-top:10px;min-height:400px} .main-list{margin-top:10px;min-height:400px}
.main-list ul li{background:#fff;padding:20px;box-shadow:0 0 10px #eee;border-radius:5px;margin-bottom:10px} .main-list ul li{background:#fff;padding:20px;box-shadow:0 0 10px #eee;border-radius:5px;margin-bottom:10px}
.main-list ul li:last-child{margin-bottom:0} .main-list ul li:last-child{margin-bottom:0}
.main-list ul li .line{margin-bottom:10px;font-size:14px;color:#333} .main-list ul li .line{margin-bottom:10px;font-size:16px;color:#333}
.main-list ul li .line:last-child{margin-bottom:0} .main-list ul li .line:last-child{margin-bottom:0}
.main-list ul li .line span{font-weight:700;color:#3d41b7} .main-list ul li .line span{font-weight:700;color:#3d41b7}
.operation-btn{display:inline-block;width:90px;height:30px;border-radius:20px;font-size:14px;color:#fff;text-align:center;line-height:30px;margin-right:15px} .operation-btn{display:inline-block;width:90px;height:30px;border-radius:20px;font-size:14px;color:#fff;text-align:center;line-height:30px;margin-right:15px}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

View File

@ -6,82 +6,61 @@
<title>乡镇街道综合办公平台</title> <title>乡镇街道综合办公平台</title>
<link rel="stylesheet" href="assets/web/css/reset.css"> <link rel="stylesheet" href="assets/web/css/reset.css">
<link rel="stylesheet" href="assets/web/css/style.css"> <link rel="stylesheet" href="assets/web/css/style.css">
<link rel="stylesheet" href="assets/web/css/index.css">
</head> </head>
<body style="background: #f5f5f5"> <body style="background: #f5f5f5">
<div id="app"> <div id="app">
<div class="header assessment-header"> <div class="header child-header">
<div class="banner"> <div class="date">
<img src="assets/web/images/assessment-banner1.png" alt=""> <div class="day" v-cloak>
<span>今天是:</span>{{today}}
</div>
<div class="weather" v-cloak>
今天:{{weatherInfo.city}}
<img :src="weatherInfo.image" alt="">
{{weatherInfo.text}}{{weatherInfo.temperature}}℃
</div>
</div> </div>
<div class="nav child"> <div class="logo-nav">
<ul class="clearFloat" v-cloak> <div class="logo-nav-content">
<li> <div class="logo">
<a href="indexweb"> <a href="indexweb">
<div class="left fl"> <img src="assets/web/images/logo.png" alt="">
<span>首页</span>
<p>乡镇街道综合办公平台</p>
</div>
<div class="right fr">
<img src="assets/web/images/nav-icon1.png" alt="">
</div>
</a> </a>
</li> </div>
<li> <div class="nav">
<a href="javascript: void(0);"> <ul>
<div class="left fl"> <li>
<span>相关通知</span> <a href="indexweb">首页</a>
<p>各部门通知公告</p> </li>
</div> <li>
<div class="right fr"> <a href="route/web/news-list-column.html?pageId=04988903-8948-4645-9024-6c97f770c8d7">党纪法规</a>
<img src="assets/web/images/nav-icon2.png" alt=""> </li>
</div> <li>
</a> <a href="javascript: void(0);">
</li> 办公平台
<li> <div class="child">
<a href="route/web/public.html?id=6f0ec363-49a9-4174-a48f-290b69495dfc"> <span @click="goPublicPage('6f0ec363-49a9-4174-a48f-290b69495dfc')">四个清单</span>
<div class="left fl"> <span @click="goPublicPage('cdd5ffd5-ebd7-4901-afce-f2e98d506c97')">五项流程</span>
<span>四个清单</span> <span @click="goPublicPage('c912f0ff-d1e6-4346-a0cd-c955ea559a0b')">六本台账</span>
<p>四个清单</p> </div>
</div> </a>
<div class="right fr"> </li>
<img src="assets/web/images/nav-icon3.png" alt=""> <li>
</div> <a href="javascript: void(0);">通知公告</a>
</a> </li>
</li> <li>
<li> <a href="route/web/news-list-column.html?pageId=68167be6-3dbd-49d3-a956-d07e3e4384e5">警示教育</a>
<a href="route/web/public.html?id=cdd5ffd5-ebd7-4901-afce-f2e98d506c97"> </li>
<div class="left fl"> <li>
<span>五项流程</span> <a href="route/web/news-list-column.html?pageId=79da7965-1bff-4471-babe-7874474cb418">学习园地</a>
<p>五项流程</p> </li>
</div> <li>
<div class="right fr"> <!-- <a href="javascript: void(0);">管理员账户</a>-->
<img src="assets/web/images/nav-icon5.png" alt=""> </li>
</div> </ul>
</a> </div>
</li> </div>
<li>
<a href="route/web/public.html?id=c912f0ff-d1e6-4346-a0cd-c955ea559a0b">
<div class="left fl">
<span>六本台账</span>
<p>六本台账</p>
</div>
<div class="right fr">
<img src="assets/web/images/nav-icon3.png" alt="">
</div>
</a>
</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> </div>
@ -149,7 +128,8 @@
bottomNavList: [], bottomNavList: [],
pageTitle: '', pageTitle: '',
newsList: [], newsList: [],
loadLayerIndex: '' loadLayerIndex: '',
weatherInfo: {}
}, },
methods: { methods: {
// 获取顶部导航 // 获取顶部导航
@ -201,13 +181,38 @@
paging: function (page) { paging: function (page) {
this.page.page = page this.page.page = page
this.getNewsList() this.getNewsList()
} },
// 获取天气
getWeahther: function () {
var self = this
top.restAjax.get(top.restAjax.path('api/weather/get-weather-now', []), {}, null, function(code, data) {
self.weatherInfo = data
}, function(code, data) {
layer.msg(data.msg);
}, function() {
// loadLayerIndex = layer.load(0, {shade: false});
}, function() {
// layer.close(loadLayerIndex);
});
},
// 获取日期
getDate: function () {
var myDate = new Date;
var year = myDate.getFullYear(); //获取当前年
var mon = myDate.getMonth() + 1; //获取当前月
var date = myDate.getDate(); //获取当前日
var week = myDate.getDay();
var weeks = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
this.today = year + "年" + mon + "月" + date + "日 " + weeks[week]
},
}, },
mounted: function () { mounted: function () {
// this.getTopNav() // this.getTopNav()
this.page.departmentId = restAjax.params(window.location.href).departmentId this.page.departmentId = restAjax.params(window.location.href).departmentId
this.getGateNav() this.getGateNav()
this.getNewsList() this.getNewsList()
this.getWeahther()
this.getDate()
} }
}) })
</script> </script>

View File

@ -63,6 +63,11 @@
</div> </div>
</div> </div>
</div> </div>
<div class="page-icon" style="width: 1200px;margin: 20px auto;">
<img src="assets/web/images/four-title-icon.png" alt="" v-if="pageId == '6f0ec363-49a9-4174-a48f-290b69495dfc'">
<img src="assets/web/images/five-title-icon.png" alt="" v-if="pageId == 'cdd5ffd5-ebd7-4901-afce-f2e98d506c97'">
<img src="assets/web/images/six-title-icon.png" alt="" v-if="pageId == 'c912f0ff-d1e6-4346-a0cd-c955ea559a0b'">
</div>
<div class="count clearFloat"> <div class="count clearFloat">
<div class="chart-box fl" style="float:left;width:22%;"> <div class="chart-box fl" style="float:left;width:22%;">
<div class="count-title">指标状态占比统计</div> <div class="count-title">指标状态占比统计</div>