webpackJsonp([23],{384:function(e,t,n){function i(e){n(468)}var a=n(1)(n(458),n(476),i,"data-v-8d11fe5e",null);e.exports=a.exports},458:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={data:function(){return{time:"00:00",day:"",week:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],todayWeek:"",hours:"  ",hour:"",timeId:null}},watch:{hour:function(e){console.info("computed hour"),this.hours=e<6?"凌晨":e<9?"早上":e<12?"上午":e<14?"中午":e<17?"下午":e<19?"傍晚":"晚上"}},created:function(){this.updateTime(),this.timeId=setInterval(this.updateTime,1e3)},methods:{updateTime:function(){var e=new Date;this.todayWeek=this.week[e.getDay()],this.hour=e.getHours(),this.time=this.zeroPadding(e.getHours(),2)+(e.getSeconds()%2==0?"<span>:</span>":'<span style="color: transparent">:</span>')+this.zeroPadding(e.getMinutes(),2),this.day=e.getFullYear()+"年"+this.zeroPadding(e.getMonth()+1,2)+"月"+this.zeroPadding(e.getDate(),2)+"日 ",e=null},zeroPadding:function(e,t){for(var n="",i=0;i<t;i++)n+="0";return(n+e).slice(-t)}},beforeDestroy:function(){this.timeId&&window.clearInterval(this.timeId)}}},465:function(e,t,n){t=e.exports=n(378)(!1),t.push([e.i,".clock[data-v-8d11fe5e]{border-radius:3px;text-align:center}.date[data-v-8d11fe5e]{display:inline-block;font-size:.8rem}.date .week span[data-v-8d11fe5e]:last-child{margin-left:.6vw}.time[data-v-8d11fe5e]{display:inline-block;letter-spacing:.05em;text-align:right;padding:0;font-weight:700;font-size:1rem}",""])},468:function(e,t,n){var i=n(465);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n(379)("af0178ba",i,!0)},476:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"clock"},[n("div",{staticClass:"date hidden-xs"},[n("div",{staticClass:"week"},[n("span",{domProps:{textContent:e._s(e.day)}}),e._v(" "),n("span",{domProps:{textContent:e._s(e.todayWeek)}}),e._v(" "),n("span",{staticClass:"time",domProps:{innerHTML:e._s(e.time)}})])])])},staticRenderFns:[]}}});