index.js 2.3 KB

12345678910
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/countDown/index"],{"405a":function(t,e,n){},6498:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var a=function(){var t=this.$createElement,e=(this._self._c,this.tipText.trim());this.$mp.data=Object.assign({},{$root:{g0:e}})},o=[]},8030:function(t,e,n){"use strict";n.r(e);var a=n("6498"),o=n("cbee");for(var u in o)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(u);n("c401");var i=n("f0c5"),r=Object(i["a"])(o["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);e["default"]=r.exports},c401:function(t,e,n){"use strict";var a=n("405a"),o=n.n(a);o.a},cbee:function(t,e,n){"use strict";n.r(e);var a=n("d5cf"),o=n.n(a);for(var u in a)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(u);e["default"]=o.a},d5cf:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={name:"countDown",props:{justifyLeft:{type:String,default:""},tipText:{type:String,default:"倒计时"},dayText:{type:String,default:"天"},hourText:{type:String,default:"时"},minuteText:{type:String,default:"分"},secondText:{type:String,default:"秒"},datatime:{type:Number,default:0},isDay:{type:Boolean,default:!0},isSecond:{type:Boolean,default:!0},bgColor:{type:String,default:""},colors:{type:String,default:""}},data:function(){return{day:"00",hour:"00",minute:"00",second:"00"}},created:function(){this.show_time()},mounted:function(){},methods:{show_time:function(){var t=this;function e(){var e=t.datatime-Date.parse(new Date)/1e3,n=0,a=0,o=0,u=0;e>0?(n=!0===t.isDay?Math.floor(e/86400):0,a=Math.floor(e/3600)-24*n,o=Math.floor(e/60)-24*n*60-60*a,u=Math.floor(e)-24*n*60*60-60*a*60-60*o,a<=9&&(a="0"+a),o<=9&&(o="0"+o),u<=9&&(u="0"+u),t.day=n,t.hour=a,t.minute=o,t.second=u):(t.day="00",t.hour="00",t.minute="00",t.second="00")}e(),setInterval(e,1e3)}}};e.default=a}}]);
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'components/countDown/index-create-component',
  4. {
  5. 'components/countDown/index-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('543d')['createComponent'](__webpack_require__("8030"))
  7. })
  8. },
  9. [['components/countDown/index-create-component']]
  10. ]);