(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/uni-countdown/uni-countdown"],{"86a6":function(t,n,o){"use strict";var e=o("8c09"),i=o.n(e);i.a},"8b6a":function(t,n,o){"use strict";o.r(n);var e=o("b2e3"),i=o("8bb0");for(var s in i)["default"].indexOf(s)<0&&function(t){o.d(n,t,(function(){return i[t]}))}(s);o("86a6");var a=o("f0c5"),c=Object(a["a"])(i["default"],e["b"],e["c"],!1,null,"341366f3",null,!1,e["a"],void 0);n["default"]=c.exports},"8bb0":function(t,n,o){"use strict";o.r(n);var e=o("b883"),i=o.n(e);for(var s in e)["default"].indexOf(s)<0&&function(t){o.d(n,t,(function(){return e[t]}))}(s);n["default"]=i.a},"8c09":function(t,n,o){},b2e3:function(t,n,o){"use strict";o.d(n,"b",(function(){return e})),o.d(n,"c",(function(){return i})),o.d(n,"a",(function(){}));var e=function(){var t=this.$createElement;this._self._c},i=[]},b883:function(t,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={name:"UniCountdown",props:{showDay:{type:Boolean,default:!0},showColon:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#000000"},color:{type:String,default:"#000000"},splitorColor:{type:String,default:"#000000"},day:0,hour:0,minute:0,second:0},data:function(){return{timer:null,syncFlag:!1,d:"00",h:"00",i:"00",s:"00",leftTime:0,seconds:0}},watch:{day:function(t){console.log(t,"day"),this.changeFlag()},hour:function(t){this.changeFlag()},minute:function(t){this.changeFlag()},second:function(t){this.changeFlag()}},created:function(t){this.startData()},beforeDestroy:function(){clearInterval(this.timer)},methods:{toSeconds:function(t,n,o,e){return 60*t*60*24+60*n*60+60*o+e},timeUp:function(){clearInterval(this.timer),this.$emit("timeup")},countDown:function(){var t=this.seconds,n=0,o=0,e=0,i=0;t>0?(n=Math.floor(t/86400),o=Math.floor(t/3600)-24*n,e=Math.floor(t/60)-24*n*60-60*o,i=Math.floor(t)-24*n*60*60-60*o*60-60*e):this.timeUp(),o+=24*n,n<10&&(n="0"+n),o<10&&(o="0"+o),e<10&&(e="0"+e),i<10&&(i="0"+i),this.d=n,this.h=o,this.i=e,this.s=i},startData:function(){var t=this;this.seconds=this.toSeconds(this.day,this.hour,this.minute,this.second),this.seconds<=0||(this.countDown(),this.timer=setInterval((function(){t.seconds--,t.seconds<0?t.timeUp():t.countDown()}),1e3))},changeFlag:function(){this.syncFlag||(this.seconds=this.toSeconds(this.day,this.hour,this.minute,this.second),console.log(this.seconds),this.startData(),this.syncFlag=!0)}}};n.default=e}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/uni-countdown/uni-countdown-create-component',
    {
        'components/uni-countdown/uni-countdown-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("8b6a"))
        })
    },
    [['components/uni-countdown/uni-countdown-create-component']]
]);
