-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path6.a103bee0db2238a0120d.js
1 lines (1 loc) · 5.54 KB
/
6.a103bee0db2238a0120d.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{qmMC:function(t,n,e){"use strict";e.r(n),e.d(n,"BookingModule",function(){return g});var o=e("ofXK"),i=e("tyNb"),r=e("fXoL"),c=function(){function t(){}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=r.Lb({type:t,selectors:[["app-edit"]],decls:2,vars:0,template:function(t,n){1&t&&(r.Xb(0,"p"),r.Jc(1," edit works!\n"),r.Wb())},styles:[""]}),t}(),a=e("oUVn");function d(t,n){if(1&t){var e=r.Yb();r.Xb(0,"div",7),r.Xb(1,"div",8),r.ec("click",function(){return r.zc(e),r.hc().getDetail()}),r.Xb(2,"span"),r.Jc(3),r.Wb(),r.Xb(4,"span"),r.Jc(5),r.Wb(),r.Xb(6,"span",9),r.Jc(7),r.Wb(),r.Wb(),r.Wb()}if(2&t){var o=n.$implicit,i=r.hc();r.Bb(3),r.Kc(i.week[o.day]),r.Bb(2),r.Kc(o.date),r.Bb(2),r.Kc(o.stateDes)}}var s=[{path:"edit",component:c},{path:"calendar",component:function(){function t(t){this.com=t,this.week=["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],this.bookTime=["9:30-10:30","10:30-12:00","14:00-15:30","15:30-17:00"],this.dates=[{day:2,date:2,stateDes:"\u53ef\u7ea6"},{day:3,date:3,stateDes:"\u53ef\u7ea6"},{day:3,date:"\u65e5",stateDes:"\u53ef\u7ea6"},{day:3,date:"\u65e5",stateDes:"\u53ef\u7ea6"},{day:3,date:"\u65e5",stateDes:"\u53ef\u7ea6"},{day:3,date:"\u65e5",stateDes:"\u53ef\u7ea6"}],this.startCoords=null,this.movingCoords=null}return t.prototype.ngOnInit=function(){},t.prototype.showFullCalendar=function(){},t.prototype.hideCalender=function(){},t.prototype.getDetail=function(){},t.prototype.moveStart=function(t){var n=t.changedTouches[0];this.startCoords={x:n.clientX,y:n.clientY},console.log("moveStart",this.startCoords,t)},t.prototype.moving=function(t){var n=t.changedTouches[0];this.movingCoords={x:n.clientX,y:n.clientY};var e=this.movingCoords.x-this.startCoords.x;Math.abs(e)>30&&t.currentTarget&&t.currentTarget.style&&(t.currentTarget.style.transform="translate("+e+"px)"),console.log("movet",this.startCoords,t)},t.prototype.moveEnd=function(t){t.currentTarget&&t.currentTarget.style&&(t.currentTarget.style.transform="translate("+(this.movingCoords.x-this.startCoords.x)+"px)"),this.startCoords=null,this.movingCoords=null,console.log("moveEnd",this.startCoords,t)},t.prototype.initDates=function(){var t=this,n=new Date,e=n.getDay(),o=[];e>0&&e<6&&(o=o.filter(function(n){return n.date===t.com.formatTime()})),function(t){for(var e={},o=[],i=0;i<30;i++){var r=new Date(n.getTime()+24*i*60*60*1e3),c=r.getDay();e={dateStr:this.com.formatTime(r),year:r.getFullYear(),month:r.getMonth()+1,date:r.getDate(),day:r.getDay(),stateDes:4===t.length?"\u7ea6\u6ee1":0===c||6===c?"\u4e0d\u53ef\u7ea6":"\u53ef\u7ea6"},o.push(e)}}(o)},t.prototype._initCalendar=function(){},t.\u0275fac=function(n){return new(n||t)(r.Rb(a.a))},t.\u0275cmp=r.Lb({type:t,selectors:[["app-calendar"]],decls:10,vars:1,consts:[[1,"week-box","p-base","d-flex","align-center","w-100","bd-box","bg-white","bs-base"],[1,"item-box","d-flex","just-center","flex-column","align-center"],[1,"text-center",3,"click"],[1,"text-center","icon-tangle-down"],[1,"date-box","flex-1"],[1,"inner",3,"touchstart","touchmove","touchend"],["class","date-inner-item font-14",4,"ngFor","ngForOf"],[1,"date-inner-item","font-14"],[1,"item","d-flex","flex-column","align-center","just-center",3,"click"],[1,"font-12"]],template:function(t,n){1&t&&(r.Xb(0,"div",0),r.Xb(1,"div",1),r.Xb(2,"div",2),r.ec("click",function(){return n.showFullCalendar()}),r.Xb(3,"div"),r.Jc(4,"2020"),r.Wb(),r.Xb(5,"div",3),r.Jc(6,"1\u6708"),r.Wb(),r.Wb(),r.Wb(),r.Xb(7,"div",4),r.Xb(8,"div",5),r.ec("touchstart",function(t){return n.moveStart(t)})("touchmove",function(t){return n.moving(t)})("touchend",function(t){return n.moveEnd(t)}),r.Hc(9,d,8,3,"div",6),r.Wb(),r.Wb(),r.Wb()),2&t&&(r.Bb(9),r.nc("ngForOf",n.dates))},directives:[o.l],styles:['.week-box[_ngcontent-%COMP%]{font-size:12px}.icon-tangle-down[_ngcontent-%COMP%]:after{content:"";width:0;height:0;display:block;border:6px solid rgba(0,0,0,0);border-top-color:#000;margin:auto;border-bottom:0}.date-box[_ngcontent-%COMP%]{overflow:hidden;height:3.5rem}.date-inner[_ngcontent-%COMP%]{width:100%;height:100%}.item-box[_ngcontent-%COMP%]{width:16.6%;height:3.5rem;background-color:red}.date-inner-item[_ngcontent-%COMP%]{width:20%;display:inline-block;height:3.5rem}.item[_ngcontent-%COMP%]{width:100%;height:100%;float:left}.p[_ngcontent-%COMP%]{padding:10px 0}.divider[_ngcontent-%COMP%]{height:20px;background-color:#f8f8f8}.full-date-box[_ngcontent-%COMP%]{height:275px;overflow-x:hidden}.br[_ngcontent-%COMP%], .td[_ngcontent-%COMP%]:first-child{border-right:1px solid #ddd}.inner-box[_ngcontent-%COMP%]{border:1px solid #ddd;border-bottom:0;margin-top:20px}.title[_ngcontent-%COMP%]{height:3em}.my-book[_ngcontent-%COMP%]{font-size:16px;margin:10px 20px;display:inline-block}.my-book[_ngcontent-%COMP%]:before{content:"";position:absolute;bottom:0;left:0;display:block;width:100%;height:6px;background-color:#ec280e;z-index:-1}.btn-view[_ngcontent-%COMP%]{display:inline-block;font-size:10px;padding:10px 20px}.pop-box[_ngcontent-%COMP%]{position:fixed;background-color:rgba(0,0,0,.5);left:0;top:0}.c-title[_ngcontent-%COMP%]{height:2em;line-height:2}.week-item[_ngcontent-%COMP%]{padding:10px 0;width:14%}.color[_ngcontent-%COMP%]:nth-child(7n), .color[_ngcontent-%COMP%]:nth-child(7n+1){color:#ccc}']}),t}()}],l=function(){function t(){}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=r.Pb({type:t}),t.\u0275inj=r.Ob({imports:[[i.f.forChild(s)],i.f]}),t}(),g=function(){function t(){}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=r.Pb({type:t}),t.\u0275inj=r.Ob({imports:[[o.c,l]]}),t}()}}]);