|
|
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/CountDown"],{6826: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,i=0,a=0;e>0?(n=!0===t.isDay?Math.floor(e/86400):0,o=Math.floor(e/3600)-24*n,i=Math.floor(e/60)-24*n*60-60*o,a=Math.floor(e)-24*n*60*60-60*o*60-60*i,o<=9&&(o="0"+o),i<=9&&(i="0"+i),a<=9&&(a="0"+a),t.day=n,t.hour=o,t.minute=i,t.second=a):(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},efc3:function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var i=function(){var t=this,e=t.$createElement;t._self._c},a=[]},fa94:function(t,e,n){"use strict";n.r(e);var o=n("6826"),i=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},fdd5:function(t,e,n){"use strict";n.r(e);var o=n("efc3"),i=n("fa94");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var r,u=n("f0c5"),l=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],r);e["default"]=l.exports}}]);
|