(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/CountDown"],{6975:function(t,e,n){"use strict";n.r(e);var o=n("a679"),a=n.n(o);for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=a.a},"7e6d":function(t,e,n){"use strict";n.r(e);var o=n("d7ae"),a=n("6975");for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);var r,u=n("f0c5"),l=Object(u["a"])(a["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],r);e["default"]=l.exports},a679:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={name:"CountDown",props:{tipText:{type:String,default:"倒计时"},dayText:{type:String,default:"天"},hourText:{type:String,default:"时"},minuteText:{type:String,default:"分"},secondText:{type:String,default:"秒"},datatime:{},isDay:{type:Boolean,default:!0}},data:function(){return{time:null,day:"00",hour:"00",minute:"00",second:"00"}},created:function(){this.show_time()},watch:{datatime:function(t){clearInterval(this.timeInterval),this.time=t,this.show_time()}},mounted:function(){},methods:{show_time:function(){var t=this;function e(){var e=t.time-Date.parse(new Date)/1e3,n=0,o=0,a=0,i=0;e>0?(n=!0===t.isDay?Math.floor(e/86400):0,o=Math.floor(e/3600)-24*n,a=Math.floor(e/60)-24*n*60-60*o,i=Math.floor(e)-24*n*60*60-60*o*60-60*a,o<=9&&(o="0"+o),a<=9&&(a="0"+a),i<=9&&(i="0"+i),t.day=n,t.hour=o,t.minute=a,t.second=i):(t.day="00",t.hour="00",t.minute="00",t.second="00")}13==parseInt(this.time).length?(console.log("毫秒"),this.time=this.time/1e3):10==parseInt(this.time).length?console.log("秒"):(console.log("时间"),console.log(this.time),this.time=Date.parse(this.time)/1e3),console.log(t.time),e(),this.timeInterval=setInterval(e,1e3)}}};e.default=o},d7ae:function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var a=function(){var t=this,e=t.$createElement;t._self._c},i=[]}}]); ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ 'components/CountDown-create-component', { 'components/CountDown-create-component':(function(module, exports, __webpack_require__){ __webpack_require__('543d')['createComponent'](__webpack_require__("7e6d")) }) }, [['components/CountDown-create-component']] ]);