(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/page-component/app-diy-timer/app-diy-timer"],{"0da0":function(e,t,n){},"317f":function(e,t,n){"use strict";var i,a=function(){var e=this,t=e.$createElement;e._self._c},r=[];n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}))},"546d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(){n.e("components/basic-component/app-image/app-image").then(function(){return resolve(n("ee18"))}.bind(null,n)).catch(n.oe)},a=function(){Promise.all([n.e("common/vendor"),n.e("components/basic-component/app-jump-button/app-jump-button")]).then(function(){return resolve(n("9e5c"))}.bind(null,n)).catch(n.oe)},r={name:"app-timer",components:{"app-image":i,"app-jump-button":a},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,i=this.endDateTime;this.timeInterval=setInterval((function(){console.log("倒计时");var e=null,a=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"]+"秒")),i&&!r&&(i=i.replace(/-/g,"/"),a=t.$utils.timeDifference((new Date).getTime(),new Date(i).getTime()),a&&(r=(a["d"]>0?a["d"]+"天":"")+a["h"]+"小时"+a["m"]+"分"+a["s"]+"秒")),t.startTime=e,t.endTime=a,t.timerStr=r}),1e3)}},immediate:!0}}};t.default=r},5758:function(e,t,n){"use strict";n.r(t);var i=n("317f"),a=n("dc1a");for(var r in a)"default"!==r&&function(e){n.d(t,e,(function(){return a[e]}))}(r);n("db35");var u,c=n("f0c5"),o=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"5c08931c",null,!1,i["a"],u);t["default"]=o.exports},db35:function(e,t,n){"use strict";var i=n("0da0"),a=n.n(i);a.a},dc1a:function(e,t,n){"use strict";n.r(t);var i=n("546d"),a=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=a.a}}]);
;(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__("5758"))
        })
    },
    [['components/page-component/app-diy-timer/app-diy-timer-create-component']]
]);
