gift-method.js 3.7 KB

12345678910
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/gift/components/index/gift-method"],{"2b94":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=function(){n.e("components/basic-component/app-iphone-x/app-iphone-x").then(function(){return resolve(n("ccfb"))}.bind(null,n)).catch(n.oe)},s={name:"gift-method",props:["method_type","open_type","open_num","select_str","type"],data:function(){return{people_status:!1,method_status:!1,select_type:1,select_date:[0,0,0],date:{days:[],hour:[],minute:[]},copy_date:[]}},mounted:function(){this.getDateStr(),this.select_date[1]=(new Date).getHours(),this.select_date[2]=(new Date).getMinutes()+1},methods:{dateChange:function(t){var e=t.detail.value;this.select_date[0]=e[0],this.select_date[1]=e[1],this.select_date[2]=e[2],0===e[0]&&(new Date).getHours()>e[1]&&(this.select_date[1]=(new Date).getHours()),0===e[0]&&this.select_date[1]===(new Date).getHours()&&(new Date).getMinutes()+1>e[2]&&(this.select_date[2]=(new Date).getMinutes()+1)},getChange:function(){this.method_status=!1,this.$emit("set_lottery_time","".concat(this.date.days[this.select_date[0]]," ").concat(this.date.hour[this.select_date[1]],"时").concat(this.date.minute[this.select_date[2]],"分"),"".concat(this.copy_date[this.select_date[0]]," ").concat(this.date.hour[this.select_date[1]],":").concat(this.date.minute[this.select_date[2]],":00"))},getDateStr:function(){var t,e,n,a=[],s=[],c=new Array(7);c[0]="日",c[1]="一",c[2]="二",c[3]="三",c[4]="四",c[5]="五",c[6]="六";for(var o=0;o<24;o++)o<10&&(o="0".concat(o)),a.push("".concat(o));(t=this.date.hour).push.apply(t,a);for(var i=0;i<60;i++)i<10&&(i="0".concat(i)),s.push("".concat(i));(e=this.date.minute).push.apply(e,s);for(var u=[],d=0;d<7;d++){var h=new Date;h.setDate(h.getDate()+d);var r=h.getMonth()+1,p=h.getDate();u.push("".concat(r,"月").concat(p,"日星期").concat(c[h.getDay()])),this.copy_date.push("".concat(h.getFullYear(),"-").concat(r<10?"0"+r:r,"-").concat(p<10?"0"+p:p))}(n=this.date.days).push.apply(n,u)},set_methods:function(t){this.method_status=!1,this.$emit("set_methods",t)},set_people_status:function(t){this.$emit("set_people_status",t)},change_people:function(t){this.$emit("change_people",Number(t.detail.value))},set_method_type:function(t){this.method_status=!0,this.select_type=t}},components:{"app-iphone-x":a}};e.default=s},"6d00":function(t,e,n){},"74d2":function(t,e,n){"use strict";n.r(e);var a=n("b814"),s=n("a6cc");for(var c in s)"default"!==c&&function(t){n.d(e,t,(function(){return s[t]}))}(c);n("b0b1");var o,i=n("f0c5"),u=Object(i["a"])(s["default"],a["b"],a["c"],!1,null,"3ba13445",null,!1,a["a"],o);e["default"]=u.exports},a6cc:function(t,e,n){"use strict";n.r(e);var a=n("2b94"),s=n.n(a);for(var c in a)"default"!==c&&function(t){n.d(e,t,(function(){return a[t]}))}(c);e["default"]=s.a},b0b1:function(t,e,n){"use strict";var a=n("6d00"),s=n.n(a);s.a},b814:function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return a}));var s=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){t.method_status=!0,t.select_type=2},t.e1=function(e){t.method_status=!1},t.e2=function(e){e.stopPropagation(),t.method_status=!1})},c=[]}}]);
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'plugins/gift/components/index/gift-method-create-component',
  4. {
  5. 'plugins/gift/components/index/gift-method-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('543d')['createComponent'](__webpack_require__("74d2"))
  7. })
  8. },
  9. [['plugins/gift/components/index/gift-method-create-component']]
  10. ]);