yzms/touch_mz/dist/2.chunk.js

20 lines
46 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

webpackJsonp([2],{47:function(t,e,o){o(58);var i=o(19)(o(53),o(64),"data-v-2e56d9ac",null);i.options.__file="E:\\git_project\\backups_source\\标准版敏卓触摸版\\src\\views\\order.vue",i.esModule&&Object.keys(i.esModule).some(function(t){return"default"!==t&&"__esModule"!==t})&&console.error("named exports are not supported in *.vue files."),i.options.functional&&console.error("[vue-loader] order.vue: functional components are not supported with templates, they should use render functions."),t.exports=i.exports},49:function(t,e,o){"use strict";function i(t,e){function o(){this.constructor=t}S(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}function s(t){console.error("[BScroll warn]: "+t)}function n(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function r(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];for(var i=0;i<e.length;i++){var s=e[i];for(var n in s)t[n]=s[n]}return t}function a(t){return void 0===t||null===t}function c(t){return!1===Y?t:"standard"===Y?"transitionEnd"===t?"transitionend":t:Y+t.charAt(0).toUpperCase()+t.substr(1)}function h(t){return"string"==typeof t?document.querySelector(t):t}function l(t,e,o,i){t.addEventListener(e,o,{passive:!1,capture:!!i})}function u(t,e,o,i){t.removeEventListener(e,o,{capture:!!i})}function p(t){for(var e=0,o=0;t;)e-=t.offsetLeft,o-=t.offsetTop,t=t.offsetParent;return{left:e,top:o}}function d(t){if(t instanceof window.SVGElement){var e=t.getBoundingClientRect();return{top:e.top,left:e.left,width:e.width,height:e.height}}return{top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}function f(t,e){for(var o in e)if(e[o].test(t[o]))return!0;return!1}function m(t,e){var o=document.createEvent("Event");o.initEvent(e,!0,!0),o.pageX=t.pageX,o.pageY=t.pageY,t.target.dispatchEvent(o)}function v(t,e){function o(){n=document.createEvent("Event"),n.initEvent(e,a,c),r(n,s)}void 0===e&&(e="click");var i;"mouseup"===t.type?i=t:"touchend"!==t.type&&"touchcancel"!==t.type||(i=t.changedTouches[0]);var s={};i&&(s.screenX=i.screenX||0,s.screenY=i.screenY||0,s.clientX=i.clientX||0,s.clientY=i.clientY||0);var n,a=!0,c=!0;if("undefined"!=typeof MouseEvent)try{n=new MouseEvent(e,r({bubbles:a,cancelable:c},s))}catch(t){o()}else o();n.forwardedTouchEvent=!0,n._constructed=!0,t.target.dispatchEvent(n)}function y(t){v(t,"dblclick")}function g(){}function k(t,e,o){q.get=function(){return V(this,e)},q.set=function(t){W(this,e,t)},Object.defineProperty(t,o,q)}function b(t,e,o){var i=o.useTransition,s={};return Object.defineProperty(s,"probeType",{enumerable:!0,configurable:!1,get:function(){return o.probeType}}),i?new pt(t,e,s):new dt(t,e,s)}function T(t){return["click","bindToWrapper","disableMouse","disableTouch","preventDefault","stopPropagation","tagException","preventDefaultException"].reduce(function(e,o){return e[o]=t[o],e},{})}function w(t,e,o,i){var s=["momentum","momentumLimitTime","momentumLimitDistance","deceleration","swipeBounceTime","swipeTime"].reduce(function(e,o){return e[o]=t[o],e},{});return s.scrollable=t[e],s.bounces=o,s.rect=i,s}function _(t,e,o){o.forEach(function(o){var i,s;"string"==typeof o?i=s=o:(i=o.source,s=o.target),t.on(i,function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return e.trigger.apply(e,[s].concat(t))})})}/*!
* better-scroll / core
* (c) 2016-2019 ustbhuangyi
* Released under the MIT License.
*/
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var P,S=function(t,e){return(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},D=function(){return D=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++){e=arguments[o];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s])}return t},D.apply(this,arguments)},E="undefined"!=typeof window,x=E&&navigator.userAgent.toLowerCase(),C=x&&/wechatdevtools/.test(x),B=x&&x.indexOf("android")>0,M=E&&document.createElement("div").style,Y=function(){if(!E)return!1;var t={webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform",standard:"transform"};for(var e in t)if(void 0!==M[t[e]])return e;return!1}(),L=(Y&&"standard"!==Y&&Y.toLowerCase(),c("transform")),X=c("transition"),z=E&&c("perspective")in M,H=E&&("ontouchstart"in window||C),O=E&&X in M,I={transform:L,transition:X,transitionTimingFunction:c("transitionTimingFunction"),transitionDuration:c("transitionDuration"),transitionDelay:c("transitionDelay"),transformOrigin:c("transformOrigin"),transitionEnd:c("transitionEnd")},R={touchstart:1,touchmove:1,touchend:1,mousedown:2,mousemove:2,mouseup:2},j=f,A={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(t){return 1+--t*t*t*t*t}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(t){return 1- --t*t*t*t}}},$=E&&window,N=function(){return E?$.requestAnimationFrame||$.webkitRequestAnimationFrame||$.mozRequestAnimationFrame||$.oRequestAnimationFrame||function(t){return window.setTimeout(t,(t.interval||100/60)/2)}:g}(),F=function(){return E?$.cancelAnimationFrame||$.webkitCancelAnimationFrame||$.mozCancelAnimationFrame||$.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:g}(),K=function(t){},q={enumerable:!0,configurable:!0,get:K,set:K},V=function(t,e){for(var o=e.split("."),i=0;i<o.length-1;i++)if("object"!=typeof(t=t[o[i]])||!t)return;var s=o.pop();return"function"==typeof t[s]?function(){return t[s].apply(t,arguments)}:t[s]},W=function(t,e,o){for(var i,s=e.split("."),n=0;n<s.length-1;n++)i=s[n],t[i]||(t[i]={}),t=t[i];t[s.pop()]=o},U=function(){function t(t){this.events={},this.eventTypes={},this.registerType(t)}return t.prototype.on=function(t,e,o){return void 0===o&&(o=this),this._checkInTypes(t),this.events[t]||(this.events[t]=[]),this.events[t].push([e,o]),this},t.prototype.once=function(t,e,o){var i=this;void 0===o&&(o=this),this._checkInTypes(t);var s=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];i.off(t,s),e.apply(o,n)};return s.fn=e,this.on(t,s),this},t.prototype.off=function(t,e){if(!t&&!e)return this.events={},this;if(t){if(this._checkInTypes(t),!e)return this.events[t]=[],this;var o=this.events[t];if(!o)return this;for(var i=o.length;i--;)(o[i][0]===e||o[i][0]&&o[i][0].fn===e)&&o.splice(i,1);return this}},t.prototype.trigger=function(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];this._checkInTypes(t);var i=this.events[t];if(i)for(var s,n=i.length,r=i.slice(),a=0;a<n;a++){var c=r[a],h=c[0],l=c[1];if(h&&!0===(s=h.apply(l,e)))return s}},t.prototype.registerType=function(t){var e=this;t.forEach(function(t){e.eventTypes[t]=t})},t.prototype.destroy=function(){this.events={},this.eventTypes={}},t.prototype._checkInTypes=function(t){var e=this.eventTypes;e[t]===t||s('EventEmitter has used unknown event type: "'+t+'", should be oneof ['+Object.keys(e)+"]")},t}();!function(t){t[t.Positive=1]="Positive",t[t.Negative=-1]="Negative",t[t.Default=0]="Default"}(P||(P={}));var Z;!function(t){t.Default="",t.Horizontal="horizontal",t.Vertical="vertical",t.None="none"}(Z||(Z={}));var G;!function(t){t.None="",t.Horizontal="horizontal",t.Vertical="vertical"}(G||(G={}));var J;!function(t){t[t.Touch=1]="Touch",t[t.Mouse=2]="Mouse"}(J||(J={}));var Q;!function(t){t[t.Left=0]="Left",t[t.Middle=1]="Middle",t[t.Right=2]="Right"}(Q||(Q={}));var tt;!function(t){t[t.Default=0]="Default",t[t.Throttle=1]="Throttle",t[t.Normal=2]="Normal",t[t.Realtime=3]="Realtime"}(tt||(tt={}));var et,ot,it,st,nt,rt=function(){function t(){this.startX=0,this.startY=0,this.scrollX=!1,this.scrollY=!0,this.freeScroll=!1,this.directionLockThreshold=5,this.eventPassthrough=G.None,this.click=!1,this.dblclick=!1,this.tap="",this.bounce={top:!0,bottom:!0,left:!0,right:!0},this.bounceTime=800,this.momentum=!0,this.momentumLimitTime=300,this.momentumLimitDistance=15,this.swipeTime=2500,this.swipeBounceTime=500,this.deceleration=.0015,this.flickLimitTime=200,this.flickLimitDistance=100,this.resizePolling=60,this.probeType=tt.Default,this.stopPropagation=!1,this.preventDefault=!0,this.preventDefaultException={tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|AUDIO)$/},this.tagException={tagName:/^TEXTAREA$/},this.HWCompositing=!0,this.useTransition=!0,this.bindToWrapper=!1,this.disableMouse=H,this.disableTouch=!H,this.autoBlur=!0}return t.prototype.merge=function(t){if(!t)return this;for(var e in t)this[e]=t[e];return this},t.prototype.process=function(){return this.translateZ=this.HWCompositing&&z?" translateZ(0)":"",this.useTransition=this.useTransition&&O,this.preventDefault=!this.eventPassthrough&&this.preventDefault,this.scrollX=this.eventPassthrough!==G.Horizontal&&this.scrollX,this.scrollY=this.eventPassthrough!==G.Vertical&&this.scrollY,this.freeScroll=this.freeScroll&&!this.eventPassthrough,this.scrollX=!!this.freeScroll||this.scrollX,this.scrollY=!!this.freeScroll||this.scrollY,this.directionLockThreshold=this.eventPassthrough?0:this.directionLockThreshold,this},t}(),at=function(){function t(t,e){this.wrapper=t,this.events=e,this.addDOMEvents()}return t.prototype.destroy=function(){this.removeDOMEvents(),this.events=[]},t.prototype.addDOMEvents=function(){this.handleDOMEvents(l)},t.prototype.removeDOMEvents=function(){this.handleDOMEvents(u)},t.prototype.handleDOMEvents=function(t){var e=this,o=this.wrapper;this.events.forEach(function(i){t(o,i.name,e,!!i.capture)})},t.prototype.handleEvent=function(t){var e=t.type;this.events.some(function(o){return o.name===e&&(o.handler(t),!0)})},t}(),ct=function(){function t(t,e){this.wrapper=t,this.options=e,this.hooks=new U(["beforeStart","start","move","end","click"]),this.handleDOMEvents()}return t.prototype.handleDOMEvents=function(){var t=this.options,e=t.bindToWrapper,o=t.disableMouse,i=t.disableTouch,s=t.click,n=this.wrapper,r=e?n:window,a=[],c=[],h=H&&!i,l=!o;s&&a.push({name:"click",handler:this.click.bind(this),capture:!0}),h&&(a.push({name:"touchstart",handler:this.start.bind(this)}),c.push({name:"touchmove",handler:this.move.bind(this)},{name:"touchend",handler:this.end.bind(this)},{name:"touchcancel",handler:this.end.bind(this)})),l&&(a.push({name:"mousedown",handler:this.start.bind(this)}),c.push({name:"mousemove",handler:this.move.bind(this)},{name:"mouseup",handler:this.end.bind(this)})),this.wrapperEventRegister=new at(n,a),this.targetEventRegister=new at(r,c)},t.prototype.beforeHandler=function(t,e){var o=this.options,i=o.preventDefault,s=o.stopPropagation,n=o.preventDefaultException;({start:function(){return i&&!f(t.target,n)},end:function(){return i&&!f(t.target,n)},move:function(){return i}})[e]()&&t.preventDefault(),s&&t.stopPropagation()},t.prototype.setInitiated=function(t){void 0===t&&(t=0),this.initiated=t},t.prototype.start=function(t){var e=R[t.type];if(!this.initiated||this.initiated===e){if(this.setInitiated(e),j(t.target,this.options.tagException))return void this.setInitiated();if((e!==J.Mouse||t.button===Q.Left)&&!this.hooks.trigger(this.hooks.eventTypes.beforeStart,t)){this.beforeHandler(t,"start");var o=t.touches?t.touches[0]:t;this.pointX=o.pageX,this.pointY=o.pageY,this.hooks.trigger(this.hooks.eventTypes.start,t)}}},t.prototype.move=function(t){if(R[t.type]===this.initiated){this.beforeHandler(t,"move");var e=t.touches?t.touches[0]:t,o=e.pageX-this.pointX,i=e.pageY-this.pointY;if(this.pointX=e.pageX,this.pointY=e.pageY,!this.hooks.trigger(this.hooks.eventTypes.move,{deltaX:o,deltaY:i,e:t})){var s=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,n=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,r=this.pointX-s,a=this.pointY-n;(r>document.documentElement.clientWidth-this.options.momentumLimitDistance||r<this.options.momentumLimitDistance||a<this.options.momentumLimitDistance||a>document.documentElement.clientHeight-this.options.momentumLimitDistance)&&this.end(t)}}},t.prototype.end=function(t){R[t.type]===this.initiated&&(this.setInitiated(),this.beforeHandler(t,"end"),this.hooks.trigger(this.hooks.eventTypes.end,t))},t.prototype.click=function(t){this.hooks.trigger(this.hooks.eventTypes.click,t)},t.prototype.destroy=function(){this.wrapperEventRegister.destroy(),this.targetEventRegister.destroy(),this.hooks.destroy()},t}(),ht={x:["translateX","px"],y:["translateY","px"]},lt=function(){function t(t){this.content=t,this.style=t.style,this.hooks=new U(["beforeTranslate","translate"])}return t.prototype.getComputedPosition=function(){var t=window.getComputedStyle(this.content,null),e=t[I.transform].split(")")[0].split(", ");return{x:+(e[12]||e[4]),y:+(e[13]||e[5])}},t.prototype.translate=function(t){var e=[];Object.keys(t).forEach(function(o){if(ht[o]){var i=ht[o][0];if(i){var s=ht[o][1],n=t[o];e.push(i+"("+n+s+")")}}}),this.hooks.trigger(this.hooks.eventTypes.beforeTranslate,e,t),this.style[I.transform]=""+e.join(" "),this.hooks.trigger(this.hooks.eventTypes.translate,t)},t.prototype.destroy=function(){this.hooks.destroy()},t}(),ut=function(){function t(t,e,o){this.content=t,this.translater=e,this.options=o,this.hooks=new U(["move","end","beforeForceStop","forceStop","time","timeFunction"]),this.style=t.style}return t.prototype.translate=function(t){this.translater.translate(t)},t.prototype.setPending=function(t){this.pending=t},t.prototype.setForceStopped=function(t){this.forceStopped=t},t.prototype.destroy=function(){this.hooks.destroy(),F(this.timer)},t}(),pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.startProbe=function(){var t=this,e=function(){var o=t.translater.getComputedPosition();if(t.hooks.trigger(t.hooks.eventTypes.move,o),!t.pending)return void t.hooks.trigger(t.hooks.eventTypes.end,o);t.timer=N(e)};F(this.timer),this.timer=N(e)},e.prototype.transitionTime=function(t){void 0===t&&(t=0),this.style[I.transitionDuration]=t+"ms",this.hooks.trigger(this.hooks.eventTypes.time,t)},e.prototype.transitionTimingFunction=function(t){this.style[I.transitionTimingFunction]=t,this.hooks.trigger(this.hooks.eventTypes.timeFunction,t)},e.prototype.move=function(t,e,o,i,s){this.setPending(o>0&&(t.x!==e.x||t.y!==e.y)),this.transitionTimingFunction(i),this.transitionTime(o),this.translate(e),o&&this.options.probeType===tt.Realtime&&this.startProbe(),o||(this._reflow=this.content.offsetHeight),o||s||(this.hooks.trigger(this.hooks.eventTypes.move,e),this.hooks.trigger(this.hooks.eventTypes.end,e))},e.prototype.stop=function(){if(this.pending){this.setPending(!1),F(this.timer);var t=this.translater.getComputedPosition(),e=t.x,o=t.y;if(this.transitionTime(),this.translate({x:e,y:o}),this.setForceStopped(!0),this.hooks.trigger(this.hooks.eventTypes.beforeForceStop,{x:e,y:o}))return;this.hooks.trigger(this.hooks.eventTypes.forceStop,{x:e,y:o})}},e}(ut),dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.move=function(t,e,o,i,s){if(!o){if(this.translate(e),this._reflow=this.content.offsetHeight,s)return;return this.hooks.trigger(this.hooks.eventTypes.move,e),void this.hooks.trigger(this.hooks.eventTypes.end,e)}this.animate(t,e,o,i)},e.prototype.animate=function(t,e,o,i){var s=this,r=n(),a=r+o,c=function(){var h=n();if(h>=a)return s.translate(e),s.hooks.trigger(s.hooks.eventTypes.move,e),void s.hooks.trigger(s.hooks.eventTypes.end,e);h=(h-r)/o;var l=i(h),u={};Object.keys(e).forEach(function(o){var i=t[o],s=e[o];u[o]=(s-i)*l+i}),s.translate(u),s.pending&&(s.timer=N(c)),s.options.probeType===tt.Realtime&&s.hooks.trigger(s.hooks.eventTypes.move,u)};this.setPending(!0),F(this.timer),c()},e.prototype.stop=function(){if(this.pending){this.setPending(!1),F(this.timer);var t=this.translater.getComputedPosition();if(this.setForceStopped(!0),this.hooks.trigger(this.hooks.eventTypes.beforeForceStop,t))return;this.hooks.trigger(this.hooks.eventTypes.forceStop,t)}},e}(ut),ft=function(){function t(t,e){this.wrapper=t,this.options=e,this.hooks=new U(["momentum","end"]),this.content=this.wrapper.children[0],this.currentPos=0,this.startPos=0}return t.prototype.start=function(){this.direction=P.Default,this.movingDirection=P.Default,this.dist=0},t.prototype.move=function(t){t=this.hasScroll?t:0,this.movingDirection=t>0?P.Negative:t<0?P.Positive:P.Default;var e=this.currentPos+t;return(e>this.minScrollPos||e<this.maxScrollPos)&&(e=e>this.minScrollPos&&this.options.bounces[0]||e<this.maxScrollPos&&this.options.bounces[1]?this.currentPos+t/3:e>this.minScrollPos?this.minScrollPos:this.maxScrollPos),e},t.prototype.end=function(t){var e={duration:0},o=Math.abs(this.currentPos-this.startPos);if(this.options.momentum&&t<this.options.momentumLimitTime&&o>this.options.momentumLimitDistance){var i=this.direction===P.Negative&&this.options.bounces[0]||this.direction===P.Positive&&this.options.bounces[1]?this.wrapperSize:0;e=this.hasScroll?this.momentum(this.currentPos,this.startPos,t,this.maxScrollPos,this.minScrollPos,i,this.options):{destination:this.currentPos,duration:0}}else this.hooks.trigger(this.hooks.eventTypes.end,e);return e},t.prototype.momentum=function(t,e,o,i,s,n,r){void 0===r&&(r=this.options);var a=t-e,c=Math.abs(a)/o,h=r.deceleration,l=r.swipeBounceTime,u=r.swipeTime,p={destination:t+c/h*(a<0?-1:1),duration:u,rate:15};return this.hooks.trigger(this.hooks.eventTypes.momentum,p,a),p.destination<i?(p.destination=n?Math.max(i-n/4,i-n/p.rate*c):i,p.duration=l):p.destination>s&&(p.destination=n?Math.min(s+n/4,s+n/p.rate*c):s,p.duration=l),p.destination=Math.round(p.destination),p},t.prototype.updateDirection=function(){var t=Math.round(this.currentPos)-this.absStartPos;this.direction=t>0?P.Negative:t<0?P.Positive:P.Default},t.prototype.refresh=function(){var t=this.options.rect,e=t.size,o=t.position,i="static"===window.getComputedStyle(this.wrapper,null).position,s=d(this.wrapper);this.wrapperSize=s[e];var n=d(this.content);this.contentSize=n[e],this.relativeOffset=n[o],i&&(this.relativeOffset-=s[o]),this.minScrollPos=0,this.maxScrollPos=this.wrapperSize-this.contentSize,this.maxScrollPos<0&&(this.maxScrollPos-=this.relativeOffset,this.minScrollPos=-this.relativeOffset),this.hasScroll=this.options.scrollable&&this.maxScrollPos<this.minScrollPos,this.hasScroll||(this.maxScrollPos=this.minScrollPos,this.contentSize=this.wrapperSize),this.direction=0},t.prototype.updatePosition=function(t){this.currentPos=t},t.prototype.getCurrentPos=function(){return Math.round(this.currentPos)},t.prototype.checkInBoundary=function(){var t=this.adjustPosition(this.currentPos);return{position:t,inBoundary:t===this.getCurrentPos()}},t.prototype.adjustPosition=function(t){var e=Math.round(t);return!this.hasScroll||e>this.minScrollPos?e=this.minScrollPos:e<this.maxScrollPos&&(e=this.maxScrollPos),e},t.prototype.updateStartPos=function(){this.startPos=this.currentPos},t.prototype.updateAbsStartPos=function(){this.absStartPos=this.currentPos},t.prototype.resetStartPos=function(){this.updateStartPos(),this.updateAbsStartPos()},t.prototype.getAbsDist=function(t){return this.dist+=t,Math.abs(this.dist)},t.prototype.destroy=function(){this.hooks.destroy()},t}();!function(t){t.Yes="yes",t.No="no"}(nt||(nt={}));var mt,vt=(et={},et[nt.Yes]=function(t){return!0},et[nt.No]=function(t){return t.preventDefault(),!1},et),yt=(ot={},ot[Z.Horizontal]=(it={},it[nt.Yes]=G.Horizontal,it[nt.No]=G.Vertical,it),ot[Z.Vertical]=(st={},st[nt.Yes]=G.Vertical,st[nt.No]=G.Horizontal,st),ot),gt=function(){function t(t,e,o){this.directionLockThreshold=t,this.freeScroll=e,this.eventPassthrough=o,this.reset()}return t.prototype.reset=function(){this.directionLocked=Z.Default},t.prototype.checkMovingDirection=function(t,e,o){return this.computeDirectionLock(t,e),this.handleEventPassthrough(o)},t.prototype.adjustDelta=function(t,e){return this.directionLocked===Z.Horizontal?e=0:this.directionLocked===Z.Vertical&&(t=0),{deltaX:t,deltaY:e}},t.prototype.computeDirectionLock=function(t,e){this.directionLocked!==Z.Default||this.freeScroll||(t>e+this.directionLockThreshold?this.directionLocked=Z.Horizontal:e>=t+this.directionLockThreshold?this.directionLocked=Z.Vertical:this.directionLocked=Z.None)},t.prototype.handleEventPassthrough=function(t){var e=yt[this.directionLocked];if(e){if(this.eventPassthrough===e[nt.Yes])return vt[nt.Yes](t);if(this.eventPassthrough===e[nt.No])return vt[nt.No](t)}return!1},t}(),kt=function(){function t(t,e,o,i,s){this.hooks=new U(["start","beforeMove","scrollStart","scroll","beforeEnd","end","scrollEnd"]),this.scrollBehaviorX=t,this.scrollBehaviorY=e,this.actionsHandler=o,this.animater=i,this.options=s,this.directionLockAction=new gt(s.directionLockThreshold,s.freeScroll,s.eventPassthrough),this.enabled=!0,this.bindActionsHandler()}return t.prototype.bindActionsHandler=function(){var t=this;this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.start,function(e){return!t.enabled||t.handleStart(e)}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.move,function(e){var o=e.deltaX,i=e.deltaY,s=e.e;return!t.enabled||t.handleMove(o,i,s)}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.end,function(e){return!t.enabled||t.handleEnd(e)}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.click,function(e){t.enabled&&!e._constructed&&t.handleClick(e)})},t.prototype.handleStart=function(t){var e=n();this.moved=!1,this.startTime=e,this.directionLockAction.reset(),this.scrollBehaviorX.start(),this.scrollBehaviorY.start(),this.animater.stop(),this.scrollBehaviorX.resetStartPos(),this.scrollBehaviorY.resetStartPos(),this.hooks.trigger(this.hooks.eventTypes.start,t)},t.prototype.handleMove=function(t,e,o){if(!this.hooks.trigger(this.hooks.eventTypes.beforeMove,o)){var i=this.scrollBehaviorX.getAbsDist(t),s=this.scrollBehaviorY.getAbsDist(e),r=n();if(this.checkMomentum(i,s,r))return!0;if(this.directionLockAction.checkMovingDirection(i,s,o))return this.actionsHandler.setInitiated(),!0;var a=this.directionLockAction.adjustDelta(t,e),c=this.scrollBehaviorX.move(a.deltaX),h=this.scrollBehaviorY.move(a.deltaY);this.moved||(this.moved=!0,this.hooks.trigger(this.hooks.eventTypes.scrollStart)),this.animater.translate({x:c,y:h}),this.dispatchScroll(r)}},t.prototype.dispatchScroll=function(t){t-this.startTime>this.options.momentumLimitTime&&(this.startTime=t,this.scrollBehaviorX.updateStartPos(),this.scrollBehaviorY.updateStartPos(),this.options.probeType===tt.Throttle&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos())),this.options.probeType>tt.Throttle&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos())},t.prototype.checkMomentum=function(t,e,o){return o-this.endTime>this.options.momentumLimitTime&&e<this.options.momentumLimitDistance&&t<this.options.momentumLimitDistance},t.prototype.handleEnd=function(t){if(!this.hooks.trigger(this.hooks.eventTypes.beforeEnd,t)){var e=this.getCurrentPos();if(this.scrollBehaviorX.updateDirection(),this.scrollBehaviorY.updateDirection(),this.hooks.trigger(this.hooks.eventTypes.end,t,e))return!0;this.animater.translate(e),this.endTime=n();var o=this.endTime-this.startTime;this.hooks.trigger(this.hooks.eventTypes.scrollEnd,e,o)}},t.prototype.handleClick=function(t){f(t.target,this.options.preventDefaultException)||(t.preventDefault(),t.stopPropagation())},t.prototype.getCurrentPos=function(){return{x:this.scrollBehaviorX.getCurrentPos(),y:this.scrollBehaviorY.getCurrentPos()}},t.prototype.refresh=function(){this.endTime=0},t.prototype.destroy=function(){this.hooks.destroy()},t}(),bt=function(){function t(t,e){this.hooks=new U(["beforeStart","beforeMove","beforeScrollStart","scrollStart","scroll","beforeEnd","scrollEnd","refresh","touchEnd","end","flick","scrollCancel","momentum","scrollTo","ignoreDisMoveForSamePos","scrollToElement"]),this.wrapper=t,this.content=t.children[0],this.options=e;var o=this.options.bounce,i=o.left,s=void 0===i||i,n=o.right,r=void 0===n||n,a=o.top,c=void 0===a||a,h=o.bottom,l=void 0===h||h;this.scrollBehaviorX=new ft(t,w(e,"scrollX",[s,r],{size:"width",position:"left"})),this.scrollBehaviorY=new ft(t,w(e,"scrollY",[c,l],{size:"height",position:"top"})),this.translater=new lt(this.content),this.animater=b(this.content,this.translater,this.options),this.actionsHandler=new ct(t,T(this.options)),this.actions=new kt(this.scrollBehaviorX,this.scrollBehaviorY,this.actionsHandler,this.animater,this.options);var u=this.resize.bind(this);this.resizeRegister=new at(window,[{name:"orientationchange",handler:u},{name:"resize",handler:u}]),this.transitionEndRegister=new at(this.content,[{name:I.transitionEnd,handler:this.transitionEnd.bind(this)}]),this.init()}return t.prototype.init=function(){var t=this;this.bindTranslater(),this.bindAnimater(),this.bindActions(),this.hooks.on(this.hooks.eventTypes.scrollEnd,function(){t.togglePointerEvents(!0)})},t.prototype.bindTranslater=function(){var t=this,e=this.translater.hooks;e.on(e.eventTypes.beforeTranslate,function(e){t.options.translateZ&&e.push(t.options.translateZ)}),e.on(e.eventTypes.translate,function(e){t.updatePositions(e),t.togglePointerEvents(!1)})},t.prototype.bindAnimater=function(){var t=this;this.animater.hooks.on(this.animater.hooks.eventTypes.end,function(e){t.resetPosition(t.options.bounceTime)||(t.animater.setPending(!1),t.hooks.trigger(t.hooks.eventTypes.scrollEnd,e))}),_(this.animater.hooks,this.hooks,[{source:this.animater.hooks.eventTypes.move,target:this.hooks.eventTypes.scroll},{source:this.animater.hooks.eventTypes.forceStop,target:this.hooks.eventTypes.scrollEnd}])},t.prototype.bindActions=function(){var t=this,e=this.actions;_(e.hooks,this.hooks,[{source:e.hooks.eventTypes.start,target:this.hooks.eventTypes.beforeStart},{source:e.hooks.eventTypes.start,target:this.hooks.eventTypes.beforeScrollStart},{source:e.hooks.eventTypes.beforeMove,target:this.hooks.eventTypes.beforeMove},{source:e.hooks.eventTypes.scrollStart,target:this.hooks.eventTypes.scrollStart},{source:e.hooks.eventTypes.scroll,target:this.hooks.eventTypes.scroll},{source:e.hooks.eventTypes.beforeEnd,target:this.hooks.eventTypes.beforeEnd}]),e.hooks.on(e.hooks.eventTypes.end,function(o,i){return t.hooks.trigger(t.hooks.eventTypes.touchEnd,i),!!t.hooks.trigger(t.hooks.eventTypes.end,i)||(!e.moved&&t.checkClick(o)?(t.animater.setForceStopped(!1),t.hooks.trigger(t.hooks.eventTypes.scrollCancel),!0):(t.animater.setForceStopped(!1),!!t.resetPosition(t.options.bounceTime,A.bounce)||void 0))}),e.hooks.on(e.hooks.eventTypes.scrollEnd,function(e,o){var i=Math.abs(e.x-t.scrollBehaviorX.startPos),s=Math.abs(e.y-t.scrollBehaviorY.startPos);if(t.checkFlick(o,i,s))return void t.hooks.trigger(t.hooks.eventTypes.flick);t.momentum(e,o)||t.hooks.trigger(t.hooks.eventTypes.scrollEnd,e)})},t.prototype.checkFlick=function(t,e,o){if(this.hooks.events.flick.length>1&&t<this.options.flickLimitTime&&e<this.options.flickLimitDistance&&o<this.options.flickLimitDistance)return!0},t.prototype.momentum=function(t,e){var o={time:0,easing:A.swiper,newX:t.x,newY:t.y},i=this.scrollBehaviorX.end(e),s=this.scrollBehaviorY.end(e);if(o.newX=a(i.destination)?o.newX:i.destination,o.newY=a(s.destination)?o.newY:s.destination,o.time=Math.max(i.duration,s.duration),this.hooks.trigger(this.hooks.eventTypes.momentum,o,this),o.newX!==t.x||o.newY!==t.y)return(o.newX>this.scrollBehaviorX.minScrollPos||o.newX<this.scrollBehaviorX.maxScrollPos||o.newY>this.scrollBehaviorY.minScrollPos||o.newY<this.scrollBehaviorY.maxScrollPos)&&(o.easing=A.swipeBounce),this.scrollTo(o.newX,o.newY,o.time,o.easing),!0},t.prototype.checkClick=function(t){var e={preventClick:this.animater.forceStopped};if(this.hooks.trigger(this.hooks.eventTypes.checkClick))return!0;if(!e.preventClick){var o=this.options.dblclick,i=!1;if(o&&this.lastClickTime){var s=o.delay,r=void 0===s?300:s;n()-this.lastClickTime<r&&(i=!0,y(t))}return this.options.tap&&m(t,this.options.tap),this.options.click&&!f(t.target,this.options.preventDefaultException)&&v(t),this.lastClickTime=i?null:n(),!0}return!1},t.prototype.resize=function(){var t=this;this.actions.enabled&&(B&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(function(){t.refresh()},this.options.resizePolling))},t.prototype.transitionEnd=function(t){if(t.target===this.content&&this.animater.pending){this.animater.transitionTime(),this.resetPosition(this.options.bounceTime,A.bounce)||(this.animater.setPending(!1),this.options.probeType!==tt.Realtime&&this.hooks.trigger(this.hooks.eventTypes.scrollEnd,this.getCurrentPos()))}},t.prototype.togglePointerEvents=function(t){void 0===t&&(t=!0);for(var e=this.content.children.length?this.content.children:[this.content],o=t?"auto":"none",i=0;i<e.length;i++){var s=e[i];s.isBScroll||(s.style.pointerEvents=o)}},t.prototype.refresh=function(){this.scrollBehaviorX.refresh(),this.scrollBehaviorY.refresh(),this.actions.refresh(),this.wrapperOffset=p(this.wrapper)},t.prototype.scrollBy=function(t,e,o,i){void 0===o&&(o=0);var s=this.getCurrentPos(),n=s.x,r=s.y;i=i||A.bounce,t+=n,e+=r,this.scrollTo(t,e,o,i)},t.prototype.scrollTo=function(t,e,o,i,s,n){void 0===o&&(o=0),void 0===s&&(s={start:{},end:{}}),i=i||A.bounce;var r=this.options.useTransition?i.style:i.fn,a=this.getCurrentPos(),c=D({x:a.x,y:a.y},s.start),h=D({x:t,y:e},s.end);this.hooks.trigger(this.hooks.eventTypes.scrollTo,h),(this.hooks.trigger(this.hooks.eventTypes.ignoreDisMoveForSamePos)||c.x!==h.x||c.y!==h.y)&&this.animater.move(c,h,o,r,n)},t.prototype.scrollToElement=function(t,e,o,i,s){var n=h(t),r=p(n),a=function(t,e,o){return"number"==typeof t?t:t?Math.round(e/2-o/2):0};o=a(o,n.offsetWidth,this.wrapper.offsetWidth),i=a(i,n.offsetHeight,this.wrapper.offsetHeight);var c=function(t,e,o,i){return t-=e,t=i.adjustPosition(t-o)};r.left=c(r.left,this.wrapperOffset.left,o,this.scrollBehaviorX),r.top=c(r.top,this.wrapperOffset.top,i,this.scrollBehaviorY),this.hooks.trigger(this.hooks.eventTypes.scrollToElement,n,r)||this.scrollTo(r.left,r.top,e,s)},t.prototype.resetPosition=function(t,e){void 0===t&&(t=0),e=e||A.bounce;var o=this.scrollBehaviorX.checkInBoundary(),i=o.position,s=o.inBoundary,n=this.scrollBehaviorY.checkInBoundary(),r=n.position,a=n.inBoundary;return(!s||!a)&&(this.scrollTo(i,r,t,e),!0)},t.prototype.updatePositions=function(t){this.scrollBehaviorX.updatePosition(t.x),this.scrollBehaviorY.updatePosition(t.y)},t.prototype.getCurrentPos=function(){return this.actions.getCurrentPos()},t.prototype.enable=function(){this.actions.enabled=!0},t.prototype.disable=function(){F(this.animater.timer),this.actions.enabled=!1},t.prototype.destroy=function(){var t=this;["resizeRegister","transitionEndRegister","actionsHandler","actions","hooks","animater","translater","scrollBehaviorX","scrollBehaviorY"].forEach(function(e){return t[e].destroy()})},t}(),Tt=[{sourceKey:"scroller.scrollBehaviorX.currentPos",key:"x"},{sourceKey:"scroller.scrollBehaviorY.currentPos",key:"y"},{sourceKey:"scroller.scrollBehaviorX.hasScroll",key:"hasHorizontalScroll"},{sourceKey:"scroller.scrollBehaviorY.hasScroll",key:"hasVerticalScroll"},{sourceKey:"scroller.scrollBehaviorX.contentSize",key:"scrollerWidth"},{sourceKey:"scroller.scrollBehaviorY.contentSize",key:"scrollerHeight"},{sourceKey:"scroller.scrollBehaviorX.maxScrollPos",key:"maxScrollX"},{sourceKey:"scroller.scrollBehaviorY.maxScrollPos",key:"maxScrollY"},{sourceKey:"scroller.scrollBehaviorX.minScrollPos",key:"minScrollX"},{sourceKey:"scroller.scrollBehaviorY.minScrollPos",key:"minScrollY"},{sourceKey:"scroller.scrollBehaviorX.movingDirection",key:"movingDirectionX"},{sourceKey:"scroller.scrollBehaviorY.movingDirection",key:"movingDirectionY"},{sourceKey:"scroller.scrollBehaviorX.direction",key:"directionX"},{sourceKey:"scroller.scrollBehaviorY.direction",key:"directionY"},{sourceKey:"scroller.actions.enabled",key:"enabled"},{sourceKey:"scroller.animater.pending",key:"pending"},{sourceKey:"scroller.animater.stop",key:"stop"},{sourceKey:"scroller.scrollTo",key:"scrollTo"},{sourceKey:"scroller.scrollBy",key:"scrollBy"},{sourceKey:"scroller.scrollToElement",key:"scrollToElement"},{sourceKey:"scroller.resetPosition",key:"resetPosition"}];!function(t){t.Pre="pre",t.Post="post"}(mt||(mt={}));var wt=function(t){function e(e,o){var i=t.call(this,["refresh","enable","disable","beforeScrollStart","scrollStart","scroll","scrollEnd","scrollCancel","touchEnd","flick","destroy"])||this,n=h(e);return n?n.children[0]?(i.plugins={},i.options=(new rt).merge(o).process(),i.hooks=new U(["init","refresh","enable","disable","destroy"]),i.init(n),i):(s("The wrapper need at least one child element to be scroller."),i):(s("Can not resolve the wrapper DOM."),i)}return i(e,t),e.use=function(t){var e=t.pluginName;return this.plugins.some(function(e){return t===e.ctor})?this:a(e)?(s("Plugin Class must specify plugin's name in static property by 'pluginName' field."),this):this.pluginsMap[e]?(s("This plugin has been registered, maybe you need change plugin's name"),this):(this.pluginsMap[e]=!0,this.plugins.push({name:e,enforce:t.enforce,ctor:t}),this)},e.prototype.init=function(t){this.wrapper=t,t.isBScroll=!0,this.scroller=new bt(t,this.options),this.eventBubbling(),this.handleAutoBlur(),this.innerRefresh(),this.scroller.scrollTo(this.options.startX,this.options.startY),this.enable(),this.proxy(Tt),this.applyPlugins()},e.prototype.applyPlugins=function(){var t=this,e=this.options;this.constructor.plugins.sort(function(t,e){var o,i=(o={},o[mt.Pre]=-1,o[mt.Post]=1,o);return(t.enforce?i[t.enforce]:0)-(e.enforce?i[e.enforce]:0)}).forEach(function(o){var i=o.ctor;e[o.name]&&"function"==typeof i&&(t.plugins[o.name]=new i(t))})},e.prototype.handleAutoBlur=function(){this.options.autoBlur&&this.on(this.eventTypes.beforeScrollStart,function(){var t=document.activeElement;!t||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName||t.blur()})},e.prototype.eventBubbling=function(){_(this.scroller.hooks,this,["beforeScrollStart","scrollStart","scroll","scrollEnd","scrollCancel","touchEnd","flick"])},e.prototype.innerRefresh=function(){this.scroller.refresh(),this.hooks.trigger(this.hooks.eventTypes.refresh),this.trigger(this.eventTypes.refresh)},e.prototype.proxy=function(t){var e=this;t.forEach(function(t){var o=t.key,i=t.sourceKey;k(e,i,o)})},e.prototype.refresh=function(){this.innerRefresh(),this.scroller.resetPosition()},e.prototype.enable=function(){this.scroller.enable(),this.hooks.trigger(this.hooks.eventTypes.enable),this.trigger(this.eventTypes.enable)},e.prototype.disable=function(){this.scroller.disable(),this.hooks.trigger(this.hooks.eventTypes.disable),this.trigger(this.eventTypes.disable)},e.prototype.destroy=function(){this.hooks.trigger(this.hooks.eventTypes.destroy),this.trigger(this.eventTypes.destroy),this.scroller.destroy()},e.prototype.eventRegister=function(t){this.registerType(t)},e.plugins=[],e.pluginsMap={},e}(U);e.a=wt},53:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(49);e.default={props:["shuju"],data:function(){return{copy:(new Date).getFullYear()+"© 中国电信佛山分公司版权",username:"-",account:"-",jf:"-",userid:"",iconSize:"13",menuIconColor:"#698aab",canICancel:!1,dateData:{order:{num:0,price:0},jctime2:[],cs:[],page:"",dining_halls:"",dining_hall_id:""},readCard:!1,meal_btn:[],value1:1}},created:function(){this.bscroll=null},mounted:function(){this.autoSetLayoutMainHeight(),this.$store.commit("setLoading",!1),this.readCard=!1,this.getData()},updated:function(){this.init()},beforeDestroy:function(){this.bs.destroy()},methods:{init:function(){this.bs=new i.a(this.$refs.scroll,{scrollY:!0,probeType:3}),this._registerHooks(["scroll","scrollEnd"],function(t){})},clickHandler:function(t){alert(t)},_registerHooks:function(t,e){var o=this;t.forEach(function(t){o.bs.on(t,e)})},operate_add_time:function(){this.$store.state.count+=10},add:function(t,e){this.operate_add_time();var o,i,s;try{o=t.toString().split(".")[1].length}catch(t){o=0}try{i=e.toString().split(".")[1].length}catch(t){i=0}return s=Math.pow(10,Math.max(o,i)),(t*s+e*s)/s},minus:function(t,e){this.operate_add_time();var o,i,s;try{o=t.toString().split(".")[1].length}catch(t){o=0}try{i=e.toString().split(".")[1].length}catch(t){i=0}return s=Math.pow(10,Math.max(o,i)),o>=i?o:i,(t*s-e*s)/s},goBack:function(){this.$store.commit("setToken",null),this.$store.commit("setCount",0),this.$router.replace({path:"index"})},changeFt:function(t){this.$store.commit("setLoading",!0);var e=this;this.$ajax.post("/api/user/alter/",{dining_hall_id:t,token:this.$store.state.token}).then(function(t){if(e.$store.commit("setLoading",!1),1===t.data.status)return e.getData(),0;-1===t.data.status?e.goBack():e.$Message.error({content:t.data.message,top:30,duration:3})}).catch(function(t){e.$store.commit("setLoading",!1);var o="";o=t.response?"请求服务器失败":t.request?"等待回复失败":"系统解析出错",e.$Message.error({content:o,top:30,duration:3})})},changeDinner:function(t){this.operate_add_time(),this.getData(t)},changeMeal:function(t,e,o){if("add"===e&&parseInt(this.dateData.cs[t].csnum)<parseInt(this.dateData.cs[t].limit))this.dateData.cs[t].csnum++,this.dateData.order.price=this.add(this.dateData.cs[t].csprice,this.dateData.order.price);else{if(!("minus"===e&&parseInt(this.dateData.cs[t].csnum)>0))return 0;this.dateData.cs[t].csnum--,this.dateData.order.price=this.minus(this.dateData.cs[t].csprice,this.dateData.order.price)}var i=this.dateData.cs[t].csnum;this.$store.commit("setLoading",!0);var s=this;this.$ajax.post("/api/dishes/add/",{date_dish_id:o,num:i,token:this.$store.state.token}).then(function(o){if(s.$store.commit("setLoading",!1),1===o.data.status)return s.dateData.order.price=o.data.data.cart.price,s.dateData.order.num=parseInt(o.data.data.cart.orderNum),s.dateData.cs[t].csnum=parseInt(o.data.data.cart.csnum),0;-1===o.data.status?s.goBack():s.$Message.error({content:o.data.message,top:30,duration:3}),"add"===e?(s.dateData.cs[t].csnum--,s.dateData.order.price=s.minus(s.dateData.cs[t].csprice,s.dateData.order.price)):"minus"===e&&(s.dateData.cs[t].csnum++,s.dateData.order.price=s.add(s.dateData.cs[t].csprice,s.dateData.order.price))}).catch(function(o){s.$store.commit("setLoading",!1);var i="";i=o.response?"请求服务器失败":o.request?"等待回复失败":"系统解析出错","add"===e?(s.dateData.cs[t].csnum--,s.dateData.order.price=s.minus(s.dateData.cs[t].csprice,s.dateData.order.price)):"minus"===e&&(s.dateData.cs[t].csnum++,s.dateData.order.price=s.add(s.dateData.cs[t].csprice,s.dateData.order.price)),s.$Message.error({content:i,top:30,duration:3})})},getData:function(t){this.$store.commit("setLoading",!0);var e=this;this.$ajax.get("/api/dishes/index",{params:{token:e.$store.state.token,date_id:t}}).then(function(t){if(e.$store.commit("setLoading",!1),1===t.data.status){e.username=t.data.data.user.username,e.account=t.data.data.user.account,e.jf=t.data.data.user.jf,e.dateData.cs=t.data.data.cs,e.dateData.jctime=t.data.data.jctime2,e.dateData.page=t.data.data.page,e.dateData.order=t.data.data.order,e.dateData.dining_hall_id=t.data.data.dining_hall_id,e.dateData.dining_halls=t.data.data.dining_halls;var o=t.data.data.jctime2,i="";for(var s in o){var n=o[s].date;if(-1!=t.data.data.page.indexOf(n)){n,i=o[s];break}}if(i!=[]){var r=[];for(var a in i.data)-1!=t.data.data.page.indexOf(i.data[a].name)?r.push({name:i.data[a].name,type:"primary",date_id:i.data[a].id}):r.push({name:i.data[a].name,type:"default",date_id:i.data[a].id})}e.meal_btn=r}else-1===t.data.status&&e.goBack()}).catch(function(t){e.$store.commit("setLoading",!1);var o="";o=t.response?"请求服务器失败":t.request?"等待回复失败":"系统解析出错",e.$Message.error({content:o,top:30,duration:3})})},autoSetLayoutMainHeight:function(){var t=document.querySelector(".layout-menu-left"),e=document.querySelector(".layout-content"),o=document.querySelector(".layout-header"),i=document.querySelector(".layout-copy");t.style.height="auto";var s=document.body.clientHeight;t.offsetHeight<s&&(t.style.height=s-3+"px"),e.style.height=s-i.offsetHeight-o.offsetHeight-parseInt(window.getComputedStyle(document.querySelector(".layout-content"),null).getPropertyValue("margin-bottom"))-parseInt(window.getComputedStyle(document.querySelector(".layout-content"),null).getPropertyValue("margin-top"))-3-66+"px"},handleOrder:function(){parseInt(this.dateData.order.num)&&this.$router.push({path:"cart"})},showDetail:function(t,e){var o="";for(var i in e)o+='<p><span style="font-size: 14px;">'+e[i].dish_name+'</span> x <span style="font-size: 14px;">'+e[i].num+"</span></p>";this.$Modal.info({title:"<p style='font-size: 16px;text-align: center'>"+t+" <small>(套餐详情)</small></p>",content:o})}}}},58:function(t,e){},64:function(t,e,o){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"layout order"},[t.$store.state.loading?o("Spin",{attrs:{size:"large",fix:""}}):t._e(),t._v(" "),o("Row",{attrs:{type:"flex"}},[o("Col",{staticClass:"layout-menu-left",attrs:{span:"5"}},[o("Menu",{attrs:{width:"auto"}},[o("Row",[o("h2",[t._v("个人信息")])]),t._v(" "),o("Row",[o("Icon",{attrs:{type:"person",size:t.iconSize,color:t.menuIconColor}}),t._v(" "),o("span",{staticClass:"layout-text"},[t._v(t._s(t.username))])],1),t._v(" "),o("Row",[o("Icon",{attrs:{type:"cash",size:t.iconSize,color:t.menuIconColor}},[t._v("资产")]),t._v(" "),o("span",{staticClass:"layout-text"},[t._v("余额"),o("i",[t._v("¥")]),t._v(" "+t._s(t.account))])],1),t._v(" "),o("Row",[o("Icon",{attrs:{type:"cash",size:t.iconSize,color:t.menuIconColor}},[t._v("福利")]),t._v(" "),o("span",{staticClass:"layout-text"},[t._v("福利"),o("i",[t._v("¥")]),t._v(" "+t._s(t.jf))])],1)],1),t._v(" "),t._l(t.dateData.dining_halls,function(e,i){return o("RadioGroup",{key:e.id,attrs:{size:"large",vertical:""},on:{"on-change":t.changeFt},model:{value:t.dateData.dining_hall_id,callback:function(e){t.$set(t.dateData,"dining_hall_id",e)},expression:"dateData.dining_hall_id"}},[o("Radio",{attrs:{label:e.id}},[o("span",[t._v(t._s(e.name))])])],1)}),t._v(" "),o("div",{staticClass:"ivu-menu-botton-row"},[o("Button",{attrs:{type:"primary",long:""},on:{click:t.goBack}},[t._v("后退("+t._s(t.$store.state.count)+"s)")])],1)],2),t._v(" "),o("Col",{attrs:{span:"19"}},[o("div",{staticClass:"layout-header"},[o("Row",[o("Col",{attrs:{span:"4"}},[t._v("订餐日期")]),t._v(" "),o("Col",{attrs:{span:"10"}},[o("Dropdown",{attrs:{trigger:"click"}},[o("a",{attrs:{href:"javascript:void(0)"},domProps:{innerHTML:t._s(t.dateData.page.replace(/<br>/g,""))}},[o("Icon",{attrs:{type:"arrow-down-b"}})],1),t._v(" "),o("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.dateData.jctime,function(e){return o("div",{on:{click:function(o){return t.changeDinner(e.data[0].id)}}},[(e.data,[o("DropdownItem",{staticStyle:{"text-align":"center"}},[t._v("\n "+t._s(e.date)+"("+t._s(e.weekday)+")\n ")])])],2)}),0)],1)],1)],1)],1),t._v(" "),o("div",{staticClass:"breadcrumb_btn"},[o("Breadcrumb",[t._l(t.meal_btn,function(e){return[o("Button",{attrs:{type:e.type,size:"large"},domProps:{innerHTML:t._s(e.name.replace(/<br>/g,""))},on:{click:function(o){return t.changeDinner(e.date_id)}}},[t._v("{{}}")])]})],2)],1),t._v(" "),o("div",{ref:"scroll",staticClass:"layout-content scroll-wrapper"},[o("div",{staticClass:"layout-content-main scroll-content"},[o("div",{staticClass:"item-content"},[o("Row",t._l(t.dateData.cs,function(e,i){return o("Col",{key:e.csid,staticClass:"scroll-item",attrs:{span:"12"}},[o("div",{staticStyle:{display:"flex"}},[o("div",{staticClass:"item-media"},[o("img",{attrs:{alert:"加载失败",onError:"this.onerror=null;this.src='http://36.111.42.57:8081/m/img/noimage.png';",src:e.image}})]),t._v(" "),o("div",{staticClass:"item-inner"},[o("div",{staticClass:"item-title-row"},[o("div",{staticClass:"item-title",staticStyle:{"-webkit-box-orient":"vertical"},domProps:{innerHTML:t._s(e.csname.toString().split("<br>")[0])}})]),t._v(" "),o("div",{staticClass:"item-text price"},[o("i",{staticClass:"pi"},[t._v("¥")]),t._v(t._s(e.csprice)+"元/份")]),t._v(" "),o("div",{staticClass:"item-text kc"},[t._v("剩"+t._s("-1"===e.rest_num?"999+":e.rest_num)+"/"+t._s("0"===e.total_max_num?"999+":e.total_max_num))]),t._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:e.is_set_meal,expression:"meal.is_set_meal"}],staticClass:"item-text dc_detail",staticStyle:{width:"100%"}},[o("span",{staticStyle:{display:"inline-block","font-size":"13px","white-space":"initial",position:"absolute",bottom:"0.2rem",width:"130%",left:"0",top:"-1.2rem"}},[o("strong",[t._v("套餐详情:")]),t._v(" "),t._l(e.set_meal,function(e,i){return[o("small",{directives:[{name:"show",rawName:"v-show",value:0!=i,expression:"index!=0"}]},[t._v("")]),t._v(t._s(e.dish_name)+"\n")]})],2)])]),t._v(" "),o("div",{staticClass:"item-operator"},[o("p",{staticClass:"buttons-row",attrs:{limit:e.limit,price:e.csprice}},[o("a",{directives:[{name:"visible",rawName:"v-visible",value:0!==e.csnum,expression:"meal.csnum !== 0"}],staticClass:"button button-link button-nav minus",on:{click:function(o){return t.changeMeal(i,"minus",e.date_dish_id)}}},[o("Icon",{attrs:{type:"minus-circled"}})],1),t._v(" "),o("a",{directives:[{name:"visible",rawName:"v-visible",value:0!==e.csnum,expression:"meal.csnum !== 0"}],staticClass:"button button-link button-nav num",attrs:{href:"javascript:;"}},[t._v(t._s(e.csnum))]),t._v(" "),o("a",{directives:[{name:"visible",rawName:"v-visible",value:e.csnum<e.limit,expression:"meal.csnum < meal.limit "}],staticClass:"button button-link button-nav add",attrs:{href:"javascript:;"},on:{click:function(o){return t.changeMeal(i,"add",e.date_dish_id)}}},[o("Icon",{attrs:{type:"plus-circled"}})],1)])])])])}),1)],1)])]),t._v(" "),o("div",{staticClass:"layout-copy"},[o("Col",{attrs:{span:"6",offset:"4"}},[o("span",{staticClass:"total"},[t._v("合计 "),o("i",{staticClass:"pi"},[t._v("¥")]),t._v(t._s(t.dateData.order.price))])]),t._v(" "),o("Col",{attrs:{span:"4"}},[t.dateData.order.num?o("Badge",{attrs:{count:t.dateData.order.num}},[o("Button",{attrs:{type:"warning",loading:t.$store.state.loading},on:{click:t.handleOrder}},[o("span",[t._v("前往结算")])])],1):o("Button",{attrs:{type:"warning",disabled:""}},[o("span",[t._v("请选餐")])])],1)],1)])],1)],1)},staticRenderFns:[]},t.exports.render._withStripped=!0}});