hz-zhhq-app/unpackage/dist/build/web/static/js/pages-parking-parking.3c4e1...

1 line
66 KiB
JavaScript
Raw Normal View History

2025-02-25 15:19:01 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-parking-parking"],{"01c9":function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("80b1")),o=a(i("efe5")),r=a(i("5de6")),c=a(i("fcf3"));i("64aa"),i("bf0f"),i("2797"),i("aa9c"),i("5c47"),i("0506"),i("dfcf"),i("dc8a"),i("e966"),i("5ef2"),i("dd2b");var s=a(i("9b8e"));s.default.__xfl_select=s.default.__xfl_select||new s.default;var l={name:"xfl-select",props:{list:{type:Array,default:function(){return[]}},focusShowList:null,initValue:null,isCanInput:{type:Boolean,default:!1},selectHideType:{type:String,default:"hideAll"},placeholder:{type:String,default:"请选择"},style_Container:{type:String,default:""},disabled:{type:Boolean,default:!1},showItemNum:{type:Number,default:5},listShow:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0}},data:function(){return{isShowList:!1,selectText:"",activeIndex:-1,isRotate:!1,listTop__:50}},watch:{listShow:function(t,e){this.onDataChange_listShow(t,e)}},computed:{focusShowList__:function(){return null==this.focusShowList?function(){try{return!/iPhone|iPad|iPod|iOS|Android|SymbianOS|Windows Phone|coolpad|mmp|smartphone|midp|wap|xoom|symbian|j2me|blackberry|wince/i.test(navigator.userAgent)}catch(t){return!1}}():this.focusShowList},listBoxHeight__:function(){return 2*this.showItemNum},showInput:function(){return this.isCanInput&&!this.disabled},innerList:function(){var t=[],e=this.list;return e.forEach((function(e,i){var a="object"===(0,c.default)(e)&&"value"in e?e.value:e,n="object"===(0,c.default)(e)&&1==e.disabled;t.push({isActive:!1,value:a,disabled:n})})),t}},mounted:function(){s.default.__xfl_select.$on("open",this.onOtherXflSelectOpen),this.switchMgr=new d(this.onListShow,this.onListHide),this.onDataChange_listShow(this.listShow,null),this.init()},beforeDestroy:function(){s.default.__xfl_select.$off("open",this.onOtherXflSelectOpen)},methods:{onOtherXflSelectOpen:function(t){"independent"!==this.selectHideType&&"hideOthers"!==this.selectHideType&&t!==this&&this.switchMgr.close(100)},init:function(){this.clearInput(),this.setInput(this.initValue),this.changeActiveIndex(this.initValue),this.getInputBoxHeight()},getInputBoxHeight:function(){var t=this;(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.selector,i=void 0===e?"selector":e,a=t.component,n=void 0===a?null:a,o=t.attemptSpaceTime,c=void 0===o?16:o,l=t.attemptSpaceRate,d=void 0===l?1.5:l,u=t.totalAttemptNum,f=void 0===u?8:u,v=t.id,p=void 0===v||v,m=t.dataset,g=void 0===m||m,b=t.rect,x=void 0===b||b,w=t.size,y=void 0===w||w,A=t.scrollOffset,k=void 0===A||A,I=t.properties,C=void 0===I?[]:I,T=t.computedStyle,S=void 0===T?[]:T,z=t.context,M=void 0===z||z,P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,N=arguments;i="string"===typeof N[0]?N[0]:String(i),"function"!==typeof N[1]&&(n=N[1],P=N[2],E=N[3]);!n instanceof s.default&&(n=null);var U={selector:i,attemptSpaceTime:c,totalAttemptNum:f,attemptSpaceRate:d,id:p,dataset:g,rect:x,size:y,scrollOffset:k,properties:C,computedStyle:S,context:M},q=uni.createSelectorQuery();n&&q.in(n);var B,D="viewport"===i?q.selectViewport():q.selectAll(i);D.fields(U),"function"!==typeof P&&(B=new Promise((function(t){return P=t})));h((function(t,e){q.exec((function(i){var a=(0,r.default)(i,1),n=a[0];n&&0===n.length&&(n=null),n||f<=e?"function"===typeof P&&P.call(E,n):t(c),c=Math.round(c*d)}))}))()})(".show-box",void 0,(function(e){if(e){t.listTop__=e[0].height+6}}))},getIndex:function(t){var e=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,n=-1;i&&("string"===typeof i?i=i.split(/\s*[\,\.]\s*/):Array.isArray(i)||(i=""));return u(t,(function(t,o,r){if(i&&(t=f(t,i)),"function"===typeof a?a(t,e,arrElem,o,r):t===e)return n=o,!1})),n}(this.innerList,t,"value");return e},itemIsDisabled:function(t){return this.innerList[t].disabled},itemIsActive:function(t){re