weizong song 5 years ago
parent a17cdccf09
commit 1be03f418d

BIN
.DS_Store vendored

Binary file not shown.

BIN
bootstrap/.DS_Store vendored

Binary file not shown.

@ -0,0 +1,445 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="format-detection" content="telephone=no" />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
<meta http-equiv="expires" content="0">
<meta name="description" content="护工管理平台驾驶舱">
<meta name="keywords" content="护工管理平台驾驶舱">
<title>护工管理平台驾驶舱</title>
<!-- Bootstrap -->
<script src="skin/default/js/jquery.min.js" type="text/javascript"></script>
<script src="skin/default/js/style.js" type="text/javascript"></script>
<script src="skin/default/js/bootstrap.min.js" type="text/javascript"></script>
<link href="skin/default/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="skin/default/css/css.css" rel="stylesheet" type="text/css">
<script src="skin/default/js/echarts.min.js" type="text/javascript"></script>
<!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询media queries功能 -->
<!-- 警告:通过 file:// 协议(就是直接将 html 页面拖拽到浏览器中)访问页面时 Respond.js 不起作用 -->
<!--[if lt IE 9]>
<script src="skin/default/js/html5shiv.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
<![endif]-->
<style>
body{ background-size: 100% 100%;}
</style>
</head>
<body style="background: url(skin/default/images/bg.jpg) no-repeat left top;">
<div class="headimg">
<img src="skin/default/images/head.png">
</div>
<div class="wrap">
<div class="headTop">
<a class="location">驾驶舱</a>
<div class="timebox"></div>
</div>
<div class="clear"></div>
<div class="mainleft">
<div class="leftbox">
<!-- 护工陪护实时概况 -->
<div class="hgphbox">
<h2>护工陪护实时概况</h2>
<div class="hgleft">
<p>护工数: 940</p>
<p>已陪护: 850</p>
<p>未陪护: 10</p>
<p>上工率: 90%</p>
</div>
<div id="hg" class="hgright"></div>
</div>
<!-- 床位陪护实时概况 -->
<div class="cwphbox">
<h2>床位陪护实时概况</h2>
<div class="cwleft">
<p>床位数: 940</p>
<p>未陪护: 850</p>
<p>已陪护: 10</p>
<p>床位护理率: 90%</p>
</div>
<div id="cw" class="cwright"></div>
</div>
</div>
<!-- 地图 -->
<div class="mapbox" id="map">
<img src="skin/default/images/map.jpg">
</div>
</div>
<!-- 本月陪护订单分析 -->
<div class="mainright">
<div class="byph">
<h2>本月陪护订单分析</h2>
<div id="byph" class="bybox"></div>
</div>
<!-- 本月营收占比分析 -->
<div class="byys">
<h2>本月营收占比分析</h2>
<div class="ysbox" id="ysbox"></div>
</div>
</div>
<div class="clear"></div>
<div class="mainbottom">
<!-- 陪护统计表 -->
<div class="lists">
<h2>陪护统计表</h2>
<div class="tableContent">
<div id="phtable" class="box"></div>
<div id="cwtable" class="box"></div>
</div>
<div class="tab">
<a>护工</a>
<a>床位</a>
</div>
</div>
<!-- 5月自动巡检信息 -->
<div class="lists">
<h2>5月自动巡检信息</h2>
<table class="fx" width="100%" border='0' cellpadding='0' cellspacing='0'>
<tr>
<td width="25%" style="padding-left: 15px;">张大伯</td>
<td width="60%">第一人民医院内科楼15床</td>
<td width="15%"><span class="ways">已派工</span></td>
</tr>
<tr>
<td width="25%" style="padding-left: 15px;">张大伯</td>
<td width="60%">第一人民医院内科楼15床</td>
<td width="15%"><span class="ways">已派工</span></td>
</tr>
<tr>
<td width="25%" style="padding-left: 15px;">张大伯</td>
<td width="60%">第一人民医院内科楼15床</td>
<td width="15%"><span class="ways">待处理</span></td>
</tr>
<tr>
<td width="25%" style="padding-left: 15px;">张大伯</td>
<td width="60%">第一人民医院内科楼15床</td>
<td width="15%"><span class="ways">待派工</span></td>
</tr>
<tr>
<td width="25%" style="padding-left: 15px;">张大伯</td>
<td width="60%">第一人民医院内科楼15床</td>
<td width="15%"><span class="ways">待派工</span></td>
</tr>
<tr>
<td width="25%" style="padding-left: 15px;">张大伯</td>
<td width="60%">第一人民医院内科楼15床</td>
<td width="15%"><span class="ways">已派工</span></td>
</tr>
<tr>
<td width="25%" style="padding-left: 15px;">张大伯</td>
<td width="60%">第一人民医院内科楼15床</td>
<td width="15%"><span class="ways">已派工</span></td>
</tr>
</table>
</div>
<!-- 最新出院信息 -->
<div class="lists">
<h2>最新出院信息</h2>
<table class="fx" width="100%" border='0' cellpadding='0' cellspacing='0'>
<tr>
<td width="25%" style="padding-left: 15px;">张大伯</td>
<td width="60%">第一人民医院内科楼15床</td>
<td width="15%"><span class="ways">已结算</span></td>
</tr>
<tr>
<td width="25%" style="padding-left: 15px;">张大伯</td>
<td width="60%">第一人民医院内科楼15床</td>
<td width="15%"><span class="ways">已结算</span></td>
</tr>
<tr>
<td></td>
<td></td>
<td><span></span></td>
</tr>
<tr>
<td></td>
<td></td>
<td><span></span></td>
</tr>
<tr>
<td></td>
<td></td>
<td><span></span></td>
</tr>
<tr>
<td></td>
<td></td>
<td><span></span></td>
</tr>
<tr>
<td></td>
<td></td>
<td><span></span></td>
</tr>
</table>
</div>
<!-- 最新投诉信息 -->
<div class="lists">
<h2>最新投诉信息</h2>
<table class="fx" width="100%" border='0' cellpadding='0' cellspacing='0'>
<tr>
<td width="50%" style="padding-left: 15px;">刘大伯投诉袁护工</td>
<td width="50%">武进中医院住院部23床</td>
</tr>
<tr>
<td width="50%" style="padding-left: 15px;">张大伯投诉王护工</td>
<td width="50%">武进中医院住院部23床</td>
</tr>
<tr>
<td width="50%" style="padding-left: 15px;">张大伯投诉王护工</td>
<td width="50%">武进中医院住院部23床</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
</div>
<!-- 上月满意度评价分析 -->
<div class="lists">
<h2>上月满意度评价分析</h2>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="comments">
<tr class="skillbar">
<td width="25%" style="padding-left: 18px;">工号<a>103</a></td>
<td width="55%" class="fill"><div class="filled" data-width="100%"></div></td>
<td width="20%" style="padding-left: 10px;"><span class="percent">100</span></td>
</tr>
<tr class="skillbar">
<td width="25%" style="padding-left: 18px;">工号<a>136</a></td>
<td width="55%" class="fill"><div class="filled" data-width="90%"></div></td>
<td width="20%" style="padding-left: 10px;"><span class="percent">90</span></td>
</tr>
<tr class="skillbar">
<td width="25%" style="padding-left: 18px;">工号<a>015</a></td>
<td width="55%" class="fill"><div class="filled" data-width="80%"></div></td>
<td width="20%" style="padding-left: 10px;"><span class="percent">80</span></td>
</tr>
<tr class="skillbar">
<td width="25%" style="padding-left: 18px;">工号<a>011</a></td>
<td width="55%" class="fill"><div class="filled" data-width="60%"></div></td>
<td width="20%" style="padding-left: 10px;"><span class="percent">60</span></td>
</tr>
<tr class="skillbar">
<td width="25%" style="padding-left: 18px;">工号<a>002</a></td>
<td width="55%" class="fill"><div class="filled" data-width="55%"></div></td>
<td width="20%" style="padding-left: 10px;"><span class="percent">55</span></td>
</tr>
<tr class="skillbar">
<td width="25%" style="padding-left: 18px;">工号<a>001</a></td>
<td width="55%" class="fill"><div class="filled" data-width="45%"></div></td>
<td width="20%" style="padding-left: 10px;"><span class="percent">45</span></td>
</tr>
</table>
</div>
</div>
</div>
<script src="skin/default/js/an-skill-bar.js"></script>
<script>
$('.skillbar').skillbar({
speed: 1000,
});
// 护工陪护实时概况
var option = {
series:[{
// name:'访问量',
type:'pie',
color:["#ffc34a","#04c6c7"] ,
radius:'70%',
data:[
{value:140,name:'已陪护'},
{value:800,name:'未陪护'}
]
}]
};
var myChart = echarts.init(document.getElementById('hg'));
myChart.setOption(option);
// 床位陪护实时概况
var option1 = {
series:[{
type:'pie',
color:["#ffc34a","#04c6c7"] ,
radius:'70%',
data:[
{value:140,name:'已陪护'},
{value:800,name:'未陪护'}
]
}]
};
var myChart1 = echarts.init(document.getElementById('cw'));
myChart1.setOption(option1);
// 本月陪护订单分析
var option2 = {
tooltip:{},
color:['#018fff'],
lineStyle:{
color:'#018fff'
},
legend:{
itemWidth:18,
itemHeight:8,
itemGap:10,
data:['陪护订单量'],
orient: 'vertical',
left: 'center',
textStyle:{
color:"rgba(255,255,255,.7)",
fontSize:'14px'
}
},
xAxis:{
type: 'category',
axisLine:{
show:true,
lineStyle:{
color:'#018fff',
}
},
axisTick:{
show:true,
alignWithLabel: true ,
},
axisLabel:{
interval:0,
textStyle:{
color:'#fff',
fontSize:'14px'
}
},
data:["第一人民医院","市中医院","二院阳湖院","武中"],
},
yAxis:{
axisLine:{
show:true,
lineStyle:{
color:'#018fff',
}
},
axisTick:{
show:true,
alignWithLabel: true ,
},
axisLabel:{
interval:0,
textStyle:{
color:'#fff',
fontSize:'14px'
}
},
type:'value',
name:'订单数',
nameTextStyle:{
color:"#2b7ba0",
fontSize:'14px'
}
},
series:[{
name: '陪护订单量',
type: 'pictorialBar',
barCategoryGap: '40%',
symbol: 'triangle',
itemStyle: {
normal: {
opacity: 0.5
},
emphasis: {
opacity: 1
}
},
data:[{
value:52,
itemStyle:{
color: 'red'
}
},28,11,19],
}, {
name: '陪护订单量',
type: 'pictorialBar',
barGap: '-100%',
symbolPosition: 'end',
symbolSize: 50,
symbolOffset: [0, '-120%'],
}]
};
var myChart2 = echarts.init(document.getElementById('byph'));
myChart2.setOption(option2);
// 本月营收占比分析
var option3 = {
tooltip: {
trigger: 'item'
},
legend: {
show:true,
itemWidth:18,
itemHeight:8,
itemGap:10,
data:[{
name:'第一人民医院',
itemStyle:{
color:"#01babb",
}
},{
name:"市中医院",
itemStyle:{
color:"#ffb22f",
}
},{
name:"武中",
itemStyle:{
color:"#ff4954",
}
}],
textStyle:{
color:"#02c1c1",
fontSize:'14px'
},
orient: 'vertical',
left: 'left',
},
series: [
{
type: 'pie',
radius: '70%',
center: ['50%', '50%'],
color:["#ffb22f","#ff4954","#01babb"],
data: [
{value: 15, name: '武中'},
{value: 25, name: '市中医院'},
{value: 75, name: '第一人民医院'},
].sort(function (a, b) { return a.value - b.value; }),
roseType: 'radius',
emphasis: {
itemStyle: {
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
}
}
]
};
var myChart3 = echarts.init(document.getElementById('ysbox'));
myChart3.setOption(option3);
//
</script>
</body>
</html>

File diff suppressed because it is too large Load Diff

@ -0,0 +1,245 @@
@charset "utf-8";
body{ font-family:pingfang-r,"微软雅黑","思源黑体"; margin:0; padding:0; color: #444;}
p,dl,dd,ul,ol,li,h1,h2,h3,h4,h5,h6{ margin:0; padding:0;}
h1,h2,h3,h4,h5,h6,dt{ font-weight:normal;}
li{ list-style:none;}
a{text-decoration:none;}
a:focus, a:hover{text-decoration:none;}
img{ border: none; outline: none;}
input,button{ border:none; outline:none; background: none;}
button:hover,button:focus,button:active{ outline: none; }
input::-moz-placeholder{ color: #aaa;}
input:-ms-input-placeholder { color: #aaa; }
input::-webkit-input-placeholder{ color:#aaa; }
input::placeholder{ color:#aaa; }
textarea::-moz-placeholder{color:#aaa; }
textarea:-ms-input-placeholder { color:#aaa; }
textarea::-webkit-input-placeholder{ color:#aaa; }
.clear{clear: both; margin: 0; padding: 0;}
.clearfix:after{ content: ""; display:block; height: 0; clear: both; visibility: hidden;}
.clearfix{*zoom:1;}
.headimg{
width: 818px;
position: absolute;
top: 0;
left: 50%;
margin-left: -409px;
}
.wrap{
width: 1896px;
margin: auto;
overflow: hidden;
margin-top: 12px;
padding: 26px 27px 13px;
position:relative ;
background: url(../images/bg1.png) no-repeat left top;
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
}
.headTop a.location{
float: left;
padding-left:38px;
font-size: 18px;
margin-bottom: 27px;
color: #07c2ff;
background: url(../images/home.png) no-repeat left center;
}
.headTop .timebox{
float: right;
font-size: 18px;
color: #07c2ff;
}
.mainleft{
float: left;
width: 1448px;
}
.leftbox{
width: 374px;
float: left;
}
.hgphbox,.cwphbox{
background: url(../images/bg2.png) no-repeat left top;
height: 305px;
padding: 0 24px 45px;
margin-bottom: 20px;
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
}
.hgphbox h2,.cwphbox h2{
color: #3cade1;
text-align: center;
line-height: 36px;
font-size: 16px;
margin-bottom: 48px;
}
.hgphbox .hgleft,.cwphbox .cwleft{
float: left;
width: 115px;
}
.hgphbox p,.cwphbox p{
font-size: 14px;
line-height: 36px;
color: #21b9ff;
}
.hgphbox .hgright,.cwphbox .cwright{
width: 200px;
height: 170px;
float: right;
}
.mapbox{
width: 1056px;
float: right;
height: 628px;
}
.mainright{
float: right;
width: 374px;
}
.byph,.byys{
background: url(../images/bg2.png) no-repeat left top;
height: 305px;
padding: 0 24px 45px;
margin-bottom: 20px;
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
}
.bybox{
width: 340px;
height: 230px;
}
.byph h2,.byys h2{
color: #3cade1;
text-align: center;
line-height: 36px;
font-size: 16px;
margin-bottom: 10px;
}
.ysbox{
width: 330px;
height: 200px;
}
.mainbottom{
overflow: hidden;
}
.tableContent{
height: 230px;
}
.tab{
width: 96px;
height: 20px;
}
.mainbottom .lists{
float: left;
height: 305px;
margin-right: 20px;
}
.lists h2{
font-size: 16px;
color: #3cade1;
text-align: center;
line-height: 38px;
}
.lists.index0{
width: 374px;
background: url(../images/bg2.png) no-repeat left top;
}
.lists.index1,.lists.index2,.lists.index3{
width: 338px;
}
.lists.index1{
background: url(../images/bg3.png) no-repeat left top;
}
.lists.index2{
background: url(../images/bg4.png) no-repeat left top;
}
.lists.index2 h2{
color: #ff4f5b;
}
.lists.index3{
background: url(../images/bg5.png) no-repeat left top;
}
.lists.index3 h2{
color: #f9a20b;
}
.lists.index4{
width: 374px;
margin-right: 0;
background: url(../images/bg2.png) no-repeat left top;
}
.lists table.fx{
}
.fx tr{
background: rgba(0,71,162,.2);
}
.fx tr td{
font-size: 14px;
color: #fff;
line-height: 38px;
}
.fx tr td span{
font-weight: 600;
}
.comments{
margin-top: 40px;
}
.skillbar td{
color: #22b1fc;
font-size: 14px;
height: 14px;
padding-bottom: 10px;
}
.skillbar td a{
color: #fff;
margin-left: 5px;
}
.skillbar span.percent{
font-size: 16px;
font-weight: bold;
font-style: italic;
margin-right: 8px;
}
.skillbar .title{
}
.skillbar .fill{
position: relative;
}
.skillbar .filled{
z-index:8;
position:absolute;
top:4px;
left:0;
background-color:rgba(0, 0, 0, 0.3);
height:14px;
width:100%;
}
.skillbar.index0 .filled{
background-image: linear-gradient(to right, #0076ff , #05abff);
}
.skillbar.index1 .filled{
background-image: linear-gradient(to right, #0076ff , #05acff);
}
.skillbar.index2 .filled{
background-image: linear-gradient(to right, #e5a83f , #ffe4b8);
}
.skillbar.index3 .filled{
background-image: linear-gradient(to right, #fb3b77 , #ff8cc1);
}
.skillbar.index4 .filled{
background-image: linear-gradient(to right, #fb3b77 , #ff8cc1);
}
.skillbar.index5 .filled{
background-image: linear-gradient(to right, #fb3b77 , #ff8cc1);
}
.skillbar.index6 .filled{
background-image: linear-gradient(to right, #fb3b77 , #ff8cc1);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 KiB

@ -0,0 +1,11 @@
"use strict";/*
* Plugin: an-progress-bar
* Version: 1.0.1
* Description: A plugin that fills bars with a percentage you set.
* Author: Hasan Misbah
* Copyright 2018, Hasan Misbah
* Free to use and abuse under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
!function(i){i.fn.skillbar=function(t){var e=i.extend({speed:1e3,bg:""},t),n=e.bg,d=i(this).find(".filled"),s=i(this).find(".title");return n?(d.css({"background-color":n}),s.css({"background-color":"rgba(0,0,0,0.5)"})):this.each(function(t){i(this).find(".filled").animate({width:i(this).find(".filled").data("width")},e.speed)}),this}}(jQuery);
//# sourceMappingURL=an-skill-bar.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1,4 @@
/**
* @preserve HTML5 Shiv 3.7.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
*/
!function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=t.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=t.elements;"string"!=typeof c&&(c=c.join(" ")),"string"!=typeof a&&(a=a.join(" ")),t.elements=c+" "+a,j(b)}function f(a){var b=s[a[q]];return b||(b={},r++,a[q]=r,s[r]=b),b}function g(a,c,d){if(c||(c=b),l)return c.createElement(a);d||(d=f(c));var e;return e=d.cache[a]?d.cache[a].cloneNode():p.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!e.canHaveChildren||o.test(a)||e.tagUrn?e:d.frag.appendChild(e)}function h(a,c){if(a||(a=b),l)return a.createDocumentFragment();c=c||f(a);for(var e=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)e.createElement(h[g]);return e}function i(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return t.shivMethods?g(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(t,b.frag)}function j(a){a||(a=b);var d=f(a);return!t.shivCSS||k||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),l||i(a,d),a}var k,l,m="3.7.2",n=a.html5||{},o=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,q="_html5shiv",r=0,s={};!function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",k="hidden"in a,l=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){k=!0,l=!0}}();var t={elements:n.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:m,shivCSS:n.shivCSS!==!1,supportsUnknownElements:l,shivMethods:n.shivMethods!==!1,type:"default",shivDocument:j,createElement:g,createDocumentFragment:h,addElements:e};a.html5=t,j(b)}(this,document);

File diff suppressed because one or more lines are too long

@ -0,0 +1,52 @@
$(function(){
timeDate();
setInterval(timeDate, 1000);
$(".lists").each(function(){
var index = $(this).index();
$(this).addClass("index"+index);
})
$(".fx tr:nth-child(even)").css("background",'none');
$(".ways").each(function(){
if($(this).html()=="待处理"){
$(this).css('color','#ff4f5b');
}else if($(this).html()=="待派工"){
$(this).css('color','#f9a20b');
}else if($(this).html()=="已结算"){
$(this).css('color','#ff4f5b');
}
});
$(".skillbar").each(function(){
var index = $(this).index();
$(this).addClass("index"+index);
})
$('.skillbar').skillbar({
speed: 1000,
});
})
function timeDate(){
var myDate = new Date;
var year = myDate.getFullYear(); //获取年份
var mon = myDate.getMonth() + 1; //获取月份
var day = myDate.getDate();
var h = myDate.getHours(); //获取小时
var m = myDate.getMinutes();//获取分钟
var s = myDate.getSeconds();//获取秒
h = checktime(h);
m = checktime(m);
s = checktime(s);
//console.log(year, mon, day, weeks[week])
$(".timebox").html(year + "-" + mon + "-" + day +"&nbsp;&nbsp;" + h + " : " + m + " : " +s);
// $("#yearMon").html(year + "年" + mon +"月");
// $("#daytime").html(day);
// $("#week").html(weeks[week]);
// $(".hourtime").html(h + " : " + m + " : " + s);
}
function checktime(i){
if (i < 10) {
i = "0" + i;
}
return i;
}
Loading…
Cancel
Save