12345678910 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/CountDown"],{2569:function(t,e,n){"use strict";n.r(e);var i=n("59f8"),r=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=r.a},"54c4":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement;this._self._c},r=[]},"59f8":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"CountDown",data:function(){return{flag:!1,day:"",hours:"",minute:"",second:"",time:""}},props:{timesurplus:{},timelimithour:{},timetype:{},styletype:{},ifTimeBlock:{}},mounted:function(){var t=this;this.time=setInterval((function(){1==t.flag?clearInterval(t.time):t.timeDown()}),1e3)},methods:{timeDown:function(){var t=0;1==this.timetype?t=parseInt(this.timesurplus/1e3):2==this.timetype&&(t=parseInt((1e3*this.timesurplus+60*this.timelimithour*60*1e3-(new Date).getTime())/1e3)),this.styletype||(this.day=parseInt(t/86400)),this.hours=this.formate(parseInt(t/3600%24)),this.minute=this.formate(parseInt(t/60%60)),this.second=this.formate(parseInt(t%60)),t<=0&&(this.flag=!0,this.$emit("time-end"))},formate:function(t){return t>=10?t:"0".concat(t)}}};e.default=i},"9f89":function(t,e,n){"use strict";n.r(e);var i=n("54c4"),r=n("2569");for(var s in r)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(s);n("dadd");var u=n("f0c5"),a=Object(u["a"])(r["default"],i["b"],i["c"],!1,null,"1a199f26",null,!1,i["a"],void 0);e["default"]=a.exports},d122:function(t,e,n){},dadd:function(t,e,n){"use strict";var i=n("d122"),r=n.n(i);r.a}}]);
- ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
- 'pages/CountDown-create-component',
- {
- 'pages/CountDown-create-component':(function(module, exports, __webpack_require__){
- __webpack_require__('543d')['createComponent'](__webpack_require__("9f89"))
- })
- },
- [['pages/CountDown-create-component']]
- ]);
|