(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/page-component/app-diy-timer/app-diy-timer"],{"15a0":function(e,t,n){"use strict";var a=n("cada"),i=n.n(a);i.a},"24f0":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(){n.e("components/basic-component/app-image/app-image").then(function(){return resolve(n("e7ea"))}.bind(null,n)).catch(n.oe)},i=function(){Promise.all([n.e("common/vendor"),n.e("components/basic-component/app-jump-button/app-jump-button")]).then(function(){return resolve(n("cf11"))}.bind(null,n)).catch(n.oe)},r={name:"app-timer",components:{"app-image":a,"app-jump-button":i},props:{picUrl:String,link:Object,startDateTime:{type:String,default:function(){return"2019-8-30 10:00:00"}},endDateTime:{type:String,default:function(){return"2019-8-30 10:00:00"}},pageHide:Boolean},data:function(){return{timeInterval:null,startTime:null,endTime:null,timerStr:null}},computed:{time:function(){return{startDateTime:this.startDateTime,endDateTime:this.endDateTime,pageHide:this.pageHide}}},beforeDestroy:function(){clearInterval(this.timeInterval)},watch:{time:{handler:function(e){var t=this;if(this.pageHide)clearInterval(this.timeInterval);else{var n=this.startDateTime,a=this.endDateTime;this.timeInterval=setInterval((function(){console.log("倒计时");var e=null,i=null,r=null;n&&(n=n.replace(/-/g,"/"),e=t.$utils.timeDifference((new Date).getTime(),new Date(n).getTime()),e&&(r=(e["d"]>0?e["d"]+"天":"")+e["h"]+"小时"+e["m"]+"分"+e["s"]+"秒")),a&&!r&&(a=a.replace(/-/g,"/"),i=t.$utils.timeDifference((new Date).getTime(),new Date(a).getTime()),i&&(r=(i["d"]>0?i["d"]+"天":"")+i["h"]+"小时"+i["m"]+"分"+i["s"]+"秒")),t.startTime=e,t.endTime=i,t.timerStr=r}),1e3)}},immediate:!0}}};t.default=r},3191:function(e,t,n){"use strict";n.r(t);var a=n("24f0"),i=n.n(a);for(var r in a)"default"!==r&&function(e){n.d(t,e,(function(){return a[e]}))}(r);t["default"]=i.a},"3fd6":function(e,t,n){"use strict";var a;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return a}));var i=function(){var e=this,t=e.$createElement;e._self._c},r=[]},a2ad:function(e,t,n){"use strict";n.r(t);var a=n("3fd6"),i=n("3191");for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);n("15a0");var u,c=n("f0c5"),o=Object(c["a"])(i["default"],a["b"],a["c"],!1,null,"3b0390cc",null,!1,a["a"],u);t["default"]=o.exports},cada:function(e,t,n){}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/page-component/app-diy-timer/app-diy-timer-create-component',
    {
        'components/page-component/app-diy-timer/app-diy-timer-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("a2ad"))
        })
    },
    [['components/page-component/app-diy-timer/app-diy-timer-create-component']]
]);
