From be9f6386e8d443f807e3333ddd3add65b707fe7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E8=83=9C=E5=BC=BA?= Date: Wed, 26 Dec 2018 17:54:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dpicker=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=A4=9A=E5=92=A7=E9=80=89=E6=8B=A9columnchange?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E4=B8=8D=E8=A7=A6=E5=8F=91=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20build=20uni-h5=200.0.10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/uni-h5/dist/index.umd.min.js | 2 +- packages/uni-h5/package.json | 2 +- src/core/view/components/picker/index.vue | 13 +- .../h5/components/app/popup/picker.vue | 247 +++++++++--------- 4 files changed, 136 insertions(+), 128 deletions(-) diff --git a/packages/uni-h5/dist/index.umd.min.js b/packages/uni-h5/dist/index.umd.min.js index 47272619..7190de6a 100644 --- a/packages/uni-h5/dist/index.umd.min.js +++ b/packages/uni-h5/dist/index.umd.min.js @@ -1 +1 @@ -(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue-router"),require("vue")):"function"===typeof define&&define.amd?define([,],e):"object"===typeof exports?exports["index"]=e(require("vue-router"),require("vue")):t["index"]=e(t["VueRouter"],t["Vue"])})("undefined"!==typeof self?self:this,function(t,e){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fae3")}({"066f":function(t,e,n){"use strict";n.r(e),n.d(e,"setTabBarItem",function(){return o}),n.d(e,"setTabBarStyle",function(){return s}),n.d(e,"hideTabBar",function(){return c}),n.d(e,"showTabBar",function(){return u}),n.d(e,"hideTabBarRedDot",function(){return l}),n.d(e,"showTabBarRedDot",function(){return h}),n.d(e,"removeTabBarBadge",function(){return d}),n.d(e,"setTabBarBadge",function(){return f});var i=n("f2b3");function r(t){var e=!1,n=getCurrentPages();if(n.length&&n[n.length-1].$page.meta.isTabBar&&(e=!0),!e)return"not TabBar page"}var a={type:Number,required:!0,validator:function(t,e){if(t>=__uniConfig.tabBar.list.length)return"tabbar item not found"}},o={beforeValidate:r,index:a,text:{type:String},iconPath:{type:String},selectedIconPath:{type:String}},s={beforeValidate:r,color:{type:String},selectedColor:{type:String},backgroundColor:{type:String},borderStyle:{type:String,validator:function(t,e){t&&(e.borderStyle="black"===t?"black":"white")}}},c={beforeValidate:r,animation:{type:Boolean,default:!1}},u={beforeValidate:r,animation:{type:Boolean,default:!1}},l={beforeValidate:r,index:a},h={beforeValidate:r,index:a},d={beforeValidate:r,index:a},f={beforeValidate:r,index:a,text:{type:String,required:!0,validator:function(t,e){Object(i["b"])(t)>=4&&(e.text="...")}}}},"0741":function(t,e,n){"use strict";var i=n("1f16"),r=n.n(i);r.a},"0784":function(t,e,n){"use strict";var i=n("a741");function r(t){var e=t.$route;t.route=e.meta.pagePath,t.__page__={id:e.params.__id__,path:e.path,route:e.meta.pagePath,meta:Object.assign({},e.meta)}}function a(){return{created:function(){r(this),Object(i["b"])(this,"onLoad",this.$route.query),Object(i["b"])(this,"onShow")}}}n.d(e,"a",function(){return a})},"0998":function(t,e,n){"use strict";var i=n("89fc"),r=n.n(i);r.a},"0a32":function(t,e,n){"use strict";var i=n("7df4"),r=n.n(i);r.a},"0dd1":function(t,e,n){"use strict";n.r(e);var i=n("8bbf"),r=n.n(i),a=n("a741"),o=n("9eba");function s(t){Object(a["a"])(getApp(),"onError",t)}function c(t){Object(a["a"])(getApp(),"onPageNotFound",t)}function u(t,e){var n=getCurrentPages().find(function(t){return t.$page.id===e});n&&(Object(o["setPullDownRefreshPageId"])(e),Object(a["b"])(n,"onPullDownRefresh"))}function l(t){var e=getCurrentPages();if(e.length){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r0?t.split("/"):[];return s.splice(s.length-o-1,o+1),"/"+s.concat(r).join("/")}n.d(e,"a",function(){return i})},1082:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-image",t._g({},t.$listeners),[n("div",{style:t.modeStyle})])},r=[],a={name:"Image",props:{src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1}},data:function(){return{originalWidth:0,originalHeight:0,availHeight:""}},computed:{ratio:function(){return this.originalWidth&&this.originalHeight?this.originalWidth/this.originalHeight:0},modeStyle:function(){var t="auto",e="",n="no-repeat";switch(this.mode){case"aspectFit":t="contain",e="center center";break;case"aspectFill":t="cover",e="center center";break;case"widthFix":t="100% 100%;";break;case"top":e="center top";break;case"bottom":e="center bottom";break;case"center":e="center center";break;case"left":e="left center";break;case"right":e="right center";break;case"top left":e="left top";break;case"top right":e="right top";break;case"bottom left":e="left bottom";break;case"bottom right":e="right bottom";break;default:t="100% 100%",e="0% 0%";break}return'background-image: url("'.concat(this.$getRealPath(this.src),'"); background-size:').concat(t,";background-position:").concat(e,";background-repeat:").concat(n,";")}},watch:{src:function(t,e){this._loadImage()},mode:function(t,e){"widthFix"===e&&(this.$el.style.height=this.availHeight),"widthFix"===t&&this.ratio&&this._getWidth()&&(this.$el.style.height=this._getWidth()/this.ratio+"px")}},mounted:function(){this.availHeight=this.$el.style.height||"",this._loadImage()},methods:{_loadImage:function(){var t=this,e=new Image;e.onload=function(e){t.originalWidth=this.width,t.originalHeight=this.height,"widthFix"===t.mode&&t._getWidth()&&(t.$el.style.height=t._getWidth()/t.ratio+"px"),t.$trigger("load",e,{width:this.width,height:this.height})},e.onerror=function(e){t.$trigger("error",e,{errMsg:"GET ".concat(t.src," 404 (Not Found)")})},e.src=this.$getRealPath(this.src)},_getWidth:function(){var t=window.getComputedStyle(this.$el),e=(parseFloat(t.borderLeftWidth,10)||0)+(parseFloat(t.borderRightWidth,10)||0),n=(parseFloat(t.paddingLeft,10)||0)+(parseFloat(t.paddingRight,10)||0);return this.$el.offsetWidth-e-n}}},o=a,s=(n("db18"),n("2877")),c=Object(s["a"])(o,i,r,!1,null,null,null);c.options.__file="index.vue";e["default"]=c.exports},1164:function(t,e,n){"use strict";(function(t){n.d(e,"b",function(){return a}),n.d(e,"c",function(){return o}),n.d(e,"a",function(){return s});var i=n("23e5"),r=!1;function a(){return r}function o(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=[],i=a();if(!i)return t.error("app is not ready"),[];var r=i.$children[0];if(r&&r.$children.length){var o=r.$children.find(function(t){return"TabBar"===t.$options.name});r.$children.forEach(function(t){if(o!==t&&t.$children.length&&"Page"===t.$children[0].$options.name&&t.$children[0].$slots.page){var r=t.$children[0].$children.find(function(t){return"PageBody"===t.$options.name}).$children.find(function(t){return!!t.$page});if(r){var a=!0;!e&&o&&r.$page&&r.$page.meta.isTabBar&&(i.$route.meta&&i.$route.meta.isTabBar?i.$route.path!==r.$page.path&&(a=!1):o.__path__!==r.$page.path&&(a=!1)),a&&n.push(r)}}})}var s=n.length;if(s>1){var c=n[s-1];c.$page.path!==i.$route.path&&n.splice(s-1,1)}return n}function s(t,e){r=t,r.globalData=r.$options.globalData||{},Object(i["a"])(r,e)}}).call(this,n("3ad9")["default"])},"11b9":function(t,e,n){},"11fb":function(t,e,n){"use strict";n.r(e),n.d(e,"previewImage",function(){return r});var i=n("cb0f"),r={urls:{type:Array,required:!0,validator:function(t,e){var n;if(e.urls=t.map(function(t){if("string"===typeof t)return Object(i["a"])(t);n=!0}),n)return"url is not string"}},current:{type:String,validator:function(t,e){e.type=t?Object(i["a"])(t):""}}}},"120f":function(t,e,n){"use strict";(function(t){var i=n("bab8");e["a"]={name:"SystemChooseLocation",components:{SystemHeader:i["a"]},data:function(){return{src:"",data:null}},mounted:function(){var t=this,e="WXTBZ-6WERU-ECCVS-BZJCK-LW5OJ-SIBOS";this.src="https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=".concat(e,"&referer=uniapp"),window.addEventListener("message",function(e){var n=e.data;n&&"locationPicker"===n.module&&(t.data={name:n.poiname,address:n.poiaddress,latitude:n.latlng.lat,longitude:n.latlng.lng})},!1)},methods:{_choose:function(){this.data&&(t.publishHandler("onChooseLocation",this.data),getApp().$router.back())},_back:function(){t.publishHandler("onChooseLocation",null),getApp().$router.back()}}}}).call(this,n("501c"))},"15a0":function(t,e,n){"use strict";n.r(e);var i=Object.create(null),r=n("19c4");r.keys().forEach(function(t){"./index.js"!==t&&Object.assign(i,r(t))}),e["default"]=i},"15bb":function(t,e,n){"use strict";(function(t){var i=n("f2b3");e["a"]={mounted:function(){var e=this;if("transparent"===this.type){for(var n=this.$el.querySelector(".uni-page-head-transparent").style,i=this.$el.querySelector(".uni-page-head__title").style,r=this.$el.querySelectorAll(".uni-btn-icon"),a=[],o=0;odiv,.uni-page-head-ft>div"),c=[],u=0;u.5&&e._A<=.5?a.forEach(function(t){t.color="#000"}):o<=.5&&e._A>.5&&a.forEach(function(t){t.color="#fff"}),e._A=o,i.opacity=o,n.backgroundColor="rgba(".concat(e._R,",").concat(e._G,",").concat(e._B,",").concat(o,")"),c.forEach(function(t){t.backgroundColor="rgba(153,153,153,".concat(1-o,")")}))})}},computed:{color:function(){return"transparent"===this.type?"#fff":this.textColor},offset:function(){return parseInt(this.coverage)},bgColor:function(){if("transparent"===this.type){var t=Object(i["d"])(this.backgroundColor),e=t.r,n=t.g,r=t.b;return this._R=e,this._G=n,this._B=r,"rgba(".concat(e,",").concat(n,",").concat(r,",0)")}return this.backgroundColor}}}}).call(this,n("501c"))},"167a":function(t,e,n){"use strict";var i=n("ac22"),r=n.n(i);r.a},1771:function(t,e,n){"use strict";(function(t){var i=n("8af1"),r=["navigate","redirect","switchTab","reLaunch","navigateBack"];e["a"]={name:"Navigator",mixins:[i["b"]],props:{hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator:function(t){return~r.indexOf(t)}},delta:{type:Number,default:1},hoverStartTime:{type:Number,default:20},hoverStayTime:{type:Number,default:600}},methods:{_onClick:function(e){if(this.url)switch(this.openType){case"navigate":uni.navigateTo({url:this.url});break;case"redirect":uni.redirectTo({url:this.url});break;case"switchTab":uni.switchTab({url:this.url});break;case"reLaunch":uni.reLaunch({url:this.url});break;case"navigateBack":uni.navigateBack({url:this.delta});break;default:break}else t.error(" should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab")}}}}).call(this,n("3ad9")["default"])},"17fd":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.hoverClass&&"none"!==t.hoverClass?n("uni-navigator",t._g({class:[t.hovering?t.hoverClass:""],on:{touchstart:t._hoverTouchStart,touchend:t._hoverTouchEnd,touchcancel:t._hoverTouchCancel,click:t._onClick}},t.$listeners),[t._t("default")],2):n("uni-navigator",t._g({on:{click:t._onClick}},t.$listeners),[t._t("default")],2)},r=[],a=n("1771"),o=a["a"],s=(n("f7fd"),n("2877")),c=Object(s["a"])(o,i,r,!1,null,null,null);c.options.__file="index.vue";e["default"]=c.exports},"18fd":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,r=/^<\/([-A-Za-z0-9_]+)[^>]*>/,a=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,o=f("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),s=f("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),c=f("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),u=f("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),l=f("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),h=f("script,style");function d(t,e){var n,d,f,p=[],g=t;p.last=function(){return this[this.length-1]};while(t){if(d=!0,p.last()&&h[p.last()])t=t.replace(new RegExp("([\\s\\S]*?)]*>"),function(t,n){return n=n.replace(/|/g,"$1$2"),e.chars&&e.chars(n),""}),b("",p.last());else if(0==t.indexOf("\x3c!--")?(n=t.indexOf("--\x3e"),n>=0&&(e.comment&&e.comment(t.substring(4,n)),t=t.substring(n+3),d=!1)):0==t.indexOf("=0;i--)if(p[i]==n)break}else var i=0;if(i>=0){for(var r=p.length-1;r>=i;r--)e.end&&e.end(p[r]);p.length=i}}b()}function f(t){for(var e={},n=t.split(","),i=0;i*{height: ").concat(t,"px;overflow: hidden;}"),document.head.appendChild(e)},_handleTrack:function(t){if(this._scroller)switch(t.detail.state){case"start":this._handleTouchStart(t);break;case"move":this._handleTouchMove(t);break;case"end":case"cancel":this._handleTouchEnd(t)}},_handleTap:function(t){if(t.target!==t.currentTarget&&!this._scroller.isScrolling()){var e=t.touches&&t.touches[0]&&t.touches[0].clientY,n="number"===typeof e?e:t.detail.y-document.body.scrollTop,i=this.$el.getBoundingClientRect(),r=n-i.top-this._height/2,a=this.indicatorHeight/2;if(!(Math.abs(r)<=a)){var o=Math.ceil((Math.abs(r)-a)/this.indicatorHeight),s=r<0?-o:o;this.current+=s,this._scroller.scrollTo(this.current*this.indicatorHeight)}}},setCurrent:function(t){t!==this.current&&(this.current=t,this.inited&&this.update())},init:function(){var t=this;this.initScroller(this.$refs.content,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:this.indicatorHeight,onSnap:function(e){isNaN(e)||e===t.current||(t.current=e)}}),this.inited=!0},update:function(){var t=this;this.$nextTick(function(){var e=Math.max(t.length-1,0),n=Math.min(t.current,e);t._scroller.update(n*t.indicatorHeight,void 0,t.indicatorHeight)})},_resize:function(t){var e=t.height;this.indicatorHeight=e}},render:function(t){return this.length=this.$slots.default&&this.$slots.default.length||0,t("uni-picker-view-column",{staticClass:"_picker-view-column",on:{tap:this._handleTap}},[t("div",{ref:"main",staticClass:"uni-picker-view-group"},[t("div",{ref:"mask",staticClass:"uni-picker-view-mask",class:this.maskClass,style:"background-size: 100% ".concat(this.maskSize,"px;").concat(this.maskStyle)}),t("div",{ref:"indicator",staticClass:"uni-picker-view-indicator",class:this.indicatorClass,style:this.indicatorStyle},[t("v-uni-resize-sensor",{attrs:{initial:!0},on:{resize:this._resize}})]),t("div",{ref:"content",staticClass:"uni-picker-view-content",class:this.scope,style:"padding: ".concat(this.maskSize,"px 0;")},[this.$slots.default])])])}},c=s,u=(n("edfa"),n("2877")),l=Object(u["a"])(c,i,r,!1,null,null,null);l.options.__file="index.vue";e["default"]=l.exports},"19c4":function(t,e,n){var i={"./base.js":"22ec","./canvas.js":"a041","./context.js":"9fef","./device/make-phone-call.js":"f102","./file/open-document.js":"2604","./index.js":"15a0","./location.js":"c439","./media/choose-image.js":"f1b2","./media/choose-video.js":"ed9f","./media/get-image-info.js":"b866","./media/preview-image.js":"11fb","./navigation-bar.js":"4043","./network/download-file.js":"439a","./network/request.js":"a201","./network/socket.js":"abb2","./network/upload-file.js":"9a3e","./page-scroll-to.js":"e8e6","./plugins.js":"cef5","./popup.js":"d68b","./route.js":"40ab","./storage.js":"3858","./tab-bar.js":"066f"};function r(t){var e=a(t);return n(e)}function a(t){var e=i[t];if(!(e+1)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return e}r.keys=function(){return Object.keys(i)},r.resolve=a,t.exports=r,r.id="19c4"},"1b6f":function(t,e,n){"use strict";(function(t){var i=n("f2b3");e["a"]={mounted:function(){var t=this;this._toggleListeners("subscribe",this.id),this.$watch("id",function(e,n){t._toggleListeners("unsubscribe",n,!0),t._toggleListeners("subscribe",e,!0)})},beforeDestroy:function(){this._toggleListeners("unsubscribe",this.id)},methods:{_toggleListeners:function(e,n,r){r&&!n||Object(i["e"])(this._handleSubscribe)&&t[e](this.$page.id+"-"+this.$options.name.replace(/VUni([A-Z])/,"$1").toLowerCase()+"-"+n,this._handleSubscribe)}}}}).call(this,n("501c"))},"1c4e":function(t,e,n){},"1c64":function(t,e,n){"use strict";var i=n("1c4e"),r=n.n(i);r.a},"1efd":function(t,e,n){"use strict";n.r(e);var i=n("8bbf"),r=n.n(i),a=n("cb0f"),o=n("d4b6"),s={methods:{$getRealPath:function(t){return Object(a["a"])(t)},$trigger:function(t,e,n){this.$emit(t,o["b"].call(this,t,e,n,this.$el,this.$el))}}},c=[n("5408"),n("93a5")];c.forEach(function(t,e){t.keys().forEach(function(e){var n=t(e),i=n.default||n;i.mixins=i.mixins?[].concat(s,i.mixins):[s],i.name="VUni"+i.name,r.a.component(i.name,i)})})},"1f16":function(t,e,n){},"1f6b":function(t,e,n){"use strict";var i=n("d871"),r=n.n(i);r.a},"22ec":function(t,e,n){"use strict";n.r(e),n.d(e,"canIUse",function(){return i});var i=[{name:"schema",type:String,required:!0}]},"23e5":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("a741");function r(t){-1===this.keepAliveInclude.indexOf(t)&&this.keepAliveInclude.push(t)}function a(t){var e=this.keepAliveInclude.indexOf(t);-1!==e&&this.keepAliveInclude.splice(e,1)}function o(t){for(var e=getCurrentPages(),n=e.length-1;n>=0;n--){var r=e[n],o=r.$page.meta;o.isTabBar||(a.call(this,o.name+"-"+r.$page.id),Object(i["b"])(r,"onUnload"))}}function s(t){__uniConfig.reLaunch=(__uniConfig.reLaunch||1)+1;for(var e=getCurrentPages(),n=e.length-1;n>=0;n--)Object(i["b"])(e[n],"onUnload");this.keepAliveInclude=[]}function c(t,e,n,i){var c=e.params.__id__,u=t.params.__id__;if(u===c)n(!1);else if(t.meta.id&&t.meta.id!==u)n({path:t.path,replace:!0});else{var l=e.meta.name+"-"+c,h=t.meta.name+"-"+u;switch(t.type){case"navigateTo":break;case"redirectTo":a.call(this,l);break;case"switchTab":o.call(this,i);break;case"reLaunch":s.call(this,h);break;default:c&&c>u&&a.call(this,l);break}"reLaunch"!==t.type&&e.meta.id&&r.call(this,l),r.call(this,h),t.meta&&t.meta.name&&(document.body.className="uni-body "+t.meta.name),n()}}function u(t,e){var n=e.params.__id__,r=t.params.__id__,a=getCurrentPages(!0).find(function(t){return t.$page.id===n});switch(t.type){case"navigateTo":a&&Object(i["b"])(a,"onHide");break;case"redirectTo":a&&Object(i["b"])(a,"onUnload");break;case"switchTab":e.meta.isTabBar&&a&&Object(i["b"])(a,"onHide");break;case"reLaunch":break;default:n&&n>r&&a&&Object(i["b"])(a,"onUnload");break}if("reLaunch"!==t.type){var o=getCurrentPages(!0).find(function(t){return t.$page.id===r});o&&setTimeout(function(){Object(i["b"])(o,"onShow")},0)}}function l(t,e){t.$router.beforeEach(function(n,i,r){c.call(t,n,i,r,e)}),t.$router.afterEach(function(e,n){u.call(t,e,n)})}},"24d9":function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return a});var i=n("f2b3");function r(t){return Object.assign({mp:t,_processed:!0},t)}function a(t,e){return Object(i["f"])(e)&&(Object(i["c"])(e,"backgroundColor")&&(t.backgroundColor=e.backgroundColor),Object(i["c"])(e,"buttons")&&(t.buttons=e.buttons),Object(i["c"])(e,"titleColor")&&(t.textColor=e.titleColor),Object(i["c"])(e,"titleText")&&(t.titleText=e.titleText),Object(i["c"])(e,"titleSize")&&(t.titleSize=e.titleSize),Object(i["c"])(e,"type")&&(t.type=e.type)),t}},"250d":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-input",t._g({},t.$listeners),[n("div",{ref:"wrapper",attrs:{disabled:t.disabled}},["checkbox"===t.inputType?n("input",{directives:[{name:"model",rawName:"v-model",value:t.inputValue,expression:"inputValue"}],ref:"input",attrs:{disabled:t.disabled,maxlength:t.maxlength,step:t.step,type:"checkbox"},domProps:{checked:Array.isArray(t.inputValue)?t._i(t.inputValue,null)>-1:t.inputValue},on:{focus:t._onFocus,blur:t._onBlur,input:function(e){return e.stopPropagation(),t._onInput(e)},compositionstart:t._onComposition,compositionend:t._onComposition,keyup:function(e){return e.stopPropagation(),t._onKeyup(e)},change:function(e){var n=t.inputValue,i=e.target,r=!!i.checked;if(Array.isArray(n)){var a=null,o=t._i(n,a);i.checked?o<0&&(t.inputValue=n.concat([a])):o>-1&&(t.inputValue=n.slice(0,o).concat(n.slice(o+1)))}else t.inputValue=r}}}):"radio"===t.inputType?n("input",{directives:[{name:"model",rawName:"v-model",value:t.inputValue,expression:"inputValue"}],ref:"input",attrs:{disabled:t.disabled,maxlength:t.maxlength,step:t.step,type:"radio"},domProps:{checked:t._q(t.inputValue,null)},on:{focus:t._onFocus,blur:t._onBlur,input:function(e){return e.stopPropagation(),t._onInput(e)},compositionstart:t._onComposition,compositionend:t._onComposition,keyup:function(e){return e.stopPropagation(),t._onKeyup(e)},change:function(e){t.inputValue=null}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.inputValue,expression:"inputValue"}],ref:"input",attrs:{disabled:t.disabled,maxlength:t.maxlength,step:t.step,type:t.inputType},domProps:{value:t.inputValue},on:{focus:t._onFocus,blur:t._onBlur,input:[function(e){e.target.composing||(t.inputValue=e.target.value)},function(e){return e.stopPropagation(),t._onInput(e)}],compositionstart:t._onComposition,compositionend:t._onComposition,keyup:function(e){return e.stopPropagation(),t._onKeyup(e)}}}),n("div",{directives:[{name:"show",rawName:"v-show",value:!(t.composing||t.inputValue.length),expression:"!(composing || inputValue.length)"}],ref:"placeholder",staticClass:"input-placeholder",class:t.placeholderClass,style:t.placeholderStyle},[t._v(t._s(t.placeholder))])])])},r=[],a=n("8af1"),o=["text","number","idcard","digit","password"],s=["number","digit"],c={name:"Input",mixins:[a["a"]],model:{prop:"value",event:"update:value"},props:{name:{type:String,default:""},value:{type:[String,Number],default:""},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},maxlength:{type:[Number,String],default:140},focus:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"done"}},data:function(){return{inputValue:this.value+"",composing:!1,wrapperHeight:0,cachedValue:""}},computed:{inputType:function(){var t="";switch(this.type){case"text":"search"===this.confirmType&&(t="search");break;case"idcard":t="text";break;case"digit":t="number";break;default:t=~o.indexOf(this.type)?this.type:"text";break}return this.password?"password":t},step:function(){return~s.indexOf(this.type)?"0.000000000000000001":""}},watch:{focus:function(t){t&&this._focusInput()},value:function(t){this.inputValue=t+""},inputValue:function(t){this.$emit("update:value",t)},maxlength:function(t){var e=this.realValue.slice(0,parseInt(t,10));e!==this.inputValue&&(this.inputValue=e)}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},mounted:function(){if(this._initInputStyle(),"search"===this.confirmType){var t=document.createElement("form");t.action="",t.onsubmit=function(){return!1},t.appendChild(this.$refs.input),this.$refs.wrapper.appendChild(t)}this.focus&&this._focusInput()},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_initInputStyle:function(){var t=this.$refs.wrapper,e=window.getComputedStyle(t),n=t.getBoundingClientRect(),i=this.$refs.input,r=this.$refs.placeholder,a=n.height-(parseFloat(e.borderTopWidth,10)+parseFloat(e.borderBottomWidth,10));a!==this.wrapperHeight&&(i.style.height="".concat(a,"px"),i.style.lineHeight="".concat(a,"px"),this.wrapperHeight=a),i.style.color=e.color,r.style.height="".concat(a,"px"),r.style.lineHeight="".concat(a,"px")},_onKeyup:function(t){13===t.keyCode&&this.$trigger("confirm",t,{value:t.target.value})},_onInput:function(t){if(!this.composing){if(~s.indexOf(this.type)){if(this.$refs.input.validity&&!this.$refs.input.validity.valid)return t.target.value=this.cachedValue,void(this.inputValue=t.target.value);this.cachedValue=this.inputValue}if("number"===this.inputType){var e=parseInt(this.maxlength,10);if(e>0&&t.target.value.length>e)return t.target.value=t.target.value.slice(0,e),void(this.inputValue=t.target.value)}this.$trigger("input",t,{value:this.inputValue})}},_onFocus:function(t){this.$trigger("focus",t,{value:t.target.value})},_onBlur:function(t){this.$trigger("blur",t,{value:t.target.value})},_focusInput:function(){var t=this;setTimeout(function(){t.$refs.input.focus()},350)},_blurInput:function(){var t=this;setTimeout(function(){t.$refs.input.blur()},350)},_onComposition:function(t){"compositionstart"===t.type?this.composing=!0:this.composing=!1},_resetFormData:function(){this.inputValue=""},_getFormData:function(){return this.name?{value:this.inputValue,key:this.name}:{}}}},u=c,l=(n("0f55"),n("2877")),h=Object(l["a"])(u,i,r,!1,null,null,null);h.options.__file="index.vue";e["default"]=h.exports},"25ce":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-checkbox-group",t._g({},t.$listeners),[t._t("default")],2)},r=[],a=n("8af1"),o={name:"CheckboxGroup",mixins:[a["a"],a["c"]],props:{name:{type:String,default:""}},data:function(){return{checkboxList:[]}},listeners:{"@checkbox-change":"_changeHandler","@checkbox-group-update":"_checkboxGroupUpdateHandler"},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_changeHandler:function(t){var e=[];this.checkboxList.forEach(function(t){t.checkboxChecked&&e.push(t.value)}),this.$trigger("change",t,{value:e})},_checkboxGroupUpdateHandler:function(t){if("add"===t.type)this.checkboxList.push(t.vm);else{var e=this.checkboxList.indexOf(t.vm);this.checkboxList.splice(e,1)}},_getFormData:function(){var t={};if(""!==this.name){var e=[];this.checkboxList.forEach(function(t){t.checkboxChecked&&e.push(t.value)}),t["value"]=e,t["key"]=this.name}return t}}},s=o,c=(n("0998"),n("2877")),u=Object(c["a"])(s,i,r,!1,null,null,null);u.options.__file="index.vue";e["default"]=u.exports},2604:function(t,e,n){"use strict";n.r(e),n.d(e,"openDocument",function(){return i});var i={filePath:{type:String,required:!0},fileType:{type:String}}},2608:function(t,e,n){"use strict";(function(t){function i(e){return function(){try{return e.apply(e,arguments)}catch(n){t.error(n)}}}function r(e){return function(){try{return e.apply(e,arguments)}catch(n){t.error(n)}}}n.d(e,"b",function(){return i}),n.d(e,"a",function(){return r})}).call(this,n("3ad9")["default"])},2765:function(t,e,n){"use strict";var i=n("ea0d"),r=n.n(i);r.a},"27a7":function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return v}),n.d(e,"c",function(){return m}),n.d(e,"b",function(){return b});var i=n("f2b3"),r=n("2608"),a=n("ed1a"),o=n("15a0"),s=n("de29");function c(e,n,i){var r="".concat(n,":fail ").concat(e);if(t.error(r),-1===i)throw new Error(r);return"number"===typeof i&&v(i,{errMsg:r}),!1}var u=[{name:"callback",type:Function,required:!0}];function l(t,e,n){var r=o["default"][t];if(!r&&Object(a["a"])(t)&&(r=u),r){if(Array.isArray(r)&&Array.isArray(e)){var l=Object.create(null),h=Object.create(null),d=e.length;r.forEach(function(t,n){l[t.name]=t,d>n&&(h[t.name]=e[n])}),r=l,e=h}if(Object(i["e"])(r.beforeValidate)){var f=r.beforeValidate(e);if(f)return c(f,t,n)}for(var p=Object.keys(r),g=0;g1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Object(i["f"])(e))return{params:e};e=Object.assign({},e);var a={};for(var o in e){var s=e[o];Object(i["e"])(s)&&(a[o]=Object(r["a"])(s),delete e[o])}var c=a.success,u=a.fail,l=a.cancel,f=a.complete,p=Object(i["e"])(c),g=Object(i["e"])(u),v=Object(i["e"])(l),m=Object(i["e"])(f);if(!p&&!g&&!v&&!m)return{params:e};var b={};for(var _ in n){var y=n[_];Object(i["e"])(y)&&(b[_]=Object(r["b"])(y),delete n[_])}var w=b.beforeSuccess,S=b.afterSuccess,k=b.beforeFail,x=b.afterFail,T=b.beforeCancel,C=b.afterCancel,M=b.afterAll,O=h++,E="api."+t+"."+O,A=function(e){e.errMsg=e.errMsg||t+":ok";var n=e.errMsg;0===n.indexOf(t+":ok")?(Object(i["e"])(w)&&w(e),p&&c(e),Object(i["e"])(S)&&S(e)):0===n.indexOf(t+":cancel")?(e.errMsg=e.errMsg.replace(t+":cancel",t+":fail cancel"),g&&u(e),Object(i["e"])(T)&&T(e),v&&l(e),Object(i["e"])(C)&&C(e)):0===n.indexOf(t+":fail")&&(Object(i["e"])(k)&&k(e),g&&u(e),Object(i["e"])(x)&&x(e)),m&&f(e),Object(i["e"])(M)&&M(e)};return d[O]={name:E,callback:A},{params:e,callbackId:O}}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=p(t,e,n),a=r.params,o=r.callbackId;return Object(i["f"])(a)&&!l(t,a,o)?{params:a,callbackId:!1}:{params:a,callbackId:o}}function v(t,e){if("number"===typeof t){var n=d[t];if(n)return n.keepAlive||delete d[t],n.callback(e)}return e}function m(e){return function(n){t.error("API `"+e+"` is not yet implemented")}}function b(t,e,n){return function(){for(var r=arguments.length,o=new Array(r),s=0;sthis.valueSync.length&&this.valueSync.splice(this.valueSync.length-1,this.valueSync.length-t.length)},valueSync:{deep:!0,handler:function(t,e){if(""===this.changeSource)this._valueChanged(t);else{this.changeSource="";var n=t.map(function(t){return t});this.$emit("update:value",n),this.$trigger("change",{},{value:n})}}}},methods:{getItemIndex:function(t){return this.items.indexOf(t)},getItemValue:function(t){return this.valueSync[this.getItemIndex(t.$vnode)]||0},setItemValue:function(t,e){var n=this.getItemIndex(t.$vnode),i=this.valueSync[n];i!==e&&(this.changeSource="touch",this.$set(this.valueSync,n,e))},_valueChanged:function(t){this.items.forEach(function(e,n){e.componentInstance.setCurrent(t[n]||0)})},_resize:function(t){var e=t.height;this.height=e}},render:function(t){var e=[];return this.$slots.default&&this.$slots.default.forEach(function(t){t.componentOptions&&"v-uni-picker-view-column"===t.componentOptions.tag&&e.push(t)}),this.items=e,t("uni-picker-view",{on:this.$listeners},[t("v-uni-resize-sensor",{attrs:{initial:!0},on:{resize:this._resize}}),t("div",{ref:"wrapper",class:"uni-picker-view-wrapper"},e)])}},l=u,h=(n("6062"),n("2877")),d=Object(h["a"])(l,s,c,!1,null,null,null);d.options.__file="index.vue";e["default"]=d.exports},"27be":function(t,e,n){},2829:function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"getLocation",function(){return a});var i=n("ffdc");function r(t,e,n){var r="WXTBZ-6WERU-ECCVS-BZJCK-LW5OJ-SIBOS",a="https://apis.map.qq.com/ws/coord/v1/translate?locations=".concat(t.latitude,",").concat(t.longitude,"&type=1&key=").concat(r,"&output=jsonp");Object(i["a"])(a,{},function(t){"locations"in t&&t.locations.length?e({longitude:t.locations[0].lng,latitude:t.locations[0].lat}):n()},n)}function a(e,n){var i=e.type,a=e.altitude,o=t,s=o.invokeCallbackHandler;function c(t){s(n,Object.assign(t,{errMsg:"getLocation:ok",verticalAccuracy:t.altitudeAccuracy||0,horizontalAccuracy:t.accuracy}))}navigator.geolocation?navigator.geolocation.getCurrentPosition(function(t){var e=t.coords;"WGS84"===i?c(e):r(e,c,function(){s(n,{errMsg:"getLocation:fail"})})},function(){s(n,{errMsg:"getLocation:fail"})},{enableHighAccuracy:a,timeout:3e5}):s(n,{errMsg:"getLocation:fail device nonsupport geolocation"})}}.call(this,n("0dd1"))},2877:function(t,e,n){"use strict";function i(t,e,n,i,r,a,o,s){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=c):r&&(c=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:u}}n.d(e,"a",function(){return i})},"287f":function(t,e,n){},"2ae7":function(t,e,n){"use strict";n.r(e),function(t){function i(e,n){var i=e.latitude,r=e.longitude,a=e.scale,o=e.name,s=e.address,c=t,u=c.invokeCallbackHandler;getApp().$router.push({type:"navigateTo",path:"/open-location",params:{latitude:i,longitude:r,scale:a,name:o,address:s}},function(){u(n,{errMsg:"openLocation:ok"})},function(){u(n,{errMsg:"openLocation:fail"})})}function r(e,n){var i=t,r=i.invokeCallbackHandler;getApp().$router.push({type:"navigateTo",path:"/choose-location"},function(){var e=function e(i){t.unsubscribe("onChooseLocation",e),r(n,i?Object.assign(i,{errMsg:"chooseLocation:ok"}):{errMsg:"chooseLocation:fail"})};t.subscribe("onChooseLocation",e)},function(){r(n,{errMsg:"chooseLocation:fail"})})}n.d(e,"openLocation",function(){return i}),n.d(e,"chooseLocation",function(){return r})}.call(this,n("0dd1"))},"2bbe":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.hoverClass&&"none"!==t.hoverClass?n("uni-view",t._g({class:[t.hovering?t.hoverClass:""],on:{touchstart:t._hoverTouchStart,touchend:t._hoverTouchEnd,touchcancel:t._hoverTouchCancel}},t.$listeners),[t._t("default")],2):n("uni-view",t._g({},t.$listeners),[t._t("default")],2)},r=[],a=n("83a6"),o={name:"View",mixins:[a["a"]],listeners:{"label-click":"clickHandler"}},s=o,c=(n("e865"),n("2877")),u=Object(c["a"])(s,i,r,!1,null,null,null);u.options.__file="index.vue";e["default"]=u.exports},"2bdd":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"onAccelerometerChange",function(){return a}),n.d(e,"startAccelerometer",function(){return o}),n.d(e,"stopAccelerometer",function(){return s});var i,r=[];function a(t){r.push(t),i||o()}function o(){var e=t,n=e.invokeCallbackHandler;if(window.DeviceMotionEvent)return i=function(t){r.forEach(function(e){var i=t.acceleration||t.accelerationIncludingGravity;n(e,{x:i.x||0,y:i.y||0,z:i.z||0,errMsg:"onAccelerometerChange:ok"})})},window.addEventListener("devicemotion",i,!1),{};throw new Error("device nonsupport devicemotion")}function s(){return i&&(window.removeEventListener("devicemotion",i,!1),i=null),{}}}.call(this,n("0dd1"))},"2c0a":function(t,e,n){},"2c67":function(t,e,n){"use strict";n.r(e),function(t){function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n=0?f:255,[l,h,d,f]}return i.group("非法颜色: "+t),i.error("不支持颜色:"+t),i.groupEnd(),[0,0,0,255]}function v(t){this.width=t}function m(t,e){this.image=t,this.repetition=e}var b,_=function(){function t(e,n){u(this,t),this.type=e,this.data=n,this.colorStop=[]}return h(t,[{key:"addColorStop",value:function(t,e){this.colorStop.push([t,g(e)])}}]),t}(),y=["scale","rotate","translate","setTransform","transform"],w=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],S=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];function k(){return b||(b=document.createElement("canvas")),b}var x=function(){function t(e,n){u(this,t),this.id=e,this.pageId=n,this.actions=[],this.currentTransform=[],this.currentStepAnimates=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}return h(t,[{key:"draw",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,i=a(this.actions);this.actions=[],this.path=[],"function"===typeof n&&(t=d.push(n)),f(this.id,this.pageId,"actionsChanged",{actions:i,reserve:e,callbackId:t})}},{key:"createLinearGradient",value:function(t,e,n,i){return new _("linear",[t,e,n,i])}},{key:"createCircularGradient",value:function(t,e,n){return new _("radial",[t,e,n])}},{key:"createPattern",value:function(t,e){if(void 0===e)i.error("Failed to execute 'createPattern' on 'CanvasContext': 2 arguments required, but only 1 present.");else{if(!(["repeat","repeat-x","repeat-y","no-repeat"].indexOf(e)<0))return new m(t,e);i.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('"+e+"') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.")}}},{key:"measureText",value:function(t){var e=k().getContext("2d");return e.font=this.state.font,new v(e.measureText(t).width||0)}},{key:"save",value:function(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)}},{key:"restore",value:function(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}},{key:"beginPath",value:function(){this.path=[],this.subpath=[]}},{key:"moveTo",value:function(t,e){this.path.push({method:"moveTo",data:[t,e]}),this.subpath=[[t,e]]}},{key:"lineTo",value:function(t,e){0===this.path.length&&0===this.subpath.length?this.path.push({method:"moveTo",data:[t,e]}):this.path.push({method:"lineTo",data:[t,e]}),this.subpath.push([t,e])}},{key:"quadraticCurveTo",value:function(t,e,n,i){this.path.push({method:"quadraticCurveTo",data:[t,e,n,i]}),this.subpath.push([n,i])}},{key:"bezierCurveTo",value:function(t,e,n,i,r,a){this.path.push({method:"bezierCurveTo",data:[t,e,n,i,r,a]}),this.subpath.push([r,a])}},{key:"arc",value:function(t,e,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.path.push({method:"arc",data:[t,e,n,i,r,a]}),this.subpath.push([t,e])}},{key:"rect",value:function(t,e,n,i){this.path.push({method:"rect",data:[t,e,n,i]}),this.subpath=[[t,e]]}},{key:"arcTo",value:function(t,e,n,i,r){this.path.push({method:"arcTo",data:[t,e,n,i,r]}),this.subpath.push([n,i])}},{key:"clip",value:function(){this.actions.push({method:"clip",data:a(this.path)})}},{key:"closePath",value:function(){this.path.push({method:"closePath",data:[]}),this.subpath.length&&(this.subpath=[this.subpath.shift()])}},{key:"clearActions",value:function(){this.actions=[],this.path=[],this.subpath=[]}},{key:"getActions",value:function(){var t=a(this.actions);return this.clearActions(),t}}]),t}();function T(e,n){if(n)return new x(e,n.$page.id);var i=getApp();if(i.$route&&i.$route.params.__id__)return new x(e,i.$route.params.__id__);t.emit("onError","createCanvasContext:fail")}[].concat(y,w).forEach(function(t){function e(t){switch(t){case"fill":case"stroke":return function(){this.actions.push({method:t+"Path",data:a(this.path)})};case"fillRect":return function(t,e,n,i){this.actions.push({method:"fillPath",data:[{method:"rect",data:[t,e,n,i]}]})};case"strokeRect":return function(t,e,n,i){this.actions.push({method:"strokePath",data:[{method:"rect",data:[t,e,n,i]}]})};case"fillText":case"strokeText":return function(e,n,i,r){var a=[e.toString(),n,i];"number"===typeof r&&a.push(r),this.actions.push({method:t,data:a})};case"drawImage":return function(e,n,i,r,a,o,s,c,u){var l;function h(t){return"number"===typeof t}void 0===u&&(o=n,s=i,c=r,u=a,n=void 0,i=void 0,r=void 0,a=void 0),l=h(n)&&h(i)&&h(r)&&h(a)?[e,o,s,c,u,n,i,r,a]:h(c)&&h(u)?[e,o,s,c,u]:[e,o,s],this.actions.push({method:t,data:l})};default:return function(){for(var e=arguments.length,n=new Array(e),i=0;i0&&(r.currentTime=e)}),r.addEventListener("progress",function(t){var e=r.buffered;e.length&&(n.buffered=e.end(e.length-1)/r.duration)}),r.addEventListener("waiting",function(t){n.$trigger("waiting",t,{})}),r.addEventListener("error",function(t){n.playing=!1,n.$trigger("error",t,{})}),r.addEventListener("play",function(t){n.start=!0,n.playing=!0,n.fullscreenTriggering||n.$trigger("play",t,{})}),r.addEventListener("pause",function(t){n.playing=!1,n.fullscreenTriggering||n.$trigger("pause",t,{})}),r.addEventListener("ended",function(t){n.playing=!1,n.$trigger("ended",t,{})}),r.addEventListener("timeupdate",function(t){var e=n.currentTime=r.currentTime,a=r.duration,o=i.danmuIndex,s={time:e,index:o.index},c=i.danmuList;if(e>o.time)for(var u=o.index+1;u=(l.time||0)))break;s.index=u,n.playing&&n.enableDanmuSync&&n.playDanmu(l)}else if(e-1;h--){var d=c[h];if(!(e<=(d.time||0)))break;s.index=h-1}i.danmuIndex=s,n.$trigger("timeupdate",{},{currentTime:e,duration:a})});var o,c=!0;function u(i){var r=n.getScreenXY(i.targetTouches[0]),a=r.pageX,s=r.pageY;if(c&&Math.abs(a-t)100&&(h=100),n.progress=h,i.preventDefault(),i.stopPropagation()}}function l(t){n.controlsTouching=!1,n.touching&&(a.removeEventListener("touchmove",u,s),c||(t.preventDefault(),t.stopPropagation(),n.seek(n.$refs.video.duration*n.progress/100)),n.touching=!1)}a.addEventListener("touchstart",function(i){n.controlsTouching=!0;var r=n.getScreenXY(i.targetTouches[0]);t=r.pageX,e=r.pageY,o=n.progress,c=!0,n.touching=!0,a.addEventListener("touchmove",u,s)}),a.addEventListener("touchend",l),a.addEventListener("touchcancel",l),String(this.srcSync).length&&this.autoplay&&r.play()},beforeDestroy:function(){this.$refs.container.remove(),clearTimeout(this.otherData.hideTiming)},methods:{_handleSubscribe:function(t){var e=t.type,n=t.data,i=void 0===n?{}:n;switch(e){case"play":this.play();break;case"pause":this.pause();break;case"seek":this.seek(i.position);break;case"sendDanmu":this.sendDanmu(i);break;case"playbackRate":this.$refs.video.playbackRate=i.rate;break;case"requestFullScreen":this.enterFullscreen();break;case"exitFullScreen":this.leaveFullscreen();break}},resize:function(){var t=window.innerWidth,e=window.innerHeight,n=Math.abs(this.directionSync);this.rotateType=0===n?t>e?"left":"":90===n?t>e?"":"right":"",this.rotateType?(this.width=e+"px",this.height=t+"px"):(this.width=t+"px",this.height=e+"px")},trigger:function(){this.playing?this.$refs.video.pause():this.$refs.video.play()},play:function(){this.start=!0,this.$refs.video.play()},pause:function(){this.$refs.video.pause()},seek:function(t){t=Number(t),"number"!==typeof t||isNaN(t)||(this.$refs.video.currentTime=t)},clickProgress:function(t){var e=t.offsetX,n=this.$refs.progress,i=t.target;while(i!==n)e+=i.offsetLeft,i=i.parentNode;var r=n.offsetWidth,a=0;e>=0&&e<=r&&(a=e/r,this.seek(this.$refs.video.duration*a))},triggerDanmu:function(){this.enableDanmuSync=!this.enableDanmuSync},playDanmu:function(t){var e=document.createElement("p");e.className="uni-video-danmu-item",e.innerText=t.text;var n="bottom: ".concat(100*Math.random(),"%;color: ").concat(t.color,";");e.setAttribute("style",n),this.$refs.danmu.appendChild(e),setTimeout(function(){n+="left: 0;-webkit-transform: translateX(-100%);transform: translateX(-100%);",e.setAttribute("style",n),setTimeout(function(){e.remove()},4e3)},17)},sendDanmu:function(t){var e=this.otherData;e.danmuList.splice(e.danmuIndex.index+1,0,{text:String(t.text),color:t.color,time:this.$refs.video.currentTime||0})},triggerFullscreen:function(){this.fullscreen=!this.fullscreen},enterFullscreen:function(t){var e=Number(t);isNaN(NaN)||(this.directionSync=e),this.fullscreen=!0},leaveFullscreen:function(){this.fullscreen=!1},triggerControls:function(){this.controlsVisible=!this.controlsVisible},touchstart:function(t){var e=this.getScreenXY(t.targetTouches[0]);this.touchStartOrigin={x:e.pageX,y:e.pageY},this.gestureType=c.NONE,this.volumeOld=null,this.currentTimeOld=this.currentTimeNew=0},touchmove:function(t){function e(){t.stopPropagation(),t.preventDefault()}this.fullscreen&&e();var n=this.gestureType;if(n!==c.STOP){var i=this.getScreenXY(t.targetTouches[0]),r=i.pageX,a=i.pageY,o=this.touchStartOrigin;if(n===c.PROGRESS?this.changeProgress(r-o.x):n===c.VOLUME&&this.changeVolume(a-o.y),n===c.NONE)if(Math.abs(r-o.x)>Math.abs(a-o.y)){if(!this.enableProgressGesture)return void(this.gestureType=c.STOP);this.gestureType=c.PROGRESS,this.currentTimeOld=this.currentTimeNew=this.$refs.video.currentTime,this.fullscreen||e()}else{if(!this.pageGesture)return void(this.gestureType=c.STOP);this.gestureType=c.VOLUME,this.volumeOld=this.$refs.video.volume,this.fullscreen||e()}}},touchend:function(t){this.gestureType!==c.NONE&&this.gestureType!==c.STOP&&(t.stopPropagation(),t.preventDefault()),this.gestureType===c.PROGRESS&&this.currentTimeOld!==this.currentTimeNew&&(this.$refs.video.currentTime=this.currentTimeNew),this.gestureType=c.NONE},changeProgress:function(t){var e=this.$refs.video.duration,n=t/600*e+this.currentTimeOld;n<0?n=0:n>e&&(n=e),this.currentTimeNew=n},changeVolume:function(t){var e,n=this.volumeOld;"number"===typeof n&&(e=n-t/200,e<0?e=0:e>1&&(e=1),this.$refs.video.volume=e,this.volumeNew=e)},autoHideStart:function(){var t=this;this.otherData.hideTiming=setTimeout(function(){t.controlsVisible=!1},3e3)},autoHideEnd:function(){var t=this.otherData;t.hideTiming&&(clearTimeout(t.hideTiming),t.hideTiming=null)},getScreenXY:function(t){var e=this.rotateType;if(!this.fullscreen||!e)return t;var n,i,r=screen.width,a=screen.height,o=t.pageX,s=t.pageY;return"left"===e?(n=a-s,i=o):(n=s,i=r-o),{pageX:n,pageY:i}},updateProgress:function(){this.touching||(this.progress=this.currentTime/this.durationTime*100)}}},l=u,h=(n("856e"),n("2877")),d=Object(h["a"])(l,i,r,!1,null,null,null);d.options.__file="index.vue";e["default"]=d.exports},"33ed":function(t,e,n){"use strict";(function(t){n.d(e,"b",function(){return r}),n.d(e,"c",function(){return a}),n.d(e,"a",function(){return o});var i=n("4a59");function r(t){t.preventDefault()}function a(t){var e=t.scrollTop,n=t.duration,i=document.documentElement,r=i.clientHeight,a=i.scrollHeight;function o(t){if(t<=0)window.scrollTo(0,e);else{var n=e-window.scrollY;requestAnimationFrame(function(){window.scrollTo(0,window.scrollY+n/t*10),o(t-10)})}}e=Math.min(e,a-r),0!==n?window.scrollY!==e&&o(n):i.scrollTop=e}function o(e,n){var r=n.enablePageScroll,a=n.enablePageReachBottom,o=n.onReachBottomDistance,s=n.enableTransparentTitleNView,c=!1,u=!1,l=!0;function h(){var t=document.documentElement,e=t.clientHeight,n=t.scrollHeight,i=window.scrollY,r=i>0&&n>e&&i+e+o>=n;return r&&!u?(u=!0,!0):(!r&&u&&(u=!1),!1)}function d(){var n=window.pageYOffset;r&&Object(i["a"])("onPageScroll",{scrollTop:n},e),s&&t.emit("onPageScroll",{scrollTop:n}),a&&l&&h()&&(Object(i["a"])("onReachBottom",{},e),l=!1,setTimeout(function(){l=!0},350)),c=!1}return function(){c||requestAnimationFrame(d),c=!0}}}).call(this,n("501c"))},3596:function(t,e,n){},"37d4":function(t,e,n){},3858:function(t,e,n){"use strict";n.r(e),n.d(e,"setStorage",function(){return i}),n.d(e,"setStorageSync",function(){return r});var i={key:{type:String,required:!0},data:{required:!0}},r=[{name:"key",type:String,required:!0},{name:"data",required:!0}]},"3a5e":function(t,e,n){},"3ac1":function(t,e,n){},"3ad9":function(t,e,n){"use strict";n.r(e),function(t){var n=Array.prototype.unshift;function i(t){return n.call(t,"[system]"),t}function r(e){return function(){var n=!0;"debug"!==e||__uniConfig.debug||(n=!1),n&&t.console[e].apply(t.console,i(arguments))}}e["default"]={log:r("log"),info:r("info"),warn:r("warn"),debug:r("debug"),error:r("error")}}.call(this,n("c8ba"))},"3c47":function(t,e,n){"use strict";(function(t){var i=n("8af1");e["a"]={name:"Label",mixins:[i["a"]],props:{for:{type:String,default:""}},methods:{_onClick:function(e){var n=/^uni-(checkbox|radio|switch)-/.test(e.target.className);n||(n=/^uni-(checkbox|radio|switch|button)$/i.test(e.target.tagName)),n||(this.for?t.emit("uni-label-click-"+this.$page.id+"-"+this.for,e,!0):this.$broadcast(["Checkbox","Radio","Switch","Button"],"uni-label-click",e,!0))}}}}).call(this,n("501c"))},"3d1f":function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return l});var i=n("62b5"),r=n("a741");function a(e){return function(n,i){var a=getCurrentPages(),o=a.find(function(t){return t.$page.id===i});o?Object(r["b"])(o,e,n):t.error("Not Found:Page[".concat(i,"]"))}}var o=Object(i["a"])("requestComponentInfo");function s(t){var e=t.reqId,n=t.res,i=o.pop(e);i&&i(n)}var c=Object(i["a"])("requestComponentObserver");function u(t){var e=t.reqId,n=t.reqEnd,i=t.res,r=c.get(e);r&&(n&&c.pop(e),r(i))}function l(t){t("onPageReady",a("onReady")),t("onPageScroll",a("onPageScroll")),t("onReachBottom",a("onReachBottom")),t("onRequestComponentInfo",s),t("onRequestComponentObserver",u)}}).call(this,n("3ad9")["default"])},"3d64":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"onNetworkStatusChange",function(){return c}),n.d(e,"getNetworkType",function(){return u});var i=t,r=i.invokeCallbackHandler,a=[];function o(){var t=navigator.connection.type,e="";if(~["none","wifi","unknown"].indexOf(t))e=t;else{var n=navigator.connection.effectiveType;"slow-2g"===n&&(n="2g"),e=n}return e}function s(){var t=!0,e=o();"none"===e&&(t=!1),a.forEach(function(n){n&&r(n,{errMsg:"onNetworkStatusChange:ok",isConnected:t,networkType:e})})}function c(t){window.NetworkInformation?(a.push(t),navigator.connection.onchange=s):t&&r(t,{errMsg:"onNetworkStatusChange:fail"})}function u(){return window.NetworkInformation?{errMsg:"getNetworkType:ok",networkType:o()}:{errMsg:"getNetworkType:fail"}}}.call(this,n("0dd1"))},"3da9":function(t,e,n){"use strict";var i=n("d078"),r=n.n(i);r.a},"3e8c":function(t,e,n){"use strict";n.r(e);var i,r,a={name:"ResizeSensor",props:{initial:{type:[Boolean,String],default:!1}},data:function(){return{size:{width:-1,height:-1}}},watch:{size:{deep:!0,handler:function(t){this.$emit("resize",Object.assign({},t))}}},mounted:function(){if(!0===this.initial&&this.$nextTick(this.update),this.$el.offsetParent!==this.$el.parentNode&&(this.$el.parentNode.style.position="relative"),"attachEvent"in this.$el&&!("AnimationEvent"in window)){var t=function(){this.update(),e()}.bind(this),e=function(){this.$el.detachEvent("onresize",t),this.$off("resizeSensorBeforeDestroy",e)}.bind(this);this.$el.attachEvent("onresize",t),this.$on("resizeSensorBeforeDestroy",e),this.reset()}},methods:{reset:function(){var t=this.$el.firstChild,e=this.$el.lastChild;t.scrollLeft=1e5,t.scrollTop=1e5,e.scrollLeft=1e5,e.scrollTop=1e5},update:function(){this.size.width=this.$el.offsetWidth,this.size.height=this.$el.offsetHeight,this.reset()}},render:function(t){return t("uni-resize-sensor",{on:{"~animationstart":this.update}},[t("div",{on:{scroll:this.update}},[t("div")]),t("div",{on:{scroll:this.update}},[t("div")])])}},o=a,s=(n("64d0"),n("2877")),c=Object(s["a"])(o,i,r,!1,null,null,null);c.options.__file="index.vue";e["default"]=c.exports},"3f7e":function(t,e,n){"use strict";var i=n("800b"),r=n.n(i);r.a},"3ff2":function(t,e,n){"use strict";(function(t){var i=n("f2b3");function r(t){return s(t)||o(t)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function o(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function s(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);ee(r)&&this._cloneArray(n,r)}}},created:function(){this._createTime(),this._createDate(),this._setValue(),this.$watch("value",this._setValue),this.$watch("mode",this._setValue)},methods:{_createTime:function(){var t=[],e=[];t.splice(0,t.length);for(var n=0;n<24;n++)t.push((n<10?"0":"")+n);e.splice(0,e.length);for(var i=0;i<60;i++)e.push((i<10?"0":"")+i);this.timeArray.push(t,e)},_createDate:function(){for(var t=[],e=(new Date).getFullYear(),n=e-150,i=e+150;n<=i;n++)t.push(String(n));for(var r=[],a=1;a<=12;a++)r.push((a<10?"0":"")+a);for(var o=[],s=1;s<=31;s++)o.push((s<10?"0":"")+s);this.dateArray.push(t,r,o)},_getTimeValue:function(t){return 60*t[0]+t[1]},_getDateValue:function(t){return 366*t[0]+(t[1]||0)+(t[2]||0)},_cloneArray:function(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;e.animation={duration:t.duration||0,timingFunc:t.timingFunc||"linear"}}}},a={title:{type:String,required:!0}}},4062:function(t,e,n){"use strict";n.r(e),function(t){function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"showModal",function(){return s}),n.d(e,"showToast",function(){return c}),n.d(e,"hideToast",function(){return u}),n.d(e,"showLoading",function(){return l}),n.d(e,"hideLoading",function(){return h}),n.d(e,"showActionSheet",function(){return d});var r=t,a=r.emit,o=r.invokeCallbackHandler;function s(t,e){a("onShowModal",t,function(t){o(e,i({},t,!0))})}function c(t){return a("onShowToast",t),{}}function u(){return a("onHideToast"),{}}function l(t){return a("onShowToast",t),{}}function h(){return a("onHideToast"),{}}function d(t,e){a("onShowActionSheet",t,function(t){o(e,-1===t?{errMsg:"showActionSheet:fail cancel"}:{tapIndex:t})})}}.call(this,n("0dd1"))},"40ab":function(t,e,n){"use strict";n.r(e),n.d(e,"redirectTo",function(){return s}),n.d(e,"reLaunch",function(){return c}),n.d(e,"navigateTo",function(){return u}),n.d(e,"switchTab",function(){return l}),n.d(e,"navigateBack",function(){return h});var i=n("0f74");function r(t){if("string"===typeof t){var e=t.split("?");t=e[0];var n=[];return(e[1]||"").split("&").forEach(function(t){if(t){var e=t.split("=");n.push(e[0]+"="+encodeURIComponent(e[1]))}}),n.length?t+"?"+n.join("&"):t}return t}function a(t){return function(e,n){e=Object(i["a"])(e);var a=e.split("?")[0],o=__uniRoutes.find(function(t){var e=t.path,n=t.alias;return e===a||n===a});if(!o)return"page `"+e+"` is not found";if("navigateTo"===t||"redirectTo"===t){if(o.meta.isTabBar)return"can not ".concat(t," a tabbar page")}else if("switchTab"===t&&!o.meta.isTabBar)return"can not switch to no-tabBar page";o.meta.isTabBar&&(e=a),o.meta.isEntry&&(e=e.replace(o.alias,"/")),n.url=r(e)}}function o(t){return{url:{type:String,required:!0,validator:a(t)}}}var s=o("redirectTo"),c=o("reLaunch"),u=o("navigateTo"),l=o("switchTab"),h={delta:{type:Number,validator:function(t,e){t=parseInt(t)||1,e.delta=Math.min(getCurrentPages().length-1,t)}}}},"439a":function(t,e,n){"use strict";n.r(e),n.d(e,"downloadFile",function(){return i});var i={url:{type:String,required:!0},header:{type:Object,validator:function(t,e){e.header=t||{}}}}},"442e":function(t,e,n){"use strict";n.r(e),function(t){var e=n("8bbf"),i=n.n(e),r=n("5129"),a=n.n(r),o=i.a.config.isReservedTag;i.a.config.isReservedTag=function(t){return-1!==a.a.indexOf(t)||o(t)},i.a.config.ignoredElements=a.a;var s=i.a.config.getTagNamespace,c=["switch","image","text","view"];i.a.config.getTagNamespace=function(t){return!~c.indexOf(t)&&(s(t)||!1)},i.a.config.errorHandler=function(e,n,i){t.error("errorHandler",e,n,i)}}.call(this,n("3ad9")["default"])},"44de":function(t,e,n){"use strict";n.r(e),n.d(e,"vibrateLong",function(){return r}),n.d(e,"vibrateShort",function(){return a});var i=!!window.navigator.vibrate;function r(){return i&&window.navigator.vibrate(400)?{errMsg:"vibrateLong:ok"}:{errMsg:"vibrateLong:fail"}}function a(){return i&&window.navigator.vibrate(15)?{errMsg:"vibrateShort:ok"}:{errMsg:"vibrateShort:fail"}}},"4a59":function(t,e,n){"use strict";(function(t){function i(e,n,i){t.UniServiceJSBridge.subscribeHandler(e,n,i)}n.d(e,"a",function(){return i})}).call(this,n("c8ba"))},"4b10":function(t,e,n){},"4ca9":function(t,e,n){"use strict";n.r(e),function(t){var i=n("6389"),r=n.n(i),a=n("f2b3"),o=n("85b6"),s=n("abbf"),c=n("0784");function u(t){var e=0;return t.forEach(function(t){t.meta.id&&e++}),e}function l(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":decodeURI(t.slice(e+1))}function h(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",e=decodeURI(window.location.pathname);return t&&0===e.indexOf(t)&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}e["default"]={install:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.routes,d=u(i),f=new r.a({id:d,mode:__uniConfig.router.mode,base:__uniConfig.router.base,routes:i,scrollBehavior:function(t,e,n){return n||{x:0,y:0}}}),p=[],g=f.match("history"===__uniConfig.router.mode?h(__uniConfig.router.base):l());g.meta.name&&(g.meta.id?p.push(g.meta.name+"-"+g.meta.id):p.push(g.meta.name+"-"+(d+1))),g.meta&&g.meta.name&&(document.body.className="uni-body "+g.meta.name),e.mixin({beforeCreate:function(){var e=this.$options;if("app"===e.mpType){e.data=function(){return{keepAliveInclude:p}};var n=Object(s["a"])(i,g);Object.keys(n).forEach(function(t){e[t]=e[t]?[].concat(n[t],e[t]):[n[t]]}),e.router=f,Object(a["e"])(e.onError)||(e.onError=function(e){t.error(e)})}else if(Object(o["a"])(this)){var r=Object(c["a"])();Object.keys(r).forEach(function(t){e[t]=e[t]?[].concat(r[t],e[t]):[r[t]]})}else this.$parent&&this.$parent.__page__&&(this.__page__=this.$parent.__page__)}}),Object.defineProperty(e.prototype,"$page",{get:function(){return this.__page__}}),e.use(r.a)}}}.call(this,n("3ad9")["default"])},"4da7":function(t,e,n){"use strict";n.r(e);var i,r,a={ensp:" ",emsp:" ",nbsp:" "},o={name:"Text",props:{selectable:{type:[Boolean,String],default:!1},space:{type:String,default:""},decode:{type:[Boolean,String],default:!1}},methods:{_decodeHtml:function(t){return this.space&&a[this.space]&&(t=t.replace(/ /g,a[this.space])),this.decode&&(t=t.replace(/ /g,a.nbsp).replace(/ /g,a.ensp).replace(/ /g,a.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'")),t}},render:function(t){var e=this,n=[];return this.$slots.default&&this.$slots.default.forEach(function(i){if(i.text){var r=i.text.replace(/\\n/g,"\n"),a=r.split("\n");a.forEach(function(i,r){n.push(e._decodeHtml(i)),r!==a.length-1&&n.push(t("br"))})}else n.push(i)}),t("uni-text",{on:this.$listeners},[t("span",{},n)])}},s=o,c=(n("c8ed"),n("2877")),u=Object(c["a"])(s,i,r,!1,null,null,null);u.options.__file="index.vue";e["default"]=u.exports},"4f1c":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-switch",t._g({on:{click:t._onClick}},t.$listeners),[n("div",{staticClass:"uni-switch-wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:"switch"===t.type,expression:"type === 'switch'"}],staticClass:"uni-switch-input",class:[t.switchChecked?"uni-switch-input-checked":""],style:{backgroundColor:t.switchChecked?t.color:"#DFDFDF",borderColor:t.switchChecked?t.color:"#DFDFDF"}}),n("div",{directives:[{name:"show",rawName:"v-show",value:"checkbox"===t.type,expression:"type === 'checkbox'"}],staticClass:"uni-checkbox-input",class:[t.switchChecked?"uni-checkbox-input-checked":""],style:{color:t.color}})])])},r=[],a=n("8af1"),o={name:"Switch",mixins:[a["a"],a["c"]],props:{name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"}},data:function(){return{switchChecked:this.checked}},watch:{checked:function(t){this.switchChecked=t}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},listeners:{"label-click":"_onClick","@label-click":"_onClick"},methods:{_onClick:function(t){this.disabled||(this.switchChecked=!this.switchChecked,this.$trigger("change",t,{value:this.switchChecked}))},_resetFormData:function(){this.switchChecked=!1},_getFormData:function(){var t={};return""!==this.name&&(t["value"]=this.switchChecked,t["key"]=this.name),t}}},s=o,c=(n("a5ec"),n("2877")),u=Object(c["a"])(s,i,r,!1,null,null,null);u.options.__file="index.vue";e["default"]=u.exports},"4f43":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"DownloadTask",function(){return c}),n.d(e,"downloadFile",function(){return u});var i=n("e2e2");function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;nthis.displayMultipleItemsNumber}},watch:{vertical:function(){this._resetLayout()},circular:function(){this._resetLayout()},intervalNumber:function(t){this._timer&&(this._cancelSchedule(),this._scheduleAutoplay())},current:function(t){this._currentCheck()},currentSync:function(t){this._currentChanged(t),this.$emit("update:current",t)},currentItemId:function(t){this._currentCheck()},currentItemIdSync:function(t){this.$emit("update:currentItemId",t)},displayMultipleItemsNumber:function(){this._resetLayout()}},created:function(){this._invalid=!0,this._viewportPosition=0,this._viewportMoveRatio=1,this._animating=null,this._requestedAnimation=!1,this._userDirectionChecked=!1,this._contentTrackViewport=0,this._contentTrackSpeed=0,this._contentTrackT=0},mounted:function(){var t=this;this._currentCheck(),this.touchtrack(this.$refs.slidesWrapper,"_handleContentTrack",!0),this._resetLayout(),this.$watch(function(){return t.autoplay&&!t.userTracking},this._inintAutoplay),this._inintAutoplay(this.autoplay&&!this.userTracking),this.$watch("items.length",this._resetLayout)},beforeDestroy:function(){this._cancelSchedule()},methods:{_itemIdUpdated:function(t,e,n){n&&this.$set(this.itemIdItemMap,n,null),e&&this.$set(this.itemIdItemMap,e,t.$vnode)},_inintAutoplay:function(t){t?this._scheduleAutoplay():this._cancelSchedule()},_currentCheck:function(){var t=this.items.indexOf(this.itemIdItemMap[this.currentItemId]);t<0&&(t=Math.round(this.current)||0),t=t<0?0:t,this.currentSync!==t&&(this.currentChangeSource="",this.currentSync=t)},_itemReady:function(t,e){t.componentInstance&&t.componentInstance._isMounted?e():(t._callbacks=t._callbacks||[],t._callbacks.push(e))},_currentChanged:function(t){var e=this,n=this.currentChangeSource;this.currentChangeSource="",n||this._animateViewport(t,"",0);var i=this.items[t];i&&this._itemReady(i,function(){var t=e.currentItemIdSync=i.componentInstance.itemId||"";e.$trigger("change",{},{current:e.currentSync,currentItemId:t,source:n})})},_scheduleAutoplay:function(){var t=this;function e(){t._timer=null,t.currentChangeSource="autoplay",t.circularEnabled?t.currentSync=t._normalizeCurrentValue(t.currentSync+1):t.currentSync=t.currentSync+t.displayMultipleItemsNumbere-this.displayMultipleItemsNumber)return e-this.displayMultipleItemsNumber;return n},_upx2px:function(t){return/\d+[ur]px$/i.test(t)&&t.replace(/\d+[ur]px$/i,function(t){return"".concat(uni.upx2px(parseFloat(t)),"px")}),t||""},_resetLayout:function(){if(this._isMounted){this._cancelSchedule(),this._endViewportAnimation();for(var t=this.items,e=0;e0&&this._viewportMoveRatio<1||(this._viewportMoveRatio=1)}var r=this._viewportPosition;this._viewportPosition=-2;var a=this.currentSync;a>=0?(this._invalid=!1,this.userTracking?(this._updateViewport(r+a-this._contentTrackViewport),this._contentTrackViewport=a):this._updateViewport(a)):(this._invalid=!0,this._updateViewport(-this.displayMultipleItemsNumber-1))}},_checkCircularLayout:function(t){if(!this._invalid)for(var e=this.items,n=e.length,i=t+this.displayMultipleItemsNumber,r=0;rt;)a-=r}else if(n>0){for(;a>t;)a-=r;for(;a+rt;)a-=r;a+r-tr)&&(i<0?i=-a(-i):i>r&&(i=r+a(i-r)),e._contentTrackSpeed=0),e._updateViewport(i)}this.vertical?o(-t.dy/this.$refs.slideFrame.offsetHeight,-t.ddy/(this._contentTrackT-n)):o(-t.dx/this.$refs.slideFrame.offsetWidth,-t.ddx/(this._contentTrackT-n))},_handleTrackEnd:function(t){this.userTracking=!1;var e=this._contentTrackSpeed/Math.abs(this._contentTrackSpeed),n=0;!t&&Math.abs(this._contentTrackSpeed)>.2&&(n=.5*e);var i=this._normalizeCurrentValue(this._viewportPosition+n);t?this._updateViewport(this._contentTrackViewport):(this.currentChangeSource="touch",this.currentSync=i,this._animateViewport(i,"touch",0!==n?n:0===i&&this.circularEnabled&&this._viewportPosition>=1?1:0))},_handleContentTrack:function(t){if(!this._invalid){if("start"===t.detail.state)return this.userTracking=!0,this._userDirectionChecked=!1,this._handleTrackStart();if("end"===t.detail.state)return this._handleTrackEnd(!1);if("cancel"===t.detail.state)return this._handleTrackEnd(!0);if(this.userTracking){if(!this._userDirectionChecked){this._userDirectionChecked=!0;var e=Math.abs(t.detail.dx),n=Math.abs(t.detail.dy);if(e>=n&&this.vertical?this.userTracking=!1:e<=n&&!this.vertical&&(this.userTracking=!1),!this.userTracking)return}return this._handleTrackMove(t.detail),!1}}}},render:function(t){var e=this,n=[],i=0,r=[];this.$slots.default&&this.$slots.default.forEach(function(a){a.componentOptions&&"v-uni-swiper-item"===a.componentOptions.tag&&(r.push(a),n.push(t("div",{class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":i===e.currentSync},style:{background:i===e.currentSync?e.indicatorActiveColor:e.indicatorColor}})),i++)}),this.items=r;var a=[t("div",{ref:"slides",style:this.slidesStyle,class:"uni-swiper-slides"},[t("div",{ref:"slideFrame",class:"uni-swiper-slide-frame",style:this.slideFrameStyle},r)])];return this.indicatorDots&&a.push(t("div",{ref:"slidesDots",class:["uni-swiper-dots",this.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},n)),t("uni-swiper",[t("div",{ref:"slidesWrapper",class:"uni-swiper-wrapper",on:this.$listeners},a)])}},s=o,c=(n("1c64"),n("2877")),u=Object(c["a"])(s,i,r,!1,null,null,null);u.options.__file="index.vue";e["default"]=u.exports},5565:function(t,e,n){},5676:function(t,e,n){"use strict";var i=n("d859"),r=n.n(i);r.a},5727:function(t,e,n){"use strict";var i=n("a007"),r=n.n(i);r.a},5768:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-textarea",t._g({staticStyle:{height:"height+'px'"}},t.$listeners),[n("div",{ref:"wrapped",staticClass:"uni-textarea-wrapped"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!(t.composition||t.valueSync.length),expression:"!(composition||valueSync.length)"}],ref:"placeholder",staticClass:"uni-textarea-placeholder",class:t.placeholderClass,style:t.placeholderStyle},[t._v(t._s(t.placeholder))]),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.valueSync,expression:"valueSync"}],ref:"textarea",staticClass:"uni-textarea-textarea",attrs:{disabled:t.disabled,maxlength:t.maxlengthNumber,placeholder:t.placeholder,autofocus:t.autoFocus},domProps:{value:t.valueSync},on:{compositionstart:t._compositionstart,compositionend:t._compositionend,input:[function(e){e.target.composing||(t.valueSync=e.target.value)},function(t){t.stopPropagation()}],focus:t._focus,blur:t._blur,"&touchstart":function(e){return t._touchstart(e)},"&scroll":function(e){return t._scroll(e)}}})])])},r=[],a=n("8af1"),o={name:"Textarea",mixins:[a["a"]],model:{prop:"value",event:"update:value"},props:{name:{type:String,default:""},value:{type:[String,Number],default:""},maxlength:{type:[Number,String],default:140},placeholder:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},placeholderClass:{type:String,default:""},placeholderStyle:{type:String,default:""},autoHeight:{type:[Boolean,String],default:!1},bindinput:{type:String,default:""},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1}},data:function(){return{valueSync:String(this.value),composition:!1,focusSync:this.focus,height:0,focusChangeSource:""}},computed:{maxlengthNumber:function(){var t=Number(this.maxlength);return isNaN(t)?140:t},cursorNumber:function(){var t=Number(this.cursor);return isNaN(t)?-1:t},selectionStartNumber:function(){var t=Number(this.selectionStart);return isNaN(t)?-1:t},selectionEndNumber:function(){var t=Number(this.selectionEnd);return isNaN(t)?-1:t}},watch:{value:function(t){this.valueSync=String(t)},valueSync:function(t){t!==this.value&&(this.$trigger("input",{},{value:t,cursor:this.$refs.textarea.selectionEnd}),this.$emit("update:value",t))},focus:function(t){t?(this.focusChangeSource="focus",this.$refs.textarea&&this.$refs.textarea.focus()):this.$refs.textarea&&this.$refs.textarea.blur()},focusSync:function(t){this.$emit("update:focus",t),this._checkSelection(),this._checkCursor()},cursorNumber:function(){this._checkCursor()},selectionStartNumber:function(){this._checkSelection()},selectionEndNumber:function(){this._checkSelection()},height:function(t){var e=getComputedStyle(this.$el).lineHeight.replace("px",""),n=Math.round(t/e);this.$trigger("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:n}),this.autoHeight&&(this.$el.style.height=this.height+"px")}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},mounted:function(){this.$refs.textarea.value=this.valueSync,this._computeHeight()},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_computeHeight:function(){var t=this;this.$nextTick(function(){t.height=t.$refs.textarea.scrollHeight})},_focus:function(t){this.focusSync=!0,this.$trigger("focus",t,{value:this.valueSync})},_checkSelection:function(){this.focusSync&&!this.focusChangeSource&&this.selectionStartNumber>-1&&this.selectionEndNumber>-1&&(this.$refs.textarea.selectionStart=this.selectionStartNumber,this.$refs.textarea.selectionEnd=this.selectionEndNumber)},_checkCursor:function(){this.focusSync&&("focus"===this.focusChangeSource||!this.focusChangeSource&&this.selectionStartNumber<0&&this.selectionEndNumber<0)&&this.cursorNumber>-1&&(this.$refs.textarea.selectionEnd=this.$refs.textarea.selectionStart=this.cursorNumber)},_blur:function(t){this.focusSync=!1,this.$trigger("blur",t,{value:this.valueSync,cursor:this.$refs.textarea.selectionEnd})},_compositionstart:function(t){this.composition=!0},_compositionend:function(t){this.composition=!1},_confirm:function(t){this.$trigger("confirm",t,{value:this.valueSync})},_linechange:function(t){this.$trigger("linechange",t,{value:this.valueSync})},_touchstart:function(){this.focusChangeSource="touch"},_scroll:function(){this._computeHeight()},_getFormData:function(){return{value:this.valueSync,key:this.name}},_resetFormData:function(){this.valueSync=""}}},s=o,c=(n("9400"),n("2877")),u=Object(c["a"])(s,i,r,!1,null,null,null);u.options.__file="index.vue";e["default"]=u.exports},"57a7":function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n0&&(n.currentTime=t)});var a=["canplay","play","pause","ended","timeUpdate","error","waiting","seeking","seeked"],c=["pause","seeking","seeked","timeUpdate"];a.forEach(function(t){n.addEventListener(t.toLowerCase(),function(){e._stoping&&c.indexOf(t)>=0||e._events["on".concat(t.substr(0,1).toUpperCase()).concat(t.substr(1))].forEach(function(t){t()})},!1)})}return a(t,[{key:"play",value:function(){this._stoping=!1,this._audio.play()}},{key:"pause",value:function(){this._audio.pause()}},{key:"stop",value:function(){this._stoping=!0,this._audio.pause(),this._audio.currentTime=0,this._events.onStop.forEach(function(t){t()})}},{key:"seek",value:function(t){this._stoping=!1,t=Number(t),"number"!==typeof t||isNaN(t)||(this._audio.currentTime=t)}},{key:"destroy",value:function(){this.stop()}}]),t}();function u(){return new c}s.forEach(function(t){c.prototype[t]=function(e){"function"===typeof e&&this._events[t].push(e)}})},"58ae":function(t,e,n){"use strict";(function(t){var i=n("8af1");function r(t){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var a=t,o=a.subscribe,s=a.unsubscribe,c=a.publishHandler,u={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},l={YEAR:"year",MONTH:"month",DAY:"day"};e["a"]={name:"Picker",mixins:[i["a"]],props:{name:{type:String,default:""},range:{type:Array,default:function(){return[]}},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:u.SELECTOR,validator:function(t){return Object.values(u).indexOf(t)>=0}},fields:{type:String,default:"day",validator:function(t){return Object.values(l).indexOf(t)>=0}},start:{type:String,default:function(){if(this.mode===u.TIME)return"00:00";if(this.mode===u.DATE){var t=(new Date).getFullYear()-100;switch(this.fields){case l.YEAR:return t;case l.MONTH:return t+"-01";case l.DAY:return t+"-01-01"}}return""}},end:{type:String,default:function(){if(this.mode===u.TIME)return"23:59";if(this.mode===u.DATE){var t=(new Date).getFullYear()+100;switch(this.fields){case l.YEAR:return t;case l.MONTH:return t+"-12";case l.DAY:return t+"-12-31"}}return""}},disabled:{type:[Boolean,String],default:!1},customItem:{type:String,default:""}},data:function(){return{valueSync:this.value,visible:!1,valueChangeSource:""}},watch:{value:function(t){var e=this;Array.isArray(t)?(Array.isArray(this.valueSync)||(this.valueSync=[]),t.forEach(function(t,n){t!==e.valueSync[n]&&e.$set(e.valueSync,n,t)}),t.length!==this.valueSync.length&&this.valueSync.splice(t.length,t.length-this.valueSync.length)):"object"!==r(t)&&(this.valueSync=t)},valueSync:function(t){this.valueChangeSource?this.$emit("update:value",t):this._show()}},created:function(){var t=this;this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this}),Object.keys(this.$props).forEach(function(e){"value"!==e&&"name"!==e&&t.$watch(e,t._show())})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},destroyed:function(){if(this.visible){var t=this.$page.id;c("hidePicker",{},t)}},methods:{_click:function(){if(!this.disabled){var t=this.$page.id;o("".concat(t,"-picker-change"),this.change),o("".concat(t,"-picker-cancel"),this.cancel),this.visible=!0,this._show()}},_show:function(){if(this.visible){var t=this.$page.id,e=Object.assign({},this.$props);e.value=this.valueSync,c("showPicker",e,t)}},change:function(t){this.visible=!1;var e=this.$page.id;if(s("".concat(e,"-picker-change")),s("".concat(e,"-picker-cancel")),!this.disabled){this.valueChangeSource="click";var n=t.value;this.valueSync=Array.isArray(n)?n.map(function(t){return t}):n,this.$trigger("change",{},{value:n})}},cancel:function(t){this.visible=!1;var e=this.$page.id;s("".concat(e,"-picker-change")),s("".concat(e,"-picker-cancel")),this.$trigger("cancel",{},{})},_getFormData:function(){return{value:this.valueSync,key:this.name}},_resetFormData:function(){this.valueSync=""}}}}).call(this,n("501c"))},"594d":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-map",{staticClass:"uni-map",attrs:{id:t.id}})},r=[],a=n("7351"),o=a["a"],s=(n("3f7e"),n("2877")),c=Object(s["a"])(o,i,r,!1,null,null,null);c.options.__file="index.vue";e["default"]=c.exports},"5a56":function(t,e,n){"use strict";n.r(e),e["default"]={methods:{beforeTransition:function(){},afterTransition:function(){}}}},"5ab3":function(t,e,n){"use strict";var i=n("287f"),r=n.n(i);r.a},"5b81":function(t,e,n){},"5bd2":function(t,e,n){"use strict";n.r(e),n.d(e,"redirectTo",function(){return a}),n.d(e,"navigateTo",function(){return o}),n.d(e,"navigateBack",function(){return s}),n.d(e,"reLaunch",function(){return c}),n.d(e,"switchTab",function(){return u});var i=n("f2b3");function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.url,r=e.delta,a=e.from,o=void 0===a?"navigateBack":a,s=getApp().$router;switch(t){case"redirectTo":s.replace({type:t,path:n});break;case"navigateTo":s.push({type:t,path:n});break;case"navigateBack":var c=!0,u=getCurrentPages();if(u.length){var l=u[u.length-1];Object(i["e"])(l.$options.onBackPress)&&!0===l.$options.onBackPress.call(l,{from:o})&&(c=!1)}c&&s.go(-r);break;case"reLaunch":s.replace({type:t,path:n});break;case"switchTab":s.replace({type:t,path:n});break}return{errMsg:t+":ok"}}function a(t){return r("redirectTo",t)}function o(t){return r("navigateTo",t)}function s(t){return r("navigateBack",t)}function c(t){return r("reLaunch",t)}function u(t){return r("switchTab",t)}},6062:function(t,e,n){"use strict";var i=n("c863"),r=n.n(i);r.a},6226:function(t,e,n){"use strict";var i=n("b7a0"),r=n.n(i);r.a},"626d":function(t,e,n){"use strict";n.r(e),function(t){var i=n("f2b3");e["default"]={data:function(){return{showActionSheet:{visible:!1}}},created:function(){var e=this;t.on("onShowActionSheet",function(t,n){e.showActionSheet=t,e.onActionSheetCloseCallback=n}),t.on("onHidePopup",function(t){e.showActionSheet.visible=!1})},methods:{_onActionSheetClose:function(t){this.showActionSheet.visible=!1,Object(i["e"])(this.onActionSheetCloseCallback)&&this.onActionSheetCloseCallback(t)}}}}.call(this,n("0dd1"))},"62b5":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i={};function r(t){var e=i[t];return e||(e={id:1,callbacks:Object.create(null)},i[t]=e),{get:function(t){return e.callbacks[t]},pop:function(t){var n=e.callbacks[t];return n&&delete e.callbacks[t],n},push:function(t){var n=e.id++;return e.callbacks[n]=t,n}}}},6389:function(e,n){e.exports=t},6428:function(t,e,n){"use strict";var i=n("a3da"),r=n.n(i);r.a},6491:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-radio",t._g({on:{click:t._onClick}},t.$listeners),[n("div",{staticClass:"uni-radio-wrapper"},[n("div",{staticClass:"uni-radio-input",class:t.radioChecked?"uni-radio-input-checked":"",style:t.radioChecked?t.checkedStyle:""}),t._t("default")],2)])},r=[],a=n("8af1"),o={name:"Radio",mixins:[a["a"],a["c"]],props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007AFF"},value:{type:String,default:""}},data:function(){return{radioChecked:this.checked,radioValue:this.value}},computed:{checkedStyle:function(){return"background-color: ".concat(this.color,";border-color: ").concat(this.color,";")}},watch:{checked:function(t){this.radioChecked=t},value:function(t){this.radioValue=t}},listeners:{"label-click":"_onClick","@label-click":"_onClick"},created:function(){this.$dispatch("RadioGroup","uni-radio-group-update",{type:"add",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("RadioGroup","uni-radio-group-update",{type:"remove",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onClick:function(t){this.disabled||this.radioChecked||(this.radioChecked=!0,this.$dispatch("RadioGroup","uni-radio-change",t,this))},_resetFormData:function(){this.radioChecked=this.min}}},s=o,c=(n("c96e"),n("2877")),u=Object(c["a"])(s,i,r,!1,null,null,null);u.options.__file="index.vue";e["default"]=u.exports},"64d0":function(t,e,n){"use strict";var i=n("3ac1"),r=n.n(i);r.a},"65a8":function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=44,r=50},6730:function(t,e,n){"use strict";var i=n("27be"),r=n.n(i);r.a},"677e":function(t,e,n){},"6f00":function(t,e,n){"use strict";var i=n("c630"),r=n.n(i);r.a},"6f1a":function(t,e,n){},"6fc7":function(t,e,n){"use strict";var i=n("7c21"),r=n.n(i);r.a},"70f4":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-label",t._g({on:{click:t._onClick}},t.$listeners),[t._t("default")],2)},r=[],a=n("3c47"),o=a["a"],s=(n("6730"),n("2877")),c=Object(s["a"])(o,i,r,!1,null,null,null);c.options.__file="index.vue";e["default"]=c.exports},7272:function(t,e,n){},7351:function(t,e,n){"use strict";(function(t){var i,r=n("8af1"),a=n("f2b3");function o(t){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}var s=function(t){this.option=t=t||{};var e=t.map;this.position=t.position,this.index=1,this.visible=this.alwaysVisible="ALWAYS"===t.display,this.init(),e&&this.setMap(e)};function c(t,e){var n,i,r=0,o=200;t.addEventListener("touchstart",function(t){r=Date.now();var e=t.targetTouches[0];n=e.screenX,i=e.screenY},!!a["h"]&&{passive:!0}),t.addEventListener("touchend",function(t){var a=t.changedTouches[0];Math.abs(a.screenX-n)>20||Math.abs(a.screenY-i)>20||Date.now()-r>o||e(t)},!!a["h"]&&{passive:!0})}e["a"]={name:"Map",mixins:[r["d"]],props:{id:{type:String,default:""},longitude:{type:[String,Number],default:116.39772},latitude:{type:[String,Number],default:39.90323},scale:{type:[String,Number],default:16},markers:{type:Array,default:function(){return[]}},covers:{type:Array,default:function(){return[]}},polyline:{type:Array,default:function(){return[]}},circles:{type:Array,default:function(){return[]}},controls:{type:Array,default:function(){return[]}},includePoints:{type:Array,default:function(){return[]}},showLocation:{type:[Boolean,String],default:!1}},data:function(){return{center:{latitude:39.90323,longitude:116.39772},isMapReady:!1,isBoundsReady:!1,markersSync:[],polylineSync:[],circlesSync:[],controlsSync:[],map:null,mapLocation:null,mapLocationPosition:null}},watch:{latitude:function(t){t&&this.longitude&&(this.center.latitude=Number(t))},longitude:function(t){t&&this.latitude&&(this.center.longitude=Number(t))},center:{handler:function(t){var e=this;this.map&&this.mapReady(function(){e.map.setCenter(new i.LatLng(t.latitude,t.longitude))})},deep:!0},scale:function(t){var e=this;this.mapReady(function(){e.map.setZoom(Number(t))})},markers:function(t,e){var n=this;this.mapReady(function(){var i=[],r=[],a=[],o=[],s=[];t.forEach(function(t){if("id"in t){for(var n=!1,s=0;s=0?(e=a.indexOf(i))>=0&&n.changeMarker(t,o[e]):s.push(t)}),n.removeMarkers(s),n.createMarkers(i)})},polyline:function(t){var e=this;this.mapReady(function(){e.createPolyline()})},circles:function(){var t=this;this.mapReady(function(){t.createCircles()})},controls:function(){var t=this;this.mapReady(function(){t.createControls()})},includePoints:function(){var t=this;this.mapReady(function(){t.fitBounds(t.includePoints)})},showLocation:function(t){var e=this;this.mapReady(function(){e[t?"createLocation":"removeLocation"]()})}},created:function(){var t=this.latitude,e=this.longitude;t&&e&&(this.center.latitude=t,this.center.longitude=e)},mounted:function(){var t=this;this.loadMap(function(){t.createClass(),t.init()})},beforeDestroy:function(){this.removeMarkers(this.markersSync),this.removePolyline(),this.removeCircles(),this.removeControls(),this.removeLocation(),this.map=null},methods:{_handleSubscribe:function(t){var e=this,n=t.type,r=t.data,a=void 0===r?{}:r;function o(t,e){t=t||{},t.errMsg="".concat(n,":").concat(e?"fail"+e:"ok");var i=e?a.fail:a.success;"function"===typeof i&&i(t),"function"===typeof a.complete&&a.complete(t)}switch(n){case"getCenterLocation":this.mapReady(function(){var t,n,i=e.map.getCenter();t=i.getLat(),n=i.getLng(),o({latitude:t,longitude:n})});break;case"moveToLocation":var s=this.mapLocationPosition;s&&this.map.setCenter(s);break;case"translateMarker":this.mapReady(function(){try{var t=e.getMarker(a.markerId),n=a.destination,r=a.duration,s=!!a.autoRotate,c=Number(a.rotate)?a.rotate:0,u=t.getRotation(),l=t.getPosition(),h=new i.LatLng(n.latitude,n.longitude),d=i.geometry.spherical.computeDistanceBetween(l,h)/1e3,f=("number"===typeof r?r:1e3)/36e5,p=d/f,g=i.event.addListener(t,"moving",function(e){var n=e.latLng,i=t.label;i&&i.setPosition(n);var r=t.callout;r&&r.setPosition(n)}),v=i.event.addListener(t,"moveend",function(e){v.remove(),g.remove(),t.lastPosition=l,t.setPosition(h);var n=t.label;n&&n.setPosition(h);var i=t.callout;i&&i.setPosition(h);var r=a.animationEnd;"function"===typeof r&&r()}),m=0;s&&(t.lastPosition&&(m=i.geometry.spherical.computeHeading(t.lastPosition,l)),c=i.geometry.spherical.computeHeading(l,h)-m),t.setRotation(u+c),t.moveTo(h,p)}catch(b){o(null,b)}});break;case"includePoints":this.fitBounds(a.points);break;case"getRegion":this.boundsReady(function(){var t=e.map.getBounds(),n=t.getSouthWest(),i=t.getNorthEast();o({southwest:{latitude:n.getLat(),longitude:n.getLng()},northeast:{latitude:i.getLat(),longitude:i.getLng()}})});break;case"getScale":this.mapReady(function(){o({scale:Number(e.scale)})});break}},init:function(){var t=this,e=new i.LatLng(this.center.latitude,this.center.longitude),n=this.map=new i.Map(this.$el,{center:e,zoom:Number(this.scale),scrollwheel:!1,disableDoubleClickZoom:!0,mapTypeControl:!1,zoomControl:!1,scaleControl:!1,minZoom:5,maxZoom:18,draggable:!0}),r=i.event.addListener(n,"bounds_changed",function(e){r.remove(),t.isBoundsReady=!0,t.$emit("boundsready")});i.event.addListener(n,"click",function(){t.$trigger("tap",{},{})}),i.event.addListener(n,"dragstart",function(){t.$trigger("regionchange",{},{type:"begin"})}),i.event.addListener(n,"dragend",function(){t.$trigger("regionchange",{},{type:"end"})}),i.event.addListener(n,"zoom_changed",function(){t.$emit("update:scale",n.getZoom())}),i.event.addListener(n,"center_changed",function(){var e,i,r=n.getCenter();e=r.getLat(),i=r.getLng(),t.$emit("update:latitude",e),t.$emit("update:longitude",i)}),this.markers&&Array.isArray(this.markers)&&this.markers.length&&this.createMarkers(this.markers),this.polyline&&Array.isArray(this.polyline)&&this.polyline.length&&this.createPolyline(),this.circles&&Array.isArray(this.circles)&&this.circles.length&&this.createCircles(),this.controls&&Array.isArray(this.controls)&&this.controls.length&&this.createControls(),this.showLocation&&this.createLocation(),this.includePoints&&Array.isArray(this.includePoints)&&this.includePoints.length&&this.fitBounds(this.includePoints,function(){n.setCenter(e)}),this.isMapReady=!0,this.$emit("mapready")},createMarkers:function(t){var e=this,n=this.map,r=this.markersSync;t.forEach(function(t){var a,o=new i.Marker({map:n,flat:!0,autoRotation:!1});o.id=t.id,e.changeMarker(o,t),i.event.addListener(o,"mouseup",function(t){a=Date.now()}),i.event.addListener(o,"click",function(n){if(!(Date.now()-a<20)){var i=o.callout;if(i){var r=i.div,s=r.parentNode;i.alwaysVisible||i.set("visible",!i.visible),i.visible&&(s.removeChild(r),s.appendChild(r))}e.$trigger("markertap",{},{markerId:t.id||1})}}),r.push(o)})},changeMarker:function(e,n){var r=this.map,a=n.title||n.name,o=new i.LatLng(n.latitude,n.longitude),c=new Image;c.onload=function(){var t,u,l,h,d=n.anchor||{},f=d.x,p=d.y;n.iconPath&&(n.width||n.height)?(u=n.width||c.width/c.height*n.height,l=n.height||c.height/c.width*n.width):(u=c.width/2,l=c.height/2),f=("number"===typeof f?f:.5)*u,p=("number"===typeof p?p:1)*l,h=l-(l-p),t=new i.MarkerImage(c.src,null,null,new i.Point(f,p),new i.Size(u,l)),e.setPosition(o),e.setIcon(t),e.setRotation(n.rotate||0);var g,v=n.label||{};e.label&&(e.label.setMap(null),delete e.label),v.content&&(g=new i.Label({position:o,map:r,clickable:!1,content:v.content,style:{border:"none",padding:"8px",background:"none",color:v.color,fontSize:(v.fontSize||14)+"px",lineHeight:(v.fontSize||14)+"px",marginLeft:v.x,marginTop:v.y}}),e.label=g);var m,b=n.callout||{},_=e.callout;b.content?m={id:n.id,position:o,map:r,top:h,content:b.content,color:b.color,fontSize:b.fontSize,borderRadius:b.borderRadius,bgColor:b.bgColor,padding:b.padding,boxShadow:b.boxShadow,display:b.display}:a&&(m={id:n.id,position:o,map:r,top:h,content:a,boxShadow:"0px 0px 3px 1px rgba(0,0,0,0.5)"}),m?_?_.setOption(m):_=e.callout=new s(m):_&&(_.setMap(null),delete e.callout)},t.log(n.iconPath),t.log(this.$getRealPath(n.iconPath)),c.src=this.$getRealPath(n.iconPath)||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAABQCAYAAABFyhZTAAANDElEQVR4nNWce4hc133Hv+fc92MeuytpV5ZXll2XuvTlUBTSP1IREsdNiKGEEAgE3EBLaBtK/2hNoQTStISUosiGOqVpQ+qkIdAax1FiG+oYIxyD4xi3uKlEXSFFke3d1e5od+a+H+ec/nHvmbkzs6ud2bmjTX7wY3b3zr3nfM7vd37n8Tt3CW6DiDP3EABSd/0KAEEuXBHzrsteFTiwVOBo+amUP9PK34ZuAcD30NoboTZgceYeCaQAUEvVAKiZ0lpiiv0Lgmi/imFLF5YV2SWFR1e0fGcDQF5qVn4y1Ag/E3DFmhJSB2Dk1D2Squ0HBdT3C0JPE6oco6oKqmm7PodnGXieQ3DWIYL/iCB/UWO95zTW2wCQlpqhgJ8J/MDApUUVFFY0AFiRdvwMJ8bvCaKcUW3bUE0DimGAKMpkz2QMLEnBkhhZEHICfoHy+AkrW3seQAwgQQHPyIUr/CD1nhq4tCpFAWoCsGNt5X2MWo9Qw/p1zXGgWiZAZu8teRQhCwLwOLpEefKolb3zDIAQBXyGAnwqa09Vq4pVDQBOqrTuTmn7c9S0H9QdB6ptT/O4iSWPY2S+DxYHFzTW+5zBti8BCFBYfCprTwxcwmoALABupK48lFPri0az1dSbjWkZDiSp5yPpdn2Vh39m5evPAPABRACySaH3Ba64sA7ABtD0tdXPUqvxKd1xoJrmDAjTSx7HCDsdroj0nJO99TiAHgprZwD4fi5+S+AKrAHA5UQ7EijH/05rND9sNJsglNaEMZ3wPEfq+8i97vdstv4IFdkWBi5+S2h1n2dL2IYAXQqU449pjdYHzFaruDr3edEelVJUmK02YpCPBD454uRrf0BFtlleTlAMX7vfu9eFSp91ALR95cRfq27zA2ariXK+cOhqtprQnOZ7AmXlLIA2ABeAXtZ9cuDSlVUUfbYVKCsPq27zo1arddiMY2q2WlCd5gd95fhnALTKOmslw/7A5RcVFGNsI6ILpzNi/rnu2IdPt4caDRc5Mf4opEu/DaBR1l3dDXo3CxMUEdkRoO2UuJ+3Wy1VUbXD5tpTKVVgt9s0I85fcahLKLqhvhvf0B/KFpFjbdOnRz+pOY17f5atK1W3LWiue8KnR38fQLNkGLPyaAvI8dZl0Jcz6J82bPuwWSZW03GRQ3s4JdYqigBmoOie48CVQGUBcAO68AnTbTQUVQWE+LlQSimsRsOKSPthFG49ZmU6Aq8DsAWomwnt4+bPgSuPqunYyIX6uwzqIoqIPdSXacW6clFgB6T9Xs0wFylVDrv+UyshFIZlOSFpP1ACG1Ury5mWdGcTgJkJ/UO2ZZVPqU+EqiL9xV8GWzoGAFC2t6C/eQkkS2stR7cs+KH2OwDOo2AKUcy1hQTur28FiJVDOa0bRm283HHhPfQxhL91BsIYXmyQLIX1yktofvdJ0N5OLeVpug4G5TcY1IaCvIuCLQHAq8A6ACOCe5+qag1CSBEMZpT01L3Y/vSfgi0e2fW60HSE730/4vtPY/Erj0J/8+LMZRIAmq7rUeLe75KdTRTACoCcVvqvBsBIhXG/qumoo0Plx5Zx80/+Yk/YqvBGE53PPILsxGotZWuahkxov4bCkDoARZy5h1S3UjUAKhf0pKrWE6x2Hv5DcMedwCaFCMPEzqf+GCB05rIVVQUHOVlySQuPAzNB7lAUBbOOickv/QrSe++bGFZKtnoK0f2nZy5foRRc0Dsw2C5WANDRvWRFAIv9/juDxr/5nqlhpcTvevfM5VNKwYHFijEVAEStWFgBQIWASQkKv5hBstVTM947W/mEABDCxMCgFBXgfkpECGgAmbW8seFnqntNc+byiSDggqgYSfPIKVc/2SUgcsH57C7V3T5wZWmvO3P5QnAAPMdwnotU59KkaBkR1AGs/fTqgYG1n16dHZhzQCAea8zKz4UTEdFl/EBZjCGxXn354Pe+8tLM5TPGAPAxN5PAQioR7CdZls1u4auXYf3wB1NX1Pjv/4Rx8Y2Zy8/zHAR8reTiko9W/sAAcIWwt+oAhhBofeMrUDfWJoZVtjtof/Xvayk7TTMo4D/BSL55FJiZNPvfNE1rKZT2ulj64mehX/m/fWG169ew9IW/hHJzqx7gLIVO00slWy6B1QpsBoC5SnR1O7K3GecLSg2ZBaWziSOffwTB+x5E8MGHkB8/MXx9cwPuf3wX9gvPgeT5zOUBgBACcZKmR63of1CwycS6UFFYeCjjrhD2WhTHD7iWVUsFwBic7z8L5/vPgh1dBneL5BsJg6lcflKJ4hgKYT8iENXTBAzl8lBgYOEMALOV9IUgDB9w55AoU26sQ7mxXvtzq+KHISyavogBV4oCXNAy8cSrF9pa+EaSJmtpWk/wup2a5zmiONle0MMflpD94xLkwhUhOykrL8TlJzNo9lQvDHHYe1TTai8MYSjZd0p3zjA4LcCB4XFYXowB5EeM4HkvDDpxmh4+xYSa5hm6fuAt6cH3Sp5kV+Aye55XvpAqRCSOmv5LLwgO3U0n1V4QwFLSf9UoD0tPjSrAomphoHDrBINDI/kxM3wxTMIf7/j+ocPsp90ggBcFV5bN8LnSeHHJIs+BjAFLt45QZNNjAOyIET3a8XwvTNLD9tg9NU4zbPa8dEmPzxIipKeGpabSnYeAyxbIS2BfftnVsrWmnjzWDQPkLD98uhHlgqMbBnC19PGmnl4rAUMMDrzk1SMQo1MpXt4QAPDKG7OjZvwKy4Ov3/R/9vrzVs9DmgZPrljRCyg8NCzr7o9adwx4xMpeqTEAdqcT/nuY+M9v9rxDh5S62fMQxP7Lq27wBIoYFJd17mFwnElUGXc71CLKlgowvONnrbrhl6/2sEoJuW/JcXa59fbJzTDATuRfu7sRfgmDgCthpXXF6H1jq4OyRWRr+QC65WeiEJEet+O/7fj+thfHOKx+6ycxtjy/u2Ilf6NSISdLsq59r9zt+NKuy6EKdFS2WBeFxVNHY5sLRnr27Z0dzhi77W7MGMNb2zu8ZaTnGnq+hoE37mDgynuewdxz/VdORuTDuqUWQcxO/8tU+ZObfnDbDbzpBzBV9m/LdvraCGzfKLc6hnjLBW8F2q88NATATjaib3pxcLFzG2dim74PLw5eP9mIv4U9PHC/M5eTrPCrQ5XszzElyFac9OwN3/P8NMG8TeslMbZCf/tEIzlHSX8m5VXqlGBkCDoQ8C5BrH+Ys6GzjZaRP3YzDCHmaFnOOW6GERaM/Jyt8u0SLijrcssgNTXwLtAy9AcAsjvc7JWMxc9seP7cDHzDD8B49NSKk72OwUyqV+rEsBMDl9DVICZbNgLATjXTf96OgiudMKzdup0wxHYcvHlXM/sGxvttiCnOSk8FXIrsz8PjMxXpspOffcfz8rTG+XbCcqx5Xrri5OcUKuQGRbXssaljrcC36M/posWuuTr/+lYY1ebKnTCCq/MnFkx2HYPAKWdSQ8u+uQCPQEvX6qFwrfyuVvadnTi4uFmDa28GAXbi4Men2tl5FPN7uSiYKkjNDFxCy/4sg0d/qLqjwR5b9/04Znue0d5X4jzHehDEJxrsUYwHy6n7bVVm2WnnKNxqyLXbJn/b1fkTswSwrSiCq/OvtUy+juHl6sTjbe3AFdeW0DJqZ3e182d3kujNThxh2o7biSJ0k+ji3Qv5sxj2Ig8H7LdVmSmXUhY8VilKkB1z2Jev9zzOuZiYl3GB656XL7vsHzC85Os35qzvH9bxWorAsNsFANKjDr9saeL82hRz7fUggKWJp4/Y/CoGw1//mWVZM8nMwLdw7fxUm31zKwo7vXT/s5S9NMVWFK7ds8C+heG9NR8zROVRqeXFoxHXlhZJDBXBoi0e34yi/YehKMKiLf5JU/p7yUONV9d7xHW+aSWhhzYAV1v81SBPLm7FY8ct+rIVxwjz5I3VFn8V4w1XiytLqQ24sgEoXbvviiuu+Me9rCyEwDXP48uu+CqGZ3G1urKUWt+l28W1QwDpMVdcZsgvrIXh2D0bUQRDxUvHXHEZw8GvVleWMo+XB6sbBnIznJ1s8a+9EwQ5rxyJ4pzjbd/P72xyuc1aTQLMNMHYS2oHrri2dM0QQNI0sWnrOL8eRf3vrkcRbB3n2xY2MEiP9NM88/ivD/N6PbTq2rIv5qtt8dRaGKaccwgh8E4Y5ne2xNMYb6B+tq9umQvwyDIyKDVxddw0VfH8jTjGZhzDVMWLDQNbGGzZzNW6wPwsXM05V7OR+fEmvn09CPiNKMKyi29jYN0Ag0BVe9+Vst/7w7OKnIEFKF6pMRdtrL3VxctMMOOoi2q2r5/LnWeF5vqK90gAGyTaXTy5ZAtpXRms5jIMjcq8LQwMnywIAVgrDVwuD+9K68oZ1dxcWcrcX+IfScHKwBRWfu9H8Xn2XSm3w8LAYHfEQ5F6TVGYWM6qYsy570q5Lf+mYSRH1QFwA8AGgJsooOXe7tzl/wGchYFKtBMCwAAAAABJRU5ErkJggg=="},removeMarkers:function(t){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{},e=t.data,n=this._webSocket;try{n.send(e),this._callback(t,"sendSocketMessage:ok")}catch(i){this._callback(t,"sendSocketMessage:fail ".concat(i))}}},{key:"close",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.data,n=t.data,i=this._webSocket;try{i.close(e,n),this._callback(t,"sendSocketMessage:ok")}catch(r){this._callback(t,"sendSocketMessage:fail ".concat(r))}}},{key:"onOpen",value:function(t){this._on("open",t)}},{key:"onClose",value:function(t){this._on("close",t)}},{key:"onError",value:function(t){this._on("error",t)}},{key:"onMessage",value:function(t){this._on("message",t)}},{key:"_on",value:function(t,e){this._webSocket.addEventListener(t,function(n){"message"===t?e({data:n.data}):e()},!1)}},{key:"_callback",value:function(t,e){var n=t.success,i=t.fail,r=t.complete,a={errMsg:e};/:ok$/.test(e)?"function"===typeof n&&n(a):"function"===typeof i&&i(a),"function"===typeof r&&r(a)}}]),t}();function u(e,n){var i=e.url,r=e.protocols,a=t,o=a.invokeCallbackHandler;return s=new c(i,r),setTimeout(function(){o(n,{errMsg:"connectSocket:ok"})},0),s}function l(e,n){var i=t,r=i.invokeCallbackHandler;s&&s._webSocket.readyState===WebSocket.OPEN?s.send(Object.assign(e,{complete:function(t){r(n,t)}})):r(n,{errMsg:"sendSocketMessage:fail WebSocket is not connected "})}function h(e,n){var i=t,r=i.invokeCallbackHandler;s&&s._webSocket.readyState!==WebSocket.CLOSED?s.close(Object.assign(e,{complete:function(t){r(n,t)}})):r(n,{errMsg:"closeSocket:fail WebSocket is not connected"})}function d(e){var n=t,i=n.invokeCallbackHandler;return function(t){s&&s[e](function(e){i(t,e)})}}var f=d("onOpen"),p=d("onError"),g=d("onMessage"),v=d("onClose")}.call(this,n("0dd1"))},"81ea":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-tabbar",[n("div",{staticClass:"uni-tabbar",style:{backgroundColor:t.backgroundColor}},[n("div",{staticClass:"uni-tabbar-border",style:{backgroundColor:t.borderColor}}),t._l(t.list,function(e,i){return n("div",{key:e.pagePath,staticClass:"uni-tabbar__item",on:{click:function(n){t._switchTab(e,i)}}},[n("div",{staticClass:"uni-tabbar__bd"},[e.iconPath?n("div",{staticClass:"uni-tabbar__icon"},[n("img",{attrs:{src:t._getRealPath(t.$route.meta.pagePath===e.pagePath?e.selectedIconPath:e.iconPath)}})]):t._e(),e.text?n("div",{staticClass:"uni-tabbar__label",style:{color:t.$route.meta.pagePath===e.pagePath?t.selectedColor:t.color,fontSize:e.iconPath?"10px":"14px"}},[t._v("\n "+t._s(e.text)+"\n ")]):t._e(),e.redDot?n("div",{staticClass:"uni-tabbar__reddot",class:{"uni-tabbar__badge":!!e.badge}},[t._v(t._s(e.badge))]):t._e()])])})],2),n("div",{staticClass:"uni-placeholder"})])},r=[],a=n("bbc6"),o=a["a"],s=(n("f4e0"),n("2877")),c=Object(s["a"])(o,i,r,!1,null,null,null);c.options.__file="tabBar.vue";var u=c.exports,l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"uni-fade"}},[n("uni-toast",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],class:{"uni-toast-fixed":t.mask},attrs:{"data-duration":t.duration}},[t.mask?n("div",{staticClass:"uni-mask",staticStyle:{background:"transparent"},on:{touchmove:function(t){t.preventDefault()}}}):t._e(),t.image||t.iconClass?n("div",{staticClass:"uni-toast",staticStyle:{"pointer-events":"none"}},[t.image?n("img",{staticClass:"uni-toast__icon",attrs:{src:t.image}}):n("i",{staticClass:"uni-icon_toast",class:t.iconClass}),n("p",{staticClass:"uni-toast__content"},[t._v(t._s(t.title))])]):n("div",{staticClass:"uni-sample-toast",staticStyle:{"pointer-events":"none"}},[n("p",{staticClass:"uni-simple-toast__text"},[t._v(t._s(t.title))])])])],1)},h=[],d=n("ea86"),f=d["a"],p=(n("ff28"),Object(s["a"])(f,l,h,!1,null,null,null));p.options.__file="toast.vue";var g=p.exports,v=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"uni-fade"}},[n("uni-modal",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],on:{touchmove:function(t){t.preventDefault()}}},[n("div",{staticClass:"uni-mask",on:{click:function(e){t._close("mask")}}}),n("div",{staticClass:"uni-modal"},[t.title?n("div",{staticClass:"uni-modal__hd"},[n("strong",{staticClass:"uni-modal__title"},[t._v(t._s(t.title))])]):t._e(),n("div",{staticClass:"uni-modal__bd",on:{touchmove:function(t){t.stopPropagation()}}},[t._v(t._s(t.content))]),n("div",{staticClass:"uni-modal__ft"},[t.showCancel?n("div",{staticClass:"uni-modal__btn uni-modal__btn_default",style:{color:t.cancelColor},on:{click:function(e){t._close("cancel")}}},[t._v(t._s(t.cancelText))]):t._e(),n("div",{staticClass:"uni-modal__btn uni-modal__btn_primary",style:{color:t.confirmColor},on:{click:function(e){t._close("confirm")}}},[t._v(t._s(t.confirmText))])])])])],1)},m=[],b=n("5a56"),_={name:"Modal",mixins:[b["default"]],props:{title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"取消"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"确定"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean,default:!1}},methods:{_close:function(t){this.$emit("close",t)}}},y=_,w=(n("2765"),Object(s["a"])(y,v,m,!1,null,null,null));w.options.__file="modal.vue";var S=w.exports,k=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-picker",{on:{touchmove:function(t){t.preventDefault()}}},[n("transition",{attrs:{name:"uni-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"uni-mask",on:{click:t._cancel}})]),n("div",{staticClass:"uni-picker",class:{"uni-picker-toggle":t.visible}},[n("div",{staticClass:"uni-picker-header",on:{click:function(t){t.stopPropagation()}}},[n("div",{staticClass:"uni-picker-action uni-picker-action-cancel",on:{click:t._cancel}},[t._v("取消")]),n("div",{staticClass:"uni-picker-action uni-picker-action-confirm",on:{click:t._change}},[t._v("确定")])]),t.visible?n("v-uni-picker-view",{staticClass:"uni-picker-content",attrs:{value:t.valueArray},on:{"update:value":function(e){t.valueArray=e}}},t._l(t.rangeArray,function(e,i){return n("v-uni-picker-view-column",{key:i},t._l(e,function(e,r){return n("div",{key:r,staticClass:"uni-picker-item"},[t._v(t._s("object"===typeof e?e[t.rangeKey]||"":e)+t._s(t.units[i]||""))])}),0)}),1):t._e()],1)],1)},x=[],T=n("3ff2"),C=T["a"],M=(n("763a"),Object(s["a"])(C,k,x,!1,null,null,null));M.options.__file="picker.vue";var O=M.exports,E=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-actionsheet",{on:{touchmove:function(t){t.preventDefault()}}},[n("transition",{attrs:{name:"uni-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"uni-mask",on:{click:function(e){t._close(-1)}}})]),n("div",{staticClass:"uni-actionsheet",class:{"uni-actionsheet_toggle":t.visible}},[n("div",{staticClass:"uni-actionsheet__menu"},t._l(t.itemList,function(e,i){return n("div",{key:i,staticClass:"uni-actionsheet__cell",style:{color:t.itemColor},on:{click:function(e){t._close(i)}}},[t._v(t._s(e))])}),0),n("div",{staticClass:"uni-actionsheet__action"},[n("div",{staticClass:"uni-actionsheet__cell",style:{color:t.itemColor},on:{click:function(e){t._close(-1)}}},[t._v("取消")])])])],1)},A=[],$={name:"ActionSheet",props:{itemList:{type:Array,default:function(){return[]}},itemColor:{type:String,default:"#000000"},visible:{type:Boolean,default:!1}},methods:{_close:function(t){this.$emit("close",t)}}},P=$,I=(n("4fef"),Object(s["a"])(P,E,A,!1,null,null,null));I.options.__file="actionSheet.vue";var B=I.exports;e["a"]={TabBar:u,Toast:g,Modal:S,Picker:O,ActionSheet:B}},"82c2":function(t,e,n){"use strict";n.r(e),function(t){function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n1||(this.hoverStopPropagation&&(t._hoverPropagationStopped=!0),this._hoverTouch=!0,this._hoverStartTimer=setTimeout(function(){e.hovering=!0,e._hoverTouch||e._hoverReset()},this.hoverStartTime)))},_hoverTouchEnd:function(t){this._hoverTouch=!1,this.hovering&&this._hoverReset()},_hoverReset:function(){var t=this;requestAnimationFrame(function(){clearTimeout(t._hoverStayTimer),t._hoverStayTimer=setTimeout(function(){t.hovering=!1},t.hoverStayTime)})},_hoverTouchCancel:function(t){this._hoverTouch=!1,this.hovering=!1,clearTimeout(this._hoverStartTimer)}}}},"854d":function(t,e,n){"use strict";var i=n("2f2f"),r=n.n(i);r.a},"856e":function(t,e,n){"use strict";var i=n("d827"),r=n.n(i);r.a},"85b6":function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return a}),n.d(e,"c",function(){return o});var i=["SystemAsyncLoading","SystemAsyncError"];function r(t){return!(!t.$parent||"PageBody"!==t.$parent.$options.name)&&-1===i.indexOf(t.$options.name)}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign({},t),n=Object.keys(e),i=n.length;if(i)for(var r=0;re-n&&tthis._t&&(t=this._t,this._lastDt=t);var e=this._x_v*t+.5*this._x_a*Math.pow(t,2)+this._x_s,n=this._y_v*t+.5*this._y_a*Math.pow(t,2)+this._y_s;return(this._x_a>0&&ethis._endPositionX)&&(e=this._endPositionX),(this._y_a>0&&nthis._endPositionY)&&(n=this._endPositionY),{x:e,y:n}},u.prototype.ds=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),t>this._t&&(t=this._t),{dx:this._x_v+this._x_a*t,dy:this._y_v+this._y_a*t}},u.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},u.prototype.dt=function(){return-this._x_v/this._x_a},u.prototype.done=function(){var t=o(this.s().x,this._endPositionX)||o(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,t},u.prototype.setEnd=function(t,e){this._endPositionX=t,this._endPositionY=e},u.prototype.reconfigure=function(t,e){this._m=t,this._f=1e3*e},l.prototype._solve=function(t,e){var n=this._c,i=this._m,r=this._k,a=n*n-4*i*r;if(0===a){var o=-n/(2*i),s=t,c=e/(o*t);return{x:function(t){return(s+c*t)*Math.pow(Math.E,o*t)},dx:function(t){var e=Math.pow(Math.E,o*t);return o*(s+c*t)*e+c*e}}}if(a>0){var u=(-n-Math.sqrt(a))/(2*i),l=(-n+Math.sqrt(a))/(2*i),h=(e-u*t)/(l-u),d=t-h;return{x:function(t){var e,n;return t===this._t&&(e=this._powER1T,n=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,u*t)),n||(n=this._powER2T=Math.pow(Math.E,l*t)),d*e+h*n},dx:function(t){var e,n;return t===this._t&&(e=this._powER1T,n=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,u*t)),n||(n=this._powER2T=Math.pow(Math.E,l*t)),d*u*e+h*l*n}}}var f=Math.sqrt(4*i*r-n*n)/(2*i),p=-n/2*i,g=t,v=(e-p*t)/f;return{x:function(t){return Math.pow(Math.E,p*t)*(g*Math.cos(f*t)+v*Math.sin(f*t))},dx:function(t){var e=Math.pow(Math.E,p*t),n=Math.cos(f*t),i=Math.sin(f*t);return e*(v*f*n-g*f*i)+p*e*(v*i+g*n)}}},l.prototype.x=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(t):0},l.prototype.dx=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(t):0},l.prototype.setEnd=function(t,e,n){if(n||(n=(new Date).getTime()),t!==this._endPosition||!s(e,.1)){e=e||0;var i=this._endPosition;this._solution&&(s(e,.1)&&(e=this._solution.dx((n-this._startTime)/1e3)),i=this._solution.x((n-this._startTime)/1e3),s(e,.1)&&(e=0),s(i,.1)&&(i=0),i+=this._endPosition),this._solution&&s(i-t,.1)&&s(e,.1)||(this._endPosition=t,this._solution=this._solve(i-this._endPosition,e),this._startTime=n)}},l.prototype.snap=function(t){this._startTime=(new Date).getTime(),this._endPosition=t,this._solution={x:function(){return 0},dx:function(){return 0}}},l.prototype.done=function(t){return t||(t=(new Date).getTime()),o(this.x(),this._endPosition,.1)&&s(this.dx(),.1)},l.prototype.reconfigure=function(t,e,n){this._m=t,this._k=e,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},l.prototype.springConstant=function(){return this._k},l.prototype.damping=function(){return this._c},l.prototype.configuration=function(){function t(t,e){t.reconfigure(1,e,t.damping())}function e(t,e){t.reconfigure(1,t.springConstant(),e)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:t.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:e.bind(this,this),min:1,max:500}]},h.prototype.setEnd=function(t,e,n,i){var r=(new Date).getTime();this._springX.setEnd(t,i,r),this._springY.setEnd(e,i,r),this._springScale.setEnd(n,i,r),this._startTime=r},h.prototype.x=function(){var t=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(t),y:this._springY.x(t),scale:this._springScale.x(t)}},h.prototype.done=function(){var t=(new Date).getTime();return this._springX.done(t)&&this._springY.done(t)&&this._springScale.done(t)},h.prototype.reconfigure=function(t,e,n){this._springX.reconfigure(t,e,n),this._springY.reconfigure(t,e,n),this._springScale.reconfigure(t,e,n)};var d=!1;function f(t){d||(d=!0,requestAnimationFrame(function(){t(),d=!1}))}function p(t,e){if(t===e)return 0;var n=t.offsetLeft;return t.offsetParent?n+=p(t.offsetParent,e):0}function g(t,e){if(t===e)return 0;var n=t.offsetTop;return t.offsetParent?n+=g(t.offsetParent,e):0}function v(t,e){return+((1e3*t-1e3*e)/1e3).toFixed(1)}function m(t,e,n){var i=function(t){t&&t.id&&cancelAnimationFrame(t.id),t&&(t.cancelled=!0)},r={id:0,cancelled:!1};function a(e,n,i,r){if(!e||!e.cancelled){i(n);var o=t.done();o||e.cancelled||(e.id=requestAnimationFrame(a.bind(null,e,n,i,r))),o&&r&&r(n)}}return a(r,t,e,n),{cancel:i.bind(null,r),model:t}}var b={name:"MovableView",mixins:[a["a"]],props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1}},data:function(){return{xSync:this._getPx(this.x),ySync:this._getPx(this.y),scaleValueSync:Number(this.scaleValue)||1,width:0,height:0,minX:0,minY:0,maxX:0,maxY:0}},computed:{dampingNumber:function(){var t=Number(this.damping);return isNaN(t)?20:t},frictionNumber:function(){var t=Number(this.friction);return isNaN(t)||t<=0?2:t},scaleMinNumber:function(){var t=Number(this.scaleMin);return isNaN(t)?.5:t},scaleMaxNumber:function(){var t=Number(this.scaleMax);return isNaN(t)?10:t},xMove:function(){return"all"===this.direction||"horizontal"===this.direction},yMove:function(){return"all"===this.direction||"vertical"===this.direction}},watch:{x:function(t){this.xSync=this._getPx(t)},xSync:function(t){this._setX(t)},y:function(t){this.ySync=this._getPx(t)},ySync:function(t){this._setY(t)},scaleValue:function(t){this.scaleValueSync=Number(t)||0},scaleValueSync:function(t){this._setScaleValue(t)},scaleMinNumber:function(){this._setScaleMinOrMax()},scaleMaxNumber:function(){this._setScaleMinOrMax()}},created:function(){this._offset={x:0,y:0},this._scaleOffset={x:0,y:0},this._translateX=0,this._translateY=0,this._scale=1,this._oldScale=1,this._STD=new h(1,9*Math.pow(this.dampingNumber,2)/40,this.dampingNumber),this._friction=new u(1,this.frictionNumber),this._declineX=new c,this._declineY=new c,this.__touchInfo={historyX:[0,0],historyY:[0,0],historyT:[0,0]}},mounted:function(){this.touchtrack(this.$el,"_onTrack"),this.$parent._isMounted&&this.setParent(),this._friction.reconfigure(1,this.frictionNumber),this._STD.reconfigure(1,9*Math.pow(this.dampingNumber,2)/40,this.dampingNumber),this.$el.style.transformOrigin="center"},methods:{_getPx:function(t){return/\d+[ur]px$/i.test(t)?uni.upx2px(parseFloat(t)):Number(t)||0},_setX:function(t){if(this.xMove){if(t+this._scaleOffset.x===this._translateX)return this._translateX;this._SFA&&this._SFA.cancel(),this._animationTo(t+this._scaleOffset.x,this.ySync+this._scaleOffset.y,this._scale)}return t},_setY:function(t){if(this.yMove){if(t+this._scaleOffset.y===this._translateY)return this._translateY;this._SFA&&this._SFA.cancel(),this._animationTo(this.xSync+this._scaleOffset.x,t+this._scaleOffset.y,this._scale)}return t},_setScaleMinOrMax:function(){if(!this.scale)return!1;this._updateScale(this._scale,!0),this._updateOldScale(this._scale)},_setScaleValue:function(t){return!!this.scale&&(t=this._adjustScale(t),this._updateScale(t,!0),this._updateOldScale(t),t)},__handleTouchStart:function(){this._isScaling||this.disabled||(this._FA&&this._FA.cancel(),this._SFA&&this._SFA.cancel(),this.__touchInfo.historyX=[0,0],this.__touchInfo.historyY=[0,0],this.__touchInfo.historyT=[0,0],this.xMove&&(this.__baseX=this._translateX),this.yMove&&(this.__baseY=this._translateY),this.$el.style.willChange="transform",this._checkCanMove=null,this._firstMoveDirection=null,this._isTouching=!0)},__handleTouchMove:function(t){var e=this;if(!this._isScaling&&!this.disabled&&this._isTouching){var n=this._translateX,i=this._translateY;if(null===this._firstMoveDirection&&(this._firstMoveDirection=Math.abs(t.detail.dx/t.detail.dy)>1?"htouchmove":"vtouchmove"),this.xMove&&(n=t.detail.dx+this.__baseX,this.__touchInfo.historyX.shift(),this.__touchInfo.historyX.push(n),this.yMove||!0!==this._checkCanMove&&(Math.abs(t.detail.dx/t.detail.dy)>1?this._checkCanMove=!1:this._checkCanMove=!0)),this.yMove&&(i=t.detail.dy+this.__baseY,this.__touchInfo.historyY.shift(),this.__touchInfo.historyY.push(i),this.xMove||!0!==this._checkCanMove&&(Math.abs(t.detail.dy/t.detail.dx)>1?this._checkCanMove=!1:this._checkCanMove=!0)),this.__touchInfo.historyT.shift(),this.__touchInfo.historyT.push(t.detail.timeStamp),!this._checkCanMove){t.preventDefault();var r="touch";nthis.maxX&&(this.outOfBounds?(r="touch-out-of-bounds",n=this.maxX+this._declineX.x(n-this.maxX)):n=this.maxX),ithis.maxY&&(this.outOfBounds?(r="touch-out-of-bounds",i=this.maxY+this._declineY.x(i-this.maxY)):i=this.maxY),f(function(){e._setTransform(n,i,e._scale,r)})}}},__handleTouchEnd:function(){var t=this;if(!this._isScaling&&!this.disabled&&this._isTouching&&(this.$el.style.willChange="auto",this._isTouching=!1,!this._checkCanMove&&!this._revise("out-of-bounds")&&this.inertia)){var e=1e3*(this.__touchInfo.historyX[1]-this.__touchInfo.historyX[0])/(this.__touchInfo.historyT[1]-this.__touchInfo.historyT[0]),n=1e3*(this.__touchInfo.historyY[1]-this.__touchInfo.historyY[0])/(this.__touchInfo.historyT[1]-this.__touchInfo.historyT[0]);this._friction.setV(e,n),this._friction.setS(this._translateX,this._translateY);var i=this._friction.delta().x,r=this._friction.delta().y,a=i+this._translateX,o=r+this._translateY;athis.maxX&&(a=this.maxX,o=this._translateY+(this.maxX-this._translateX)*r/i),othis.maxY&&(o=this.maxY,a=this._translateX+(this.maxY-this._translateY)*i/r),this._friction.setEnd(a,o),this._FA=m(this._friction,function(){var e=t._friction.s(),n=e.x,i=e.y;t._setTransform(n,i,t._scale,"friction")},function(){t._FA.cancel()})}},_onTrack:function(t){switch(t.detail.state){case"start":this.__handleTouchStart();break;case"move":this.__handleTouchMove(t);break;case"end":this.__handleTouchEnd()}},_getLimitXY:function(t,e){var n=!1;return t>this.maxX?(t=this.maxX,n=!0):tthis.maxY?(e=this.maxY,n=!0):e3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;null!==t&&"NaN"!==t.toString()&&"number"===typeof t||(t=this._translateX||0),null!==e&&"NaN"!==e.toString()&&"number"===typeof e||(e=this._translateY||0),t=Number(t.toFixed(1)),e=Number(e.toFixed(1)),n=Number(n.toFixed(1)),this._translateX===t&&this._translateY===e||r||this.$trigger("change",{},{x:v(t,this._scaleOffset.x),y:v(e,this._scaleOffset.y),source:i}),this.scale||(n=this._scale),n=this._adjustScale(n),n=+n.toFixed(3),a&&n!==this._scale&&this.$trigger("scale",{},{scale:n});var o="translateX("+t+"px) translateY("+e+"px) translateZ(0px) scale("+n+")";this.$el.style.transform=o,this.$el.style.webkitTransform=o,this._translateX=t,this._translateY=e,this._scale=n}}},_=b,y=(n("7c2b"),n("2877")),w=Object(y["a"])(_,i,r,!1,null,null,null);w.options.__file="index.vue";e["default"]=w.exports},"898f":function(t,e,n){"use strict";n.r(e),function(t){function i(e,n){var i=e.urls,r=e.current,a=t,o=a.invokeCallbackHandler;getApp().$router.push({type:"navigateTo",path:"/preview-image",params:{urls:i,current:r}},function(){o(n,{errMsg:"previewImage:ok"})},function(){o(n,{errMsg:"previewImage:fail"})})}n.d(e,"previewImage",function(){return i})}.call(this,n("0dd1"))},"89fc":function(t,e,n){},"8a36":function(t,e,n){"use strict";(function(t){var i=n("f2b3");e["a"]={props:{id:{type:String,default:""}},created:function(){var t=this;this._addListeners(this.id),this.$watch("id",function(e,n){t._removeListeners(n,!0),t._addListeners(e,!0)})},beforeDestroy:function(){this._removeListeners(this.id)},methods:{_addListeners:function(e,n){var r=this;if(!n||e){var a=this.$options.listeners;Object(i["f"])(a)&&Object.keys(a).forEach(function(i){n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&t.on("uni-".concat(i,"-").concat(r.$page.id,"-").concat(e),r[a[i]]):0===i.indexOf("@")?r.$on("uni-".concat(i.substr(1)),r[a[i]]):0===i.indexOf("uni-")?t.on(i,r[a[i]]):e&&t.on("uni-".concat(i,"-").concat(r.$page.id,"-").concat(e),r[a[i]])})}},_removeListeners:function(e,n){var r=this;if(!n||e){var a=this.$options.listeners;Object(i["f"])(a)&&Object.keys(a).forEach(function(i){n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&t.off("uni-".concat(i,"-").concat(r.$page.id,"-").concat(e),r[a[i]]):0===i.indexOf("@")?r.$off("uni-".concat(i.substr(1)),r[a[i]]):0===i.indexOf("uni-")?t.off(i,r[a[i]]):e&&t.off("uni-".concat(i,"-").concat(r.$page.id,"-").concat(e),r[a[i]])})}}}}}).call(this,n("501c"))},"8aec":function(t,e,n){"use strict";function i(t){this._drag=t,this._dragLog=Math.log(t),this._x=0,this._v=0,this._startTime=0}function r(t,e,n){return t>e-n&&t0){var u=(-n-Math.sqrt(a))/(2*i),l=(-n+Math.sqrt(a))/(2*i),h=(e-u*t)/(l-u),d=t-h;return{x:function(t){var e,n;return t===this._t&&(e=this._powER1T,n=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,u*t)),n||(n=this._powER2T=Math.pow(Math.E,l*t)),d*e+h*n},dx:function(t){var e,n;return t===this._t&&(e=this._powER1T,n=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,u*t)),n||(n=this._powER2T=Math.pow(Math.E,l*t)),d*u*e+h*l*n}}}var f=Math.sqrt(4*i*r-n*n)/(2*i),p=-n/2*i,g=t,v=(e-p*t)/f;return{x:function(t){return Math.pow(Math.E,p*t)*(g*Math.cos(f*t)+v*Math.sin(f*t))},dx:function(t){var e=Math.pow(Math.E,p*t),n=Math.cos(f*t),i=Math.sin(f*t);return e*(v*f*n-g*f*i)+p*e*(v*i+g*n)}}},o.prototype.x=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(t):0},o.prototype.dx=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(t):0},o.prototype.setEnd=function(t,e,n){if(n||(n=(new Date).getTime()),t!==this._endPosition||!a(e,.4)){e=e||0;var i=this._endPosition;this._solution&&(a(e,.4)&&(e=this._solution.dx((n-this._startTime)/1e3)),i=this._solution.x((n-this._startTime)/1e3),a(e,.4)&&(e=0),a(i,.4)&&(i=0),i+=this._endPosition),this._solution&&a(i-t,.4)&&a(e,.4)||(this._endPosition=t,this._solution=this._solve(i-this._endPosition,e),this._startTime=n)}},o.prototype.snap=function(t){this._startTime=(new Date).getTime(),this._endPosition=t,this._solution={x:function(){return 0},dx:function(){return 0}}},o.prototype.done=function(t){return t||(t=(new Date).getTime()),r(this.x(),this._endPosition,.4)&&a(this.dx(),.4)},o.prototype.reconfigure=function(t,e,n){this._m=t,this._k=e,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},o.prototype.springConstant=function(){return this._k},o.prototype.damping=function(){return this._c},o.prototype.configuration=function(){function t(t,e){t.reconfigure(1,e,t.damping())}function e(t,e){t.reconfigure(1,t.springConstant(),e)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:t.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:e.bind(this,this),min:1,max:500}]},s.prototype.snap=function(t,e){this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(e)},s.prototype.set=function(t,e){this._friction.set(t,e),t>0&&e>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(0)):t<-this._extent&&e<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=(new Date).getTime()},s.prototype.x=function(t){if(!this._startTime)return 0;if(t||(t=((new Date).getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;var e=this._friction.x(t),n=this.dx(t);return(e>0&&n>=0||e<-this._extent&&n<=0)&&(this._springing=!0,this._spring.setEnd(0,n),e<-this._extent?this._springOffset=-this._extent:this._springOffset=0,e=this._spring.x()+this._springOffset),e},s.prototype.dx=function(t){var e=0;return e=this._lastTime===t?this._lastDx:this._springing?this._spring.dx(t):this._friction.dx(t),this._lastTime=t,this._lastDx=e,e},s.prototype.done=function(){return this._springing?this._spring.done():this._friction.done()},s.prototype.setVelocityByEnd=function(t){this._friction.setVelocityByEnd(t)},s.prototype.configuration=function(){var t=this._friction.configuration();return t.push.apply(t,this._spring.configuration()),t},u.prototype.onTouchStart=function(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()},u.prototype.onTouchMove=function(t,e){var n=this._startPosition;this._enableX?n+=t:this._enableY&&(n+=e),n>0?n*=.5:n<-this._extent&&(n=.5*(n+this._extent)-this._extent),this._position=n,this.updatePosition(),this.dispatchScroll()},u.prototype.onTouchEnd=function(t,e,n){var i=this;if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(e)this._itemSize/2?r-(this._itemSize-Math.abs(a)):r-a;o<=0&&o>=-this._extent&&this._scroll.setVelocityByEnd(o)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=c(this._scroll,function(){var t=Date.now(),e=(t-i._scroll._startTime)/1e3,n=i._scroll.x(e);i._position=n,i.updatePosition();var r=i._scroll.dx(e);i._shouldDispatchScrollEvent&&t-i._lastTime>i._lastDelay&&(i.dispatchScroll(),i._lastDelay=Math.abs(2e3/r),i._lastTime=t)},function(){i._enableSnap&&(o<=0&&o>=-i._extent&&(i._position=o,i.updatePosition()),"function"===typeof i._options.onSnap&&i._options.onSnap(Math.floor(Math.abs(i._position)/i._itemSize))),i._shouldDispatchScrollEvent&&i.dispatchScroll(),i._scrolling=!1})},u.prototype.onTransitionEnd=function(){this._element.style.transition="",this._element.style.webkitTransition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._element.removeEventListener("webkitTransitionEnd",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()},u.prototype.snap=function(){var t=this._itemSize,e=this._position%t,n=Math.abs(e)>this._itemSize/2?this._position-(t-Math.abs(e)):this._position-e;this._position!==n&&(this._snapping=!0,this.scrollTo(-n),"function"===typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))},u.prototype.scrollTo=function(t,e){this._animation&&(this._animation.cancel(),this._scrolling=!1),"number"===typeof t&&(this._position=-t),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0),this._element.style.transition="transform "+(e||.2)+"s ease-out",this._element.style.webkitTransition="-webkit-transform "+(e||.2)+"s ease-out",this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd),this._element.addEventListener("webkitTransitionEnd",this._onTransitionEnd)},u.prototype.dispatchScroll=function(){if("function"===typeof this._options.onScroll&&Math.round(this._lastPos)!==Math.round(this._position)){this._lastPos=this._position;var t={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(t)}},u.prototype.update=function(t,e,n){var i=0,r=this._position;this._enableX?(i=this._element.childNodes.length?(e||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=e):(i=this._element.childNodes.length?(e||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=e),"number"===typeof t&&(this._position=-t),this._position<-i?this._position=-i:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),r!==this._position&&(this.dispatchScroll(),"function"===typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=i,this._scroll._extent=i},u.prototype.updatePosition=function(){var t="";this._enableX?t="translateX("+this._position+"px) translateZ(0)":this._enableY&&(t="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=t,this._element.style.transform=t},u.prototype.isScrolling=function(){return this._scrolling||this._snapping};e["a"]={methods:{initScroller:function(t,e){this._touchInfo={trackingID:-1,maxDy:0,maxDx:0},this._scroller=new u(t,e),this.__handleTouchStart=this._handleTouchStart.bind(this),this.__handleTouchMove=this._handleTouchMove.bind(this),this.__handleTouchEnd=this._handleTouchEnd.bind(this),this._initedScroller=!0},_findDelta:function(t){var e=this._touchInfo;return"move"===t.detail.state||"end"===t.detail.state?{x:t.detail.dx,y:t.detail.dy}:{x:t.screenX-e.x,y:t.screenY-e.y}},_handleTouchStart:function(t){var e=this._touchInfo,n=this._scroller;n&&("start"===t.detail.state?(e.trackingID="touch",e.x=t.detail.x,e.y=t.detail.y):(e.trackingID="mouse",e.x=t.screenX,e.y=t.screenY),e.maxDx=0,e.maxDy=0,e.historyX=[0],e.historyY=[0],e.historyTime=[t.detail.timeStamp],e.listener=n,n.onTouchStart&&n.onTouchStart())},_handleTouchMove:function(t){var e=this._touchInfo;if(-1!==e.trackingID){t.preventDefault();var n=this._findDelta(t);if(n){for(e.maxDy=Math.max(e.maxDy,Math.abs(n.y)),e.maxDx=Math.max(e.maxDx,Math.abs(n.x)),e.historyX.push(n.x),e.historyY.push(n.y),e.historyTime.push(t.detail.timeStamp);e.historyTime.length>10;)e.historyTime.shift(),e.historyX.shift(),e.historyY.shift();e.listener&&e.listener.onTouchMove&&e.listener.onTouchMove(n.x,n.y,t.detail.timeStamp)}}},_handleTouchEnd:function(t){var e=this._touchInfo;if(-1!==e.trackingID){t.preventDefault();var n=this._findDelta(t);if(n){var i=e.listener;e.trackingID=-1,e.listener=null;var r=e.historyTime.length,a={x:0,y:0};if(r>2)for(var o=e.historyTime.length-1,s=e.historyTime[o],c=e.historyX[o],u=e.historyY[o];o>0;){o--;var l=e.historyTime[o],h=s-l;if(h>30&&h<50){a.x=(c-e.historyX[o])/(h/1e3),a.y=(u-e.historyY[o])/(h/1e3);break}}e.historyTime=[],e.historyX=[],e.historyY=[],i&&i.onTouchEnd&&i.onTouchEnd(n.x,n.y,a)}}}}}},"8af1":function(t,e,n){"use strict";function i(t,e){for(var n=this.$children,r=n.length,a=arguments.length,o=new Array(a>2?a-2:0),s=2;s2?r-2:0),o=2;o2?n-2:0),a=2;a1&&void 0!==arguments[1]?arguments[1]:{};e.routes;Object(r["a"])(),t.prototype.$handleEvent=function(t){if(t instanceof Event){for(var e=t.target,n=this.$el;e&&e!==n;e=e.parentNode)if(e.tagName&&0===e.tagName.indexOf("UNI-"))break;t=r["b"].call(this,t.type,t,{},e||t.target,t.currentTarget)}return t},t.mixin({beforeCreate:function(){var t=this.$options;Object(i["a"])(this)&&(t.mounted=t.mounted?[].concat(a,t.mounted):[a])}})}}}.call(this,n("501c"))},"8ce3":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"chooseVideo",function(){return c});var i=n("e2e2"),r=t,a=r.invokeCallbackHandler,o=null,s=function(t){var e=document.createElement("input");return e.type="file",e.style="visibility: hidden;z-index: -999;width: 0;height: 0;",e.accept="video/*",1===t.sourceType.length&&"camera"===t.sourceType[0]&&(e.capture="camera"),e};function c(t,e){var n=t.sourceType;o&&(document.body.removeChild(o),o=null),o=s({sourceType:n}),document.body.appendChild(o),o.addEventListener("change",function(t){var n=t.target.files[0],r=Object(i["a"])(n);a(e,{errMsg:"chooseVideo:ok",tempFilePath:r,size:n.size})}),o.click()}}.call(this,n("0dd1"))},"8cfc":function(t,e,n){},"8e16":function(t,e,n){"use strict";var i=n("11b9"),r=n.n(i);r.a},"8e58":function(t,e,n){"use strict";n.r(e),function(t){function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n0?"5px":"0px"}},[n("i",{staticClass:"uni-btn-icon",style:t._formatBtnStyle(e),domProps:{innerHTML:t._s(t._formatBtnFontText(e))},on:{click:function(e){t._onBtnClick(i)}}})]):t._e()]})],2),n("div",{staticClass:"uni-page-head-bd"},[n("div",{staticClass:"uni-page-head__title",style:{fontSize:t.titleSize,opacity:"transparent"===t.type?0:1}},[t.loading?n("i",{staticClass:"uni-loading"}):t._e(),t._v("\n "+t._s(t.titleText)+"\n ")])]),n("div",{staticClass:"uni-page-head-ft"},[t._l(t.btns,function(e,i){return["left"!==e.float?n("div",{key:i,style:{marginRight:i>0?"5px":"0px"}},[n("i",{staticClass:"uni-btn-icon",style:t._formatBtnStyle(e),domProps:{innerHTML:t._s(t._formatBtnFontText(e))},on:{click:function(e){t._onBtnClick(i)}}})]):t._e()]})],2)]),"transparent"!==t.type?n("div",{staticClass:"uni-placeholder"}):t._e()])},b=[],_=n("a1a7"),y=_["a"],w=(n("8e16"),Object(u["a"])(y,m,b,!1,null,null,null));w.options.__file="pageHead.vue";var S=w.exports,k=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-page-wrapper",[n("uni-page-body",[t._t("default")],2)],1)},x=[],T={name:"PageBody"},C=T,M=(n("167a"),Object(u["a"])(C,k,x,!1,null,null,null));M.options.__file="pageBody.vue";var O=M.exports,E=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-page-refresh",[n("div",{staticClass:"uni-page-refresh",style:{"margin-top":t.offset+"px"}},[n("div",{staticClass:"uni-page-refresh-inner"},[n("svg",{staticClass:"uni-page-refresh__icon",attrs:{fill:t.color,width:"24",height:"24",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}}),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})]),n("svg",{staticClass:"uni-page-refresh__spinner",attrs:{width:"24",height:"24",viewBox:"25 25 50 50"}},[n("circle",{staticClass:"uni-page-refresh__path",attrs:{stroke:t.color,cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"}})])])])])},A=[],$={name:"PageRefresh",props:{color:{type:String,default:"#2BD009"},offset:{type:Number,default:0}}},P=$,I=(n("9b5b"),Object(u["a"])(P,E,A,!1,null,null,null));I.options.__file="pageRefresh.vue";var B=I.exports,j=n("be12"),L={name:"Page",mpType:"page",components:{PageHead:S,PageBody:O,PageRefresh:B},mixins:[j["a"]],props:{isQuit:{type:Boolean,default:!1},isEntry:{type:Boolean,default:!1},isTabBar:{type:Boolean,default:!1},tabBarIndex:{type:Number,default:-1},navigationBarBackgroundColor:{type:String,default:"#000"},navigationBarTextStyle:{default:"white",validator:function(t){return-1!==["white","black"].indexOf(t)}},navigationBarTitleText:{type:String,default:""},navigationStyle:{default:"default",validator:function(t){return-1!==["default","custom"].indexOf(t)}},backgroundColor:{type:String,default:"#ffffff"},backgroundTextStyle:{default:"dark",validator:function(t){return-1!==["dark","light"].indexOf(t)}},backgroundColorTop:{type:String,default:"#fff"},backgroundColorBottom:{type:String,default:"#fff"},enablePullDownRefresh:{type:Boolean,default:!1},onReachBottomDistance:{type:Number,default:50},disableScroll:{type:Boolean,default:!1},titleNView:{type:[Boolean,Object],default:!0},pullToRefresh:{type:Object,default:function(){return{}}}},data:function(){var t=Object(v["a"])({loading:!1,backButton:!this.isQuit,backgroundColor:this.navigationBarBackgroundColor,textColor:"black"===this.navigationBarTextStyle?"#000":"#fff",titleText:this.navigationBarTitleText,duration:"0",timingFunc:""},this.titleNView),e="default"===this.navigationStyle&&this.titleNView,n=Object.assign({support:!0,color:"#2BD009",style:"circle",height:70,range:150,offset:0},this.pullToRefresh),i=Object(p["c"])(n.offset);return e&&(this.titleNView&&"transparent"===this.titleNView.type||(i+=g["a"])),n.offset=i,n.height=Object(p["c"])(n.height),n.range=Object(p["c"])(n.range),{showNavigationBar:e,navigationBar:t,refreshOptions:n}}},N=L,D=(n("6226"),Object(u["a"])(N,d,f,!1,null,null,null));D.options.__file="index.vue";var z=D.exports,R=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"uni-async-error",on:{click:t._onClick}},[t._v("\n 网络不给力,点击屏幕重试\n")])},F=[],H={name:"AsyncError",methods:{_onClick:function(){window.location.reload()}}},V=H,q=(n("b628"),Object(u["a"])(V,R,F,!1,null,null,null));q.options.__file="index.vue";var Y=q.exports,X=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},U=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"uni-async-loading"},[n("i",{staticClass:"uni-loading"})])}],W={name:"AsyncLoading"},G=W,K=(n("5727"),Object(u["a"])(G,X,U,!1,null,null,null));K.options.__file="index.vue";var J=K.exports,Z=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"uni-system-choose-location"},[n("system-header",{attrs:{confirm:!!t.data},on:{back:t._back,confirm:t._choose}},[t._v("选择位置")]),n("div",{staticClass:"map-content"},[n("iframe",{attrs:{src:t.src,allow:"geolocation",seamless:"",sandbox:"allow-scripts allow-same-origin allow-forms",frameborder:"0"}})])],1)},Q=[],tt=n("120f"),et=tt["a"],nt=(n("9470"),Object(u["a"])(et,Z,Q,!1,null,null,null));nt.options.__file="index.vue";var it=nt.exports,rt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"uni-system-open-location"},[n("system-header",{on:{back:t._back}},[t._v("位置")]),n("div",{staticClass:"map-content"},[n("iframe",{ref:"map",attrs:{src:t.src,allow:"geolocation",sandbox:"allow-scripts allow-same-origin allow-forms",frameborder:"0"},on:{load:t._load}}),t.isPoimarkerSrc?n("div",{staticClass:"actTonav",on:{click:t._nav}}):t._e()])],1)},at=[],ot=n("bab8"),st="WXTBZ-6WERU-ECCVS-BZJCK-LW5OJ-SIBOS",ct="uniapp",ut="https://apis.map.qq.com/tools/poimarker",lt={name:"SystemOpenLocation",components:{SystemHeader:ot["a"]},data:function(){var t=this.$route.params,e=t.latitude,n=t.longitude,i=t.scale,r=t.name,a=t.address;return{latitude:e,longitude:n,scale:i,name:r,address:a,src:"",isPoimarkerSrc:!1}},mounted:function(){this.latitude&&this.longitude&&(this.src="".concat(ut,"?type=0&marker=coord:").concat(this.latitude,",").concat(this.longitude,";title:").concat(this.name,";addr:").concat(this.address,";&key=").concat(st,"&referer=").concat(ct))},methods:{_back:function(){0!==this.$refs.map.src.indexOf(ut)?this.$refs.map.src=this.src:getApp().$router.back()},_load:function(){0===this.$refs.map.src.indexOf(ut)?this.isPoimarkerSrc=!0:this.isPoimarkerSrc=!1},_nav:function(){var t="https://apis.map.qq.com/uri/v1/routeplan?type=drive&to=".concat(encodeURIComponent(this.name),"&tocoord=").concat(this.latitude,",").concat(this.longitude,"&referer=").concat(ct);this.$refs.map.src=t}}},ht=lt,dt=(n("3da9"),Object(u["a"])(ht,rt,at,!1,null,null,null));dt.options.__file="index.vue";var ft=dt.exports,pt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"uni-system-preview-image",on:{click:t._click}},[n("v-uni-swiper",{staticClass:"uni-swiper",attrs:{current:t.index,"indicator-dots":!1,autoplay:!1},on:{"update:current":function(e){t.index=e}}},t._l(t.urls,function(t,e){return n("v-uni-swiper-item",{key:e},[n("img",{staticClass:"uni-preview-image",attrs:{src:t}})])}),1)],1)},gt=[],vt={name:"SystemPreviewImage",data:function(){var t=this.$route.params,e=t.urls,n=t.current;return{urls:e||[],current:n,index:0}},created:function(){var t=this.urls.indexOf(this.current);this.index=t<0?0:t},methods:{_click:function(){getApp().$router.back()}}},mt=vt,bt=(n("f10e"),Object(u["a"])(mt,pt,gt,!1,null,null,null));bt.options.__file="index.vue";var _t=bt.exports;r.a.component(h.name,h),r.a.component(z.name,z),r.a.component(Y.name,Y),r.a.component(J.name,J),r.a.component(it.name,it),r.a.component(ft.name,ft),r.a.component(_t.name,_t)},9213:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-swiper-item",t._g({},t.$listeners),[t._t("default")],2)},r=[],a={name:"SwiperItem",props:{itemId:{type:String,default:""}},watch:{itemId:function(t,e){this._itemIdUpdated(t,e)}},created:function(){this._itemIdUpdated(this.itemId,this.itemId)},mounted:function(){var t=this.$el;t.style.position="absolute",t.style.width="100%",t.style.height="100%";var e=this.$vnode._callbacks;e&&e.forEach(function(t){t()})},methods:{_itemIdUpdated:function(t,e){var n=this.$parent;n&&"function"===typeof n._itemIdUpdated&&n._itemIdUpdated(this,t,e)}}},o=a,s=(n("bfea"),n("2877")),c=Object(s["a"])(o,i,r,!1,null,null,null);c.options.__file="index.vue";e["default"]=c.exports},"93a5":function(t,e,n){var i={"./audio/index.vue":"e0b6","./cover-view/index.vue":"c41f","./map/index.vue":"594d","./video/index.vue":"31e2","./web-view/index.vue":"9980"};function r(t){var e=a(t);return n(e)}function a(t){var e=i[t];if(!(e+1)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return e}r.keys=function(){return Object.keys(i)},r.resolve=a,t.exports=r,r.id="93a5"},9400:function(t,e,n){"use strict";var i=n("5565"),r=n.n(i);r.a},"944e":function(t,e,n){"use strict";var i=n("c3d0"),r=n.n(i);r.a},9470:function(t,e,n){"use strict";var i=n("5b81"),r=n.n(i);r.a},"985f":function(t,e,n){},9980:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-web-view",[n("iframe",{attrs:{src:t.realPath,frameborder:"0",width:"100%",height:"100%"}})])},r=[],a={name:"WebView",props:{src:{type:String,default:""}},data:function(){return{realPath:this.$getRealPath(this.src)}}},o=a,s=(n("c33f"),n("2877")),c=Object(s["a"])(o,i,r,!1,null,null,null);c.options.__file="index.vue";e["default"]=c.exports},"9a3e":function(t,e,n){"use strict";n.r(e),n.d(e,"uploadFile",function(){return r});var i=n("cb0f"),r={url:{type:String,required:!0},filePath:{type:String,required:!0,validator:function(t,e){e.type=Object(i["a"])(t)}},name:{type:String,required:!0},header:{type:Object,validator:function(t,e){e.header=t||{}}},formData:{type:Object,validator:function(t,e){e.formData=t||{}}}}},"9b1f":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-progress",t._g({staticClass:"uni-progress"},t.$listeners),[n("div",{staticClass:"uni-progress-bar",style:t.outerBarStyle},[n("div",{staticClass:"uni-progress-inner-bar",style:t.innerBarStyle})]),t.showInfo?[n("p",{staticClass:"uni-progress-info"},[t._v(t._s(t.currentPercent)+"%")])]:t._e()],2)},r=[],a={activeColor:"#007AFF",backgroundColor:"#EBEBEB",activeMode:"backwards"},o={name:"Progress",props:{percent:{type:[Number,String],default:0,validator:function(t){return!isNaN(parseFloat(t,10))}},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator:function(t){return!isNaN(parseFloat(t,10))}},color:{type:String,default:a.activeColor},activeColor:{type:String,default:a.activeColor},backgroundColor:{type:String,default:a.backgroundColor},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:a.activeMode}},data:function(){return{currentPercent:0,strokeTimer:0,lastPercent:0}},computed:{outerBarStyle:function(){return"background-color: ".concat(this.backgroundColor,"; height: ").concat(this.strokeWidth,"px;")},innerBarStyle:function(){var t="";return t=this.color!==a.activeColor&&this.activeColor===a.activeColor?this.color:this.activeColor,"width: ".concat(this.currentPercent,"%;background-color: ").concat(t)},realPercent:function(){var t=parseFloat(this.percent,10);return t<0&&(t=0),t>100&&(t=100),t}},watch:{realPercent:function(t,e){this.strokeTimer&&clearInterval(this.strokeTimer),this.lastPercent=e||0,this._activeAnimation()}},created:function(){this._activeAnimation()},methods:{_activeAnimation:function(){var t=this;this.active?(this.currentPercent=this.activeMode===a.activeMode?0:this.lastPercent,this.strokeTimer=setInterval(function(){t.currentPercent+1>t.realPercent?(t.currentPercent=t.realPercent,t.strokeTimer&&clearInterval(t.strokeTimer)):t.currentPercent+=1},30)):this.currentPercent=this.realPercent}}},s=o,c=(n("944e"),n("2877")),u=Object(c["a"])(s,i,r,!1,null,null,null);u.options.__file="index.vue";e["default"]=u.exports},"9b5b":function(t,e,n){"use strict";var i=n("ef9b"),r=n.n(i);r.a},"9eba":function(t,e,n){"use strict";n.r(e),function(t){function i(e){var n=getCurrentPages();return n.length&&t.publishHandler("pageScrollTo",e,n[n.length-1].$page.id),{}}var r;function a(t){r=t}function o(){r&&t.emit(r+".stopPullDownRefresh",{},r);var e=getCurrentPages();return e.length&&(r=e[e.length-1].$page.id,t.emit(r+".startPullDownRefresh",{},r)),{}}function s(){return r&&(t.emit(r+".stopPullDownRefresh",{},r),r=null),{}}n.d(e,"pageScrollTo",function(){return i}),n.d(e,"setPullDownRefreshPageId",function(){return a}),n.d(e,"startPullDownRefresh",function(){return o}),n.d(e,"stopPullDownRefresh",function(){return s})}.call(this,n("0dd1"))},"9f96":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-slider",t._g({ref:"uni-slider",on:{click:t._onClick}},t.$listeners),[n("div",{staticClass:"uni-slider-wrapper"},[n("div",{staticClass:"uni-slider-tap-area"},[n("div",{staticClass:"uni-slider-handle-wrapper",style:t.setBgColor},[n("div",{ref:"uni-slider-handle",staticClass:"uni-slider-handle",style:t.setBlockBg}),n("div",{staticClass:"uni-slider-thumb",style:t.setBlockStyle}),n("div",{staticClass:"uni-slider-track",style:t.setActiveColor})])]),n("span",{directives:[{name:"show",rawName:"v-show",value:t.showValue,expression:"showValue"}],staticClass:"uni-slider-value"},[t._v(t._s(t.sliderValue))])]),t._t("default")],2)},r=[],a=n("8af1"),o=n("ba15"),s={name:"Slider",mixins:[a["a"],a["c"],o["a"]],props:{name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},data:function(){return{sliderValue:Number(this.value)}},computed:{setBlockStyle:function(){return{width:this.blockSize+"px",height:this.blockSize+"px",marginLeft:-this.blockSize/2+"px",marginTop:-this.blockSize/2+"px",left:this._getValueWidth(),backgroundColor:this.blockColor}},setBgColor:function(){return{backgroundColor:this._getBgColor()}},setBlockBg:function(){return{left:this._getValueWidth()}},setActiveColor:function(){return{backgroundColor:this._getActiveColor(),width:this._getValueWidth()}}},watch:{value:function(t){this.sliderValue=Number(t)}},mounted:function(){this.touchtrack(this.$refs["uni-slider-handle"],"_onTrack")},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onUserChangedValue:function(t){var e=this.$refs["uni-slider"],n=e.offsetWidth,i=e.getBoundingClientRect().left,r=(t.x-i)*(this.max-this.min)/n+Number(this.min);this.sliderValue=this._filterValue(r)},_filterValue:function(t){return tthis.max?this.max:Math.round((t-this.min)/this.step)*this.step+Number(this.min)},_getValueWidth:function(){return 100*(this.sliderValue-this.min)/(this.max-this.min)+"%"},_getBgColor:function(){return"#e9e9e9"!==this.backgroundColor?this.backgroundColor:"#007aff"!==this.color?this.color:"#007aff"},_getActiveColor:function(){return"#007aff"!==this.activeColor?this.activeColor:"#e9e9e9"!==this.selectedColor?this.selectedColor:"#e9e9e9"},_onTrack:function(t){if(!this.disabled)return"move"===t.detail.state?(this._onUserChangedValue({x:t.detail.x0}),this.$trigger("changing",t,{value:this.sliderValue}),!1):void("end"===t.detail.state&&this.$trigger("change",t,{value:this.sliderValue}))},_onClick:function(t){this.disabled||(this._onUserChangedValue(t),this.$trigger("change",t,{value:this.sliderValue}))},_resetFormData:function(){this.sliderValue=this.min},_getFormData:function(){var t={};return""!==this.name&&(t["value"]=this.sliderValue,t["key"]=this.name),t}}},c=s,u=(n("6428"),n("2877")),l=Object(u["a"])(c,i,r,!1,null,null,null);l.options.__file="index.vue";e["default"]=l.exports},"9fe6":function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return s});var i=n("85b6");function r(t){var e={};return t.id&&(e.id=""),t.dataset&&(e.dataset={}),t.rect&&(e.left=0,e.right=0,e.top=0,e.bottom=0),t.size&&(e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight),t.scrollOffset&&(e.scrollLeft=document.documentElement.scrollLeft||document.body.scrollLeft||0,e.scrollTop=document.documentElement.scrollTop||document.body.scrollTop||0),e}function a(t,e){var n={};if(e.id&&(n.id=t.id),e.dataset&&(n.dataset=Object(i["b"])(t.dataset||{})),e.rect||e.size){var r=t.getBoundingClientRect();e.rect&&(n.left=r.left,n.right=r.right,n.top=r.top,n.bottom=r.bottom),e.size&&(n.width=r.width,n.height=r.height)}return e.properties&&e.properties.forEach(function(t){t=t.replace(/-([a-z])/g,function(t,e){return e.toUpperCase()})}),e.scrollOffset&&("UNI-SCROLL-VIEW"===t.tagName&&t.__vue__&&t.__vue__.getScrollPosition?Object.assign(n,t.__vue__.getScrollPosition()):(n.scrollLeft=0,n.scrollTop=0)),n}function o(t,e,n,i,r){var o=t.$el;if(i){var s=o.querySelector(n);return s?a(s,r):null}var c=o.querySelectorAll(n);return c&&c.length?[].map.call(c,function(t){return a(t,r)}):[]}function s(e,n){var i=e.reqId,a=e.reqs,s=getCurrentPages(),c=s.find(function(t){return t.$page.id===n});if(!c)throw new Error("Not Found:Page[".concat(n,"]"));var u=[];a.forEach(function(t){var e=t.component,n=t.selector,i=t.single,a=t.fields;0===e?u.push(r(a)):u.push(o(c,e,n,i,a))}),t.publishHandler("onRequestComponentInfo",{reqId:i,res:u},c.$page.id)}}).call(this,n("501c"))},"9fef":function(t,e,n){"use strict";n.r(e),n.d(e,"createAudioContext",function(){return r}),n.d(e,"createVideoContext",function(){return a}),n.d(e,"createMapContext",function(){return o}),n.d(e,"createCanvasContext",function(){return s});var i=[{name:"id",type:String,required:!0}],r=i,a=i,o=i,s=[{name:"canvasId",type:String,required:!0},{name:"componentInstance",type:Object}]},a007:function(t,e,n){},a041:function(t,e,n){"use strict";n.r(e),n.d(e,"canvasGetImageData",function(){return i}),n.d(e,"canvasPutImageData",function(){return r}),n.d(e,"canvasToTempFilePath",function(){return o}),n.d(e,"drawCanvas",function(){return s});var i={canvasId:{type:String,required:!0},x:{type:Number,required:!0},y:{type:Number,required:!0},width:{type:Number,required:!0},height:{type:Number,required:!0}},r={canvasId:{type:String,required:!0},data:{type:Uint8ClampedArray,required:!0},x:{type:Number,required:!0},y:{type:Number,required:!0},width:{type:Number,required:!0},height:{type:Number}},a={PNG:"PNG",JPG:"JPG"},o={x:{type:Number,default:0},y:{type:Number,default:0},width:{type:Number},height:{type:Number},destWidth:{type:Number},destHeight:{type:Number},canvasId:{type:String,require:!0},fileType:{type:String,validator:function(t,e){t=(t||"").toUpperCase(),e.fileType=Object.values(a).indexOf(t)<0?a.PNG:t}},quality:{type:Number,validator:function(t,e){t=Math.floor(t),e.quality=t>0&&t<1?t:1}}},s={canvasId:{type:String,require:!0},actions:{type:Array,require:!0},reserve:{type:Boolean,default:!1}}},a1a7:function(t,e,n){"use strict";(function(t){var i=n("e949"),r=n("cb0f"),a=n("15bb"),o={forward:"",back:"",share:"",favorite:"",home:"",menu:"",close:""};e["a"]={name:"PageHead",mixins:[a["a"]],props:{backButton:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#000"},textColor:{type:String,default:"#fff"},titleText:{type:String,default:""},duration:{type:String,default:"0"},timingFunc:{type:String,default:""},loading:{type:Boolean,default:!1},titleSize:{type:String,default:"16px"},type:{default:"default",validator:function(t){return-1!==["default","transparent"].indexOf(t)}},coverage:{type:String,default:"132px"},buttons:{type:Array,default:function(){return[]}}},computed:{btns:function(){var t=this,e=[];return this.buttons.length&&this.buttons.forEach(function(n){var i=Object.assign({},n);if(i.fontSrc&&!i.fontFamily){i.fontSrc=Object(r["a"])(i.fontSrc);var a=i.fontSrc.substr(i.fontSrc.lastIndexOf("/")+1).replace(/\./g,"-");i.fontFamily=a}i.color="transparent"===t.type?"#fff":i.color||t.textColor,i.fontSize=i.fontSize||("default"===t.type?"27px":"22px"),i.fontWeight=i.fontWeight||"normal",e.push(i)}),e}},methods:{_back:function(){1===getCurrentPages().length?uni.reLaunch({url:"/"}):uni.navigateBack({from:"backButton"})},_onBtnClick:function(e){t.emit("onNavigationBarButtonTap",Object.assign({},this.btns[e],{index:e}))},_formatBtnFontText:function(t){if(t.fontSrc&&t.fontFamily){var e='@font-face{\n font-family: "'.concat(t.fontFamily,'";\n src: url("').concat(t.fontSrc,'") format("truetype")\n }');return Object(i["a"])(e,"uni-btn-font-"+t.fontFamily),t.text.replace("\\u","&#x")}return o[t.type]?o[t.type]:t.text||""},_formatBtnStyle:function(t){var e={color:t.color,fontSize:t.fontSize,fontWeight:t.fontWeight};return t.fontFamily&&(e.fontFamily=t.fontFamily),e}}}}).call(this,n("0dd1"))},a201:function(t,e,n){"use strict";n.r(e),n.d(e,"request",function(){return o});var i={OPTIONS:"OPTIONS",GET:"GET",HEAD:"HEAD",POST:"POST",PUT:"PUT",DELETE:"DELETE",TRACE:"TRACE",CONNECT:"CONNECT"},r={JSON:"JSON"},a={TEXT:"TEXT",ARRAYBUFFER:"ARRAYBUFFER"},o={url:{type:String,required:!0},data:{type:[Object,String,ArrayBuffer],validator:function(t,e){e.data=t||""}},header:{type:Object,validator:function(t,e){e.header=t||{}}},method:{type:String,validator:function(t,e){t=(t||"").toUpperCase(),e.method=Object.values(i).indexOf(t)<0?i.GET:t}},dataType:{type:String,validator:function(t,e){e.dataType=(t||r.JSON).toUpperCase()}},responseType:{type:String,validator:function(t,e){t=(t||"").toUpperCase(),e.responseType=Object.values(a).indexOf(t)<0?a.TEXT:t}}}},a3da:function(t,e,n){},a3e5:function(t,e,n){"use strict";var i=n("3596"),r=n.n(i);r.a},a470:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("65a8");function r(){if(uni.canIUse("css.var")){var t=document.documentElement.style;return{top:parseInt(t.getPropertyValue("--window-top"))||0,bottom:parseInt(t.getPropertyValue("--window-bottom"))||0}}var e=0,n=0,r=getCurrentPages();if(r.length){var a=r[r.length-1].$parent.$parent;e=a.showNavigationBar&&"transparent"!==a.navigationBar.type?i["a"]:0}var o=getApp();return o&&(n=o.$children[0].showTabBar?i["b"]:0),{top:e,bottom:n}}},a4cf:function(t,e,n){"use strict";n.r(e),function(t){function i(e,n){var i=e.src,r=t,a=r.invokeCallbackHandler,o=new Image;o.onload=function(){a(n,{errMsg:"getImageInfo:ok",width:o.naturalWidth,height:o.naturalHeight})},o.onerror=function(t){a(n,{errMsg:"getImageInfo:fail"})},o.src=i}n.d(e,"getImageInfo",function(){return i})}.call(this,n("0dd1"))},a5ec:function(t,e,n){"use strict";var i=n("8cfc"),r=n.n(i);r.a},a741:function(t,e,n){"use strict";(function(t,i){n.d(e,"a",function(){return o}),n.d(e,"b",function(){return s});var r=n("f2b3");function a(t,e,n){return Object(r["e"])(t.$options[e])&&t.$options[e].apply(t,n)}function o(e,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),o=2;o2?r-2:0),s=2;s\n/,"").replace(/\n/,"").replace(/\n/,"")}function a(t){return t.reduce(function(t,e){var n=e.value,i=e.name;return n.match(/ /)&&"style"!==i&&(n=n.split(" ")),t[i]?Array.isArray(t[i])?t[i].push(n):t[i]=[t[i],n]:t[i]=n,t},{})}function o(e){e=r(e);var n=[],o={node:"root",children:[]};return Object(i["a"])(e,{start:function(t,e,i){var r={name:t};if(0!==e.length&&(r.attrs=a(e)),i){var s=n[0]||o;s.children||(s.children=[]),s.children.push(r)}else n.unshift(r)},end:function(e){var i=n.shift();if(i.name!==e&&t.error("invalid state: mismatch end tag"),0===n.length)o.children.push(i);else{var r=n[0];r.children||(r.children=[]),r.children.push(i)}},chars:function(t){var e={type:"text",text:t};if(0===n.length)o.children.push(e);else{var i=n[0];i.children||(i.children=[]),i.children.push(e)}},comment:function(t){var e={node:"comment",text:t},i=n[0];i.children||(i.children=[]),i.children.push(e)}}),o.children}}).call(this,n("3ad9")["default"])},b34d:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-form",t._g({},t.$listeners),[n("span",[t._t("default")],2)])},r=[],a=n("8af1"),o={name:"Form",mixins:[a["c"]],data:function(){return{childrenList:[]}},listeners:{"@form-submit":"_onSubmit","@form-reset":"_onReset","@form-group-update":"_formGroupUpdateHandler"},methods:{_onSubmit:function(t){var e={};this.childrenList.forEach(function(t){t._getFormData&&t._getFormData().key&&(e[t._getFormData().key]=t._getFormData().value)}),this.$trigger("submit",t,{value:e})},_onReset:function(t){this.$trigger("reset",t,{}),this.childrenList.forEach(function(t){t._resetFormData&&t._resetFormData()})},_formGroupUpdateHandler:function(t){if("add"===t.type)this.childrenList.push(t.vm);else{var e=this.childrenList.indexOf(t.vm);this.childrenList.splice(e,1)}}}},s=o,c=(n("6fc7"),n("2877")),u=Object(c["a"])(s,i,r,!1,null,null,null);u.options.__file="index.vue";e["default"]=u.exports},b564:function(t,e,n){"use strict";(function(t){var i=n("8aec"),r=n("f2b3"),a=!!r["h"]&&{passive:!0};e["a"]={name:"ScrollView",mixins:[i["a"]],props:{scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1}},data:function(){return{lastScrollTop:this.scrollTopNumber,lastScrollLeft:this.scrollLeftNumber,lastScrollToUpperTime:0,lastScrollToLowerTime:0}},computed:{upperThresholdNumber:function(){var t=Number(this.upperThreshold);return isNaN(t)?50:t},lowerThresholdNumber:function(){var t=Number(this.lowerThreshold);return isNaN(t)?50:t},scrollTopNumber:function(){return Number(this.scrollTop)||0},scrollLeftNumber:function(){return Number(this.scrollLeft)||0}},watch:{scrollTopNumber:function(t){this._scrollTopChanged(t)},scrollLeftNumber:function(t){this._scrollLeftChanged(t)},scrollIntoView:function(t){this._scrollIntoViewChanged(t)}},mounted:function(){var t=this;this._attached=!0,this._scrollTopChanged(this.scrollTopNumber),this._scrollLeftChanged(this.scrollLeftNumber),this._scrollIntoViewChanged(this.scrollIntoView),this.__handleScroll=function(e){event.preventDefault(),event.stopPropagation(),t._handleScroll.bind(t,event)()};var e=null,n=null;this.__handleTouchMove=function(i){var r=i.touches[0].pageX,a=i.touches[0].pageY,o=t.$refs.main;if(null===n)if(Math.abs(r-e.x)>Math.abs(a-e.y))if(t.scrollX){if(0===o.scrollLeft&&r>e.x)return void(n=!1);if(o.scrollWidth===o.offsetWidth+o.scrollLeft&&re.y)return void(n=!1);if(o.scrollHeight===o.offsetHeight+o.scrollTop&&an.scrollWidth-n.offsetWidth?t=n.scrollWidth-n.offsetWidth:"y"===e&&t>n.scrollHeight-n.offsetHeight&&(t=n.scrollHeight-n.offsetHeight);var i=0,r="";"x"===e?i=n.scrollLeft-t:"y"===e&&(i=n.scrollTop-t),0!==i&&(this.$refs.content.style.transition="transform .3s ease-out",this.$refs.content.style.webkitTransition="-webkit-transform .3s ease-out","x"===e?r="translateX("+i+"px) translateZ(0)":"y"===e&&(r="translateY("+i+"px) translateZ(0)"),this.$refs.content.removeEventListener("transitionend",this.__transitionEnd),this.$refs.content.removeEventListener("webkitTransitionEnd",this.__transitionEnd),this.__transitionEnd=this._transitionEnd.bind(this,t,e),this.$refs.content.addEventListener("transitionend",this.__transitionEnd),this.$refs.content.addEventListener("webkitTransitionEnd",this.__transitionEnd),"x"===e?n.style.overflowX="hidden":"y"===e&&(n.style.overflowY="hidden"),this.$refs.content.style.transform=r,this.$refs.content.style.webkitTransform=r)},_handleTrack:function(t){if("start"===t.detail.state)return this._x=t.detail.x,this._y=t.detail.y,void(this._noBubble=null);"end"===t.detail.state&&(this._noBubble=!1),null===this._noBubble&&this.scrollY&&(Math.abs(this._y-t.detail.y)/Math.abs(this._x-t.detail.x)>1?this._noBubble=!0:this._noBubble=!1),null===this._noBubble&&this.scrollX&&(Math.abs(this._x-t.detail.x)/Math.abs(this._y-t.detail.y)>1?this._noBubble=!0:this._noBubble=!1),this._x=t.detail.x,this._y=t.detail.y,this._noBubble&&t.stopPropagation()},_handleScroll:function(t){if(!(t.timeStamp-this._lastScrollTime<20)){this._lastScrollTime=t.timeStamp;var e=t.target;this.$trigger("scroll",t,{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,deltaX:this.lastScrollLeft-e.scrollLeft,deltaY:this.lastScrollTop-e.scrollTop}),this.scrollY&&(e.scrollTop<=this.upperThresholdNumber&&this.lastScrollTop-e.scrollTop>0&&t.timeStamp-this.lastScrollToUpperTime>200&&(this.$trigger("scrolltoupper",t,{direction:"top"}),this.lastScrollToUpperTime=t.timeStamp),e.scrollTop+e.offsetHeight+this.lowerThresholdNumber>=e.scrollHeight&&this.lastScrollTop-e.scrollTop<0&&t.timeStamp-this.lastScrollToLowerTime>200&&(this.$trigger("scrolltolower",t,{direction:"bottom"}),this.lastScrollToLowerTime=t.timeStamp)),this.scrollX&&(e.scrollLeft<=this.upperThresholdNumber&&this.lastScrollLeft-e.scrollLeft>0&&t.timeStamp-this.lastScrollToUpperTime>200&&(this.$trigger("scrolltoupper",t,{direction:"left"}),this.lastScrollToUpperTime=t.timeStamp),e.scrollLeft+e.offsetWidth+this.lowerThresholdNumber>=e.scrollWidth&&this.lastScrollLeft-e.scrollLeft<0&&t.timeStamp-this.lastScrollToLowerTime>200&&(this.$trigger("scrolltolower",t,{direction:"right"}),this.lastScrollToLowerTime=t.timeStamp)),this.lastScrollTop=e.scrollTop,this.lastScrollLeft=e.scrollLeft}},_scrollTopChanged:function(t){this.scrollY&&(this._innerSetScrollTop?this._innerSetScrollTop=!1:this.scrollWithAnimation?this.scrollTo(t,"y"):this.$refs.main.scrollTop=t)},_scrollLeftChanged:function(t){this.scrollX&&(this._innerSetScrollLeft?this._innerSetScrollLeft=!1:this.scrollWithAnimation?this.scrollTo(t,"x"):this.$refs.main.scrollLeft=t)},_scrollIntoViewChanged:function(e){if(e){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(e))return t.group('scroll-into-view="'+e+'" 有误'),t.error("id 属性值格式错误。如不能以数字开头。"),void t.groupEnd();var n=this.$el.querySelector("#"+e);if(n){var i=this.$refs.main.getBoundingClientRect(),r=n.getBoundingClientRect();if(this.scrollX){var a=r.left-i.left,o=this.$refs.main.scrollLeft,s=o+a;this.scrollWithAnimation?this.scrollTo(s,"x"):this.$refs.main.scrollLeft=s}if(this.scrollY){var c=r.top-i.top,u=this.$refs.main.scrollTop,l=u+c;this.scrollWithAnimation?this.scrollTo(l,"y"):this.$refs.main.scrollTop=l}}}},_transitionEnd:function(t,e){this.$refs.content.style.transition="",this.$refs.content.style.webkitTransition="",this.$refs.content.style.transform="",this.$refs.content.style.webkitTransform="";var n=this.$refs.main;"x"===e?(n.style.overflowX=this.scrollX?"auto":"hidden",n.scrollLeft=t):"y"===e&&(n.style.overflowY=this.scrollY?"auto":"hidden",n.scrollTop=t),this.$refs.content.removeEventListener("transitionend",this.__transitionEnd),this.$refs.content.removeEventListener("webkitTransitionEnd",this.__transitionEnd)},getScrollPosition:function(){var t=this.$refs.main;return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}}}}).call(this,n("3ad9")["default"])},b5ca:function(t,e,n){"use strict";n.r(e),n.d(e,"setTabBarItem",function(){return c}),n.d(e,"setTabBarStyle",function(){return u}),n.d(e,"hideTabBar",function(){return l}),n.d(e,"showTabBar",function(){return h}),n.d(e,"hideTabBarRedDot",function(){return d}),n.d(e,"showTabBarRedDot",function(){return f}),n.d(e,"removeTabBarBadge",function(){return p}),n.d(e,"setTabBarBadge",function(){return g});var i=n("f2b3"),r=["text","iconPath","selectedIconPath"],a=["color","selectedColor","backgroundColor","borderStyle"],o=["badge","redDot"];function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=getApp();if(n){var s=e.index,c=n.$children[0].tabBar;switch(t){case"showTabBar":n.$children[0].hideTabBar=!1;break;case"hideTabBar":n.$children[0].hideTabBar=!0;break;case"setTabBarItem":Object(i["g"])(c.list[s],r,e);break;case"setTabBarStyle":Object(i["g"])(c,a,e);break;case"showTabBarRedDot":Object(i["g"])(c.list[s],o,{badge:"",redDot:!0});break;case"setTabBarBadge":Object(i["g"])(c.list[s],o,{badge:e.text,redDot:!0});break;case"hideTabBarRedDot":case"removeTabBarBadge":Object(i["g"])(c.list[s],o,{badge:"",redDot:!1});break}}return{}}function c(t){return s("setTabBarItem",t)}function u(t){return s("setTabBarStyle",t)}function l(t){return s("hideTabBar",t)}function h(t){return s("showTabBar",t)}function d(t){return s("hideTabBarRedDot",t)}function f(t){return s("showTabBarRedDot",t)}function p(t){return s("removeTabBarBadge",t)}function g(t){return s("setTabBarBadge",t)}},b628:function(t,e,n){"use strict";var i=n("7272"),r=n.n(i);r.a},b705:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-rich-text",t._g({},t.$listeners),[n("div")])},r=[],a=n("b10a"),o=n("f2b3"),s={a:"",abbr:"",b:"",blockquote:"",br:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",ol:["start","type"],p:"",q:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","rowspan","height","width"],tfoot:"",th:["colspan","rowspan","height","width"],thead:"",tr:"",ul:""},c={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'"};function u(t){return t.replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,function(t,e){if(Object(o["c"])(c,e)&&c[e])return c[e];if(/^#[0-9]{1,4}$/.test(e))return String.fromCharCode(e.slice(1));if(/^#x[0-9a-f]{1,4}$/i.test(e))return String.fromCharCode("0"+e.slice(1));var n=document.createElement("div");return n.innerHTML=t,n.innerText||n.textContent})}function l(t,e){return t.forEach(function(t){if(Object(o["f"])(t))if(Object(o["c"])(t,"type")&&"node"!==t.type)"text"===t.type&&"string"===typeof t.text&&""!==t.text&&e.appendChild(document.createTextNode(u(t.text)));else{if("string"!==typeof t.name||!t.name)return;var n=t.name.toLowerCase();if(!Object(o["c"])(s,n))return;var i=document.createElement(n);if(!i)return;var r=t.attrs;if(Object(o["f"])(r)){var a=s[n]||[];Object.keys(r).forEach(function(t){var e=r[t];switch(t){case"class":case"style":i.setAttribute(t,e);break;default:-1!==a.indexOf(t)&&i.setAttribute(t,e)}})}var c=t.children;Array.isArray(c)&&c.length&&l(t.children,i),e.appendChild(i)}}),e}var h={name:"RichText",props:{nodes:{type:[Array,String],default:function(){return[]}}},watch:{nodes:function(t){this._renderNodes(t)}},mounted:function(){this._renderNodes(this.nodes)},methods:{_renderNodes:function(t){"string"===typeof t&&(t=Object(a["a"])(t));var e=l(t,document.createDocumentFragment());this.$el.firstChild.innerHTML="",this.$el.firstChild.appendChild(e)}}},d=h,f=(n("1f6b"),n("2877")),p=Object(f["a"])(d,i,r,!1,null,null,null);p.options.__file="index.vue";e["default"]=p.exports},b7a0:function(t,e,n){},b7b5:function(t,e,n){"use strict";n.r(e);var i=n("27a7"),r=n("ed1a"),a=["scanCode","setScreenBrightness","getScreenBrightness","setKeepScreenOn","addPhoneContact","saveImageToPhotosAlbum","saveVideoToPhotosAlbum","setClipboardData","getClipboardData","getRecorderManager","getProvider","login","getUserInfo","share","requestPayment","subscribePush","unsubscribePush","onPush","offPush"],o=n("d719"),s=n("d218"),c=n("abbf");n.d(e,"getApp",function(){return c["b"]}),n.d(e,"getCurrentPages",function(){return c["c"]});var u=Object.create(null);u.version="0.0.1",a.forEach(function(t){u[t]=Object(i["c"])(t)}),Object.keys(o["default"]).forEach(function(t){u[t]=Object(r["d"])(t,Object(i["b"])(t,o["default"][t]))}),Object.keys(s["default"]).forEach(function(t){u[t]=Object(r["d"])(t,Object(i["b"])(t,s["default"][t]))});e["default"]=u},b865:function(t,e,n){"use strict";(function(t){function i(e,n,i){t.UniViewJSBridge.subscribeHandler(e,n,i)}n.d(e,"a",function(){return i})}).call(this,n("c8ba"))},b866:function(t,e,n){"use strict";n.r(e),n.d(e,"getImageInfo",function(){return r});var i=n("cb0f"),r={src:{type:String,required:!0,validator:function(t,e){e.src=Object(i["a"])(t)}}}},b98b:function(t,e,n){},ba15:function(t,e,n){"use strict";var i=function(t,e,n,i){t.addEventListener(e,n,{passive:!1})};e["a"]={methods:{touchtrack:function(t,e,n){var r=this,a=0,o=0,s=0,c=0,u=function(t,n,i,u){if(!1===r[e]({target:t.target,currentTarget:t.currentTarget,preventDefault:t.preventDefault.bind(t),stopPropagation:t.stopPropagation.bind(t),touches:t.touches,changedTouches:t.changedTouches,detail:{state:n,x0:i,y0:u,dx:i-a,dy:u-o,ddx:i-s,ddy:u-c,timeStamp:t.timeStamp}}))return!1},l=null;i(t,"touchstart",function(t){if(1===t.touches.length&&!l)return l=t,a=s=t.touches[0].pageX,o=c=t.touches[0].pageY,u(t,"start",a,o)}),i(t,"touchmove",function(t){if(1===t.touches.length&&l){var e=u(t,"move",t.touches[0].pageX,t.touches[0].pageY);return s=t.touches[0].pageX,c=t.touches[0].pageY,t.preventDefault(),e}}),i(t,"touchend",function(t){if(0===t.touches.length&&l)return l=null,u(t,"end",t.changedTouches[0].pageX,t.changedTouches[0].pageY)}),i(t,"touchcancel",function(t){if(l){var e=l;return l=null,u(t,n?"cancel":"end",e.touches[0].pageX,e.touches[0].pageY)}})}}}},bab8:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"system-header"},[n("div",{staticClass:"header-text"},[t._t("default")],2),n("div",{staticClass:"header-btn header-back",on:{click:t._back}},[n("svg",{staticClass:"header-btn-img",attrs:{width:"200px",height:"200.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M729.6 931.2l-416-425.6 416-416c9.6-9.6 9.6-25.6 0-35.2-9.6-9.6-25.6-9.6-35.2 0l-432 435.2c-9.6 9.6-9.6 25.6 0 35.2l432 441.6c9.6 9.6 25.6 9.6 35.2 0C739.2 956.8 739.2 940.8 729.6 931.2z"}})])]),t.confirm?n("div",{staticClass:"header-btn header-confirm",on:{click:t._confirm}},[n("svg",{staticClass:"header-btn-img",attrs:{width:"200px",height:"200.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M939.6960642844446 226.08613831111114c-14.635971697777777-13.725872355555557-37.719236835555556-13.070208568888889-51.445109191111115 1.6029502577777779L402.69993870222225 744.6571451733333 137.46159843555557 483.31364238222227c-14.344349013333334-14.12709944888889-37.392384-13.98030904888889-51.51948344888889 0.3640399644444444-14.12709944888889 14.30911886222222-13.945078897777778 37.392384 0.40122709333333334 51.482296319999996l291.8171704888889 287.48392106666665c0.10960327111111111 0.10960327111111111 0.2544366933333333 0.1448334222222222 0.3640399644444444 0.2544366933333333s0.1448334222222222 0.2544366933333333 0.2544366933333333 0.3640399644444444c2.293843057777778 2.1842397866666667 5.061329351111111 3.4231500799999997 7.719212373333333 4.879309937777777 1.3113264355555554 0.7652670577777777 2.43867648 1.8926159644444445 3.822419057777778 2.43867648 4.2960634311111106 1.6753664 8.846562417777779 2.548279751111111 13.361832391111111 2.548279751111111 4.769706666666666 0 9.539412195555554-0.9472864711111111 13.98030904888889-2.839903573333333 1.4933469866666664-0.6184766577777778 2.6578830222222223-1.8926159644444445 4.0416267377777775-2.6950701511111115 2.7302991644444448-1.6029502577777779 5.5702027377777785-2.9495068444444446 7.901232924444444-5.315766044444445 0.10960327111111111-0.10960327111111111 0.1448334222222222-0.2916238222222222 0.2544366933333333-0.40122709333333334 0.07241614222222222-0.10960327111111111 0.21920654222222222-0.1448334222222222 0.3268528355555555-0.2544366933333333L941.2579134577779 277.5273335466667C955.0953460622222 262.9305059555556 954.3320359822221 239.8844279466666 939.6960642844446 226.08613831111114z"}})])]):t._e()])},r=[],a={name:"SystemHeader",props:{confirm:{type:Boolean,default:!1}},methods:{_back:function(){this.$emit("back")},_confirm:function(){this.$emit("confirm")}}},o=a,s=(n("0a32"),n("2877")),c=Object(s["a"])(o,i,r,!1,null,null,null);c.options.__file="system-header.vue";e["a"]=c.exports},bacd:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-canvas",[n("canvas",{ref:"canvas",attrs:{"canvas-id":t.canvasId,"disable-scroll":t.disableScroll,width:"300",height:"150"},on:{touchmove:t._touchmove}}),n("v-uni-resize-sensor",{ref:"sensor",on:{resize:t._resize}})],1)},r=[],a=n("e1df"),o=a["a"],s=(n("0741"),n("2877")),c=Object(s["a"])(o,i,r,!1,null,null,null);c.options.__file="index.vue";e["default"]=c.exports},bbc6:function(t,e,n){"use strict";(function(t){var i=n("cb0f");e["a"]={name:"TabBar",props:{position:{default:"bottom",validator:function(t){return-1!==["bottom","top"].indexOf(t)}},color:{type:String,default:"#999"},selectedColor:{type:String,default:"#007aff"},backgroundColor:{type:String,default:"#f7f7fa"},borderStyle:{default:"black",validator:function(t){return-1!==["black","white"].indexOf(t)}},list:{type:Array,default:function(){return[]}}},computed:{borderColor:function(){return"white"===this.borderStyle?"rgba(255, 255, 255, 0.33)":"rgba(0, 0, 0, 0.33)"}},watch:{$route:function(t,e){t.meta.isTabBar&&(this.__path__=t.path)}},beforeCreate:function(){this.__path__=this.$route.path},methods:{_getRealPath:function(t){return 0!==t.indexOf("/")&&(t="/"+t),Object(i["a"])(t)},_switchTab:function(e,n){var i=e.text,r=e.pagePath,a="/"+r;a===__uniRoutes[0].alias&&(a="/"),this.$route.path!==a?(this.__path__=this.$route.path,uni.switchTab({url:a})):t.emit("onTabItemTap",{index:n,text:i,pagePath:r})}}}}).call(this,n("0dd1"))},bdb1:function(t,e,n){var i={"./can-i-use.js":"7771","./context/audio.js":"2c67","./context/canvas.js":"303f","./context/inner-audio.js":"57a7","./context/map.js":"8e58","./context/video.js":"d16d","./create-selector-query.js":"c420","./index.js":"d719","./location.js":"2ae7","./media/get-image-info.js":"a4cf","./media/preview-image.js":"898f","./navigation-bar.js":"f8c2","./network/request.js":"82c2","./network/socket.js":"811a","./page-event.js":"9eba","./popup.js":"4062","./route.js":"5bd2","./storage.js":"c84e","./tab-bar.js":"b5ca","./upx2px.js":"c75f"};function r(t){var e=a(t);return n(e)}function a(t){var e=i[t];if(!(e+1)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return e}r.keys=function(){return Object.keys(i)},r.resolve=a,t.exports=r,r.id="bdb1"},be12:function(t,e,n){"use strict";(function(t){function n(t,e,n){var i=Array.prototype.slice.call(t.changedTouches).filter(function(t){return t.identifier===e})[0];return!!i&&(t.deltaY=i.pageY-n,!0)}var i="pulling",r="reached",a="aborting",o="refreshing",s="restoring";e["a"]={mounted:function(){var e=this;this.enablePullDownRefresh&&(this.refreshContainerElem=this.$refs.refresh.$el,this.refreshControllerElem=this.refreshContainerElem.querySelector(".uni-page-refresh"),this.refreshInnerElemStyle=this.refreshControllerElem.querySelector(".uni-page-refresh-inner").style,t.on(this.$route.params.__id__+".startPullDownRefresh",function(){e.state||(e.state=o,e._addClass(),setTimeout(function(){e._refreshing()},50))}),t.on(this.$route.params.__id__+".stopPullDownRefresh",function(){e.state===o&&(e._removeClass(),e.state=s,e._addClass(),e._restoring(function(){e._removeClass(),e.state=e.distance=e.offset=null}))}))},methods:{_touchstart:function(t){var e=t.changedTouches[0];this.touchId=e.identifier,this.startY=e.pageY,[a,o,s].indexOf(this.state)>=0?this.canRefresh=!1:this.canRefresh=!0},_touchmove:function(t){if(this.canRefresh&&n(t,this.touchId,this.startY)){var e=t.deltaY;if(0===(document.documentElement.scrollTop||document.body.scrollTop)){if(!(e<0)||this.state){t.preventDefault(),null==this.distance&&(this.offset=e,this.state=i,this._addClass()),e-=this.offset,e<0&&(e=0),this.distance=e;var a=e>=this.refreshOptions.range&&this.state!==r,o=e1?i=1:i*=i*i;var r=Math.round(t/(this.refreshOptions.range/this.refreshOptions.height)),a=r?"translate3d(-50%, "+r+"px, 0)":0;n.webkitTransform=a,n.clip="rect("+(45-r)+"px,45px,45px,-5px)",this.refreshInnerElemStyle.webkitTransform="rotate("+360*i+"deg)"}},_aborting:function(t){var e=this.refreshControllerElem;if(e){var n=e.style;if(n.webkitTransform){n.webkitTransition="-webkit-transform 0.3s",n.webkitTransform="translate3d(-50%, 0, 0)";var i=function i(){r&&clearTimeout(r),e.removeEventListener("webkitTransitionEnd",i),n.webkitTransition="",t()};e.addEventListener("webkitTransitionEnd",i);var r=setTimeout(i,350)}else t()}},_refreshing:function(){var e=this.refreshControllerElem;if(e){var n=e.style;n.webkitTransition="-webkit-transform 0.2s",n.webkitTransform="translate3d(-50%, "+this.refreshOptions.height+"px, 0)",t.emit("onPullDownRefresh",{},this.$route.params.__id__)}},_restoring:function(t){var e=this.refreshControllerElem;if(e){var n=e.style;n.webkitTransition="-webkit-transform 0.3s",n.webkitTransform+=" scale(0.01)";var i=function i(){r&&clearTimeout(r),e.removeEventListener("webkitTransitionEnd",i),n.webkitTransition="",n.webkitTransform="translate3d(-50%, 0, 0)",t()};e.addEventListener("webkitTransitionEnd",i);var r=setTimeout(i,350)}}}}}).call(this,n("0dd1"))},bf53:function(t,e,n){},bfea:function(t,e,n){"use strict";var i=n("cf48"),r=n.n(i);r.a},c33f:function(t,e,n){"use strict";var i=n("f766"),r=n.n(i);r.a},c35d:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-picker",{on:{click:function(e){return e.stopPropagation(),t._click(e)}}},[n("div",[t._t("default")],2)])},r=[],a=n("58ae"),o=a["a"],s=(n("6f00"),n("2877")),c=Object(s["a"])(o,i,r,!1,null,null,null);c.options.__file="index.vue";e["default"]=c.exports},c3d0:function(t,e,n){},c41f:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-cover-view")},r=[],a={name:"CoverView"},o=a,s=n("2877"),c=Object(s["a"])(o,i,r,!1,null,null,null);c.options.__file="index.vue";e["default"]=c.exports},c420:function(t,e,n){"use strict";n.r(e),function(t,i){n.d(e,"createSelectorQuery",function(){return f});var r=n("f2b3"),a=n("62b5");function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n=5&&t<=18?t:18},default:18},name:{type:String},address:{type:String}}},c61c:function(t,e,n){"use strict";function i(t){return Math.sqrt(t.x*t.x+t.y*t.y)}n.r(e);var r,a,o={name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},data:function(){return{width:0,height:0,items:[]}},created:function(){this.gapV={x:null,y:null},this.pinchStartLen=null},mounted:function(){this._getWH(),this.items.forEach(function(t,e){t.componentInstance.setParent()})},methods:{_find:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.items,n=this.$el;function i(t){for(var r=0;r1){var n={x:e[1].pageX-e[0].pageX,y:e[1].pageY-e[0].pageY};if(this.pinchStartLen=i(n),this.gapV=n,!this.scaleArea){var r=this._find(e[0].target),a=this._find(e[1].target);this._scaleMovableView=r&&r===a?r:null}}},_touchmove:function(t){var e=t.touches;if(e&&e.length>1){t.preventDefault();var n={x:e[1].pageX-e[0].pageX,y:e[1].pageY-e[0].pageY};if(null!==this.gapV.x&&this.pinchStartLen>0){var r=i(n)/this.pinchStartLen;this._updateScale(r)}this.gapV=n}},_touchend:function(t){var e=t.touches;e&&e.length||t.changedTouches&&(this.gapV.x=0,this.gapV.y=0,this.pinchStartLen=null,this.scaleArea?this.items.forEach(function(t){t.componentInstance._endScale()}):this._scaleMovableView&&this._scaleMovableView.componentInstance._endScale())},_updateScale:function(t){t&&1!==t&&(this.scaleArea?this.items.forEach(function(e){e.componentInstance._setScale(t)}):this._scaleMovableView&&this._scaleMovableView.componentInstance._setScale(t))},_getWH:function(){var t=window.getComputedStyle(this.$el),e=this.$el.getBoundingClientRect();this.width=e.width-["Left","Right"].reduce(function(e,n){return e+parseFloat(t["border"+n+"Width"])+parseFloat(t["padding"+n])},0),this.height=e.height-["Top","Bottom"].reduce(function(e,n){return e+parseFloat(t["border"+n+"Width"])+parseFloat(t["padding"+n])},0)}},render:function(t){var e=this,n=[];this.$slots.default&&this.$slots.default.forEach(function(t){t.componentOptions&&"v-uni-movable-view"===t.componentOptions.tag&&n.push(t)}),this.items=n;var i=Object.assign({},this.$listeners),r=["touchstart","touchmove","touchend"];return r.forEach(function(t){var n=i[t],r=e["_".concat(t)];i[t]=n?[].concat(n,r):r}),t("uni-movable-area",{on:i},n)}},s=o,c=(n("a3e5"),n("2877")),u=Object(c["a"])(s,r,a,!1,null,null,null);u.options.__file="index.vue";e["default"]=u.exports},c630:function(t,e,n){},c63b:function(t,e,n){},c75f:function(t,e,n){"use strict";n.r(e),n.d(e,"checkDeviceWidth",function(){return c}),n.d(e,"upx2px",function(){return u});var i=1e-4,r=750,a=!1,o=0,s=0;function c(){var t=uni.getSystemInfoSync(),e=t.platform,n=t.pixelRatio,i=t.windowWidth;o=i,s=n,a="ios"===e}function u(t,e){return 0===o&&c(),t=Number(t),0===t?0:(t=t/r*(e||o),t=Math.floor(t+i),0===t?1!==s&&a?.5:1:t)}},c84e:function(t,e,n){"use strict";function i(t){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.key,n=t.data,r={type:"object"===i(n)?"object":"string",data:n};localStorage.setItem(e,JSON.stringify(r));var a=localStorage.getItem("uni-storage-keys");if(a){var o=JSON.parse(a);o.indexOf(e)<0&&(o.push(e),localStorage.setItem("uni-storage-keys",JSON.stringify(o)))}else localStorage.setItem("uni-storage-keys",JSON.stringify([e]));return{errMsg:"setStorage:ok"}}function a(t,e){r({key:t,data:e})}function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.key,n=localStorage.getItem(e);return n?{data:JSON.parse(n).data,errMsg:"getStorage:ok"}:{data:"",errMsg:"getStorage:fail"}}function s(t){var e=o({key:t});return e.data}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.key,n=localStorage.getItem("uni-storage-keys");if(n){var i=JSON.parse(n),r=i.indexOf(e);i.splice(r,1),localStorage.setItem("uni-storage-keys",JSON.stringify(i))}return localStorage.removeItem(e),{errMsg:"removeStorage:ok"}}function u(t){c({key:t})}function l(){return localStorage.clear(),{errMsg:"clearStorage:ok"}}function h(){l()}function d(){var t=localStorage.getItem("uni-storage-keys");return t?{keys:JSON.parse(t),currentSize:0,limitSize:0,errMsg:"getStorageInfo:ok"}:{keys:"",currentSize:0,limitSize:0,errMsg:"getStorageInfo:fail"}}function f(){var t=d();return delete t.errMsg,t}n.r(e),n.d(e,"setStorage",function(){return r}),n.d(e,"setStorageSync",function(){return a}),n.d(e,"getStorage",function(){return o}),n.d(e,"getStorageSync",function(){return s}),n.d(e,"removeStorage",function(){return c}),n.d(e,"removeStorageSync",function(){return u}),n.d(e,"clearStorage",function(){return l}),n.d(e,"clearStorageSync",function(){return h}),n.d(e,"getStorageInfo",function(){return d}),n.d(e,"getStorageInfoSync",function(){return f})},c863:function(t,e,n){},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},c8ed:function(t,e,n){"use strict";var i=n("edd3"),r=n.n(i);r.a},c96e:function(t,e,n){"use strict";var i=n("2c0a"),r=n.n(i);r.a},cb0f:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("0f74"),r=/^(http|https|file):\/\//,a=/^data:[a-z-]+\/[a-z-]+;base64,/;function o(t){return __uniConfig.router.base?__uniConfig.router.base+t:t}function s(t){if(0===t.indexOf("/"))return o(t.substr(1));if(r.test(t)||a.test(t)||0===t.indexOf("blob:"))return t;var e=getCurrentPages();return e.length?o(Object(i["a"])(e[e.length-1].$page.route,t).substr(1)):t}},cef5:function(t,e,n){"use strict";n.r(e),n.d(e,"getProvider",function(){return r});var i={OAUTH:"OAUTH",SHARE:"SHARE",PAYMENT:"PAYMENT",PUSH:"PUSH"},r={service:{type:String,required:!0,validator:function(t,e){if(t=(t||"").toUpperCase(),t&&Object.values(i).indexOf(t)<0)return"service error"}}}},cf48:function(t,e,n){},d078:function(t,e,n){},d16d:function(t,e,n){"use strict";n.r(e),function(t){function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=t.text,n=t.color;o(this.id,this.pageId,"sendDanmu",{text:e,color:n})}},{key:"playbackRate",value:function(t){~s.indexOf(t)||(t=1),o(this.id,this.pageId,"playbackRate",{rate:t})}},{key:"requestFullScreen",value:function(){o(this.id,this.pageId,"requestFullScreen")}},{key:"exitFullScreen",value:function(){o(this.id,this.pageId,"exitFullScreen")}},{key:"showStatusBar",value:function(){o(this.id,this.pageId,"showStatusBar")}},{key:"hideStatusBar",value:function(){o(this.id,this.pageId,"hideStatusBar")}}]),t}();function u(e,n){if(n)return new c(e,n.$page.id);var i=getApp();if(i.$route&&i.$route.params.__id__)return new c(e,i.$route.params.__id__);t.emit("onError","createVideoContext:fail")}}.call(this,n("0dd1"))},d218:function(t,e,n){"use strict";n.r(e);var i=Object.create(null),r=n("e3a7");r.keys().forEach(function(t){"./index.js"!==t&&Object.assign(i,r(t))}),e["default"]=i},d3bd:function(t,e,n){"use strict";n.r(e);var i,r,a=n("8af1"),o={name:"Button",mixins:[a["b"],a["a"],a["c"]],props:{hoverClass:{type:String,default:"button-hover"},disabled:{type:[Boolean,String],default:!1},id:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:Number,default:20},hoverStayTime:{type:Number,default:70},formType:{type:String,default:"",validator:function(t){return~["","submit","reset"].indexOf(t)}}},data:function(){return{clickFunction:null}},methods:{_onClick:function(t,e){this.disabled||(e&&this.$el.click(),this.formType&&this.$dispatch("Form","submit"===this.formType?"uni-form-submit":"uni-form-reset",{type:this.formType}))},_bindObjectListeners:function(t,e){if(e)for(var n in e){var i=t.on[n],r=e[n];t.on[n]=i?[].concat(i,r):r}return t}},render:function(t){var e=this,n=Object.create(null);return this.$listeners&&Object.keys(this.$listeners).forEach(function(t){(!e.disabled||"click"!==t&&"tap"!==t)&&(n[t]=e.$listeners[t])}),this.hoverClass&&"none"!==this.hoverClass?t("uni-button",this._bindObjectListeners({class:[this.hovering?this.hoverClass:""],attrs:{disabled:this.disabled},on:{touchstart:this._hoverTouchStart,touchend:this._hoverTouchEnd,touchcancel:this._hoverTouchCancel,click:this._onClick}},n),this.$slots.default):t("uni-button",this._bindObjectListeners({class:[this.hovering?this.hoverClass:""],attrs:{disabled:this.disabled},on:{click:this._onClick}},n),this.$slots.default)},listeners:{"label-click":"_onClick","@label-click":"_onClick"}},s=o,c=(n("5676"),n("2877")),u=Object(c["a"])(s,i,r,!1,null,null,null);u.options.__file="index.vue";e["default"]=u.exports},d4b6:function(t,e,n){"use strict";n.d(e,"b",function(){return f}),n.d(e,"a",function(){return k});var i=n("f2b3"),r=n("85b6"),a=n("24d9"),o=n("a470");function s(t,e){return l(t)||u(t,e)||c()}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function u(t,e){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done);i=!0)if(n.push(o.value),e&&n.length===e)break}catch(c){r=!0,a=c}finally{try{i||null==s["return"]||s["return"]()}finally{if(r)throw a}}return n}function l(t){if(Array.isArray(t))return t}function h(t,e){var n={id:t.id,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,dataset:Object(r["b"])(t.dataset)};return e&&Object.assign(n,e),n}function d(t){if(t){for(var e=[],n=Object(o["a"])(),i=n.top,r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return e._processed?(e.type=n.type||t,e):Object(a["b"])({type:n.type||t,timeStamp:e.timeStamp||0,detail:n,target:h(i,n),currentTarget:h(r),touches:d(e.touches),changedTouches:d(e.changedTouches),preventDefault:function(){},stopPropagation:function(){}})}var p=350,g=10,v=!!i["h"]&&{passive:!0},m=!1;function b(){m&&(clearTimeout(m),m=!1)}var _=0,y=0;function w(t){if(b(),1===t.touches.length){var e=s(t.touches,1),n=e[0],i=n.pageX,r=n.pageY;_=i,y=r,m=setTimeout(function(){t.target.dispatchEvent(new TouchEvent("longpress",{bubbles:!0,cancelable:!0,target:t.target,currentTarget:t.currentTarget,touches:t.touches,changedTouches:t.changedTouches}))},p)}}function S(t){if(m){if(1!==t.touches.length)return b();var e=s(t.touches,1),n=e[0],i=n.pageX,r=n.pageY;return Math.abs(i-_)>g||Math.abs(r-y)>g?b():void 0}}function k(){window.addEventListener("touchstart",w,v),window.addEventListener("touchmove",S,v),window.addEventListener("touchend",b,v),window.addEventListener("touchcancel",b,v)}},d5be:function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"chooseImage",function(){return c});var i=n("e2e2"),r=t,a=r.invokeCallbackHandler,o=null,s=function(t){var e=document.createElement("input");return e.type="file",e.style="visibility: hidden;z-index: -999;width: 0;height: 0;",e.accept="image/*",t.count>1&&(e.multiple="multiple"),1===t.sourceType.length&&"camera"===t.sourceType[0]&&(e.capture="camera"),e};function c(t,e){var n=t.count,r=t.sourceType;o&&(document.body.removeChild(o),o=null),o=s({count:n,sourceType:r}),document.body.appendChild(o),o.addEventListener("change",function(t){for(var n=[],r=[],o=t.target.files.length,s=0;s=e||n.radioList[e].radioChecked&&(n.radioList[r].radioChecked=!1)}))})},_getFormData:function(){var t={};if(""!==this.name){var e="";this.radioList.forEach(function(t){t.radioChecked&&(e=t.value)}),t["value"]=e,t["key"]=this.name}return t}}},s=o,c=(n("fb61"),n("2877")),u=Object(c["a"])(s,i,r,!1,null,null,null);u.options.__file="index.vue";e["default"]=u.exports},d68b:function(t,e,n){"use strict";n.r(e),n.d(e,"showModal",function(){return r}),n.d(e,"showToast",function(){return a}),n.d(e,"showLoading",function(){return o}),n.d(e,"showActionSheet",function(){return s});var i=n("cb0f"),r={title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"取消"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"确定"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean,default:!0}},a={title:{type:String,default:""},icon:{default:"success",validator:function(t,e){-1===["success","loading","none"].indexOf(t)&&(e.icon="success")}},image:{type:String,default:"",validator:function(t,e){t&&(e.image=Object(i["a"])(t))}},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!0}},o={title:{type:String,default:""},icon:{type:String,default:"loading"},duration:{type:Number,default:1e8},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!0}},s={itemList:{type:Array,required:!0,validator:function(t,e){if(!t.length)return"parameter.itemList should have at least 1 item"}},itemColor:{type:String,default:"#000000"},visible:{type:Boolean,default:!0}}},d719:function(t,e,n){"use strict";n.r(e);var i=Object.create(null),r=n("bdb1");r.keys().forEach(function(t){"./index.js"!==t&&Object.assign(i,r(t))}),e["default"]=i},d827:function(t,e,n){},d859:function(t,e,n){},d871:function(t,e,n){},db18:function(t,e,n){"use strict";var i=n("86db"),r=n.n(i);r.a},de29:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("f2b3");function r(t){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function a(t,e,n){var r=e[t],a=!Object(i["c"])(n,t),s=n[t],c=h(Boolean,r.type);if(c>-1&&a&&!Object(i["c"])(r,"default")&&(s=!1),void 0===s&&Object(i["c"])(r,"default")){var u=r["default"];s=Object(i["e"])(u)?u():u,n[t]=s}return o(r,t,s,a,n)}function o(t,e,n,i,r){if(t.required&&i)return"Missing required parameter `".concat(e,"`");if(null==n&&!t.required){var a=t.validator;return a?a(n,r):void 0}var o=t.type,s=!o||!0===o,u=[];if(o){Array.isArray(o)||(o=[o]);for(var l=0;l2&&void 0!==arguments[2]&&arguments[2],i=document.getElementById(e);i&&n&&(i.parentNode.removeChild(i),i=null),i||(i=document.createElement("style"),i.type="text/css",e&&(i.id=e),document.getElementsByTagName("head")[0].appendChild(i)),i.appendChild(document.createTextNode(t))}n.d(e,"a",function(){return i})},ea0d:function(t,e,n){},ea86:function(t,e,n){"use strict";(function(t){var i=n("5a56");e["a"]={name:"Toast",mixins:[i["default"]],props:{title:{type:String,default:""},icon:{default:"success",validator:function(t){return-1!==["success","loading","none"].indexOf(t)}},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!1}},computed:{iconClass:function(){return"success"===this.icon?"uni-icon-success-no-circle":"loading"===this.icon?"uni-loading":void 0}},beforeUpdate:function(){this.visible&&(this.timeoutId&&clearTimeout(this.timeoutId),this.timeoutId=setTimeout(function(){t.emit("onHideToast")},this.duration))}}}).call(this,n("0dd1"))},ed1a:function(t,e,n){"use strict";n.d(e,"b",function(){return s}),n.d(e,"a",function(){return c}),n.d(e,"c",function(){return u}),n.d(e,"d",function(){return d});var i=n("f2b3"),r=/hideKeyboard|upx2px|canIUse|^create|Sync$|Manager$/,a=["request","downloadFile","uploadFile","connectSocket"],o=/^on/;function s(t){return r.test(t)}function c(t){return o.test(t)}function u(t){return-1!==a.indexOf(t)}function l(t){return t.then(function(t){return[null,t]}).catch(function(t){return[t]})}function h(t){return!s(t)&&!c(t)}function d(t,e){return h(t)?function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length,r=new Array(n>1?n-1:0),a=1;a9?t:"0"+t};function c(t){return"function"===typeof t}function u(t){return"[object Object]"===a.call(t)}function l(t,e){return o.call(t,e)}function h(t){return a.call(t).slice(8,-1)}function d(t,e,n){e.forEach(function(e){l(n,e)&&(t[e]=n[e])})}function f(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(""+t).replace(/[^\x00-\xff]/g,"**").length}function p(t){var e=t.date,n=void 0===e?new Date:e,i=t.mode,r=void 0===i?"date":i;return"time"===r?s(n.getHours())+":"+s(n.getMinutes()):n.getFullYear()+"-"+s(n.getMonth()+1)+"-"+s(n.getDate())}function g(t){var e,n,i;return t=t.replace("#",""),6===t.length&&(e=t.substring(0,2),n=t.substring(2,4),i=t.substring(4,6),1===e.length&&(e+=e),1===n.length&&(n+=n),1===i.length&&(i+=i),e=parseInt(e,16),n=parseInt(n,16),i=parseInt(i,16),{r:e,g:n,b:i})}n.d(e,"h",function(){return i}),n.d(e,"e",function(){return c}),n.d(e,"f",function(){return u}),n.d(e,"c",function(){return l}),n.d(e,"i",function(){return h}),n.d(e,"g",function(){return d}),n.d(e,"b",function(){return f}),n.d(e,"a",function(){return p}),n.d(e,"d",function(){return g})},f4e0:function(t,e,n){"use strict";var i=n("985f"),r=n.n(i);r.a},f53a:function(t,e,n){"use strict";var i=n("bf53"),r=n.n(i);r.a},f766:function(t,e,n){},f7b4:function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"onCompassChange",function(){return a}),n.d(e,"startCompass",function(){return o}),n.d(e,"stopCompass",function(){return s});var i,r=[];function a(t){r.push(t),i||o()}function o(){var e=t,n=e.invokeCallbackHandler;if(window.DeviceOrientationEvent)return i=function(t){var e=360-t.alpha;r.forEach(function(t){n(t,{errMsg:"onCompassChange:ok",direction:e||0})})},window.addEventListener("deviceorientation",i,!1),{};throw new Error("device nonsupport deviceorientation")}function s(){return i&&(window.removeEventListener("deviceorientation",i,!1),i=null),{}}}.call(this,n("0dd1"))},f7b7:function(t,e,n){},f7fd:function(t,e,n){"use strict";var i=n("b98b"),r=n.n(i);r.a},f8c2:function(t,e,n){"use strict";function i(t,e){var n=getCurrentPages();if(n.length){var i=n[n.length-1].$parent.$parent;switch(t){case"setNavigationBarColor":var r=e.frontColor,a=e.backgroundColor,o=e.animation,s=o.duration,c=o.timingFunc;r&&(i.navigationBar.textColor="#000000"===r?"black":"white"),a&&(i.navigationBar.backgroundColor=a),i.navigationBar.duration=s+"ms",i.navigationBar.timingFunc=c;break;case"showNavigationBarLoading":i.navigationBar.loading=!0;break;case"hideNavigationBarLoading":i.navigationBar.loading=!1;break;case"setNavigationBarTitle":var u=e.title;i.navigationBar.titleText=u;break}}return{}}function r(t){return i("setNavigationBarColor",t)}function a(){return i("showNavigationBarLoading")}function o(){return i("hideNavigationBarLoading")}function s(t){return i("setNavigationBarTitle",t)}n.r(e),n.d(e,"setNavigationBarColor",function(){return r}),n.d(e,"showNavigationBarLoading",function(){return a}),n.d(e,"hideNavigationBarLoading",function(){return o}),n.d(e,"setNavigationBarTitle",function(){return s})},fa1e:function(t,e,n){"use strict";function i(){var t=document.activeElement;!t||"TEXTAREA"!==t.tagName&&"INPUT"!==t.tagName||t.blur()}n.r(e),n.d(e,"hideKeyboard",function(){return i})},fae3:function(t,e,n){"use strict";var i;(n.r(e),"undefined"!==typeof window)&&((i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(n.p=i[1]));n("2ef3")},fb61:function(t,e,n){"use strict";var i=n("f7b7"),r=n.n(i);r.a},ff28:function(t,e,n){"use strict";var i=n("6f1a"),r=n.n(i);r.a},ffdc:function(t,e,n){"use strict";function i(t,e,n,i){var r,a=document.createElement("script"),o=e.callback||"callback",s="__callback"+Date.now(),c=e.timeout||3e4;function u(){clearTimeout(r),delete window[s],a.remove()}window[s]=function(t){"function"===typeof n&&n(t),u()},a.onerror=function(){"function"===typeof i&&i(),u()},r=setTimeout(function(){"function"===typeof i&&i(),u()},c),a.src=t+(t.indexOf("?")>=0?"&":"?")+o+"="+s,document.body.appendChild(a)}n.d(e,"a",function(){return i})}})}); \ No newline at end of file +(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue-router"),require("vue")):"function"===typeof define&&define.amd?define([,],e):"object"===typeof exports?exports["index"]=e(require("vue-router"),require("vue")):t["index"]=e(t["VueRouter"],t["Vue"])})("undefined"!==typeof self?self:this,function(t,e){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fae3")}({"066f":function(t,e,n){"use strict";n.r(e),n.d(e,"setTabBarItem",function(){return o}),n.d(e,"setTabBarStyle",function(){return s}),n.d(e,"hideTabBar",function(){return c}),n.d(e,"showTabBar",function(){return u}),n.d(e,"hideTabBarRedDot",function(){return l}),n.d(e,"showTabBarRedDot",function(){return h}),n.d(e,"removeTabBarBadge",function(){return d}),n.d(e,"setTabBarBadge",function(){return f});var i=n("f2b3");function r(t){var e=!1,n=getCurrentPages();if(n.length&&n[n.length-1].$page.meta.isTabBar&&(e=!0),!e)return"not TabBar page"}var a={type:Number,required:!0,validator:function(t,e){if(t>=__uniConfig.tabBar.list.length)return"tabbar item not found"}},o={beforeValidate:r,index:a,text:{type:String},iconPath:{type:String},selectedIconPath:{type:String}},s={beforeValidate:r,color:{type:String},selectedColor:{type:String},backgroundColor:{type:String},borderStyle:{type:String,validator:function(t,e){t&&(e.borderStyle="black"===t?"black":"white")}}},c={beforeValidate:r,animation:{type:Boolean,default:!1}},u={beforeValidate:r,animation:{type:Boolean,default:!1}},l={beforeValidate:r,index:a},h={beforeValidate:r,index:a},d={beforeValidate:r,index:a},f={beforeValidate:r,index:a,text:{type:String,required:!0,validator:function(t,e){Object(i["b"])(t)>=4&&(e.text="...")}}}},"0741":function(t,e,n){"use strict";var i=n("1f16"),r=n.n(i);r.a},"0784":function(t,e,n){"use strict";var i=n("a741");function r(t){var e=t.$route;t.route=e.meta.pagePath,t.__page__={id:e.params.__id__,path:e.path,route:e.meta.pagePath,meta:Object.assign({},e.meta)}}function a(){return{created:function(){r(this),Object(i["b"])(this,"onLoad",this.$route.query),Object(i["b"])(this,"onShow")}}}n.d(e,"a",function(){return a})},"0998":function(t,e,n){"use strict";var i=n("89fc"),r=n.n(i);r.a},"0a32":function(t,e,n){"use strict";var i=n("7df4"),r=n.n(i);r.a},"0dd1":function(t,e,n){"use strict";n.r(e);var i=n("8bbf"),r=n.n(i),a=n("a741"),o=n("9eba");function s(t){Object(a["a"])(getApp(),"onError",t)}function c(t){Object(a["a"])(getApp(),"onPageNotFound",t)}function u(t,e){var n=getCurrentPages().find(function(t){return t.$page.id===e});n&&(Object(o["setPullDownRefreshPageId"])(e),Object(a["b"])(n,"onPullDownRefresh"))}function l(t){var e=getCurrentPages();if(e.length){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r0?t.split("/"):[];return s.splice(s.length-o-1,o+1),"/"+s.concat(r).join("/")}n.d(e,"a",function(){return i})},1082:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-image",t._g({},t.$listeners),[n("div",{style:t.modeStyle})])},r=[],a={name:"Image",props:{src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1}},data:function(){return{originalWidth:0,originalHeight:0,availHeight:""}},computed:{ratio:function(){return this.originalWidth&&this.originalHeight?this.originalWidth/this.originalHeight:0},modeStyle:function(){var t="auto",e="",n="no-repeat";switch(this.mode){case"aspectFit":t="contain",e="center center";break;case"aspectFill":t="cover",e="center center";break;case"widthFix":t="100% 100%;";break;case"top":e="center top";break;case"bottom":e="center bottom";break;case"center":e="center center";break;case"left":e="left center";break;case"right":e="right center";break;case"top left":e="left top";break;case"top right":e="right top";break;case"bottom left":e="left bottom";break;case"bottom right":e="right bottom";break;default:t="100% 100%",e="0% 0%";break}return'background-image: url("'.concat(this.$getRealPath(this.src),'"); background-size:').concat(t,";background-position:").concat(e,";background-repeat:").concat(n,";")}},watch:{src:function(t,e){this._loadImage()},mode:function(t,e){"widthFix"===e&&(this.$el.style.height=this.availHeight),"widthFix"===t&&this.ratio&&this._getWidth()&&(this.$el.style.height=this._getWidth()/this.ratio+"px")}},mounted:function(){this.availHeight=this.$el.style.height||"",this._loadImage()},methods:{_loadImage:function(){var t=this,e=new Image;e.onload=function(e){t.originalWidth=this.width,t.originalHeight=this.height,"widthFix"===t.mode&&t._getWidth()&&(t.$el.style.height=t._getWidth()/t.ratio+"px"),t.$trigger("load",e,{width:this.width,height:this.height})},e.onerror=function(e){t.$trigger("error",e,{errMsg:"GET ".concat(t.src," 404 (Not Found)")})},e.src=this.$getRealPath(this.src)},_getWidth:function(){var t=window.getComputedStyle(this.$el),e=(parseFloat(t.borderLeftWidth,10)||0)+(parseFloat(t.borderRightWidth,10)||0),n=(parseFloat(t.paddingLeft,10)||0)+(parseFloat(t.paddingRight,10)||0);return this.$el.offsetWidth-e-n}}},o=a,s=(n("db18"),n("2877")),c=Object(s["a"])(o,i,r,!1,null,null,null);c.options.__file="index.vue";e["default"]=c.exports},1164:function(t,e,n){"use strict";(function(t){n.d(e,"b",function(){return a}),n.d(e,"c",function(){return o}),n.d(e,"a",function(){return s});var i=n("23e5"),r=!1;function a(){return r}function o(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=[],i=a();if(!i)return t.error("app is not ready"),[];var r=i.$children[0];if(r&&r.$children.length){var o=r.$children.find(function(t){return"TabBar"===t.$options.name});r.$children.forEach(function(t){if(o!==t&&t.$children.length&&"Page"===t.$children[0].$options.name&&t.$children[0].$slots.page){var r=t.$children[0].$children.find(function(t){return"PageBody"===t.$options.name}).$children.find(function(t){return!!t.$page});if(r){var a=!0;!e&&o&&r.$page&&r.$page.meta.isTabBar&&(i.$route.meta&&i.$route.meta.isTabBar?i.$route.path!==r.$page.path&&(a=!1):o.__path__!==r.$page.path&&(a=!1)),a&&n.push(r)}}})}var s=n.length;if(s>1){var c=n[s-1];c.$page.path!==i.$route.path&&n.splice(s-1,1)}return n}function s(t,e){r=t,r.globalData=r.$options.globalData||{},Object(i["a"])(r,e)}}).call(this,n("3ad9")["default"])},"11b9":function(t,e,n){},"11fb":function(t,e,n){"use strict";n.r(e),n.d(e,"previewImage",function(){return r});var i=n("cb0f"),r={urls:{type:Array,required:!0,validator:function(t,e){var n;if(e.urls=t.map(function(t){if("string"===typeof t)return Object(i["a"])(t);n=!0}),n)return"url is not string"}},current:{type:String,validator:function(t,e){e.type=t?Object(i["a"])(t):""}}}},"120f":function(t,e,n){"use strict";(function(t){var i=n("bab8");e["a"]={name:"SystemChooseLocation",components:{SystemHeader:i["a"]},data:function(){return{src:"",data:null}},mounted:function(){var t=this,e="WXTBZ-6WERU-ECCVS-BZJCK-LW5OJ-SIBOS";this.src="https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=".concat(e,"&referer=uniapp"),window.addEventListener("message",function(e){var n=e.data;n&&"locationPicker"===n.module&&(t.data={name:n.poiname,address:n.poiaddress,latitude:n.latlng.lat,longitude:n.latlng.lng})},!1)},methods:{_choose:function(){this.data&&(t.publishHandler("onChooseLocation",this.data),getApp().$router.back())},_back:function(){t.publishHandler("onChooseLocation",null),getApp().$router.back()}}}}).call(this,n("501c"))},"15a0":function(t,e,n){"use strict";n.r(e);var i=Object.create(null),r=n("19c4");r.keys().forEach(function(t){"./index.js"!==t&&Object.assign(i,r(t))}),e["default"]=i},"15bb":function(t,e,n){"use strict";(function(t){var i=n("f2b3");e["a"]={mounted:function(){var e=this;if("transparent"===this.type){for(var n=this.$el.querySelector(".uni-page-head-transparent").style,i=this.$el.querySelector(".uni-page-head__title").style,r=this.$el.querySelectorAll(".uni-btn-icon"),a=[],o=0;odiv,.uni-page-head-ft>div"),c=[],u=0;u.5&&e._A<=.5?a.forEach(function(t){t.color="#000"}):o<=.5&&e._A>.5&&a.forEach(function(t){t.color="#fff"}),e._A=o,i.opacity=o,n.backgroundColor="rgba(".concat(e._R,",").concat(e._G,",").concat(e._B,",").concat(o,")"),c.forEach(function(t){t.backgroundColor="rgba(153,153,153,".concat(1-o,")")}))})}},computed:{color:function(){return"transparent"===this.type?"#fff":this.textColor},offset:function(){return parseInt(this.coverage)},bgColor:function(){if("transparent"===this.type){var t=Object(i["d"])(this.backgroundColor),e=t.r,n=t.g,r=t.b;return this._R=e,this._G=n,this._B=r,"rgba(".concat(e,",").concat(n,",").concat(r,",0)")}return this.backgroundColor}}}}).call(this,n("501c"))},"167a":function(t,e,n){"use strict";var i=n("ac22"),r=n.n(i);r.a},1771:function(t,e,n){"use strict";(function(t){var i=n("8af1"),r=["navigate","redirect","switchTab","reLaunch","navigateBack"];e["a"]={name:"Navigator",mixins:[i["b"]],props:{hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator:function(t){return~r.indexOf(t)}},delta:{type:Number,default:1},hoverStartTime:{type:Number,default:20},hoverStayTime:{type:Number,default:600}},methods:{_onClick:function(e){if(this.url)switch(this.openType){case"navigate":uni.navigateTo({url:this.url});break;case"redirect":uni.redirectTo({url:this.url});break;case"switchTab":uni.switchTab({url:this.url});break;case"reLaunch":uni.reLaunch({url:this.url});break;case"navigateBack":uni.navigateBack({url:this.delta});break;default:break}else t.error(" should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab")}}}}).call(this,n("3ad9")["default"])},"17fd":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.hoverClass&&"none"!==t.hoverClass?n("uni-navigator",t._g({class:[t.hovering?t.hoverClass:""],on:{touchstart:t._hoverTouchStart,touchend:t._hoverTouchEnd,touchcancel:t._hoverTouchCancel,click:t._onClick}},t.$listeners),[t._t("default")],2):n("uni-navigator",t._g({on:{click:t._onClick}},t.$listeners),[t._t("default")],2)},r=[],a=n("1771"),o=a["a"],s=(n("f7fd"),n("2877")),c=Object(s["a"])(o,i,r,!1,null,null,null);c.options.__file="index.vue";e["default"]=c.exports},"18fd":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,r=/^<\/([-A-Za-z0-9_]+)[^>]*>/,a=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,o=f("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),s=f("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),c=f("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),u=f("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),l=f("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),h=f("script,style");function d(t,e){var n,d,f,p=[],g=t;p.last=function(){return this[this.length-1]};while(t){if(d=!0,p.last()&&h[p.last()])t=t.replace(new RegExp("([\\s\\S]*?)]*>"),function(t,n){return n=n.replace(/|/g,"$1$2"),e.chars&&e.chars(n),""}),b("",p.last());else if(0==t.indexOf("\x3c!--")?(n=t.indexOf("--\x3e"),n>=0&&(e.comment&&e.comment(t.substring(4,n)),t=t.substring(n+3),d=!1)):0==t.indexOf("=0;i--)if(p[i]==n)break}else var i=0;if(i>=0){for(var r=p.length-1;r>=i;r--)e.end&&e.end(p[r]);p.length=i}}b()}function f(t){for(var e={},n=t.split(","),i=0;i*{height: ").concat(t,"px;overflow: hidden;}"),document.head.appendChild(e)},_handleTrack:function(t){if(this._scroller)switch(t.detail.state){case"start":this._handleTouchStart(t);break;case"move":this._handleTouchMove(t);break;case"end":case"cancel":this._handleTouchEnd(t)}},_handleTap:function(t){if(t.target!==t.currentTarget&&!this._scroller.isScrolling()){var e=t.touches&&t.touches[0]&&t.touches[0].clientY,n="number"===typeof e?e:t.detail.y-document.body.scrollTop,i=this.$el.getBoundingClientRect(),r=n-i.top-this._height/2,a=this.indicatorHeight/2;if(!(Math.abs(r)<=a)){var o=Math.ceil((Math.abs(r)-a)/this.indicatorHeight),s=r<0?-o:o;this.current+=s,this._scroller.scrollTo(this.current*this.indicatorHeight)}}},setCurrent:function(t){t!==this.current&&(this.current=t,this.inited&&this.update())},init:function(){var t=this;this.initScroller(this.$refs.content,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:this.indicatorHeight,onSnap:function(e){isNaN(e)||e===t.current||(t.current=e)}}),this.inited=!0},update:function(){var t=this;this.$nextTick(function(){var e=Math.max(t.length-1,0),n=Math.min(t.current,e);t._scroller.update(n*t.indicatorHeight,void 0,t.indicatorHeight)})},_resize:function(t){var e=t.height;this.indicatorHeight=e}},render:function(t){return this.length=this.$slots.default&&this.$slots.default.length||0,t("uni-picker-view-column",{staticClass:"_picker-view-column",on:{tap:this._handleTap}},[t("div",{ref:"main",staticClass:"uni-picker-view-group"},[t("div",{ref:"mask",staticClass:"uni-picker-view-mask",class:this.maskClass,style:"background-size: 100% ".concat(this.maskSize,"px;").concat(this.maskStyle)}),t("div",{ref:"indicator",staticClass:"uni-picker-view-indicator",class:this.indicatorClass,style:this.indicatorStyle},[t("v-uni-resize-sensor",{attrs:{initial:!0},on:{resize:this._resize}})]),t("div",{ref:"content",staticClass:"uni-picker-view-content",class:this.scope,style:"padding: ".concat(this.maskSize,"px 0;")},[this.$slots.default])])])}},c=s,u=(n("edfa"),n("2877")),l=Object(u["a"])(c,i,r,!1,null,null,null);l.options.__file="index.vue";e["default"]=l.exports},"19c4":function(t,e,n){var i={"./base.js":"22ec","./canvas.js":"a041","./context.js":"9fef","./device/make-phone-call.js":"f102","./file/open-document.js":"2604","./index.js":"15a0","./location.js":"c439","./media/choose-image.js":"f1b2","./media/choose-video.js":"ed9f","./media/get-image-info.js":"b866","./media/preview-image.js":"11fb","./navigation-bar.js":"4043","./network/download-file.js":"439a","./network/request.js":"a201","./network/socket.js":"abb2","./network/upload-file.js":"9a3e","./page-scroll-to.js":"e8e6","./plugins.js":"cef5","./popup.js":"d68b","./route.js":"40ab","./storage.js":"3858","./tab-bar.js":"066f"};function r(t){var e=a(t);return n(e)}function a(t){var e=i[t];if(!(e+1)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return e}r.keys=function(){return Object.keys(i)},r.resolve=a,t.exports=r,r.id="19c4"},"1b6f":function(t,e,n){"use strict";(function(t){var i=n("f2b3");e["a"]={mounted:function(){var t=this;this._toggleListeners("subscribe",this.id),this.$watch("id",function(e,n){t._toggleListeners("unsubscribe",n,!0),t._toggleListeners("subscribe",e,!0)})},beforeDestroy:function(){this._toggleListeners("unsubscribe",this.id)},methods:{_toggleListeners:function(e,n,r){r&&!n||Object(i["e"])(this._handleSubscribe)&&t[e](this.$page.id+"-"+this.$options.name.replace(/VUni([A-Z])/,"$1").toLowerCase()+"-"+n,this._handleSubscribe)}}}}).call(this,n("501c"))},"1c4e":function(t,e,n){},"1c64":function(t,e,n){"use strict";var i=n("1c4e"),r=n.n(i);r.a},"1efd":function(t,e,n){"use strict";n.r(e);var i=n("8bbf"),r=n.n(i),a=n("cb0f"),o=n("d4b6"),s={methods:{$getRealPath:function(t){return Object(a["a"])(t)},$trigger:function(t,e,n){this.$emit(t,o["b"].call(this,t,e,n,this.$el,this.$el))}}},c=[n("5408"),n("93a5")];c.forEach(function(t,e){t.keys().forEach(function(e){var n=t(e),i=n.default||n;i.mixins=i.mixins?[].concat(s,i.mixins):[s],i.name="VUni"+i.name,r.a.component(i.name,i)})})},"1f16":function(t,e,n){},"1f6b":function(t,e,n){"use strict";var i=n("d871"),r=n.n(i);r.a},"22ec":function(t,e,n){"use strict";n.r(e),n.d(e,"canIUse",function(){return i});var i=[{name:"schema",type:String,required:!0}]},"23e5":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("a741");function r(t){-1===this.keepAliveInclude.indexOf(t)&&this.keepAliveInclude.push(t)}function a(t){var e=this.keepAliveInclude.indexOf(t);-1!==e&&this.keepAliveInclude.splice(e,1)}function o(t){for(var e=getCurrentPages(),n=e.length-1;n>=0;n--){var r=e[n],o=r.$page.meta;o.isTabBar||(a.call(this,o.name+"-"+r.$page.id),Object(i["b"])(r,"onUnload"))}}function s(t){__uniConfig.reLaunch=(__uniConfig.reLaunch||1)+1;for(var e=getCurrentPages(),n=e.length-1;n>=0;n--)Object(i["b"])(e[n],"onUnload");this.keepAliveInclude=[]}function c(t,e,n,i){var c=e.params.__id__,u=t.params.__id__;if(u===c)n(!1);else if(t.meta.id&&t.meta.id!==u)n({path:t.path,replace:!0});else{var l=e.meta.name+"-"+c,h=t.meta.name+"-"+u;switch(t.type){case"navigateTo":break;case"redirectTo":a.call(this,l);break;case"switchTab":o.call(this,i);break;case"reLaunch":s.call(this,h);break;default:c&&c>u&&a.call(this,l);break}"reLaunch"!==t.type&&e.meta.id&&r.call(this,l),r.call(this,h),t.meta&&t.meta.name&&(document.body.className="uni-body "+t.meta.name),n()}}function u(t,e){var n=e.params.__id__,r=t.params.__id__,a=getCurrentPages(!0).find(function(t){return t.$page.id===n});switch(t.type){case"navigateTo":a&&Object(i["b"])(a,"onHide");break;case"redirectTo":a&&Object(i["b"])(a,"onUnload");break;case"switchTab":e.meta.isTabBar&&a&&Object(i["b"])(a,"onHide");break;case"reLaunch":break;default:n&&n>r&&a&&Object(i["b"])(a,"onUnload");break}if("reLaunch"!==t.type){var o=getCurrentPages(!0).find(function(t){return t.$page.id===r});o&&setTimeout(function(){Object(i["b"])(o,"onShow")},0)}}function l(t,e){t.$router.beforeEach(function(n,i,r){c.call(t,n,i,r,e)}),t.$router.afterEach(function(e,n){u.call(t,e,n)})}},"24d9":function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return a});var i=n("f2b3");function r(t){return Object.assign({mp:t,_processed:!0},t)}function a(t,e){return Object(i["f"])(e)&&(Object(i["c"])(e,"backgroundColor")&&(t.backgroundColor=e.backgroundColor),Object(i["c"])(e,"buttons")&&(t.buttons=e.buttons),Object(i["c"])(e,"titleColor")&&(t.textColor=e.titleColor),Object(i["c"])(e,"titleText")&&(t.titleText=e.titleText),Object(i["c"])(e,"titleSize")&&(t.titleSize=e.titleSize),Object(i["c"])(e,"type")&&(t.type=e.type)),t}},"250d":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-input",t._g({},t.$listeners),[n("div",{ref:"wrapper",attrs:{disabled:t.disabled}},["checkbox"===t.inputType?n("input",{directives:[{name:"model",rawName:"v-model",value:t.inputValue,expression:"inputValue"}],ref:"input",attrs:{disabled:t.disabled,maxlength:t.maxlength,step:t.step,type:"checkbox"},domProps:{checked:Array.isArray(t.inputValue)?t._i(t.inputValue,null)>-1:t.inputValue},on:{focus:t._onFocus,blur:t._onBlur,input:function(e){return e.stopPropagation(),t._onInput(e)},compositionstart:t._onComposition,compositionend:t._onComposition,keyup:function(e){return e.stopPropagation(),t._onKeyup(e)},change:function(e){var n=t.inputValue,i=e.target,r=!!i.checked;if(Array.isArray(n)){var a=null,o=t._i(n,a);i.checked?o<0&&(t.inputValue=n.concat([a])):o>-1&&(t.inputValue=n.slice(0,o).concat(n.slice(o+1)))}else t.inputValue=r}}}):"radio"===t.inputType?n("input",{directives:[{name:"model",rawName:"v-model",value:t.inputValue,expression:"inputValue"}],ref:"input",attrs:{disabled:t.disabled,maxlength:t.maxlength,step:t.step,type:"radio"},domProps:{checked:t._q(t.inputValue,null)},on:{focus:t._onFocus,blur:t._onBlur,input:function(e){return e.stopPropagation(),t._onInput(e)},compositionstart:t._onComposition,compositionend:t._onComposition,keyup:function(e){return e.stopPropagation(),t._onKeyup(e)},change:function(e){t.inputValue=null}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.inputValue,expression:"inputValue"}],ref:"input",attrs:{disabled:t.disabled,maxlength:t.maxlength,step:t.step,type:t.inputType},domProps:{value:t.inputValue},on:{focus:t._onFocus,blur:t._onBlur,input:[function(e){e.target.composing||(t.inputValue=e.target.value)},function(e){return e.stopPropagation(),t._onInput(e)}],compositionstart:t._onComposition,compositionend:t._onComposition,keyup:function(e){return e.stopPropagation(),t._onKeyup(e)}}}),n("div",{directives:[{name:"show",rawName:"v-show",value:!(t.composing||t.inputValue.length),expression:"!(composing || inputValue.length)"}],ref:"placeholder",staticClass:"input-placeholder",class:t.placeholderClass,style:t.placeholderStyle},[t._v(t._s(t.placeholder))])])])},r=[],a=n("8af1"),o=["text","number","idcard","digit","password"],s=["number","digit"],c={name:"Input",mixins:[a["a"]],model:{prop:"value",event:"update:value"},props:{name:{type:String,default:""},value:{type:[String,Number],default:""},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},maxlength:{type:[Number,String],default:140},focus:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"done"}},data:function(){return{inputValue:this.value+"",composing:!1,wrapperHeight:0,cachedValue:""}},computed:{inputType:function(){var t="";switch(this.type){case"text":"search"===this.confirmType&&(t="search");break;case"idcard":t="text";break;case"digit":t="number";break;default:t=~o.indexOf(this.type)?this.type:"text";break}return this.password?"password":t},step:function(){return~s.indexOf(this.type)?"0.000000000000000001":""}},watch:{focus:function(t){t&&this._focusInput()},value:function(t){this.inputValue=t+""},inputValue:function(t){this.$emit("update:value",t)},maxlength:function(t){var e=this.realValue.slice(0,parseInt(t,10));e!==this.inputValue&&(this.inputValue=e)}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},mounted:function(){if(this._initInputStyle(),"search"===this.confirmType){var t=document.createElement("form");t.action="",t.onsubmit=function(){return!1},t.appendChild(this.$refs.input),this.$refs.wrapper.appendChild(t)}this.focus&&this._focusInput()},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_initInputStyle:function(){var t=this.$refs.wrapper,e=window.getComputedStyle(t),n=t.getBoundingClientRect(),i=this.$refs.input,r=this.$refs.placeholder,a=n.height-(parseFloat(e.borderTopWidth,10)+parseFloat(e.borderBottomWidth,10));a!==this.wrapperHeight&&(i.style.height="".concat(a,"px"),i.style.lineHeight="".concat(a,"px"),this.wrapperHeight=a),i.style.color=e.color,r.style.height="".concat(a,"px"),r.style.lineHeight="".concat(a,"px")},_onKeyup:function(t){13===t.keyCode&&this.$trigger("confirm",t,{value:t.target.value})},_onInput:function(t){if(!this.composing){if(~s.indexOf(this.type)){if(this.$refs.input.validity&&!this.$refs.input.validity.valid)return t.target.value=this.cachedValue,void(this.inputValue=t.target.value);this.cachedValue=this.inputValue}if("number"===this.inputType){var e=parseInt(this.maxlength,10);if(e>0&&t.target.value.length>e)return t.target.value=t.target.value.slice(0,e),void(this.inputValue=t.target.value)}this.$trigger("input",t,{value:this.inputValue})}},_onFocus:function(t){this.$trigger("focus",t,{value:t.target.value})},_onBlur:function(t){this.$trigger("blur",t,{value:t.target.value})},_focusInput:function(){var t=this;setTimeout(function(){t.$refs.input.focus()},350)},_blurInput:function(){var t=this;setTimeout(function(){t.$refs.input.blur()},350)},_onComposition:function(t){"compositionstart"===t.type?this.composing=!0:this.composing=!1},_resetFormData:function(){this.inputValue=""},_getFormData:function(){return this.name?{value:this.inputValue,key:this.name}:{}}}},u=c,l=(n("0f55"),n("2877")),h=Object(l["a"])(u,i,r,!1,null,null,null);h.options.__file="index.vue";e["default"]=h.exports},"25ce":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-checkbox-group",t._g({},t.$listeners),[t._t("default")],2)},r=[],a=n("8af1"),o={name:"CheckboxGroup",mixins:[a["a"],a["c"]],props:{name:{type:String,default:""}},data:function(){return{checkboxList:[]}},listeners:{"@checkbox-change":"_changeHandler","@checkbox-group-update":"_checkboxGroupUpdateHandler"},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_changeHandler:function(t){var e=[];this.checkboxList.forEach(function(t){t.checkboxChecked&&e.push(t.value)}),this.$trigger("change",t,{value:e})},_checkboxGroupUpdateHandler:function(t){if("add"===t.type)this.checkboxList.push(t.vm);else{var e=this.checkboxList.indexOf(t.vm);this.checkboxList.splice(e,1)}},_getFormData:function(){var t={};if(""!==this.name){var e=[];this.checkboxList.forEach(function(t){t.checkboxChecked&&e.push(t.value)}),t["value"]=e,t["key"]=this.name}return t}}},s=o,c=(n("0998"),n("2877")),u=Object(c["a"])(s,i,r,!1,null,null,null);u.options.__file="index.vue";e["default"]=u.exports},2604:function(t,e,n){"use strict";n.r(e),n.d(e,"openDocument",function(){return i});var i={filePath:{type:String,required:!0},fileType:{type:String}}},2608:function(t,e,n){"use strict";(function(t){function i(e){return function(){try{return e.apply(e,arguments)}catch(n){t.error(n)}}}function r(e){return function(){try{return e.apply(e,arguments)}catch(n){t.error(n)}}}n.d(e,"b",function(){return i}),n.d(e,"a",function(){return r})}).call(this,n("3ad9")["default"])},2765:function(t,e,n){"use strict";var i=n("ea0d"),r=n.n(i);r.a},"27a7":function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return v}),n.d(e,"c",function(){return m}),n.d(e,"b",function(){return b});var i=n("f2b3"),r=n("2608"),a=n("ed1a"),o=n("15a0"),s=n("de29");function c(e,n,i){var r="".concat(n,":fail ").concat(e);if(t.error(r),-1===i)throw new Error(r);return"number"===typeof i&&v(i,{errMsg:r}),!1}var u=[{name:"callback",type:Function,required:!0}];function l(t,e,n){var r=o["default"][t];if(!r&&Object(a["a"])(t)&&(r=u),r){if(Array.isArray(r)&&Array.isArray(e)){var l=Object.create(null),h=Object.create(null),d=e.length;r.forEach(function(t,n){l[t.name]=t,d>n&&(h[t.name]=e[n])}),r=l,e=h}if(Object(i["e"])(r.beforeValidate)){var f=r.beforeValidate(e);if(f)return c(f,t,n)}for(var p=Object.keys(r),g=0;g1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Object(i["f"])(e))return{params:e};e=Object.assign({},e);var a={};for(var o in e){var s=e[o];Object(i["e"])(s)&&(a[o]=Object(r["a"])(s),delete e[o])}var c=a.success,u=a.fail,l=a.cancel,f=a.complete,p=Object(i["e"])(c),g=Object(i["e"])(u),v=Object(i["e"])(l),m=Object(i["e"])(f);if(!p&&!g&&!v&&!m)return{params:e};var b={};for(var _ in n){var y=n[_];Object(i["e"])(y)&&(b[_]=Object(r["b"])(y),delete n[_])}var w=b.beforeSuccess,S=b.afterSuccess,k=b.beforeFail,x=b.afterFail,T=b.beforeCancel,C=b.afterCancel,M=b.afterAll,O=h++,E="api."+t+"."+O,A=function(e){e.errMsg=e.errMsg||t+":ok";var n=e.errMsg;0===n.indexOf(t+":ok")?(Object(i["e"])(w)&&w(e),p&&c(e),Object(i["e"])(S)&&S(e)):0===n.indexOf(t+":cancel")?(e.errMsg=e.errMsg.replace(t+":cancel",t+":fail cancel"),g&&u(e),Object(i["e"])(T)&&T(e),v&&l(e),Object(i["e"])(C)&&C(e)):0===n.indexOf(t+":fail")&&(Object(i["e"])(k)&&k(e),g&&u(e),Object(i["e"])(x)&&x(e)),m&&f(e),Object(i["e"])(M)&&M(e)};return d[O]={name:E,callback:A},{params:e,callbackId:O}}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=p(t,e,n),a=r.params,o=r.callbackId;return Object(i["f"])(a)&&!l(t,a,o)?{params:a,callbackId:!1}:{params:a,callbackId:o}}function v(t,e){if("number"===typeof t){var n=d[t];if(n)return n.keepAlive||delete d[t],n.callback(e)}return e}function m(e){return function(n){t.error("API `"+e+"` is not yet implemented")}}function b(t,e,n){return function(){for(var r=arguments.length,o=new Array(r),s=0;sthis.valueSync.length&&this.valueSync.splice(this.valueSync.length-1,this.valueSync.length-t.length)},valueSync:{deep:!0,handler:function(t,e){if(""===this.changeSource)this._valueChanged(t);else{this.changeSource="";var n=t.map(function(t){return t});this.$emit("update:value",n),this.$trigger("change",{},{value:n})}}}},methods:{getItemIndex:function(t){return this.items.indexOf(t)},getItemValue:function(t){return this.valueSync[this.getItemIndex(t.$vnode)]||0},setItemValue:function(t,e){var n=this.getItemIndex(t.$vnode),i=this.valueSync[n];i!==e&&(this.changeSource="touch",this.$set(this.valueSync,n,e))},_valueChanged:function(t){this.items.forEach(function(e,n){e.componentInstance.setCurrent(t[n]||0)})},_resize:function(t){var e=t.height;this.height=e}},render:function(t){var e=[];return this.$slots.default&&this.$slots.default.forEach(function(t){t.componentOptions&&"v-uni-picker-view-column"===t.componentOptions.tag&&e.push(t)}),this.items=e,t("uni-picker-view",{on:this.$listeners},[t("v-uni-resize-sensor",{attrs:{initial:!0},on:{resize:this._resize}}),t("div",{ref:"wrapper",class:"uni-picker-view-wrapper"},e)])}},l=u,h=(n("6062"),n("2877")),d=Object(h["a"])(l,s,c,!1,null,null,null);d.options.__file="index.vue";e["default"]=d.exports},"27be":function(t,e,n){},2829:function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"getLocation",function(){return a});var i=n("ffdc");function r(t,e,n){var r="WXTBZ-6WERU-ECCVS-BZJCK-LW5OJ-SIBOS",a="https://apis.map.qq.com/ws/coord/v1/translate?locations=".concat(t.latitude,",").concat(t.longitude,"&type=1&key=").concat(r,"&output=jsonp");Object(i["a"])(a,{},function(t){"locations"in t&&t.locations.length?e({longitude:t.locations[0].lng,latitude:t.locations[0].lat}):n()},n)}function a(e,n){var i=e.type,a=e.altitude,o=t,s=o.invokeCallbackHandler;function c(t){s(n,Object.assign(t,{errMsg:"getLocation:ok",verticalAccuracy:t.altitudeAccuracy||0,horizontalAccuracy:t.accuracy}))}navigator.geolocation?navigator.geolocation.getCurrentPosition(function(t){var e=t.coords;"WGS84"===i?c(e):r(e,c,function(){s(n,{errMsg:"getLocation:fail"})})},function(){s(n,{errMsg:"getLocation:fail"})},{enableHighAccuracy:a,timeout:3e5}):s(n,{errMsg:"getLocation:fail device nonsupport geolocation"})}}.call(this,n("0dd1"))},2877:function(t,e,n){"use strict";function i(t,e,n,i,r,a,o,s){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=c):r&&(c=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:u}}n.d(e,"a",function(){return i})},"287f":function(t,e,n){},"2ae7":function(t,e,n){"use strict";n.r(e),function(t){function i(e,n){var i=e.latitude,r=e.longitude,a=e.scale,o=e.name,s=e.address,c=t,u=c.invokeCallbackHandler;getApp().$router.push({type:"navigateTo",path:"/open-location",params:{latitude:i,longitude:r,scale:a,name:o,address:s}},function(){u(n,{errMsg:"openLocation:ok"})},function(){u(n,{errMsg:"openLocation:fail"})})}function r(e,n){var i=t,r=i.invokeCallbackHandler;getApp().$router.push({type:"navigateTo",path:"/choose-location"},function(){var e=function e(i){t.unsubscribe("onChooseLocation",e),r(n,i?Object.assign(i,{errMsg:"chooseLocation:ok"}):{errMsg:"chooseLocation:fail"})};t.subscribe("onChooseLocation",e)},function(){r(n,{errMsg:"chooseLocation:fail"})})}n.d(e,"openLocation",function(){return i}),n.d(e,"chooseLocation",function(){return r})}.call(this,n("0dd1"))},"2bbe":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.hoverClass&&"none"!==t.hoverClass?n("uni-view",t._g({class:[t.hovering?t.hoverClass:""],on:{touchstart:t._hoverTouchStart,touchend:t._hoverTouchEnd,touchcancel:t._hoverTouchCancel}},t.$listeners),[t._t("default")],2):n("uni-view",t._g({},t.$listeners),[t._t("default")],2)},r=[],a=n("83a6"),o={name:"View",mixins:[a["a"]],listeners:{"label-click":"clickHandler"}},s=o,c=(n("e865"),n("2877")),u=Object(c["a"])(s,i,r,!1,null,null,null);u.options.__file="index.vue";e["default"]=u.exports},"2bdd":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"onAccelerometerChange",function(){return a}),n.d(e,"startAccelerometer",function(){return o}),n.d(e,"stopAccelerometer",function(){return s});var i,r=[];function a(t){r.push(t),i||o()}function o(){var e=t,n=e.invokeCallbackHandler;if(window.DeviceMotionEvent)return i=function(t){r.forEach(function(e){var i=t.acceleration||t.accelerationIncludingGravity;n(e,{x:i.x||0,y:i.y||0,z:i.z||0,errMsg:"onAccelerometerChange:ok"})})},window.addEventListener("devicemotion",i,!1),{};throw new Error("device nonsupport devicemotion")}function s(){return i&&(window.removeEventListener("devicemotion",i,!1),i=null),{}}}.call(this,n("0dd1"))},"2c0a":function(t,e,n){},"2c67":function(t,e,n){"use strict";n.r(e),function(t){function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n=0?f:255,[l,h,d,f]}return i.group("非法颜色: "+t),i.error("不支持颜色:"+t),i.groupEnd(),[0,0,0,255]}function v(t){this.width=t}function m(t,e){this.image=t,this.repetition=e}var b,_=function(){function t(e,n){u(this,t),this.type=e,this.data=n,this.colorStop=[]}return h(t,[{key:"addColorStop",value:function(t,e){this.colorStop.push([t,g(e)])}}]),t}(),y=["scale","rotate","translate","setTransform","transform"],w=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],S=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];function k(){return b||(b=document.createElement("canvas")),b}var x=function(){function t(e,n){u(this,t),this.id=e,this.pageId=n,this.actions=[],this.currentTransform=[],this.currentStepAnimates=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}return h(t,[{key:"draw",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,i=a(this.actions);this.actions=[],this.path=[],"function"===typeof n&&(t=d.push(n)),f(this.id,this.pageId,"actionsChanged",{actions:i,reserve:e,callbackId:t})}},{key:"createLinearGradient",value:function(t,e,n,i){return new _("linear",[t,e,n,i])}},{key:"createCircularGradient",value:function(t,e,n){return new _("radial",[t,e,n])}},{key:"createPattern",value:function(t,e){if(void 0===e)i.error("Failed to execute 'createPattern' on 'CanvasContext': 2 arguments required, but only 1 present.");else{if(!(["repeat","repeat-x","repeat-y","no-repeat"].indexOf(e)<0))return new m(t,e);i.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('"+e+"') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.")}}},{key:"measureText",value:function(t){var e=k().getContext("2d");return e.font=this.state.font,new v(e.measureText(t).width||0)}},{key:"save",value:function(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)}},{key:"restore",value:function(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}},{key:"beginPath",value:function(){this.path=[],this.subpath=[]}},{key:"moveTo",value:function(t,e){this.path.push({method:"moveTo",data:[t,e]}),this.subpath=[[t,e]]}},{key:"lineTo",value:function(t,e){0===this.path.length&&0===this.subpath.length?this.path.push({method:"moveTo",data:[t,e]}):this.path.push({method:"lineTo",data:[t,e]}),this.subpath.push([t,e])}},{key:"quadraticCurveTo",value:function(t,e,n,i){this.path.push({method:"quadraticCurveTo",data:[t,e,n,i]}),this.subpath.push([n,i])}},{key:"bezierCurveTo",value:function(t,e,n,i,r,a){this.path.push({method:"bezierCurveTo",data:[t,e,n,i,r,a]}),this.subpath.push([r,a])}},{key:"arc",value:function(t,e,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.path.push({method:"arc",data:[t,e,n,i,r,a]}),this.subpath.push([t,e])}},{key:"rect",value:function(t,e,n,i){this.path.push({method:"rect",data:[t,e,n,i]}),this.subpath=[[t,e]]}},{key:"arcTo",value:function(t,e,n,i,r){this.path.push({method:"arcTo",data:[t,e,n,i,r]}),this.subpath.push([n,i])}},{key:"clip",value:function(){this.actions.push({method:"clip",data:a(this.path)})}},{key:"closePath",value:function(){this.path.push({method:"closePath",data:[]}),this.subpath.length&&(this.subpath=[this.subpath.shift()])}},{key:"clearActions",value:function(){this.actions=[],this.path=[],this.subpath=[]}},{key:"getActions",value:function(){var t=a(this.actions);return this.clearActions(),t}}]),t}();function T(e,n){if(n)return new x(e,n.$page.id);var i=getApp();if(i.$route&&i.$route.params.__id__)return new x(e,i.$route.params.__id__);t.emit("onError","createCanvasContext:fail")}[].concat(y,w).forEach(function(t){function e(t){switch(t){case"fill":case"stroke":return function(){this.actions.push({method:t+"Path",data:a(this.path)})};case"fillRect":return function(t,e,n,i){this.actions.push({method:"fillPath",data:[{method:"rect",data:[t,e,n,i]}]})};case"strokeRect":return function(t,e,n,i){this.actions.push({method:"strokePath",data:[{method:"rect",data:[t,e,n,i]}]})};case"fillText":case"strokeText":return function(e,n,i,r){var a=[e.toString(),n,i];"number"===typeof r&&a.push(r),this.actions.push({method:t,data:a})};case"drawImage":return function(e,n,i,r,a,o,s,c,u){var l;function h(t){return"number"===typeof t}void 0===u&&(o=n,s=i,c=r,u=a,n=void 0,i=void 0,r=void 0,a=void 0),l=h(n)&&h(i)&&h(r)&&h(a)?[e,o,s,c,u,n,i,r,a]:h(c)&&h(u)?[e,o,s,c,u]:[e,o,s],this.actions.push({method:t,data:l})};default:return function(){for(var e=arguments.length,n=new Array(e),i=0;i0&&(r.currentTime=e)}),r.addEventListener("progress",function(t){var e=r.buffered;e.length&&(n.buffered=e.end(e.length-1)/r.duration)}),r.addEventListener("waiting",function(t){n.$trigger("waiting",t,{})}),r.addEventListener("error",function(t){n.playing=!1,n.$trigger("error",t,{})}),r.addEventListener("play",function(t){n.start=!0,n.playing=!0,n.fullscreenTriggering||n.$trigger("play",t,{})}),r.addEventListener("pause",function(t){n.playing=!1,n.fullscreenTriggering||n.$trigger("pause",t,{})}),r.addEventListener("ended",function(t){n.playing=!1,n.$trigger("ended",t,{})}),r.addEventListener("timeupdate",function(t){var e=n.currentTime=r.currentTime,a=r.duration,o=i.danmuIndex,s={time:e,index:o.index},c=i.danmuList;if(e>o.time)for(var u=o.index+1;u=(l.time||0)))break;s.index=u,n.playing&&n.enableDanmuSync&&n.playDanmu(l)}else if(e-1;h--){var d=c[h];if(!(e<=(d.time||0)))break;s.index=h-1}i.danmuIndex=s,n.$trigger("timeupdate",{},{currentTime:e,duration:a})});var o,c=!0;function u(i){var r=n.getScreenXY(i.targetTouches[0]),a=r.pageX,s=r.pageY;if(c&&Math.abs(a-t)100&&(h=100),n.progress=h,i.preventDefault(),i.stopPropagation()}}function l(t){n.controlsTouching=!1,n.touching&&(a.removeEventListener("touchmove",u,s),c||(t.preventDefault(),t.stopPropagation(),n.seek(n.$refs.video.duration*n.progress/100)),n.touching=!1)}a.addEventListener("touchstart",function(i){n.controlsTouching=!0;var r=n.getScreenXY(i.targetTouches[0]);t=r.pageX,e=r.pageY,o=n.progress,c=!0,n.touching=!0,a.addEventListener("touchmove",u,s)}),a.addEventListener("touchend",l),a.addEventListener("touchcancel",l),String(this.srcSync).length&&this.autoplay&&r.play()},beforeDestroy:function(){this.$refs.container.remove(),clearTimeout(this.otherData.hideTiming)},methods:{_handleSubscribe:function(t){var e=t.type,n=t.data,i=void 0===n?{}:n;switch(e){case"play":this.play();break;case"pause":this.pause();break;case"seek":this.seek(i.position);break;case"sendDanmu":this.sendDanmu(i);break;case"playbackRate":this.$refs.video.playbackRate=i.rate;break;case"requestFullScreen":this.enterFullscreen();break;case"exitFullScreen":this.leaveFullscreen();break}},resize:function(){var t=window.innerWidth,e=window.innerHeight,n=Math.abs(this.directionSync);this.rotateType=0===n?t>e?"left":"":90===n?t>e?"":"right":"",this.rotateType?(this.width=e+"px",this.height=t+"px"):(this.width=t+"px",this.height=e+"px")},trigger:function(){this.playing?this.$refs.video.pause():this.$refs.video.play()},play:function(){this.start=!0,this.$refs.video.play()},pause:function(){this.$refs.video.pause()},seek:function(t){t=Number(t),"number"!==typeof t||isNaN(t)||(this.$refs.video.currentTime=t)},clickProgress:function(t){var e=t.offsetX,n=this.$refs.progress,i=t.target;while(i!==n)e+=i.offsetLeft,i=i.parentNode;var r=n.offsetWidth,a=0;e>=0&&e<=r&&(a=e/r,this.seek(this.$refs.video.duration*a))},triggerDanmu:function(){this.enableDanmuSync=!this.enableDanmuSync},playDanmu:function(t){var e=document.createElement("p");e.className="uni-video-danmu-item",e.innerText=t.text;var n="bottom: ".concat(100*Math.random(),"%;color: ").concat(t.color,";");e.setAttribute("style",n),this.$refs.danmu.appendChild(e),setTimeout(function(){n+="left: 0;-webkit-transform: translateX(-100%);transform: translateX(-100%);",e.setAttribute("style",n),setTimeout(function(){e.remove()},4e3)},17)},sendDanmu:function(t){var e=this.otherData;e.danmuList.splice(e.danmuIndex.index+1,0,{text:String(t.text),color:t.color,time:this.$refs.video.currentTime||0})},triggerFullscreen:function(){this.fullscreen=!this.fullscreen},enterFullscreen:function(t){var e=Number(t);isNaN(NaN)||(this.directionSync=e),this.fullscreen=!0},leaveFullscreen:function(){this.fullscreen=!1},triggerControls:function(){this.controlsVisible=!this.controlsVisible},touchstart:function(t){var e=this.getScreenXY(t.targetTouches[0]);this.touchStartOrigin={x:e.pageX,y:e.pageY},this.gestureType=c.NONE,this.volumeOld=null,this.currentTimeOld=this.currentTimeNew=0},touchmove:function(t){function e(){t.stopPropagation(),t.preventDefault()}this.fullscreen&&e();var n=this.gestureType;if(n!==c.STOP){var i=this.getScreenXY(t.targetTouches[0]),r=i.pageX,a=i.pageY,o=this.touchStartOrigin;if(n===c.PROGRESS?this.changeProgress(r-o.x):n===c.VOLUME&&this.changeVolume(a-o.y),n===c.NONE)if(Math.abs(r-o.x)>Math.abs(a-o.y)){if(!this.enableProgressGesture)return void(this.gestureType=c.STOP);this.gestureType=c.PROGRESS,this.currentTimeOld=this.currentTimeNew=this.$refs.video.currentTime,this.fullscreen||e()}else{if(!this.pageGesture)return void(this.gestureType=c.STOP);this.gestureType=c.VOLUME,this.volumeOld=this.$refs.video.volume,this.fullscreen||e()}}},touchend:function(t){this.gestureType!==c.NONE&&this.gestureType!==c.STOP&&(t.stopPropagation(),t.preventDefault()),this.gestureType===c.PROGRESS&&this.currentTimeOld!==this.currentTimeNew&&(this.$refs.video.currentTime=this.currentTimeNew),this.gestureType=c.NONE},changeProgress:function(t){var e=this.$refs.video.duration,n=t/600*e+this.currentTimeOld;n<0?n=0:n>e&&(n=e),this.currentTimeNew=n},changeVolume:function(t){var e,n=this.volumeOld;"number"===typeof n&&(e=n-t/200,e<0?e=0:e>1&&(e=1),this.$refs.video.volume=e,this.volumeNew=e)},autoHideStart:function(){var t=this;this.otherData.hideTiming=setTimeout(function(){t.controlsVisible=!1},3e3)},autoHideEnd:function(){var t=this.otherData;t.hideTiming&&(clearTimeout(t.hideTiming),t.hideTiming=null)},getScreenXY:function(t){var e=this.rotateType;if(!this.fullscreen||!e)return t;var n,i,r=screen.width,a=screen.height,o=t.pageX,s=t.pageY;return"left"===e?(n=a-s,i=o):(n=s,i=r-o),{pageX:n,pageY:i}},updateProgress:function(){this.touching||(this.progress=this.currentTime/this.durationTime*100)}}},l=u,h=(n("856e"),n("2877")),d=Object(h["a"])(l,i,r,!1,null,null,null);d.options.__file="index.vue";e["default"]=d.exports},"33ed":function(t,e,n){"use strict";(function(t){n.d(e,"b",function(){return r}),n.d(e,"c",function(){return a}),n.d(e,"a",function(){return o});var i=n("4a59");function r(t){t.preventDefault()}function a(t){var e=t.scrollTop,n=t.duration,i=document.documentElement,r=i.clientHeight,a=i.scrollHeight;function o(t){if(t<=0)window.scrollTo(0,e);else{var n=e-window.scrollY;requestAnimationFrame(function(){window.scrollTo(0,window.scrollY+n/t*10),o(t-10)})}}e=Math.min(e,a-r),0!==n?window.scrollY!==e&&o(n):i.scrollTop=e}function o(e,n){var r=n.enablePageScroll,a=n.enablePageReachBottom,o=n.onReachBottomDistance,s=n.enableTransparentTitleNView,c=!1,u=!1,l=!0;function h(){var t=document.documentElement,e=t.clientHeight,n=t.scrollHeight,i=window.scrollY,r=i>0&&n>e&&i+e+o>=n;return r&&!u?(u=!0,!0):(!r&&u&&(u=!1),!1)}function d(){var n=window.pageYOffset;r&&Object(i["a"])("onPageScroll",{scrollTop:n},e),s&&t.emit("onPageScroll",{scrollTop:n}),a&&l&&h()&&(Object(i["a"])("onReachBottom",{},e),l=!1,setTimeout(function(){l=!0},350)),c=!1}return function(){c||requestAnimationFrame(d),c=!0}}}).call(this,n("501c"))},3596:function(t,e,n){},"37d4":function(t,e,n){},3858:function(t,e,n){"use strict";n.r(e),n.d(e,"setStorage",function(){return i}),n.d(e,"setStorageSync",function(){return r});var i={key:{type:String,required:!0},data:{required:!0}},r=[{name:"key",type:String,required:!0},{name:"data",required:!0}]},"3a5e":function(t,e,n){},"3ac1":function(t,e,n){},"3ad9":function(t,e,n){"use strict";n.r(e),function(t){var n=Array.prototype.unshift;function i(t){return n.call(t,"[system]"),t}function r(e){return function(){var n=!0;"debug"!==e||__uniConfig.debug||(n=!1),n&&t.console[e].apply(t.console,i(arguments))}}e["default"]={log:r("log"),info:r("info"),warn:r("warn"),debug:r("debug"),error:r("error")}}.call(this,n("c8ba"))},"3c47":function(t,e,n){"use strict";(function(t){var i=n("8af1");e["a"]={name:"Label",mixins:[i["a"]],props:{for:{type:String,default:""}},methods:{_onClick:function(e){var n=/^uni-(checkbox|radio|switch)-/.test(e.target.className);n||(n=/^uni-(checkbox|radio|switch|button)$/i.test(e.target.tagName)),n||(this.for?t.emit("uni-label-click-"+this.$page.id+"-"+this.for,e,!0):this.$broadcast(["Checkbox","Radio","Switch","Button"],"uni-label-click",e,!0))}}}}).call(this,n("501c"))},"3d1f":function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return l});var i=n("62b5"),r=n("a741");function a(e){return function(n,i){var a=getCurrentPages(),o=a.find(function(t){return t.$page.id===i});o?Object(r["b"])(o,e,n):t.error("Not Found:Page[".concat(i,"]"))}}var o=Object(i["a"])("requestComponentInfo");function s(t){var e=t.reqId,n=t.res,i=o.pop(e);i&&i(n)}var c=Object(i["a"])("requestComponentObserver");function u(t){var e=t.reqId,n=t.reqEnd,i=t.res,r=c.get(e);r&&(n&&c.pop(e),r(i))}function l(t){t("onPageReady",a("onReady")),t("onPageScroll",a("onPageScroll")),t("onReachBottom",a("onReachBottom")),t("onRequestComponentInfo",s),t("onRequestComponentObserver",u)}}).call(this,n("3ad9")["default"])},"3d64":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"onNetworkStatusChange",function(){return c}),n.d(e,"getNetworkType",function(){return u});var i=t,r=i.invokeCallbackHandler,a=[];function o(){var t=navigator.connection.type,e="";if(~["none","wifi","unknown"].indexOf(t))e=t;else{var n=navigator.connection.effectiveType;"slow-2g"===n&&(n="2g"),e=n}return e}function s(){var t=!0,e=o();"none"===e&&(t=!1),a.forEach(function(n){n&&r(n,{errMsg:"onNetworkStatusChange:ok",isConnected:t,networkType:e})})}function c(t){window.NetworkInformation?(a.push(t),navigator.connection.onchange=s):t&&r(t,{errMsg:"onNetworkStatusChange:fail"})}function u(){return window.NetworkInformation?{errMsg:"getNetworkType:ok",networkType:o()}:{errMsg:"getNetworkType:fail"}}}.call(this,n("0dd1"))},"3da9":function(t,e,n){"use strict";var i=n("d078"),r=n.n(i);r.a},"3e8c":function(t,e,n){"use strict";n.r(e);var i,r,a={name:"ResizeSensor",props:{initial:{type:[Boolean,String],default:!1}},data:function(){return{size:{width:-1,height:-1}}},watch:{size:{deep:!0,handler:function(t){this.$emit("resize",Object.assign({},t))}}},mounted:function(){if(!0===this.initial&&this.$nextTick(this.update),this.$el.offsetParent!==this.$el.parentNode&&(this.$el.parentNode.style.position="relative"),"attachEvent"in this.$el&&!("AnimationEvent"in window)){var t=function(){this.update(),e()}.bind(this),e=function(){this.$el.detachEvent("onresize",t),this.$off("resizeSensorBeforeDestroy",e)}.bind(this);this.$el.attachEvent("onresize",t),this.$on("resizeSensorBeforeDestroy",e),this.reset()}},methods:{reset:function(){var t=this.$el.firstChild,e=this.$el.lastChild;t.scrollLeft=1e5,t.scrollTop=1e5,e.scrollLeft=1e5,e.scrollTop=1e5},update:function(){this.size.width=this.$el.offsetWidth,this.size.height=this.$el.offsetHeight,this.reset()}},render:function(t){return t("uni-resize-sensor",{on:{"~animationstart":this.update}},[t("div",{on:{scroll:this.update}},[t("div")]),t("div",{on:{scroll:this.update}},[t("div")])])}},o=a,s=(n("64d0"),n("2877")),c=Object(s["a"])(o,i,r,!1,null,null,null);c.options.__file="index.vue";e["default"]=c.exports},"3f7e":function(t,e,n){"use strict";var i=n("800b"),r=n.n(i);r.a},"3ff2":function(t,e,n){"use strict";(function(t){var i=n("f2b3");function r(t){return s(t)||o(t)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function o(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function s(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);ei(o)&&this._cloneArray(r,o)}e.forEach(function(e,i){e!==n.oldValueArray[i]&&(n.oldValueArray[i]=e,n.mode===c.MULTISELECTOR&&t.publishHandler(n.pageId+"-picker-columnchange",{column:i,value:e},n.pageId))})}},created:function(){this._createTime(),this._createDate(),this._setValue(),this.$watch("value",this._setValue),this.$watch("mode",this._setValue)},methods:{_createTime:function(){var t=[],e=[];t.splice(0,t.length);for(var n=0;n<24;n++)t.push((n<10?"0":"")+n);e.splice(0,e.length);for(var i=0;i<60;i++)e.push((i<10?"0":"")+i);this.timeArray.push(t,e)},_createDate:function(){for(var t=[],e=(new Date).getFullYear(),n=e-150,i=e+150;n<=i;n++)t.push(String(n));for(var r=[],a=1;a<=12;a++)r.push((a<10?"0":"")+a);for(var o=[],s=1;s<=31;s++)o.push((s<10?"0":"")+s);this.dateArray.push(t,r,o)},_getTimeValue:function(t){return 60*t[0]+t[1]},_getDateValue:function(t){return 366*t[0]+(t[1]||0)+(t[2]||0)},_cloneArray:function(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;e.animation={duration:t.duration||0,timingFunc:t.timingFunc||"linear"}}}},a={title:{type:String,required:!0}}},4062:function(t,e,n){"use strict";n.r(e),function(t){function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"showModal",function(){return s}),n.d(e,"showToast",function(){return c}),n.d(e,"hideToast",function(){return u}),n.d(e,"showLoading",function(){return l}),n.d(e,"hideLoading",function(){return h}),n.d(e,"showActionSheet",function(){return d});var r=t,a=r.emit,o=r.invokeCallbackHandler;function s(t,e){a("onShowModal",t,function(t){o(e,i({},t,!0))})}function c(t){return a("onShowToast",t),{}}function u(){return a("onHideToast"),{}}function l(t){return a("onShowToast",t),{}}function h(){return a("onHideToast"),{}}function d(t,e){a("onShowActionSheet",t,function(t){o(e,-1===t?{errMsg:"showActionSheet:fail cancel"}:{tapIndex:t})})}}.call(this,n("0dd1"))},"40ab":function(t,e,n){"use strict";n.r(e),n.d(e,"redirectTo",function(){return s}),n.d(e,"reLaunch",function(){return c}),n.d(e,"navigateTo",function(){return u}),n.d(e,"switchTab",function(){return l}),n.d(e,"navigateBack",function(){return h});var i=n("0f74");function r(t){if("string"===typeof t){var e=t.split("?");t=e[0];var n=[];return(e[1]||"").split("&").forEach(function(t){if(t){var e=t.split("=");n.push(e[0]+"="+encodeURIComponent(e[1]))}}),n.length?t+"?"+n.join("&"):t}return t}function a(t){return function(e,n){e=Object(i["a"])(e);var a=e.split("?")[0],o=__uniRoutes.find(function(t){var e=t.path,n=t.alias;return e===a||n===a});if(!o)return"page `"+e+"` is not found";if("navigateTo"===t||"redirectTo"===t){if(o.meta.isTabBar)return"can not ".concat(t," a tabbar page")}else if("switchTab"===t&&!o.meta.isTabBar)return"can not switch to no-tabBar page";o.meta.isTabBar&&(e=a),o.meta.isEntry&&(e=e.replace(o.alias,"/")),n.url=r(e)}}function o(t){return{url:{type:String,required:!0,validator:a(t)}}}var s=o("redirectTo"),c=o("reLaunch"),u=o("navigateTo"),l=o("switchTab"),h={delta:{type:Number,validator:function(t,e){t=parseInt(t)||1,e.delta=Math.min(getCurrentPages().length-1,t)}}}},"439a":function(t,e,n){"use strict";n.r(e),n.d(e,"downloadFile",function(){return i});var i={url:{type:String,required:!0},header:{type:Object,validator:function(t,e){e.header=t||{}}}}},"442e":function(t,e,n){"use strict";n.r(e),function(t){var e=n("8bbf"),i=n.n(e),r=n("5129"),a=n.n(r),o=i.a.config.isReservedTag;i.a.config.isReservedTag=function(t){return-1!==a.a.indexOf(t)||o(t)},i.a.config.ignoredElements=a.a;var s=i.a.config.getTagNamespace,c=["switch","image","text","view"];i.a.config.getTagNamespace=function(t){return!~c.indexOf(t)&&(s(t)||!1)},i.a.config.errorHandler=function(e,n,i){t.error("errorHandler",e,n,i)}}.call(this,n("3ad9")["default"])},"44de":function(t,e,n){"use strict";n.r(e),n.d(e,"vibrateLong",function(){return r}),n.d(e,"vibrateShort",function(){return a});var i=!!window.navigator.vibrate;function r(){return i&&window.navigator.vibrate(400)?{errMsg:"vibrateLong:ok"}:{errMsg:"vibrateLong:fail"}}function a(){return i&&window.navigator.vibrate(15)?{errMsg:"vibrateShort:ok"}:{errMsg:"vibrateShort:fail"}}},"4a59":function(t,e,n){"use strict";(function(t){function i(e,n,i){t.UniServiceJSBridge.subscribeHandler(e,n,i)}n.d(e,"a",function(){return i})}).call(this,n("c8ba"))},"4b10":function(t,e,n){},"4ca9":function(t,e,n){"use strict";n.r(e),function(t){var i=n("6389"),r=n.n(i),a=n("f2b3"),o=n("85b6"),s=n("abbf"),c=n("0784");function u(t){var e=0;return t.forEach(function(t){t.meta.id&&e++}),e}function l(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":decodeURI(t.slice(e+1))}function h(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",e=decodeURI(window.location.pathname);return t&&0===e.indexOf(t)&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}e["default"]={install:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.routes,d=u(i),f=new r.a({id:d,mode:__uniConfig.router.mode,base:__uniConfig.router.base,routes:i,scrollBehavior:function(t,e,n){return n||{x:0,y:0}}}),p=[],g=f.match("history"===__uniConfig.router.mode?h(__uniConfig.router.base):l());g.meta.name&&(g.meta.id?p.push(g.meta.name+"-"+g.meta.id):p.push(g.meta.name+"-"+(d+1))),g.meta&&g.meta.name&&(document.body.className="uni-body "+g.meta.name),e.mixin({beforeCreate:function(){var e=this.$options;if("app"===e.mpType){e.data=function(){return{keepAliveInclude:p}};var n=Object(s["a"])(i,g);Object.keys(n).forEach(function(t){e[t]=e[t]?[].concat(n[t],e[t]):[n[t]]}),e.router=f,Object(a["e"])(e.onError)||(e.onError=function(e){t.error(e)})}else if(Object(o["a"])(this)){var r=Object(c["a"])();Object.keys(r).forEach(function(t){e[t]=e[t]?[].concat(r[t],e[t]):[r[t]]})}else this.$parent&&this.$parent.__page__&&(this.__page__=this.$parent.__page__)}}),Object.defineProperty(e.prototype,"$page",{get:function(){return this.__page__}}),e.use(r.a)}}}.call(this,n("3ad9")["default"])},"4da7":function(t,e,n){"use strict";n.r(e);var i,r,a={ensp:" ",emsp:" ",nbsp:" "},o={name:"Text",props:{selectable:{type:[Boolean,String],default:!1},space:{type:String,default:""},decode:{type:[Boolean,String],default:!1}},methods:{_decodeHtml:function(t){return this.space&&a[this.space]&&(t=t.replace(/ /g,a[this.space])),this.decode&&(t=t.replace(/ /g,a.nbsp).replace(/ /g,a.ensp).replace(/ /g,a.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'")),t}},render:function(t){var e=this,n=[];return this.$slots.default&&this.$slots.default.forEach(function(i){if(i.text){var r=i.text.replace(/\\n/g,"\n"),a=r.split("\n");a.forEach(function(i,r){n.push(e._decodeHtml(i)),r!==a.length-1&&n.push(t("br"))})}else n.push(i)}),t("uni-text",{on:this.$listeners},[t("span",{},n)])}},s=o,c=(n("c8ed"),n("2877")),u=Object(c["a"])(s,i,r,!1,null,null,null);u.options.__file="index.vue";e["default"]=u.exports},"4f1c":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-switch",t._g({on:{click:t._onClick}},t.$listeners),[n("div",{staticClass:"uni-switch-wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:"switch"===t.type,expression:"type === 'switch'"}],staticClass:"uni-switch-input",class:[t.switchChecked?"uni-switch-input-checked":""],style:{backgroundColor:t.switchChecked?t.color:"#DFDFDF",borderColor:t.switchChecked?t.color:"#DFDFDF"}}),n("div",{directives:[{name:"show",rawName:"v-show",value:"checkbox"===t.type,expression:"type === 'checkbox'"}],staticClass:"uni-checkbox-input",class:[t.switchChecked?"uni-checkbox-input-checked":""],style:{color:t.color}})])])},r=[],a=n("8af1"),o={name:"Switch",mixins:[a["a"],a["c"]],props:{name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"}},data:function(){return{switchChecked:this.checked}},watch:{checked:function(t){this.switchChecked=t}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},listeners:{"label-click":"_onClick","@label-click":"_onClick"},methods:{_onClick:function(t){this.disabled||(this.switchChecked=!this.switchChecked,this.$trigger("change",t,{value:this.switchChecked}))},_resetFormData:function(){this.switchChecked=!1},_getFormData:function(){var t={};return""!==this.name&&(t["value"]=this.switchChecked,t["key"]=this.name),t}}},s=o,c=(n("a5ec"),n("2877")),u=Object(c["a"])(s,i,r,!1,null,null,null);u.options.__file="index.vue";e["default"]=u.exports},"4f43":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"DownloadTask",function(){return c}),n.d(e,"downloadFile",function(){return u});var i=n("e2e2");function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;nthis.displayMultipleItemsNumber}},watch:{vertical:function(){this._resetLayout()},circular:function(){this._resetLayout()},intervalNumber:function(t){this._timer&&(this._cancelSchedule(),this._scheduleAutoplay())},current:function(t){this._currentCheck()},currentSync:function(t){this._currentChanged(t),this.$emit("update:current",t)},currentItemId:function(t){this._currentCheck()},currentItemIdSync:function(t){this.$emit("update:currentItemId",t)},displayMultipleItemsNumber:function(){this._resetLayout()}},created:function(){this._invalid=!0,this._viewportPosition=0,this._viewportMoveRatio=1,this._animating=null,this._requestedAnimation=!1,this._userDirectionChecked=!1,this._contentTrackViewport=0,this._contentTrackSpeed=0,this._contentTrackT=0},mounted:function(){var t=this;this._currentCheck(),this.touchtrack(this.$refs.slidesWrapper,"_handleContentTrack",!0),this._resetLayout(),this.$watch(function(){return t.autoplay&&!t.userTracking},this._inintAutoplay),this._inintAutoplay(this.autoplay&&!this.userTracking),this.$watch("items.length",this._resetLayout)},beforeDestroy:function(){this._cancelSchedule()},methods:{_itemIdUpdated:function(t,e,n){n&&this.$set(this.itemIdItemMap,n,null),e&&this.$set(this.itemIdItemMap,e,t.$vnode)},_inintAutoplay:function(t){t?this._scheduleAutoplay():this._cancelSchedule()},_currentCheck:function(){var t=this.items.indexOf(this.itemIdItemMap[this.currentItemId]);t<0&&(t=Math.round(this.current)||0),t=t<0?0:t,this.currentSync!==t&&(this.currentChangeSource="",this.currentSync=t)},_itemReady:function(t,e){t.componentInstance&&t.componentInstance._isMounted?e():(t._callbacks=t._callbacks||[],t._callbacks.push(e))},_currentChanged:function(t){var e=this,n=this.currentChangeSource;this.currentChangeSource="",n||this._animateViewport(t,"",0);var i=this.items[t];i&&this._itemReady(i,function(){var t=e.currentItemIdSync=i.componentInstance.itemId||"";e.$trigger("change",{},{current:e.currentSync,currentItemId:t,source:n})})},_scheduleAutoplay:function(){var t=this;function e(){t._timer=null,t.currentChangeSource="autoplay",t.circularEnabled?t.currentSync=t._normalizeCurrentValue(t.currentSync+1):t.currentSync=t.currentSync+t.displayMultipleItemsNumbere-this.displayMultipleItemsNumber)return e-this.displayMultipleItemsNumber;return n},_upx2px:function(t){return/\d+[ur]px$/i.test(t)&&t.replace(/\d+[ur]px$/i,function(t){return"".concat(uni.upx2px(parseFloat(t)),"px")}),t||""},_resetLayout:function(){if(this._isMounted){this._cancelSchedule(),this._endViewportAnimation();for(var t=this.items,e=0;e0&&this._viewportMoveRatio<1||(this._viewportMoveRatio=1)}var r=this._viewportPosition;this._viewportPosition=-2;var a=this.currentSync;a>=0?(this._invalid=!1,this.userTracking?(this._updateViewport(r+a-this._contentTrackViewport),this._contentTrackViewport=a):this._updateViewport(a)):(this._invalid=!0,this._updateViewport(-this.displayMultipleItemsNumber-1))}},_checkCircularLayout:function(t){if(!this._invalid)for(var e=this.items,n=e.length,i=t+this.displayMultipleItemsNumber,r=0;rt;)a-=r}else if(n>0){for(;a>t;)a-=r;for(;a+rt;)a-=r;a+r-tr)&&(i<0?i=-a(-i):i>r&&(i=r+a(i-r)),e._contentTrackSpeed=0),e._updateViewport(i)}this.vertical?o(-t.dy/this.$refs.slideFrame.offsetHeight,-t.ddy/(this._contentTrackT-n)):o(-t.dx/this.$refs.slideFrame.offsetWidth,-t.ddx/(this._contentTrackT-n))},_handleTrackEnd:function(t){this.userTracking=!1;var e=this._contentTrackSpeed/Math.abs(this._contentTrackSpeed),n=0;!t&&Math.abs(this._contentTrackSpeed)>.2&&(n=.5*e);var i=this._normalizeCurrentValue(this._viewportPosition+n);t?this._updateViewport(this._contentTrackViewport):(this.currentChangeSource="touch",this.currentSync=i,this._animateViewport(i,"touch",0!==n?n:0===i&&this.circularEnabled&&this._viewportPosition>=1?1:0))},_handleContentTrack:function(t){if(!this._invalid){if("start"===t.detail.state)return this.userTracking=!0,this._userDirectionChecked=!1,this._handleTrackStart();if("end"===t.detail.state)return this._handleTrackEnd(!1);if("cancel"===t.detail.state)return this._handleTrackEnd(!0);if(this.userTracking){if(!this._userDirectionChecked){this._userDirectionChecked=!0;var e=Math.abs(t.detail.dx),n=Math.abs(t.detail.dy);if(e>=n&&this.vertical?this.userTracking=!1:e<=n&&!this.vertical&&(this.userTracking=!1),!this.userTracking)return}return this._handleTrackMove(t.detail),!1}}}},render:function(t){var e=this,n=[],i=0,r=[];this.$slots.default&&this.$slots.default.forEach(function(a){a.componentOptions&&"v-uni-swiper-item"===a.componentOptions.tag&&(r.push(a),n.push(t("div",{class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":i===e.currentSync},style:{background:i===e.currentSync?e.indicatorActiveColor:e.indicatorColor}})),i++)}),this.items=r;var a=[t("div",{ref:"slides",style:this.slidesStyle,class:"uni-swiper-slides"},[t("div",{ref:"slideFrame",class:"uni-swiper-slide-frame",style:this.slideFrameStyle},r)])];return this.indicatorDots&&a.push(t("div",{ref:"slidesDots",class:["uni-swiper-dots",this.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},n)),t("uni-swiper",[t("div",{ref:"slidesWrapper",class:"uni-swiper-wrapper",on:this.$listeners},a)])}},s=o,c=(n("1c64"),n("2877")),u=Object(c["a"])(s,i,r,!1,null,null,null);u.options.__file="index.vue";e["default"]=u.exports},5565:function(t,e,n){},5676:function(t,e,n){"use strict";var i=n("d859"),r=n.n(i);r.a},5727:function(t,e,n){"use strict";var i=n("a007"),r=n.n(i);r.a},5768:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-textarea",t._g({staticStyle:{height:"height+'px'"}},t.$listeners),[n("div",{ref:"wrapped",staticClass:"uni-textarea-wrapped"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!(t.composition||t.valueSync.length),expression:"!(composition||valueSync.length)"}],ref:"placeholder",staticClass:"uni-textarea-placeholder",class:t.placeholderClass,style:t.placeholderStyle},[t._v(t._s(t.placeholder))]),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.valueSync,expression:"valueSync"}],ref:"textarea",staticClass:"uni-textarea-textarea",attrs:{disabled:t.disabled,maxlength:t.maxlengthNumber,placeholder:t.placeholder,autofocus:t.autoFocus},domProps:{value:t.valueSync},on:{compositionstart:t._compositionstart,compositionend:t._compositionend,input:[function(e){e.target.composing||(t.valueSync=e.target.value)},function(t){t.stopPropagation()}],focus:t._focus,blur:t._blur,"&touchstart":function(e){return t._touchstart(e)},"&scroll":function(e){return t._scroll(e)}}})])])},r=[],a=n("8af1"),o={name:"Textarea",mixins:[a["a"]],model:{prop:"value",event:"update:value"},props:{name:{type:String,default:""},value:{type:[String,Number],default:""},maxlength:{type:[Number,String],default:140},placeholder:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},placeholderClass:{type:String,default:""},placeholderStyle:{type:String,default:""},autoHeight:{type:[Boolean,String],default:!1},bindinput:{type:String,default:""},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1}},data:function(){return{valueSync:String(this.value),composition:!1,focusSync:this.focus,height:0,focusChangeSource:""}},computed:{maxlengthNumber:function(){var t=Number(this.maxlength);return isNaN(t)?140:t},cursorNumber:function(){var t=Number(this.cursor);return isNaN(t)?-1:t},selectionStartNumber:function(){var t=Number(this.selectionStart);return isNaN(t)?-1:t},selectionEndNumber:function(){var t=Number(this.selectionEnd);return isNaN(t)?-1:t}},watch:{value:function(t){this.valueSync=String(t)},valueSync:function(t){t!==this.value&&(this.$trigger("input",{},{value:t,cursor:this.$refs.textarea.selectionEnd}),this.$emit("update:value",t))},focus:function(t){t?(this.focusChangeSource="focus",this.$refs.textarea&&this.$refs.textarea.focus()):this.$refs.textarea&&this.$refs.textarea.blur()},focusSync:function(t){this.$emit("update:focus",t),this._checkSelection(),this._checkCursor()},cursorNumber:function(){this._checkCursor()},selectionStartNumber:function(){this._checkSelection()},selectionEndNumber:function(){this._checkSelection()},height:function(t){var e=getComputedStyle(this.$el).lineHeight.replace("px",""),n=Math.round(t/e);this.$trigger("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:n}),this.autoHeight&&(this.$el.style.height=this.height+"px")}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},mounted:function(){this.$refs.textarea.value=this.valueSync,this._computeHeight()},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_computeHeight:function(){var t=this;this.$nextTick(function(){t.height=t.$refs.textarea.scrollHeight})},_focus:function(t){this.focusSync=!0,this.$trigger("focus",t,{value:this.valueSync})},_checkSelection:function(){this.focusSync&&!this.focusChangeSource&&this.selectionStartNumber>-1&&this.selectionEndNumber>-1&&(this.$refs.textarea.selectionStart=this.selectionStartNumber,this.$refs.textarea.selectionEnd=this.selectionEndNumber)},_checkCursor:function(){this.focusSync&&("focus"===this.focusChangeSource||!this.focusChangeSource&&this.selectionStartNumber<0&&this.selectionEndNumber<0)&&this.cursorNumber>-1&&(this.$refs.textarea.selectionEnd=this.$refs.textarea.selectionStart=this.cursorNumber)},_blur:function(t){this.focusSync=!1,this.$trigger("blur",t,{value:this.valueSync,cursor:this.$refs.textarea.selectionEnd})},_compositionstart:function(t){this.composition=!0},_compositionend:function(t){this.composition=!1},_confirm:function(t){this.$trigger("confirm",t,{value:this.valueSync})},_linechange:function(t){this.$trigger("linechange",t,{value:this.valueSync})},_touchstart:function(){this.focusChangeSource="touch"},_scroll:function(){this._computeHeight()},_getFormData:function(){return{value:this.valueSync,key:this.name}},_resetFormData:function(){this.valueSync=""}}},s=o,c=(n("9400"),n("2877")),u=Object(c["a"])(s,i,r,!1,null,null,null);u.options.__file="index.vue";e["default"]=u.exports},"57a7":function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n0&&(n.currentTime=t)});var a=["canplay","play","pause","ended","timeUpdate","error","waiting","seeking","seeked"],c=["pause","seeking","seeked","timeUpdate"];a.forEach(function(t){n.addEventListener(t.toLowerCase(),function(){e._stoping&&c.indexOf(t)>=0||e._events["on".concat(t.substr(0,1).toUpperCase()).concat(t.substr(1))].forEach(function(t){t()})},!1)})}return a(t,[{key:"play",value:function(){this._stoping=!1,this._audio.play()}},{key:"pause",value:function(){this._audio.pause()}},{key:"stop",value:function(){this._stoping=!0,this._audio.pause(),this._audio.currentTime=0,this._events.onStop.forEach(function(t){t()})}},{key:"seek",value:function(t){this._stoping=!1,t=Number(t),"number"!==typeof t||isNaN(t)||(this._audio.currentTime=t)}},{key:"destroy",value:function(){this.stop()}}]),t}();function u(){return new c}s.forEach(function(t){c.prototype[t]=function(e){"function"===typeof e&&this._events[t].push(e)}})},"58ae":function(t,e,n){"use strict";(function(t){var i=n("8af1");function r(t){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var a=t,o=a.subscribe,s=a.unsubscribe,c=a.publishHandler,u={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},l={YEAR:"year",MONTH:"month",DAY:"day"};e["a"]={name:"Picker",mixins:[i["a"]],props:{name:{type:String,default:""},range:{type:Array,default:function(){return[]}},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:u.SELECTOR,validator:function(t){return Object.values(u).indexOf(t)>=0}},fields:{type:String,default:"day",validator:function(t){return Object.values(l).indexOf(t)>=0}},start:{type:String,default:function(){if(this.mode===u.TIME)return"00:00";if(this.mode===u.DATE){var t=(new Date).getFullYear()-100;switch(this.fields){case l.YEAR:return t;case l.MONTH:return t+"-01";case l.DAY:return t+"-01-01"}}return""}},end:{type:String,default:function(){if(this.mode===u.TIME)return"23:59";if(this.mode===u.DATE){var t=(new Date).getFullYear()+100;switch(this.fields){case l.YEAR:return t;case l.MONTH:return t+"-12";case l.DAY:return t+"-12-31"}}return""}},disabled:{type:[Boolean,String],default:!1},customItem:{type:String,default:""}},data:function(){return{valueSync:this.value,visible:!1,valueChangeSource:""}},watch:{value:function(t){var e=this;Array.isArray(t)?(Array.isArray(this.valueSync)||(this.valueSync=[]),t.forEach(function(t,n){t!==e.valueSync[n]&&e.$set(e.valueSync,n,t)}),t.length!==this.valueSync.length&&this.valueSync.splice(t.length,t.length-this.valueSync.length)):"object"!==r(t)&&(this.valueSync=t)},valueSync:function(t){this.valueChangeSource?this.$emit("update:value",t):this._show()}},created:function(){var t=this;this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this}),Object.keys(this.$props).forEach(function(e){"value"!==e&&"name"!==e&&t.$watch(e,t._show())})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},destroyed:function(){if(this.visible){var t=this.$page.id;c("hidePicker",{},t)}},methods:{_click:function(){if(!this.disabled){var t=this.$page.id;o("".concat(t,"-picker-change"),this.change),o("".concat(t,"-picker-columnchange"),this.columnchange),o("".concat(t,"-picker-cancel"),this.cancel),this.visible=!0,this._show()}},_show:function(){if(this.visible){var t=this.$page.id,e=Object.assign({},this.$props);e.value=this.valueSync,c("showPicker",e,t)}},change:function(t){this.visible=!1;var e=this.$page.id;if(s("".concat(e,"-picker-change")),s("".concat(e,"-picker-columnchange")),s("".concat(e,"-picker-cancel")),!this.disabled){this.valueChangeSource="click";var n=t.value;this.valueSync=Array.isArray(n)?n.map(function(t){return t}):n,this.$trigger("change",{},{value:n})}},columnchange:function(t){this.$trigger("change",{},t)},cancel:function(t){this.visible=!1;var e=this.$page.id;s("".concat(e,"-picker-change")),s("".concat(e,"-picker-columnchange")),s("".concat(e,"-picker-cancel")),this.$trigger("cancel",{},{})},_getFormData:function(){return{value:this.valueSync,key:this.name}},_resetFormData:function(){this.valueSync=""}}}}).call(this,n("501c"))},"594d":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-map",{staticClass:"uni-map",attrs:{id:t.id}})},r=[],a=n("7351"),o=a["a"],s=(n("3f7e"),n("2877")),c=Object(s["a"])(o,i,r,!1,null,null,null);c.options.__file="index.vue";e["default"]=c.exports},"5a56":function(t,e,n){"use strict";n.r(e),e["default"]={methods:{beforeTransition:function(){},afterTransition:function(){}}}},"5ab3":function(t,e,n){"use strict";var i=n("287f"),r=n.n(i);r.a},"5b81":function(t,e,n){},"5bd2":function(t,e,n){"use strict";n.r(e),n.d(e,"redirectTo",function(){return a}),n.d(e,"navigateTo",function(){return o}),n.d(e,"navigateBack",function(){return s}),n.d(e,"reLaunch",function(){return c}),n.d(e,"switchTab",function(){return u});var i=n("f2b3");function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.url,r=e.delta,a=e.from,o=void 0===a?"navigateBack":a,s=getApp().$router;switch(t){case"redirectTo":s.replace({type:t,path:n});break;case"navigateTo":s.push({type:t,path:n});break;case"navigateBack":var c=!0,u=getCurrentPages();if(u.length){var l=u[u.length-1];Object(i["e"])(l.$options.onBackPress)&&!0===l.$options.onBackPress.call(l,{from:o})&&(c=!1)}c&&s.go(-r);break;case"reLaunch":s.replace({type:t,path:n});break;case"switchTab":s.replace({type:t,path:n});break}return{errMsg:t+":ok"}}function a(t){return r("redirectTo",t)}function o(t){return r("navigateTo",t)}function s(t){return r("navigateBack",t)}function c(t){return r("reLaunch",t)}function u(t){return r("switchTab",t)}},6062:function(t,e,n){"use strict";var i=n("c863"),r=n.n(i);r.a},6226:function(t,e,n){"use strict";var i=n("b7a0"),r=n.n(i);r.a},"626d":function(t,e,n){"use strict";n.r(e),function(t){var i=n("f2b3");e["default"]={data:function(){return{showActionSheet:{visible:!1}}},created:function(){var e=this;t.on("onShowActionSheet",function(t,n){e.showActionSheet=t,e.onActionSheetCloseCallback=n}),t.on("onHidePopup",function(t){e.showActionSheet.visible=!1})},methods:{_onActionSheetClose:function(t){this.showActionSheet.visible=!1,Object(i["e"])(this.onActionSheetCloseCallback)&&this.onActionSheetCloseCallback(t)}}}}.call(this,n("0dd1"))},"62b5":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i={};function r(t){var e=i[t];return e||(e={id:1,callbacks:Object.create(null)},i[t]=e),{get:function(t){return e.callbacks[t]},pop:function(t){var n=e.callbacks[t];return n&&delete e.callbacks[t],n},push:function(t){var n=e.id++;return e.callbacks[n]=t,n}}}},6389:function(e,n){e.exports=t},6428:function(t,e,n){"use strict";var i=n("a3da"),r=n.n(i);r.a},6491:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-radio",t._g({on:{click:t._onClick}},t.$listeners),[n("div",{staticClass:"uni-radio-wrapper"},[n("div",{staticClass:"uni-radio-input",class:t.radioChecked?"uni-radio-input-checked":"",style:t.radioChecked?t.checkedStyle:""}),t._t("default")],2)])},r=[],a=n("8af1"),o={name:"Radio",mixins:[a["a"],a["c"]],props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007AFF"},value:{type:String,default:""}},data:function(){return{radioChecked:this.checked,radioValue:this.value}},computed:{checkedStyle:function(){return"background-color: ".concat(this.color,";border-color: ").concat(this.color,";")}},watch:{checked:function(t){this.radioChecked=t},value:function(t){this.radioValue=t}},listeners:{"label-click":"_onClick","@label-click":"_onClick"},created:function(){this.$dispatch("RadioGroup","uni-radio-group-update",{type:"add",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("RadioGroup","uni-radio-group-update",{type:"remove",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onClick:function(t){this.disabled||this.radioChecked||(this.radioChecked=!0,this.$dispatch("RadioGroup","uni-radio-change",t,this))},_resetFormData:function(){this.radioChecked=this.min}}},s=o,c=(n("c96e"),n("2877")),u=Object(c["a"])(s,i,r,!1,null,null,null);u.options.__file="index.vue";e["default"]=u.exports},"64d0":function(t,e,n){"use strict";var i=n("3ac1"),r=n.n(i);r.a},"65a8":function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=44,r=50},6730:function(t,e,n){"use strict";var i=n("27be"),r=n.n(i);r.a},"677e":function(t,e,n){},"6f00":function(t,e,n){"use strict";var i=n("c630"),r=n.n(i);r.a},"6f1a":function(t,e,n){},"6fc7":function(t,e,n){"use strict";var i=n("7c21"),r=n.n(i);r.a},"70f4":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-label",t._g({on:{click:t._onClick}},t.$listeners),[t._t("default")],2)},r=[],a=n("3c47"),o=a["a"],s=(n("6730"),n("2877")),c=Object(s["a"])(o,i,r,!1,null,null,null);c.options.__file="index.vue";e["default"]=c.exports},7272:function(t,e,n){},7351:function(t,e,n){"use strict";(function(t){var i,r=n("8af1"),a=n("f2b3");function o(t){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}var s=function(t){this.option=t=t||{};var e=t.map;this.position=t.position,this.index=1,this.visible=this.alwaysVisible="ALWAYS"===t.display,this.init(),e&&this.setMap(e)};function c(t,e){var n,i,r=0,o=200;t.addEventListener("touchstart",function(t){r=Date.now();var e=t.targetTouches[0];n=e.screenX,i=e.screenY},!!a["h"]&&{passive:!0}),t.addEventListener("touchend",function(t){var a=t.changedTouches[0];Math.abs(a.screenX-n)>20||Math.abs(a.screenY-i)>20||Date.now()-r>o||e(t)},!!a["h"]&&{passive:!0})}e["a"]={name:"Map",mixins:[r["d"]],props:{id:{type:String,default:""},longitude:{type:[String,Number],default:116.39772},latitude:{type:[String,Number],default:39.90323},scale:{type:[String,Number],default:16},markers:{type:Array,default:function(){return[]}},covers:{type:Array,default:function(){return[]}},polyline:{type:Array,default:function(){return[]}},circles:{type:Array,default:function(){return[]}},controls:{type:Array,default:function(){return[]}},includePoints:{type:Array,default:function(){return[]}},showLocation:{type:[Boolean,String],default:!1}},data:function(){return{center:{latitude:39.90323,longitude:116.39772},isMapReady:!1,isBoundsReady:!1,markersSync:[],polylineSync:[],circlesSync:[],controlsSync:[],map:null,mapLocation:null,mapLocationPosition:null}},watch:{latitude:function(t){t&&this.longitude&&(this.center.latitude=Number(t))},longitude:function(t){t&&this.latitude&&(this.center.longitude=Number(t))},center:{handler:function(t){var e=this;this.map&&this.mapReady(function(){e.map.setCenter(new i.LatLng(t.latitude,t.longitude))})},deep:!0},scale:function(t){var e=this;this.mapReady(function(){e.map.setZoom(Number(t))})},markers:function(t,e){var n=this;this.mapReady(function(){var i=[],r=[],a=[],o=[],s=[];t.forEach(function(t){if("id"in t){for(var n=!1,s=0;s=0?(e=a.indexOf(i))>=0&&n.changeMarker(t,o[e]):s.push(t)}),n.removeMarkers(s),n.createMarkers(i)})},polyline:function(t){var e=this;this.mapReady(function(){e.createPolyline()})},circles:function(){var t=this;this.mapReady(function(){t.createCircles()})},controls:function(){var t=this;this.mapReady(function(){t.createControls()})},includePoints:function(){var t=this;this.mapReady(function(){t.fitBounds(t.includePoints)})},showLocation:function(t){var e=this;this.mapReady(function(){e[t?"createLocation":"removeLocation"]()})}},created:function(){var t=this.latitude,e=this.longitude;t&&e&&(this.center.latitude=t,this.center.longitude=e)},mounted:function(){var t=this;this.loadMap(function(){t.createClass(),t.init()})},beforeDestroy:function(){this.removeMarkers(this.markersSync),this.removePolyline(),this.removeCircles(),this.removeControls(),this.removeLocation(),this.map=null},methods:{_handleSubscribe:function(t){var e=this,n=t.type,r=t.data,a=void 0===r?{}:r;function o(t,e){t=t||{},t.errMsg="".concat(n,":").concat(e?"fail"+e:"ok");var i=e?a.fail:a.success;"function"===typeof i&&i(t),"function"===typeof a.complete&&a.complete(t)}switch(n){case"getCenterLocation":this.mapReady(function(){var t,n,i=e.map.getCenter();t=i.getLat(),n=i.getLng(),o({latitude:t,longitude:n})});break;case"moveToLocation":var s=this.mapLocationPosition;s&&this.map.setCenter(s);break;case"translateMarker":this.mapReady(function(){try{var t=e.getMarker(a.markerId),n=a.destination,r=a.duration,s=!!a.autoRotate,c=Number(a.rotate)?a.rotate:0,u=t.getRotation(),l=t.getPosition(),h=new i.LatLng(n.latitude,n.longitude),d=i.geometry.spherical.computeDistanceBetween(l,h)/1e3,f=("number"===typeof r?r:1e3)/36e5,p=d/f,g=i.event.addListener(t,"moving",function(e){var n=e.latLng,i=t.label;i&&i.setPosition(n);var r=t.callout;r&&r.setPosition(n)}),v=i.event.addListener(t,"moveend",function(e){v.remove(),g.remove(),t.lastPosition=l,t.setPosition(h);var n=t.label;n&&n.setPosition(h);var i=t.callout;i&&i.setPosition(h);var r=a.animationEnd;"function"===typeof r&&r()}),m=0;s&&(t.lastPosition&&(m=i.geometry.spherical.computeHeading(t.lastPosition,l)),c=i.geometry.spherical.computeHeading(l,h)-m),t.setRotation(u+c),t.moveTo(h,p)}catch(b){o(null,b)}});break;case"includePoints":this.fitBounds(a.points);break;case"getRegion":this.boundsReady(function(){var t=e.map.getBounds(),n=t.getSouthWest(),i=t.getNorthEast();o({southwest:{latitude:n.getLat(),longitude:n.getLng()},northeast:{latitude:i.getLat(),longitude:i.getLng()}})});break;case"getScale":this.mapReady(function(){o({scale:Number(e.scale)})});break}},init:function(){var t=this,e=new i.LatLng(this.center.latitude,this.center.longitude),n=this.map=new i.Map(this.$el,{center:e,zoom:Number(this.scale),scrollwheel:!1,disableDoubleClickZoom:!0,mapTypeControl:!1,zoomControl:!1,scaleControl:!1,minZoom:5,maxZoom:18,draggable:!0}),r=i.event.addListener(n,"bounds_changed",function(e){r.remove(),t.isBoundsReady=!0,t.$emit("boundsready")});i.event.addListener(n,"click",function(){t.$trigger("tap",{},{})}),i.event.addListener(n,"dragstart",function(){t.$trigger("regionchange",{},{type:"begin"})}),i.event.addListener(n,"dragend",function(){t.$trigger("regionchange",{},{type:"end"})}),i.event.addListener(n,"zoom_changed",function(){t.$emit("update:scale",n.getZoom())}),i.event.addListener(n,"center_changed",function(){var e,i,r=n.getCenter();e=r.getLat(),i=r.getLng(),t.$emit("update:latitude",e),t.$emit("update:longitude",i)}),this.markers&&Array.isArray(this.markers)&&this.markers.length&&this.createMarkers(this.markers),this.polyline&&Array.isArray(this.polyline)&&this.polyline.length&&this.createPolyline(),this.circles&&Array.isArray(this.circles)&&this.circles.length&&this.createCircles(),this.controls&&Array.isArray(this.controls)&&this.controls.length&&this.createControls(),this.showLocation&&this.createLocation(),this.includePoints&&Array.isArray(this.includePoints)&&this.includePoints.length&&this.fitBounds(this.includePoints,function(){n.setCenter(e)}),this.isMapReady=!0,this.$emit("mapready")},createMarkers:function(t){var e=this,n=this.map,r=this.markersSync;t.forEach(function(t){var a,o=new i.Marker({map:n,flat:!0,autoRotation:!1});o.id=t.id,e.changeMarker(o,t),i.event.addListener(o,"mouseup",function(t){a=Date.now()}),i.event.addListener(o,"click",function(n){if(!(Date.now()-a<20)){var i=o.callout;if(i){var r=i.div,s=r.parentNode;i.alwaysVisible||i.set("visible",!i.visible),i.visible&&(s.removeChild(r),s.appendChild(r))}e.$trigger("markertap",{},{markerId:t.id||1})}}),r.push(o)})},changeMarker:function(e,n){var r=this.map,a=n.title||n.name,o=new i.LatLng(n.latitude,n.longitude),c=new Image;c.onload=function(){var t,u,l,h,d=n.anchor||{},f=d.x,p=d.y;n.iconPath&&(n.width||n.height)?(u=n.width||c.width/c.height*n.height,l=n.height||c.height/c.width*n.width):(u=c.width/2,l=c.height/2),f=("number"===typeof f?f:.5)*u,p=("number"===typeof p?p:1)*l,h=l-(l-p),t=new i.MarkerImage(c.src,null,null,new i.Point(f,p),new i.Size(u,l)),e.setPosition(o),e.setIcon(t),e.setRotation(n.rotate||0);var g,v=n.label||{};e.label&&(e.label.setMap(null),delete e.label),v.content&&(g=new i.Label({position:o,map:r,clickable:!1,content:v.content,style:{border:"none",padding:"8px",background:"none",color:v.color,fontSize:(v.fontSize||14)+"px",lineHeight:(v.fontSize||14)+"px",marginLeft:v.x,marginTop:v.y}}),e.label=g);var m,b=n.callout||{},_=e.callout;b.content?m={id:n.id,position:o,map:r,top:h,content:b.content,color:b.color,fontSize:b.fontSize,borderRadius:b.borderRadius,bgColor:b.bgColor,padding:b.padding,boxShadow:b.boxShadow,display:b.display}:a&&(m={id:n.id,position:o,map:r,top:h,content:a,boxShadow:"0px 0px 3px 1px rgba(0,0,0,0.5)"}),m?_?_.setOption(m):_=e.callout=new s(m):_&&(_.setMap(null),delete e.callout)},t.log(n.iconPath),t.log(this.$getRealPath(n.iconPath)),c.src=this.$getRealPath(n.iconPath)||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAABQCAYAAABFyhZTAAANDElEQVR4nNWce4hc133Hv+fc92MeuytpV5ZXll2XuvTlUBTSP1IREsdNiKGEEAgE3EBLaBtK/2hNoQTStISUosiGOqVpQ+qkIdAax1FiG+oYIxyD4xi3uKlEXSFFke3d1e5od+a+H+ec/nHvmbkzs6ud2bmjTX7wY3b3zr3nfM7vd37n8Tt3CW6DiDP3EABSd/0KAEEuXBHzrsteFTiwVOBo+amUP9PK34ZuAcD30NoboTZgceYeCaQAUEvVAKiZ0lpiiv0Lgmi/imFLF5YV2SWFR1e0fGcDQF5qVn4y1Ag/E3DFmhJSB2Dk1D2Squ0HBdT3C0JPE6oco6oKqmm7PodnGXieQ3DWIYL/iCB/UWO95zTW2wCQlpqhgJ8J/MDApUUVFFY0AFiRdvwMJ8bvCaKcUW3bUE0DimGAKMpkz2QMLEnBkhhZEHICfoHy+AkrW3seQAwgQQHPyIUr/CD1nhq4tCpFAWoCsGNt5X2MWo9Qw/p1zXGgWiZAZu8teRQhCwLwOLpEefKolb3zDIAQBXyGAnwqa09Vq4pVDQBOqrTuTmn7c9S0H9QdB6ptT/O4iSWPY2S+DxYHFzTW+5zBti8BCFBYfCprTwxcwmoALABupK48lFPri0az1dSbjWkZDiSp5yPpdn2Vh39m5evPAPABRACySaH3Ba64sA7ABtD0tdXPUqvxKd1xoJrmDAjTSx7HCDsdroj0nJO99TiAHgprZwD4fi5+S+AKrAHA5UQ7EijH/05rND9sNJsglNaEMZ3wPEfq+8i97vdstv4IFdkWBi5+S2h1n2dL2IYAXQqU449pjdYHzFaruDr3edEelVJUmK02YpCPBD454uRrf0BFtlleTlAMX7vfu9eFSp91ALR95cRfq27zA2ariXK+cOhqtprQnOZ7AmXlLIA2ABeAXtZ9cuDSlVUUfbYVKCsPq27zo1arddiMY2q2WlCd5gd95fhnALTKOmslw/7A5RcVFGNsI6ILpzNi/rnu2IdPt4caDRc5Mf4opEu/DaBR1l3dDXo3CxMUEdkRoO2UuJ+3Wy1VUbXD5tpTKVVgt9s0I85fcahLKLqhvhvf0B/KFpFjbdOnRz+pOY17f5atK1W3LWiue8KnR38fQLNkGLPyaAvI8dZl0Jcz6J82bPuwWSZW03GRQ3s4JdYqigBmoOie48CVQGUBcAO68AnTbTQUVQWE+LlQSimsRsOKSPthFG49ZmU6Aq8DsAWomwnt4+bPgSuPqunYyIX6uwzqIoqIPdSXacW6clFgB6T9Xs0wFylVDrv+UyshFIZlOSFpP1ACG1Ury5mWdGcTgJkJ/UO2ZZVPqU+EqiL9xV8GWzoGAFC2t6C/eQkkS2stR7cs+KH2OwDOo2AKUcy1hQTur28FiJVDOa0bRm283HHhPfQxhL91BsIYXmyQLIX1yktofvdJ0N5OLeVpug4G5TcY1IaCvIuCLQHAq8A6ACOCe5+qag1CSBEMZpT01L3Y/vSfgi0e2fW60HSE730/4vtPY/Erj0J/8+LMZRIAmq7rUeLe75KdTRTACoCcVvqvBsBIhXG/qumoo0Plx5Zx80/+Yk/YqvBGE53PPILsxGotZWuahkxov4bCkDoARZy5h1S3UjUAKhf0pKrWE6x2Hv5DcMedwCaFCMPEzqf+GCB05rIVVQUHOVlySQuPAzNB7lAUBbOOickv/QrSe++bGFZKtnoK0f2nZy5foRRc0Dsw2C5WANDRvWRFAIv9/juDxr/5nqlhpcTvevfM5VNKwYHFijEVAEStWFgBQIWASQkKv5hBstVTM947W/mEABDCxMCgFBXgfkpECGgAmbW8seFnqntNc+byiSDggqgYSfPIKVc/2SUgcsH57C7V3T5wZWmvO3P5QnAAPMdwnotU59KkaBkR1AGs/fTqgYG1n16dHZhzQCAea8zKz4UTEdFl/EBZjCGxXn354Pe+8tLM5TPGAPAxN5PAQioR7CdZls1u4auXYf3wB1NX1Pjv/4Rx8Y2Zy8/zHAR8reTiko9W/sAAcIWwt+oAhhBofeMrUDfWJoZVtjtof/Xvayk7TTMo4D/BSL55FJiZNPvfNE1rKZT2ulj64mehX/m/fWG169ew9IW/hHJzqx7gLIVO00slWy6B1QpsBoC5SnR1O7K3GecLSg2ZBaWziSOffwTB+x5E8MGHkB8/MXx9cwPuf3wX9gvPgeT5zOUBgBACcZKmR63of1CwycS6UFFYeCjjrhD2WhTHD7iWVUsFwBic7z8L5/vPgh1dBneL5BsJg6lcflKJ4hgKYT8iENXTBAzl8lBgYOEMALOV9IUgDB9w55AoU26sQ7mxXvtzq+KHISyavogBV4oCXNAy8cSrF9pa+EaSJmtpWk/wup2a5zmiONle0MMflpD94xLkwhUhOykrL8TlJzNo9lQvDHHYe1TTai8MYSjZd0p3zjA4LcCB4XFYXowB5EeM4HkvDDpxmh4+xYSa5hm6fuAt6cH3Sp5kV+Aye55XvpAqRCSOmv5LLwgO3U0n1V4QwFLSf9UoD0tPjSrAomphoHDrBINDI/kxM3wxTMIf7/j+ocPsp90ggBcFV5bN8LnSeHHJIs+BjAFLt45QZNNjAOyIET3a8XwvTNLD9tg9NU4zbPa8dEmPzxIipKeGpabSnYeAyxbIS2BfftnVsrWmnjzWDQPkLD98uhHlgqMbBnC19PGmnl4rAUMMDrzk1SMQo1MpXt4QAPDKG7OjZvwKy4Ov3/R/9vrzVs9DmgZPrljRCyg8NCzr7o9adwx4xMpeqTEAdqcT/nuY+M9v9rxDh5S62fMQxP7Lq27wBIoYFJd17mFwnElUGXc71CLKlgowvONnrbrhl6/2sEoJuW/JcXa59fbJzTDATuRfu7sRfgmDgCthpXXF6H1jq4OyRWRr+QC65WeiEJEet+O/7fj+thfHOKx+6ycxtjy/u2Ilf6NSISdLsq59r9zt+NKuy6EKdFS2WBeFxVNHY5sLRnr27Z0dzhi77W7MGMNb2zu8ZaTnGnq+hoE37mDgynuewdxz/VdORuTDuqUWQcxO/8tU+ZObfnDbDbzpBzBV9m/LdvraCGzfKLc6hnjLBW8F2q88NATATjaib3pxcLFzG2dim74PLw5eP9mIv4U9PHC/M5eTrPCrQ5XszzElyFac9OwN3/P8NMG8TeslMbZCf/tEIzlHSX8m5VXqlGBkCDoQ8C5BrH+Ys6GzjZaRP3YzDCHmaFnOOW6GERaM/Jyt8u0SLijrcssgNTXwLtAy9AcAsjvc7JWMxc9seP7cDHzDD8B49NSKk72OwUyqV+rEsBMDl9DVICZbNgLATjXTf96OgiudMKzdup0wxHYcvHlXM/sGxvttiCnOSk8FXIrsz8PjMxXpspOffcfz8rTG+XbCcqx5Xrri5OcUKuQGRbXssaljrcC36M/posWuuTr/+lYY1ebKnTCCq/MnFkx2HYPAKWdSQ8u+uQCPQEvX6qFwrfyuVvadnTi4uFmDa28GAXbi4Men2tl5FPN7uSiYKkjNDFxCy/4sg0d/qLqjwR5b9/04Znue0d5X4jzHehDEJxrsUYwHy6n7bVVm2WnnKNxqyLXbJn/b1fkTswSwrSiCq/OvtUy+juHl6sTjbe3AFdeW0DJqZ3e182d3kujNThxh2o7biSJ0k+ji3Qv5sxj2Ig8H7LdVmSmXUhY8VilKkB1z2Jev9zzOuZiYl3GB656XL7vsHzC85Os35qzvH9bxWorAsNsFANKjDr9saeL82hRz7fUggKWJp4/Y/CoGw1//mWVZM8nMwLdw7fxUm31zKwo7vXT/s5S9NMVWFK7ds8C+heG9NR8zROVRqeXFoxHXlhZJDBXBoi0e34yi/YehKMKiLf5JU/p7yUONV9d7xHW+aSWhhzYAV1v81SBPLm7FY8ct+rIVxwjz5I3VFn8V4w1XiytLqQ24sgEoXbvviiuu+Me9rCyEwDXP48uu+CqGZ3G1urKUWt+l28W1QwDpMVdcZsgvrIXh2D0bUQRDxUvHXHEZw8GvVleWMo+XB6sbBnIznJ1s8a+9EwQ5rxyJ4pzjbd/P72xyuc1aTQLMNMHYS2oHrri2dM0QQNI0sWnrOL8eRf3vrkcRbB3n2xY2MEiP9NM88/ivD/N6PbTq2rIv5qtt8dRaGKaccwgh8E4Y5ne2xNMYb6B+tq9umQvwyDIyKDVxddw0VfH8jTjGZhzDVMWLDQNbGGzZzNW6wPwsXM05V7OR+fEmvn09CPiNKMKyi29jYN0Ag0BVe9+Vst/7w7OKnIEFKF6pMRdtrL3VxctMMOOoi2q2r5/LnWeF5vqK90gAGyTaXTy5ZAtpXRms5jIMjcq8LQwMnywIAVgrDVwuD+9K68oZ1dxcWcrcX+IfScHKwBRWfu9H8Xn2XSm3w8LAYHfEQ5F6TVGYWM6qYsy570q5Lf+mYSRH1QFwA8AGgJsooOXe7tzl/wGchYFKtBMCwAAAAABJRU5ErkJggg=="},removeMarkers:function(t){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{},e=t.data,n=this._webSocket;try{n.send(e),this._callback(t,"sendSocketMessage:ok")}catch(i){this._callback(t,"sendSocketMessage:fail ".concat(i))}}},{key:"close",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.data,n=t.data,i=this._webSocket;try{i.close(e,n),this._callback(t,"sendSocketMessage:ok")}catch(r){this._callback(t,"sendSocketMessage:fail ".concat(r))}}},{key:"onOpen",value:function(t){this._on("open",t)}},{key:"onClose",value:function(t){this._on("close",t)}},{key:"onError",value:function(t){this._on("error",t)}},{key:"onMessage",value:function(t){this._on("message",t)}},{key:"_on",value:function(t,e){this._webSocket.addEventListener(t,function(n){"message"===t?e({data:n.data}):e()},!1)}},{key:"_callback",value:function(t,e){var n=t.success,i=t.fail,r=t.complete,a={errMsg:e};/:ok$/.test(e)?"function"===typeof n&&n(a):"function"===typeof i&&i(a),"function"===typeof r&&r(a)}}]),t}();function u(e,n){var i=e.url,r=e.protocols,a=t,o=a.invokeCallbackHandler;return s=new c(i,r),setTimeout(function(){o(n,{errMsg:"connectSocket:ok"})},0),s}function l(e,n){var i=t,r=i.invokeCallbackHandler;s&&s._webSocket.readyState===WebSocket.OPEN?s.send(Object.assign(e,{complete:function(t){r(n,t)}})):r(n,{errMsg:"sendSocketMessage:fail WebSocket is not connected "})}function h(e,n){var i=t,r=i.invokeCallbackHandler;s&&s._webSocket.readyState!==WebSocket.CLOSED?s.close(Object.assign(e,{complete:function(t){r(n,t)}})):r(n,{errMsg:"closeSocket:fail WebSocket is not connected"})}function d(e){var n=t,i=n.invokeCallbackHandler;return function(t){s&&s[e](function(e){i(t,e)})}}var f=d("onOpen"),p=d("onError"),g=d("onMessage"),v=d("onClose")}.call(this,n("0dd1"))},"81ea":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-tabbar",[n("div",{staticClass:"uni-tabbar",style:{backgroundColor:t.backgroundColor}},[n("div",{staticClass:"uni-tabbar-border",style:{backgroundColor:t.borderColor}}),t._l(t.list,function(e,i){return n("div",{key:e.pagePath,staticClass:"uni-tabbar__item",on:{click:function(n){t._switchTab(e,i)}}},[n("div",{staticClass:"uni-tabbar__bd"},[e.iconPath?n("div",{staticClass:"uni-tabbar__icon"},[n("img",{attrs:{src:t._getRealPath(t.$route.meta.pagePath===e.pagePath?e.selectedIconPath:e.iconPath)}})]):t._e(),e.text?n("div",{staticClass:"uni-tabbar__label",style:{color:t.$route.meta.pagePath===e.pagePath?t.selectedColor:t.color,fontSize:e.iconPath?"10px":"14px"}},[t._v("\n "+t._s(e.text)+"\n ")]):t._e(),e.redDot?n("div",{staticClass:"uni-tabbar__reddot",class:{"uni-tabbar__badge":!!e.badge}},[t._v(t._s(e.badge))]):t._e()])])})],2),n("div",{staticClass:"uni-placeholder"})])},r=[],a=n("bbc6"),o=a["a"],s=(n("f4e0"),n("2877")),c=Object(s["a"])(o,i,r,!1,null,null,null);c.options.__file="tabBar.vue";var u=c.exports,l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"uni-fade"}},[n("uni-toast",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],class:{"uni-toast-fixed":t.mask},attrs:{"data-duration":t.duration}},[t.mask?n("div",{staticClass:"uni-mask",staticStyle:{background:"transparent"},on:{touchmove:function(t){t.preventDefault()}}}):t._e(),t.image||t.iconClass?n("div",{staticClass:"uni-toast",staticStyle:{"pointer-events":"none"}},[t.image?n("img",{staticClass:"uni-toast__icon",attrs:{src:t.image}}):n("i",{staticClass:"uni-icon_toast",class:t.iconClass}),n("p",{staticClass:"uni-toast__content"},[t._v(t._s(t.title))])]):n("div",{staticClass:"uni-sample-toast",staticStyle:{"pointer-events":"none"}},[n("p",{staticClass:"uni-simple-toast__text"},[t._v(t._s(t.title))])])])],1)},h=[],d=n("ea86"),f=d["a"],p=(n("ff28"),Object(s["a"])(f,l,h,!1,null,null,null));p.options.__file="toast.vue";var g=p.exports,v=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"uni-fade"}},[n("uni-modal",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],on:{touchmove:function(t){t.preventDefault()}}},[n("div",{staticClass:"uni-mask",on:{click:function(e){t._close("mask")}}}),n("div",{staticClass:"uni-modal"},[t.title?n("div",{staticClass:"uni-modal__hd"},[n("strong",{staticClass:"uni-modal__title"},[t._v(t._s(t.title))])]):t._e(),n("div",{staticClass:"uni-modal__bd",on:{touchmove:function(t){t.stopPropagation()}}},[t._v(t._s(t.content))]),n("div",{staticClass:"uni-modal__ft"},[t.showCancel?n("div",{staticClass:"uni-modal__btn uni-modal__btn_default",style:{color:t.cancelColor},on:{click:function(e){t._close("cancel")}}},[t._v(t._s(t.cancelText))]):t._e(),n("div",{staticClass:"uni-modal__btn uni-modal__btn_primary",style:{color:t.confirmColor},on:{click:function(e){t._close("confirm")}}},[t._v(t._s(t.confirmText))])])])])],1)},m=[],b=n("5a56"),_={name:"Modal",mixins:[b["default"]],props:{title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"取消"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"确定"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean,default:!1}},methods:{_close:function(t){this.$emit("close",t)}}},y=_,w=(n("2765"),Object(s["a"])(y,v,m,!1,null,null,null));w.options.__file="modal.vue";var S=w.exports,k=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-picker",{on:{touchmove:function(t){t.preventDefault()}}},[n("transition",{attrs:{name:"uni-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"uni-mask",on:{click:t._cancel}})]),n("div",{staticClass:"uni-picker",class:{"uni-picker-toggle":t.visible}},[n("div",{staticClass:"uni-picker-header",on:{click:function(t){t.stopPropagation()}}},[n("div",{staticClass:"uni-picker-action uni-picker-action-cancel",on:{click:t._cancel}},[t._v("取消")]),n("div",{staticClass:"uni-picker-action uni-picker-action-confirm",on:{click:t._change}},[t._v("确定")])]),t.visible?n("v-uni-picker-view",{staticClass:"uni-picker-content",attrs:{value:t.valueArray},on:{"update:value":function(e){t.valueArray=e}}},t._l(t.rangeArray,function(e,i){return n("v-uni-picker-view-column",{key:i},t._l(e,function(e,r){return n("div",{key:r,staticClass:"uni-picker-item"},[t._v(t._s("object"===typeof e?e[t.rangeKey]||"":e)+t._s(t.units[i]||""))])}),0)}),1):t._e()],1)],1)},x=[],T=n("3ff2"),C=T["a"],M=(n("763a"),Object(s["a"])(C,k,x,!1,null,null,null));M.options.__file="picker.vue";var O=M.exports,E=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-actionsheet",{on:{touchmove:function(t){t.preventDefault()}}},[n("transition",{attrs:{name:"uni-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"uni-mask",on:{click:function(e){t._close(-1)}}})]),n("div",{staticClass:"uni-actionsheet",class:{"uni-actionsheet_toggle":t.visible}},[n("div",{staticClass:"uni-actionsheet__menu"},t._l(t.itemList,function(e,i){return n("div",{key:i,staticClass:"uni-actionsheet__cell",style:{color:t.itemColor},on:{click:function(e){t._close(i)}}},[t._v(t._s(e))])}),0),n("div",{staticClass:"uni-actionsheet__action"},[n("div",{staticClass:"uni-actionsheet__cell",style:{color:t.itemColor},on:{click:function(e){t._close(-1)}}},[t._v("取消")])])])],1)},A=[],$={name:"ActionSheet",props:{itemList:{type:Array,default:function(){return[]}},itemColor:{type:String,default:"#000000"},visible:{type:Boolean,default:!1}},methods:{_close:function(t){this.$emit("close",t)}}},P=$,I=(n("4fef"),Object(s["a"])(P,E,A,!1,null,null,null));I.options.__file="actionSheet.vue";var B=I.exports;e["a"]={TabBar:u,Toast:g,Modal:S,Picker:O,ActionSheet:B}},"82c2":function(t,e,n){"use strict";n.r(e),function(t){function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n1||(this.hoverStopPropagation&&(t._hoverPropagationStopped=!0),this._hoverTouch=!0,this._hoverStartTimer=setTimeout(function(){e.hovering=!0,e._hoverTouch||e._hoverReset()},this.hoverStartTime)))},_hoverTouchEnd:function(t){this._hoverTouch=!1,this.hovering&&this._hoverReset()},_hoverReset:function(){var t=this;requestAnimationFrame(function(){clearTimeout(t._hoverStayTimer),t._hoverStayTimer=setTimeout(function(){t.hovering=!1},t.hoverStayTime)})},_hoverTouchCancel:function(t){this._hoverTouch=!1,this.hovering=!1,clearTimeout(this._hoverStartTimer)}}}},"854d":function(t,e,n){"use strict";var i=n("2f2f"),r=n.n(i);r.a},"856e":function(t,e,n){"use strict";var i=n("d827"),r=n.n(i);r.a},"85b6":function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return a}),n.d(e,"c",function(){return o});var i=["SystemAsyncLoading","SystemAsyncError"];function r(t){return!(!t.$parent||"PageBody"!==t.$parent.$options.name)&&-1===i.indexOf(t.$options.name)}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign({},t),n=Object.keys(e),i=n.length;if(i)for(var r=0;re-n&&tthis._t&&(t=this._t,this._lastDt=t);var e=this._x_v*t+.5*this._x_a*Math.pow(t,2)+this._x_s,n=this._y_v*t+.5*this._y_a*Math.pow(t,2)+this._y_s;return(this._x_a>0&&ethis._endPositionX)&&(e=this._endPositionX),(this._y_a>0&&nthis._endPositionY)&&(n=this._endPositionY),{x:e,y:n}},u.prototype.ds=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),t>this._t&&(t=this._t),{dx:this._x_v+this._x_a*t,dy:this._y_v+this._y_a*t}},u.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},u.prototype.dt=function(){return-this._x_v/this._x_a},u.prototype.done=function(){var t=o(this.s().x,this._endPositionX)||o(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,t},u.prototype.setEnd=function(t,e){this._endPositionX=t,this._endPositionY=e},u.prototype.reconfigure=function(t,e){this._m=t,this._f=1e3*e},l.prototype._solve=function(t,e){var n=this._c,i=this._m,r=this._k,a=n*n-4*i*r;if(0===a){var o=-n/(2*i),s=t,c=e/(o*t);return{x:function(t){return(s+c*t)*Math.pow(Math.E,o*t)},dx:function(t){var e=Math.pow(Math.E,o*t);return o*(s+c*t)*e+c*e}}}if(a>0){var u=(-n-Math.sqrt(a))/(2*i),l=(-n+Math.sqrt(a))/(2*i),h=(e-u*t)/(l-u),d=t-h;return{x:function(t){var e,n;return t===this._t&&(e=this._powER1T,n=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,u*t)),n||(n=this._powER2T=Math.pow(Math.E,l*t)),d*e+h*n},dx:function(t){var e,n;return t===this._t&&(e=this._powER1T,n=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,u*t)),n||(n=this._powER2T=Math.pow(Math.E,l*t)),d*u*e+h*l*n}}}var f=Math.sqrt(4*i*r-n*n)/(2*i),p=-n/2*i,g=t,v=(e-p*t)/f;return{x:function(t){return Math.pow(Math.E,p*t)*(g*Math.cos(f*t)+v*Math.sin(f*t))},dx:function(t){var e=Math.pow(Math.E,p*t),n=Math.cos(f*t),i=Math.sin(f*t);return e*(v*f*n-g*f*i)+p*e*(v*i+g*n)}}},l.prototype.x=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(t):0},l.prototype.dx=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(t):0},l.prototype.setEnd=function(t,e,n){if(n||(n=(new Date).getTime()),t!==this._endPosition||!s(e,.1)){e=e||0;var i=this._endPosition;this._solution&&(s(e,.1)&&(e=this._solution.dx((n-this._startTime)/1e3)),i=this._solution.x((n-this._startTime)/1e3),s(e,.1)&&(e=0),s(i,.1)&&(i=0),i+=this._endPosition),this._solution&&s(i-t,.1)&&s(e,.1)||(this._endPosition=t,this._solution=this._solve(i-this._endPosition,e),this._startTime=n)}},l.prototype.snap=function(t){this._startTime=(new Date).getTime(),this._endPosition=t,this._solution={x:function(){return 0},dx:function(){return 0}}},l.prototype.done=function(t){return t||(t=(new Date).getTime()),o(this.x(),this._endPosition,.1)&&s(this.dx(),.1)},l.prototype.reconfigure=function(t,e,n){this._m=t,this._k=e,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},l.prototype.springConstant=function(){return this._k},l.prototype.damping=function(){return this._c},l.prototype.configuration=function(){function t(t,e){t.reconfigure(1,e,t.damping())}function e(t,e){t.reconfigure(1,t.springConstant(),e)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:t.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:e.bind(this,this),min:1,max:500}]},h.prototype.setEnd=function(t,e,n,i){var r=(new Date).getTime();this._springX.setEnd(t,i,r),this._springY.setEnd(e,i,r),this._springScale.setEnd(n,i,r),this._startTime=r},h.prototype.x=function(){var t=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(t),y:this._springY.x(t),scale:this._springScale.x(t)}},h.prototype.done=function(){var t=(new Date).getTime();return this._springX.done(t)&&this._springY.done(t)&&this._springScale.done(t)},h.prototype.reconfigure=function(t,e,n){this._springX.reconfigure(t,e,n),this._springY.reconfigure(t,e,n),this._springScale.reconfigure(t,e,n)};var d=!1;function f(t){d||(d=!0,requestAnimationFrame(function(){t(),d=!1}))}function p(t,e){if(t===e)return 0;var n=t.offsetLeft;return t.offsetParent?n+=p(t.offsetParent,e):0}function g(t,e){if(t===e)return 0;var n=t.offsetTop;return t.offsetParent?n+=g(t.offsetParent,e):0}function v(t,e){return+((1e3*t-1e3*e)/1e3).toFixed(1)}function m(t,e,n){var i=function(t){t&&t.id&&cancelAnimationFrame(t.id),t&&(t.cancelled=!0)},r={id:0,cancelled:!1};function a(e,n,i,r){if(!e||!e.cancelled){i(n);var o=t.done();o||e.cancelled||(e.id=requestAnimationFrame(a.bind(null,e,n,i,r))),o&&r&&r(n)}}return a(r,t,e,n),{cancel:i.bind(null,r),model:t}}var b={name:"MovableView",mixins:[a["a"]],props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1}},data:function(){return{xSync:this._getPx(this.x),ySync:this._getPx(this.y),scaleValueSync:Number(this.scaleValue)||1,width:0,height:0,minX:0,minY:0,maxX:0,maxY:0}},computed:{dampingNumber:function(){var t=Number(this.damping);return isNaN(t)?20:t},frictionNumber:function(){var t=Number(this.friction);return isNaN(t)||t<=0?2:t},scaleMinNumber:function(){var t=Number(this.scaleMin);return isNaN(t)?.5:t},scaleMaxNumber:function(){var t=Number(this.scaleMax);return isNaN(t)?10:t},xMove:function(){return"all"===this.direction||"horizontal"===this.direction},yMove:function(){return"all"===this.direction||"vertical"===this.direction}},watch:{x:function(t){this.xSync=this._getPx(t)},xSync:function(t){this._setX(t)},y:function(t){this.ySync=this._getPx(t)},ySync:function(t){this._setY(t)},scaleValue:function(t){this.scaleValueSync=Number(t)||0},scaleValueSync:function(t){this._setScaleValue(t)},scaleMinNumber:function(){this._setScaleMinOrMax()},scaleMaxNumber:function(){this._setScaleMinOrMax()}},created:function(){this._offset={x:0,y:0},this._scaleOffset={x:0,y:0},this._translateX=0,this._translateY=0,this._scale=1,this._oldScale=1,this._STD=new h(1,9*Math.pow(this.dampingNumber,2)/40,this.dampingNumber),this._friction=new u(1,this.frictionNumber),this._declineX=new c,this._declineY=new c,this.__touchInfo={historyX:[0,0],historyY:[0,0],historyT:[0,0]}},mounted:function(){this.touchtrack(this.$el,"_onTrack"),this.$parent._isMounted&&this.setParent(),this._friction.reconfigure(1,this.frictionNumber),this._STD.reconfigure(1,9*Math.pow(this.dampingNumber,2)/40,this.dampingNumber),this.$el.style.transformOrigin="center"},methods:{_getPx:function(t){return/\d+[ur]px$/i.test(t)?uni.upx2px(parseFloat(t)):Number(t)||0},_setX:function(t){if(this.xMove){if(t+this._scaleOffset.x===this._translateX)return this._translateX;this._SFA&&this._SFA.cancel(),this._animationTo(t+this._scaleOffset.x,this.ySync+this._scaleOffset.y,this._scale)}return t},_setY:function(t){if(this.yMove){if(t+this._scaleOffset.y===this._translateY)return this._translateY;this._SFA&&this._SFA.cancel(),this._animationTo(this.xSync+this._scaleOffset.x,t+this._scaleOffset.y,this._scale)}return t},_setScaleMinOrMax:function(){if(!this.scale)return!1;this._updateScale(this._scale,!0),this._updateOldScale(this._scale)},_setScaleValue:function(t){return!!this.scale&&(t=this._adjustScale(t),this._updateScale(t,!0),this._updateOldScale(t),t)},__handleTouchStart:function(){this._isScaling||this.disabled||(this._FA&&this._FA.cancel(),this._SFA&&this._SFA.cancel(),this.__touchInfo.historyX=[0,0],this.__touchInfo.historyY=[0,0],this.__touchInfo.historyT=[0,0],this.xMove&&(this.__baseX=this._translateX),this.yMove&&(this.__baseY=this._translateY),this.$el.style.willChange="transform",this._checkCanMove=null,this._firstMoveDirection=null,this._isTouching=!0)},__handleTouchMove:function(t){var e=this;if(!this._isScaling&&!this.disabled&&this._isTouching){var n=this._translateX,i=this._translateY;if(null===this._firstMoveDirection&&(this._firstMoveDirection=Math.abs(t.detail.dx/t.detail.dy)>1?"htouchmove":"vtouchmove"),this.xMove&&(n=t.detail.dx+this.__baseX,this.__touchInfo.historyX.shift(),this.__touchInfo.historyX.push(n),this.yMove||!0!==this._checkCanMove&&(Math.abs(t.detail.dx/t.detail.dy)>1?this._checkCanMove=!1:this._checkCanMove=!0)),this.yMove&&(i=t.detail.dy+this.__baseY,this.__touchInfo.historyY.shift(),this.__touchInfo.historyY.push(i),this.xMove||!0!==this._checkCanMove&&(Math.abs(t.detail.dy/t.detail.dx)>1?this._checkCanMove=!1:this._checkCanMove=!0)),this.__touchInfo.historyT.shift(),this.__touchInfo.historyT.push(t.detail.timeStamp),!this._checkCanMove){t.preventDefault();var r="touch";nthis.maxX&&(this.outOfBounds?(r="touch-out-of-bounds",n=this.maxX+this._declineX.x(n-this.maxX)):n=this.maxX),ithis.maxY&&(this.outOfBounds?(r="touch-out-of-bounds",i=this.maxY+this._declineY.x(i-this.maxY)):i=this.maxY),f(function(){e._setTransform(n,i,e._scale,r)})}}},__handleTouchEnd:function(){var t=this;if(!this._isScaling&&!this.disabled&&this._isTouching&&(this.$el.style.willChange="auto",this._isTouching=!1,!this._checkCanMove&&!this._revise("out-of-bounds")&&this.inertia)){var e=1e3*(this.__touchInfo.historyX[1]-this.__touchInfo.historyX[0])/(this.__touchInfo.historyT[1]-this.__touchInfo.historyT[0]),n=1e3*(this.__touchInfo.historyY[1]-this.__touchInfo.historyY[0])/(this.__touchInfo.historyT[1]-this.__touchInfo.historyT[0]);this._friction.setV(e,n),this._friction.setS(this._translateX,this._translateY);var i=this._friction.delta().x,r=this._friction.delta().y,a=i+this._translateX,o=r+this._translateY;athis.maxX&&(a=this.maxX,o=this._translateY+(this.maxX-this._translateX)*r/i),othis.maxY&&(o=this.maxY,a=this._translateX+(this.maxY-this._translateY)*i/r),this._friction.setEnd(a,o),this._FA=m(this._friction,function(){var e=t._friction.s(),n=e.x,i=e.y;t._setTransform(n,i,t._scale,"friction")},function(){t._FA.cancel()})}},_onTrack:function(t){switch(t.detail.state){case"start":this.__handleTouchStart();break;case"move":this.__handleTouchMove(t);break;case"end":this.__handleTouchEnd()}},_getLimitXY:function(t,e){var n=!1;return t>this.maxX?(t=this.maxX,n=!0):tthis.maxY?(e=this.maxY,n=!0):e3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;null!==t&&"NaN"!==t.toString()&&"number"===typeof t||(t=this._translateX||0),null!==e&&"NaN"!==e.toString()&&"number"===typeof e||(e=this._translateY||0),t=Number(t.toFixed(1)),e=Number(e.toFixed(1)),n=Number(n.toFixed(1)),this._translateX===t&&this._translateY===e||r||this.$trigger("change",{},{x:v(t,this._scaleOffset.x),y:v(e,this._scaleOffset.y),source:i}),this.scale||(n=this._scale),n=this._adjustScale(n),n=+n.toFixed(3),a&&n!==this._scale&&this.$trigger("scale",{},{scale:n});var o="translateX("+t+"px) translateY("+e+"px) translateZ(0px) scale("+n+")";this.$el.style.transform=o,this.$el.style.webkitTransform=o,this._translateX=t,this._translateY=e,this._scale=n}}},_=b,y=(n("7c2b"),n("2877")),w=Object(y["a"])(_,i,r,!1,null,null,null);w.options.__file="index.vue";e["default"]=w.exports},"898f":function(t,e,n){"use strict";n.r(e),function(t){function i(e,n){var i=e.urls,r=e.current,a=t,o=a.invokeCallbackHandler;getApp().$router.push({type:"navigateTo",path:"/preview-image",params:{urls:i,current:r}},function(){o(n,{errMsg:"previewImage:ok"})},function(){o(n,{errMsg:"previewImage:fail"})})}n.d(e,"previewImage",function(){return i})}.call(this,n("0dd1"))},"89fc":function(t,e,n){},"8a36":function(t,e,n){"use strict";(function(t){var i=n("f2b3");e["a"]={props:{id:{type:String,default:""}},created:function(){var t=this;this._addListeners(this.id),this.$watch("id",function(e,n){t._removeListeners(n,!0),t._addListeners(e,!0)})},beforeDestroy:function(){this._removeListeners(this.id)},methods:{_addListeners:function(e,n){var r=this;if(!n||e){var a=this.$options.listeners;Object(i["f"])(a)&&Object.keys(a).forEach(function(i){n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&t.on("uni-".concat(i,"-").concat(r.$page.id,"-").concat(e),r[a[i]]):0===i.indexOf("@")?r.$on("uni-".concat(i.substr(1)),r[a[i]]):0===i.indexOf("uni-")?t.on(i,r[a[i]]):e&&t.on("uni-".concat(i,"-").concat(r.$page.id,"-").concat(e),r[a[i]])})}},_removeListeners:function(e,n){var r=this;if(!n||e){var a=this.$options.listeners;Object(i["f"])(a)&&Object.keys(a).forEach(function(i){n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&t.off("uni-".concat(i,"-").concat(r.$page.id,"-").concat(e),r[a[i]]):0===i.indexOf("@")?r.$off("uni-".concat(i.substr(1)),r[a[i]]):0===i.indexOf("uni-")?t.off(i,r[a[i]]):e&&t.off("uni-".concat(i,"-").concat(r.$page.id,"-").concat(e),r[a[i]])})}}}}}).call(this,n("501c"))},"8aec":function(t,e,n){"use strict";function i(t){this._drag=t,this._dragLog=Math.log(t),this._x=0,this._v=0,this._startTime=0}function r(t,e,n){return t>e-n&&t0){var u=(-n-Math.sqrt(a))/(2*i),l=(-n+Math.sqrt(a))/(2*i),h=(e-u*t)/(l-u),d=t-h;return{x:function(t){var e,n;return t===this._t&&(e=this._powER1T,n=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,u*t)),n||(n=this._powER2T=Math.pow(Math.E,l*t)),d*e+h*n},dx:function(t){var e,n;return t===this._t&&(e=this._powER1T,n=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,u*t)),n||(n=this._powER2T=Math.pow(Math.E,l*t)),d*u*e+h*l*n}}}var f=Math.sqrt(4*i*r-n*n)/(2*i),p=-n/2*i,g=t,v=(e-p*t)/f;return{x:function(t){return Math.pow(Math.E,p*t)*(g*Math.cos(f*t)+v*Math.sin(f*t))},dx:function(t){var e=Math.pow(Math.E,p*t),n=Math.cos(f*t),i=Math.sin(f*t);return e*(v*f*n-g*f*i)+p*e*(v*i+g*n)}}},o.prototype.x=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(t):0},o.prototype.dx=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(t):0},o.prototype.setEnd=function(t,e,n){if(n||(n=(new Date).getTime()),t!==this._endPosition||!a(e,.4)){e=e||0;var i=this._endPosition;this._solution&&(a(e,.4)&&(e=this._solution.dx((n-this._startTime)/1e3)),i=this._solution.x((n-this._startTime)/1e3),a(e,.4)&&(e=0),a(i,.4)&&(i=0),i+=this._endPosition),this._solution&&a(i-t,.4)&&a(e,.4)||(this._endPosition=t,this._solution=this._solve(i-this._endPosition,e),this._startTime=n)}},o.prototype.snap=function(t){this._startTime=(new Date).getTime(),this._endPosition=t,this._solution={x:function(){return 0},dx:function(){return 0}}},o.prototype.done=function(t){return t||(t=(new Date).getTime()),r(this.x(),this._endPosition,.4)&&a(this.dx(),.4)},o.prototype.reconfigure=function(t,e,n){this._m=t,this._k=e,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},o.prototype.springConstant=function(){return this._k},o.prototype.damping=function(){return this._c},o.prototype.configuration=function(){function t(t,e){t.reconfigure(1,e,t.damping())}function e(t,e){t.reconfigure(1,t.springConstant(),e)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:t.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:e.bind(this,this),min:1,max:500}]},s.prototype.snap=function(t,e){this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(e)},s.prototype.set=function(t,e){this._friction.set(t,e),t>0&&e>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(0)):t<-this._extent&&e<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=(new Date).getTime()},s.prototype.x=function(t){if(!this._startTime)return 0;if(t||(t=((new Date).getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;var e=this._friction.x(t),n=this.dx(t);return(e>0&&n>=0||e<-this._extent&&n<=0)&&(this._springing=!0,this._spring.setEnd(0,n),e<-this._extent?this._springOffset=-this._extent:this._springOffset=0,e=this._spring.x()+this._springOffset),e},s.prototype.dx=function(t){var e=0;return e=this._lastTime===t?this._lastDx:this._springing?this._spring.dx(t):this._friction.dx(t),this._lastTime=t,this._lastDx=e,e},s.prototype.done=function(){return this._springing?this._spring.done():this._friction.done()},s.prototype.setVelocityByEnd=function(t){this._friction.setVelocityByEnd(t)},s.prototype.configuration=function(){var t=this._friction.configuration();return t.push.apply(t,this._spring.configuration()),t},u.prototype.onTouchStart=function(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()},u.prototype.onTouchMove=function(t,e){var n=this._startPosition;this._enableX?n+=t:this._enableY&&(n+=e),n>0?n*=.5:n<-this._extent&&(n=.5*(n+this._extent)-this._extent),this._position=n,this.updatePosition(),this.dispatchScroll()},u.prototype.onTouchEnd=function(t,e,n){var i=this;if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(e)this._itemSize/2?r-(this._itemSize-Math.abs(a)):r-a;o<=0&&o>=-this._extent&&this._scroll.setVelocityByEnd(o)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=c(this._scroll,function(){var t=Date.now(),e=(t-i._scroll._startTime)/1e3,n=i._scroll.x(e);i._position=n,i.updatePosition();var r=i._scroll.dx(e);i._shouldDispatchScrollEvent&&t-i._lastTime>i._lastDelay&&(i.dispatchScroll(),i._lastDelay=Math.abs(2e3/r),i._lastTime=t)},function(){i._enableSnap&&(o<=0&&o>=-i._extent&&(i._position=o,i.updatePosition()),"function"===typeof i._options.onSnap&&i._options.onSnap(Math.floor(Math.abs(i._position)/i._itemSize))),i._shouldDispatchScrollEvent&&i.dispatchScroll(),i._scrolling=!1})},u.prototype.onTransitionEnd=function(){this._element.style.transition="",this._element.style.webkitTransition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._element.removeEventListener("webkitTransitionEnd",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()},u.prototype.snap=function(){var t=this._itemSize,e=this._position%t,n=Math.abs(e)>this._itemSize/2?this._position-(t-Math.abs(e)):this._position-e;this._position!==n&&(this._snapping=!0,this.scrollTo(-n),"function"===typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))},u.prototype.scrollTo=function(t,e){this._animation&&(this._animation.cancel(),this._scrolling=!1),"number"===typeof t&&(this._position=-t),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0),this._element.style.transition="transform "+(e||.2)+"s ease-out",this._element.style.webkitTransition="-webkit-transform "+(e||.2)+"s ease-out",this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd),this._element.addEventListener("webkitTransitionEnd",this._onTransitionEnd)},u.prototype.dispatchScroll=function(){if("function"===typeof this._options.onScroll&&Math.round(this._lastPos)!==Math.round(this._position)){this._lastPos=this._position;var t={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(t)}},u.prototype.update=function(t,e,n){var i=0,r=this._position;this._enableX?(i=this._element.childNodes.length?(e||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=e):(i=this._element.childNodes.length?(e||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=e),"number"===typeof t&&(this._position=-t),this._position<-i?this._position=-i:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),r!==this._position&&(this.dispatchScroll(),"function"===typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=i,this._scroll._extent=i},u.prototype.updatePosition=function(){var t="";this._enableX?t="translateX("+this._position+"px) translateZ(0)":this._enableY&&(t="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=t,this._element.style.transform=t},u.prototype.isScrolling=function(){return this._scrolling||this._snapping};e["a"]={methods:{initScroller:function(t,e){this._touchInfo={trackingID:-1,maxDy:0,maxDx:0},this._scroller=new u(t,e),this.__handleTouchStart=this._handleTouchStart.bind(this),this.__handleTouchMove=this._handleTouchMove.bind(this),this.__handleTouchEnd=this._handleTouchEnd.bind(this),this._initedScroller=!0},_findDelta:function(t){var e=this._touchInfo;return"move"===t.detail.state||"end"===t.detail.state?{x:t.detail.dx,y:t.detail.dy}:{x:t.screenX-e.x,y:t.screenY-e.y}},_handleTouchStart:function(t){var e=this._touchInfo,n=this._scroller;n&&("start"===t.detail.state?(e.trackingID="touch",e.x=t.detail.x,e.y=t.detail.y):(e.trackingID="mouse",e.x=t.screenX,e.y=t.screenY),e.maxDx=0,e.maxDy=0,e.historyX=[0],e.historyY=[0],e.historyTime=[t.detail.timeStamp],e.listener=n,n.onTouchStart&&n.onTouchStart())},_handleTouchMove:function(t){var e=this._touchInfo;if(-1!==e.trackingID){t.preventDefault();var n=this._findDelta(t);if(n){for(e.maxDy=Math.max(e.maxDy,Math.abs(n.y)),e.maxDx=Math.max(e.maxDx,Math.abs(n.x)),e.historyX.push(n.x),e.historyY.push(n.y),e.historyTime.push(t.detail.timeStamp);e.historyTime.length>10;)e.historyTime.shift(),e.historyX.shift(),e.historyY.shift();e.listener&&e.listener.onTouchMove&&e.listener.onTouchMove(n.x,n.y,t.detail.timeStamp)}}},_handleTouchEnd:function(t){var e=this._touchInfo;if(-1!==e.trackingID){t.preventDefault();var n=this._findDelta(t);if(n){var i=e.listener;e.trackingID=-1,e.listener=null;var r=e.historyTime.length,a={x:0,y:0};if(r>2)for(var o=e.historyTime.length-1,s=e.historyTime[o],c=e.historyX[o],u=e.historyY[o];o>0;){o--;var l=e.historyTime[o],h=s-l;if(h>30&&h<50){a.x=(c-e.historyX[o])/(h/1e3),a.y=(u-e.historyY[o])/(h/1e3);break}}e.historyTime=[],e.historyX=[],e.historyY=[],i&&i.onTouchEnd&&i.onTouchEnd(n.x,n.y,a)}}}}}},"8af1":function(t,e,n){"use strict";function i(t,e){for(var n=this.$children,r=n.length,a=arguments.length,o=new Array(a>2?a-2:0),s=2;s2?r-2:0),o=2;o2?n-2:0),a=2;a1&&void 0!==arguments[1]?arguments[1]:{};e.routes;Object(r["a"])(),t.prototype.$handleEvent=function(t){if(t instanceof Event){for(var e=t.target,n=this.$el;e&&e!==n;e=e.parentNode)if(e.tagName&&0===e.tagName.indexOf("UNI-"))break;t=r["b"].call(this,t.type,t,{},e||t.target,t.currentTarget)}return t},t.mixin({beforeCreate:function(){var t=this.$options;Object(i["a"])(this)&&(t.mounted=t.mounted?[].concat(a,t.mounted):[a])}})}}}.call(this,n("501c"))},"8ce3":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"chooseVideo",function(){return c});var i=n("e2e2"),r=t,a=r.invokeCallbackHandler,o=null,s=function(t){var e=document.createElement("input");return e.type="file",e.style="visibility: hidden;z-index: -999;width: 0;height: 0;",e.accept="video/*",1===t.sourceType.length&&"camera"===t.sourceType[0]&&(e.capture="camera"),e};function c(t,e){var n=t.sourceType;o&&(document.body.removeChild(o),o=null),o=s({sourceType:n}),document.body.appendChild(o),o.addEventListener("change",function(t){var n=t.target.files[0],r=Object(i["a"])(n);a(e,{errMsg:"chooseVideo:ok",tempFilePath:r,size:n.size})}),o.click()}}.call(this,n("0dd1"))},"8cfc":function(t,e,n){},"8e16":function(t,e,n){"use strict";var i=n("11b9"),r=n.n(i);r.a},"8e58":function(t,e,n){"use strict";n.r(e),function(t){function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n0?"5px":"0px"}},[n("i",{staticClass:"uni-btn-icon",style:t._formatBtnStyle(e),domProps:{innerHTML:t._s(t._formatBtnFontText(e))},on:{click:function(e){t._onBtnClick(i)}}})]):t._e()]})],2),n("div",{staticClass:"uni-page-head-bd"},[n("div",{staticClass:"uni-page-head__title",style:{fontSize:t.titleSize,opacity:"transparent"===t.type?0:1}},[t.loading?n("i",{staticClass:"uni-loading"}):t._e(),t._v("\n "+t._s(t.titleText)+"\n ")])]),n("div",{staticClass:"uni-page-head-ft"},[t._l(t.btns,function(e,i){return["left"!==e.float?n("div",{key:i,style:{marginRight:i>0?"5px":"0px"}},[n("i",{staticClass:"uni-btn-icon",style:t._formatBtnStyle(e),domProps:{innerHTML:t._s(t._formatBtnFontText(e))},on:{click:function(e){t._onBtnClick(i)}}})]):t._e()]})],2)]),"transparent"!==t.type?n("div",{staticClass:"uni-placeholder"}):t._e()])},b=[],_=n("a1a7"),y=_["a"],w=(n("8e16"),Object(u["a"])(y,m,b,!1,null,null,null));w.options.__file="pageHead.vue";var S=w.exports,k=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-page-wrapper",[n("uni-page-body",[t._t("default")],2)],1)},x=[],T={name:"PageBody"},C=T,M=(n("167a"),Object(u["a"])(C,k,x,!1,null,null,null));M.options.__file="pageBody.vue";var O=M.exports,E=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-page-refresh",[n("div",{staticClass:"uni-page-refresh",style:{"margin-top":t.offset+"px"}},[n("div",{staticClass:"uni-page-refresh-inner"},[n("svg",{staticClass:"uni-page-refresh__icon",attrs:{fill:t.color,width:"24",height:"24",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}}),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})]),n("svg",{staticClass:"uni-page-refresh__spinner",attrs:{width:"24",height:"24",viewBox:"25 25 50 50"}},[n("circle",{staticClass:"uni-page-refresh__path",attrs:{stroke:t.color,cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"}})])])])])},A=[],$={name:"PageRefresh",props:{color:{type:String,default:"#2BD009"},offset:{type:Number,default:0}}},P=$,I=(n("9b5b"),Object(u["a"])(P,E,A,!1,null,null,null));I.options.__file="pageRefresh.vue";var B=I.exports,L=n("be12"),j={name:"Page",mpType:"page",components:{PageHead:S,PageBody:O,PageRefresh:B},mixins:[L["a"]],props:{isQuit:{type:Boolean,default:!1},isEntry:{type:Boolean,default:!1},isTabBar:{type:Boolean,default:!1},tabBarIndex:{type:Number,default:-1},navigationBarBackgroundColor:{type:String,default:"#000"},navigationBarTextStyle:{default:"white",validator:function(t){return-1!==["white","black"].indexOf(t)}},navigationBarTitleText:{type:String,default:""},navigationStyle:{default:"default",validator:function(t){return-1!==["default","custom"].indexOf(t)}},backgroundColor:{type:String,default:"#ffffff"},backgroundTextStyle:{default:"dark",validator:function(t){return-1!==["dark","light"].indexOf(t)}},backgroundColorTop:{type:String,default:"#fff"},backgroundColorBottom:{type:String,default:"#fff"},enablePullDownRefresh:{type:Boolean,default:!1},onReachBottomDistance:{type:Number,default:50},disableScroll:{type:Boolean,default:!1},titleNView:{type:[Boolean,Object],default:!0},pullToRefresh:{type:Object,default:function(){return{}}}},data:function(){var t=Object(v["a"])({loading:!1,backButton:!this.isQuit,backgroundColor:this.navigationBarBackgroundColor,textColor:"black"===this.navigationBarTextStyle?"#000":"#fff",titleText:this.navigationBarTitleText,duration:"0",timingFunc:""},this.titleNView),e="default"===this.navigationStyle&&this.titleNView,n=Object.assign({support:!0,color:"#2BD009",style:"circle",height:70,range:150,offset:0},this.pullToRefresh),i=Object(p["c"])(n.offset);return e&&(this.titleNView&&"transparent"===this.titleNView.type||(i+=g["a"])),n.offset=i,n.height=Object(p["c"])(n.height),n.range=Object(p["c"])(n.range),{showNavigationBar:e,navigationBar:t,refreshOptions:n}}},N=j,D=(n("6226"),Object(u["a"])(N,d,f,!1,null,null,null));D.options.__file="index.vue";var z=D.exports,R=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"uni-async-error",on:{click:t._onClick}},[t._v("\n 网络不给力,点击屏幕重试\n")])},F=[],V={name:"AsyncError",methods:{_onClick:function(){window.location.reload()}}},H=V,q=(n("b628"),Object(u["a"])(H,R,F,!1,null,null,null));q.options.__file="index.vue";var Y=q.exports,X=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},U=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"uni-async-loading"},[n("i",{staticClass:"uni-loading"})])}],W={name:"AsyncLoading"},G=W,K=(n("5727"),Object(u["a"])(G,X,U,!1,null,null,null));K.options.__file="index.vue";var J=K.exports,Z=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"uni-system-choose-location"},[n("system-header",{attrs:{confirm:!!t.data},on:{back:t._back,confirm:t._choose}},[t._v("选择位置")]),n("div",{staticClass:"map-content"},[n("iframe",{attrs:{src:t.src,allow:"geolocation",seamless:"",sandbox:"allow-scripts allow-same-origin allow-forms",frameborder:"0"}})])],1)},Q=[],tt=n("120f"),et=tt["a"],nt=(n("9470"),Object(u["a"])(et,Z,Q,!1,null,null,null));nt.options.__file="index.vue";var it=nt.exports,rt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"uni-system-open-location"},[n("system-header",{on:{back:t._back}},[t._v("位置")]),n("div",{staticClass:"map-content"},[n("iframe",{ref:"map",attrs:{src:t.src,allow:"geolocation",sandbox:"allow-scripts allow-same-origin allow-forms",frameborder:"0"},on:{load:t._load}}),t.isPoimarkerSrc?n("div",{staticClass:"actTonav",on:{click:t._nav}}):t._e()])],1)},at=[],ot=n("bab8"),st="WXTBZ-6WERU-ECCVS-BZJCK-LW5OJ-SIBOS",ct="uniapp",ut="https://apis.map.qq.com/tools/poimarker",lt={name:"SystemOpenLocation",components:{SystemHeader:ot["a"]},data:function(){var t=this.$route.params,e=t.latitude,n=t.longitude,i=t.scale,r=t.name,a=t.address;return{latitude:e,longitude:n,scale:i,name:r,address:a,src:"",isPoimarkerSrc:!1}},mounted:function(){this.latitude&&this.longitude&&(this.src="".concat(ut,"?type=0&marker=coord:").concat(this.latitude,",").concat(this.longitude,";title:").concat(this.name,";addr:").concat(this.address,";&key=").concat(st,"&referer=").concat(ct))},methods:{_back:function(){0!==this.$refs.map.src.indexOf(ut)?this.$refs.map.src=this.src:getApp().$router.back()},_load:function(){0===this.$refs.map.src.indexOf(ut)?this.isPoimarkerSrc=!0:this.isPoimarkerSrc=!1},_nav:function(){var t="https://apis.map.qq.com/uri/v1/routeplan?type=drive&to=".concat(encodeURIComponent(this.name),"&tocoord=").concat(this.latitude,",").concat(this.longitude,"&referer=").concat(ct);this.$refs.map.src=t}}},ht=lt,dt=(n("3da9"),Object(u["a"])(ht,rt,at,!1,null,null,null));dt.options.__file="index.vue";var ft=dt.exports,pt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"uni-system-preview-image",on:{click:t._click}},[n("v-uni-swiper",{staticClass:"uni-swiper",attrs:{current:t.index,"indicator-dots":!1,autoplay:!1},on:{"update:current":function(e){t.index=e}}},t._l(t.urls,function(t,e){return n("v-uni-swiper-item",{key:e},[n("img",{staticClass:"uni-preview-image",attrs:{src:t}})])}),1)],1)},gt=[],vt={name:"SystemPreviewImage",data:function(){var t=this.$route.params,e=t.urls,n=t.current;return{urls:e||[],current:n,index:0}},created:function(){var t=this.urls.indexOf(this.current);this.index=t<0?0:t},methods:{_click:function(){getApp().$router.back()}}},mt=vt,bt=(n("f10e"),Object(u["a"])(mt,pt,gt,!1,null,null,null));bt.options.__file="index.vue";var _t=bt.exports;r.a.component(h.name,h),r.a.component(z.name,z),r.a.component(Y.name,Y),r.a.component(J.name,J),r.a.component(it.name,it),r.a.component(ft.name,ft),r.a.component(_t.name,_t)},9213:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-swiper-item",t._g({},t.$listeners),[t._t("default")],2)},r=[],a={name:"SwiperItem",props:{itemId:{type:String,default:""}},watch:{itemId:function(t,e){this._itemIdUpdated(t,e)}},created:function(){this._itemIdUpdated(this.itemId,this.itemId)},mounted:function(){var t=this.$el;t.style.position="absolute",t.style.width="100%",t.style.height="100%";var e=this.$vnode._callbacks;e&&e.forEach(function(t){t()})},methods:{_itemIdUpdated:function(t,e){var n=this.$parent;n&&"function"===typeof n._itemIdUpdated&&n._itemIdUpdated(this,t,e)}}},o=a,s=(n("bfea"),n("2877")),c=Object(s["a"])(o,i,r,!1,null,null,null);c.options.__file="index.vue";e["default"]=c.exports},"93a5":function(t,e,n){var i={"./audio/index.vue":"e0b6","./cover-view/index.vue":"c41f","./map/index.vue":"594d","./video/index.vue":"31e2","./web-view/index.vue":"9980"};function r(t){var e=a(t);return n(e)}function a(t){var e=i[t];if(!(e+1)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return e}r.keys=function(){return Object.keys(i)},r.resolve=a,t.exports=r,r.id="93a5"},9400:function(t,e,n){"use strict";var i=n("5565"),r=n.n(i);r.a},"944e":function(t,e,n){"use strict";var i=n("c3d0"),r=n.n(i);r.a},9470:function(t,e,n){"use strict";var i=n("5b81"),r=n.n(i);r.a},"985f":function(t,e,n){},9980:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-web-view",[n("iframe",{attrs:{src:t.realPath,frameborder:"0",width:"100%",height:"100%"}})])},r=[],a={name:"WebView",props:{src:{type:String,default:""}},data:function(){return{realPath:this.$getRealPath(this.src)}}},o=a,s=(n("c33f"),n("2877")),c=Object(s["a"])(o,i,r,!1,null,null,null);c.options.__file="index.vue";e["default"]=c.exports},"9a3e":function(t,e,n){"use strict";n.r(e),n.d(e,"uploadFile",function(){return r});var i=n("cb0f"),r={url:{type:String,required:!0},filePath:{type:String,required:!0,validator:function(t,e){e.type=Object(i["a"])(t)}},name:{type:String,required:!0},header:{type:Object,validator:function(t,e){e.header=t||{}}},formData:{type:Object,validator:function(t,e){e.formData=t||{}}}}},"9b1f":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-progress",t._g({staticClass:"uni-progress"},t.$listeners),[n("div",{staticClass:"uni-progress-bar",style:t.outerBarStyle},[n("div",{staticClass:"uni-progress-inner-bar",style:t.innerBarStyle})]),t.showInfo?[n("p",{staticClass:"uni-progress-info"},[t._v(t._s(t.currentPercent)+"%")])]:t._e()],2)},r=[],a={activeColor:"#007AFF",backgroundColor:"#EBEBEB",activeMode:"backwards"},o={name:"Progress",props:{percent:{type:[Number,String],default:0,validator:function(t){return!isNaN(parseFloat(t,10))}},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator:function(t){return!isNaN(parseFloat(t,10))}},color:{type:String,default:a.activeColor},activeColor:{type:String,default:a.activeColor},backgroundColor:{type:String,default:a.backgroundColor},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:a.activeMode}},data:function(){return{currentPercent:0,strokeTimer:0,lastPercent:0}},computed:{outerBarStyle:function(){return"background-color: ".concat(this.backgroundColor,"; height: ").concat(this.strokeWidth,"px;")},innerBarStyle:function(){var t="";return t=this.color!==a.activeColor&&this.activeColor===a.activeColor?this.color:this.activeColor,"width: ".concat(this.currentPercent,"%;background-color: ").concat(t)},realPercent:function(){var t=parseFloat(this.percent,10);return t<0&&(t=0),t>100&&(t=100),t}},watch:{realPercent:function(t,e){this.strokeTimer&&clearInterval(this.strokeTimer),this.lastPercent=e||0,this._activeAnimation()}},created:function(){this._activeAnimation()},methods:{_activeAnimation:function(){var t=this;this.active?(this.currentPercent=this.activeMode===a.activeMode?0:this.lastPercent,this.strokeTimer=setInterval(function(){t.currentPercent+1>t.realPercent?(t.currentPercent=t.realPercent,t.strokeTimer&&clearInterval(t.strokeTimer)):t.currentPercent+=1},30)):this.currentPercent=this.realPercent}}},s=o,c=(n("944e"),n("2877")),u=Object(c["a"])(s,i,r,!1,null,null,null);u.options.__file="index.vue";e["default"]=u.exports},"9b5b":function(t,e,n){"use strict";var i=n("ef9b"),r=n.n(i);r.a},"9eba":function(t,e,n){"use strict";n.r(e),function(t){function i(e){var n=getCurrentPages();return n.length&&t.publishHandler("pageScrollTo",e,n[n.length-1].$page.id),{}}var r;function a(t){r=t}function o(){r&&t.emit(r+".stopPullDownRefresh",{},r);var e=getCurrentPages();return e.length&&(r=e[e.length-1].$page.id,t.emit(r+".startPullDownRefresh",{},r)),{}}function s(){return r&&(t.emit(r+".stopPullDownRefresh",{},r),r=null),{}}n.d(e,"pageScrollTo",function(){return i}),n.d(e,"setPullDownRefreshPageId",function(){return a}),n.d(e,"startPullDownRefresh",function(){return o}),n.d(e,"stopPullDownRefresh",function(){return s})}.call(this,n("0dd1"))},"9f96":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-slider",t._g({ref:"uni-slider",on:{click:t._onClick}},t.$listeners),[n("div",{staticClass:"uni-slider-wrapper"},[n("div",{staticClass:"uni-slider-tap-area"},[n("div",{staticClass:"uni-slider-handle-wrapper",style:t.setBgColor},[n("div",{ref:"uni-slider-handle",staticClass:"uni-slider-handle",style:t.setBlockBg}),n("div",{staticClass:"uni-slider-thumb",style:t.setBlockStyle}),n("div",{staticClass:"uni-slider-track",style:t.setActiveColor})])]),n("span",{directives:[{name:"show",rawName:"v-show",value:t.showValue,expression:"showValue"}],staticClass:"uni-slider-value"},[t._v(t._s(t.sliderValue))])]),t._t("default")],2)},r=[],a=n("8af1"),o=n("ba15"),s={name:"Slider",mixins:[a["a"],a["c"],o["a"]],props:{name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},data:function(){return{sliderValue:Number(this.value)}},computed:{setBlockStyle:function(){return{width:this.blockSize+"px",height:this.blockSize+"px",marginLeft:-this.blockSize/2+"px",marginTop:-this.blockSize/2+"px",left:this._getValueWidth(),backgroundColor:this.blockColor}},setBgColor:function(){return{backgroundColor:this._getBgColor()}},setBlockBg:function(){return{left:this._getValueWidth()}},setActiveColor:function(){return{backgroundColor:this._getActiveColor(),width:this._getValueWidth()}}},watch:{value:function(t){this.sliderValue=Number(t)}},mounted:function(){this.touchtrack(this.$refs["uni-slider-handle"],"_onTrack")},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onUserChangedValue:function(t){var e=this.$refs["uni-slider"],n=e.offsetWidth,i=e.getBoundingClientRect().left,r=(t.x-i)*(this.max-this.min)/n+Number(this.min);this.sliderValue=this._filterValue(r)},_filterValue:function(t){return tthis.max?this.max:Math.round((t-this.min)/this.step)*this.step+Number(this.min)},_getValueWidth:function(){return 100*(this.sliderValue-this.min)/(this.max-this.min)+"%"},_getBgColor:function(){return"#e9e9e9"!==this.backgroundColor?this.backgroundColor:"#007aff"!==this.color?this.color:"#007aff"},_getActiveColor:function(){return"#007aff"!==this.activeColor?this.activeColor:"#e9e9e9"!==this.selectedColor?this.selectedColor:"#e9e9e9"},_onTrack:function(t){if(!this.disabled)return"move"===t.detail.state?(this._onUserChangedValue({x:t.detail.x0}),this.$trigger("changing",t,{value:this.sliderValue}),!1):void("end"===t.detail.state&&this.$trigger("change",t,{value:this.sliderValue}))},_onClick:function(t){this.disabled||(this._onUserChangedValue(t),this.$trigger("change",t,{value:this.sliderValue}))},_resetFormData:function(){this.sliderValue=this.min},_getFormData:function(){var t={};return""!==this.name&&(t["value"]=this.sliderValue,t["key"]=this.name),t}}},c=s,u=(n("6428"),n("2877")),l=Object(u["a"])(c,i,r,!1,null,null,null);l.options.__file="index.vue";e["default"]=l.exports},"9fe6":function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return s});var i=n("85b6");function r(t){var e={};return t.id&&(e.id=""),t.dataset&&(e.dataset={}),t.rect&&(e.left=0,e.right=0,e.top=0,e.bottom=0),t.size&&(e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight),t.scrollOffset&&(e.scrollLeft=document.documentElement.scrollLeft||document.body.scrollLeft||0,e.scrollTop=document.documentElement.scrollTop||document.body.scrollTop||0),e}function a(t,e){var n={};if(e.id&&(n.id=t.id),e.dataset&&(n.dataset=Object(i["b"])(t.dataset||{})),e.rect||e.size){var r=t.getBoundingClientRect();e.rect&&(n.left=r.left,n.right=r.right,n.top=r.top,n.bottom=r.bottom),e.size&&(n.width=r.width,n.height=r.height)}return e.properties&&e.properties.forEach(function(t){t=t.replace(/-([a-z])/g,function(t,e){return e.toUpperCase()})}),e.scrollOffset&&("UNI-SCROLL-VIEW"===t.tagName&&t.__vue__&&t.__vue__.getScrollPosition?Object.assign(n,t.__vue__.getScrollPosition()):(n.scrollLeft=0,n.scrollTop=0)),n}function o(t,e,n,i,r){var o=t.$el;if(i){var s=o.querySelector(n);return s?a(s,r):null}var c=o.querySelectorAll(n);return c&&c.length?[].map.call(c,function(t){return a(t,r)}):[]}function s(e,n){var i=e.reqId,a=e.reqs,s=getCurrentPages(),c=s.find(function(t){return t.$page.id===n});if(!c)throw new Error("Not Found:Page[".concat(n,"]"));var u=[];a.forEach(function(t){var e=t.component,n=t.selector,i=t.single,a=t.fields;0===e?u.push(r(a)):u.push(o(c,e,n,i,a))}),t.publishHandler("onRequestComponentInfo",{reqId:i,res:u},c.$page.id)}}).call(this,n("501c"))},"9fef":function(t,e,n){"use strict";n.r(e),n.d(e,"createAudioContext",function(){return r}),n.d(e,"createVideoContext",function(){return a}),n.d(e,"createMapContext",function(){return o}),n.d(e,"createCanvasContext",function(){return s});var i=[{name:"id",type:String,required:!0}],r=i,a=i,o=i,s=[{name:"canvasId",type:String,required:!0},{name:"componentInstance",type:Object}]},a007:function(t,e,n){},a041:function(t,e,n){"use strict";n.r(e),n.d(e,"canvasGetImageData",function(){return i}),n.d(e,"canvasPutImageData",function(){return r}),n.d(e,"canvasToTempFilePath",function(){return o}),n.d(e,"drawCanvas",function(){return s});var i={canvasId:{type:String,required:!0},x:{type:Number,required:!0},y:{type:Number,required:!0},width:{type:Number,required:!0},height:{type:Number,required:!0}},r={canvasId:{type:String,required:!0},data:{type:Uint8ClampedArray,required:!0},x:{type:Number,required:!0},y:{type:Number,required:!0},width:{type:Number,required:!0},height:{type:Number}},a={PNG:"PNG",JPG:"JPG"},o={x:{type:Number,default:0},y:{type:Number,default:0},width:{type:Number},height:{type:Number},destWidth:{type:Number},destHeight:{type:Number},canvasId:{type:String,require:!0},fileType:{type:String,validator:function(t,e){t=(t||"").toUpperCase(),e.fileType=Object.values(a).indexOf(t)<0?a.PNG:t}},quality:{type:Number,validator:function(t,e){t=Math.floor(t),e.quality=t>0&&t<1?t:1}}},s={canvasId:{type:String,require:!0},actions:{type:Array,require:!0},reserve:{type:Boolean,default:!1}}},a1a7:function(t,e,n){"use strict";(function(t){var i=n("e949"),r=n("cb0f"),a=n("15bb"),o={forward:"",back:"",share:"",favorite:"",home:"",menu:"",close:""};e["a"]={name:"PageHead",mixins:[a["a"]],props:{backButton:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#000"},textColor:{type:String,default:"#fff"},titleText:{type:String,default:""},duration:{type:String,default:"0"},timingFunc:{type:String,default:""},loading:{type:Boolean,default:!1},titleSize:{type:String,default:"16px"},type:{default:"default",validator:function(t){return-1!==["default","transparent"].indexOf(t)}},coverage:{type:String,default:"132px"},buttons:{type:Array,default:function(){return[]}}},computed:{btns:function(){var t=this,e=[];return this.buttons.length&&this.buttons.forEach(function(n){var i=Object.assign({},n);if(i.fontSrc&&!i.fontFamily){i.fontSrc=Object(r["a"])(i.fontSrc);var a=i.fontSrc.substr(i.fontSrc.lastIndexOf("/")+1).replace(/\./g,"-");i.fontFamily=a}i.color="transparent"===t.type?"#fff":i.color||t.textColor,i.fontSize=i.fontSize||("default"===t.type?"27px":"22px"),i.fontWeight=i.fontWeight||"normal",e.push(i)}),e}},methods:{_back:function(){1===getCurrentPages().length?uni.reLaunch({url:"/"}):uni.navigateBack({from:"backButton"})},_onBtnClick:function(e){t.emit("onNavigationBarButtonTap",Object.assign({},this.btns[e],{index:e}))},_formatBtnFontText:function(t){if(t.fontSrc&&t.fontFamily){var e='@font-face{\n font-family: "'.concat(t.fontFamily,'";\n src: url("').concat(t.fontSrc,'") format("truetype")\n }');return Object(i["a"])(e,"uni-btn-font-"+t.fontFamily),t.text.replace("\\u","&#x")}return o[t.type]?o[t.type]:t.text||""},_formatBtnStyle:function(t){var e={color:t.color,fontSize:t.fontSize,fontWeight:t.fontWeight};return t.fontFamily&&(e.fontFamily=t.fontFamily),e}}}}).call(this,n("0dd1"))},a201:function(t,e,n){"use strict";n.r(e),n.d(e,"request",function(){return o});var i={OPTIONS:"OPTIONS",GET:"GET",HEAD:"HEAD",POST:"POST",PUT:"PUT",DELETE:"DELETE",TRACE:"TRACE",CONNECT:"CONNECT"},r={JSON:"JSON"},a={TEXT:"TEXT",ARRAYBUFFER:"ARRAYBUFFER"},o={url:{type:String,required:!0},data:{type:[Object,String,ArrayBuffer],validator:function(t,e){e.data=t||""}},header:{type:Object,validator:function(t,e){e.header=t||{}}},method:{type:String,validator:function(t,e){t=(t||"").toUpperCase(),e.method=Object.values(i).indexOf(t)<0?i.GET:t}},dataType:{type:String,validator:function(t,e){e.dataType=(t||r.JSON).toUpperCase()}},responseType:{type:String,validator:function(t,e){t=(t||"").toUpperCase(),e.responseType=Object.values(a).indexOf(t)<0?a.TEXT:t}}}},a3da:function(t,e,n){},a3e5:function(t,e,n){"use strict";var i=n("3596"),r=n.n(i);r.a},a470:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("65a8");function r(){if(uni.canIUse("css.var")){var t=document.documentElement.style;return{top:parseInt(t.getPropertyValue("--window-top"))||0,bottom:parseInt(t.getPropertyValue("--window-bottom"))||0}}var e=0,n=0,r=getCurrentPages();if(r.length){var a=r[r.length-1].$parent.$parent;e=a.showNavigationBar&&"transparent"!==a.navigationBar.type?i["a"]:0}var o=getApp();return o&&(n=o.$children[0].showTabBar?i["b"]:0),{top:e,bottom:n}}},a4cf:function(t,e,n){"use strict";n.r(e),function(t){function i(e,n){var i=e.src,r=t,a=r.invokeCallbackHandler,o=new Image;o.onload=function(){a(n,{errMsg:"getImageInfo:ok",width:o.naturalWidth,height:o.naturalHeight})},o.onerror=function(t){a(n,{errMsg:"getImageInfo:fail"})},o.src=i}n.d(e,"getImageInfo",function(){return i})}.call(this,n("0dd1"))},a5ec:function(t,e,n){"use strict";var i=n("8cfc"),r=n.n(i);r.a},a741:function(t,e,n){"use strict";(function(t,i){n.d(e,"a",function(){return o}),n.d(e,"b",function(){return s});var r=n("f2b3");function a(t,e,n){return Object(r["e"])(t.$options[e])&&t.$options[e].apply(t,n)}function o(e,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),o=2;o2?r-2:0),s=2;s\n/,"").replace(/\n/,"").replace(/\n/,"")}function a(t){return t.reduce(function(t,e){var n=e.value,i=e.name;return n.match(/ /)&&"style"!==i&&(n=n.split(" ")),t[i]?Array.isArray(t[i])?t[i].push(n):t[i]=[t[i],n]:t[i]=n,t},{})}function o(e){e=r(e);var n=[],o={node:"root",children:[]};return Object(i["a"])(e,{start:function(t,e,i){var r={name:t};if(0!==e.length&&(r.attrs=a(e)),i){var s=n[0]||o;s.children||(s.children=[]),s.children.push(r)}else n.unshift(r)},end:function(e){var i=n.shift();if(i.name!==e&&t.error("invalid state: mismatch end tag"),0===n.length)o.children.push(i);else{var r=n[0];r.children||(r.children=[]),r.children.push(i)}},chars:function(t){var e={type:"text",text:t};if(0===n.length)o.children.push(e);else{var i=n[0];i.children||(i.children=[]),i.children.push(e)}},comment:function(t){var e={node:"comment",text:t},i=n[0];i.children||(i.children=[]),i.children.push(e)}}),o.children}}).call(this,n("3ad9")["default"])},b34d:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-form",t._g({},t.$listeners),[n("span",[t._t("default")],2)])},r=[],a=n("8af1"),o={name:"Form",mixins:[a["c"]],data:function(){return{childrenList:[]}},listeners:{"@form-submit":"_onSubmit","@form-reset":"_onReset","@form-group-update":"_formGroupUpdateHandler"},methods:{_onSubmit:function(t){var e={};this.childrenList.forEach(function(t){t._getFormData&&t._getFormData().key&&(e[t._getFormData().key]=t._getFormData().value)}),this.$trigger("submit",t,{value:e})},_onReset:function(t){this.$trigger("reset",t,{}),this.childrenList.forEach(function(t){t._resetFormData&&t._resetFormData()})},_formGroupUpdateHandler:function(t){if("add"===t.type)this.childrenList.push(t.vm);else{var e=this.childrenList.indexOf(t.vm);this.childrenList.splice(e,1)}}}},s=o,c=(n("6fc7"),n("2877")),u=Object(c["a"])(s,i,r,!1,null,null,null);u.options.__file="index.vue";e["default"]=u.exports},b564:function(t,e,n){"use strict";(function(t){var i=n("8aec"),r=n("f2b3"),a=!!r["h"]&&{passive:!0};e["a"]={name:"ScrollView",mixins:[i["a"]],props:{scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1}},data:function(){return{lastScrollTop:this.scrollTopNumber,lastScrollLeft:this.scrollLeftNumber,lastScrollToUpperTime:0,lastScrollToLowerTime:0}},computed:{upperThresholdNumber:function(){var t=Number(this.upperThreshold);return isNaN(t)?50:t},lowerThresholdNumber:function(){var t=Number(this.lowerThreshold);return isNaN(t)?50:t},scrollTopNumber:function(){return Number(this.scrollTop)||0},scrollLeftNumber:function(){return Number(this.scrollLeft)||0}},watch:{scrollTopNumber:function(t){this._scrollTopChanged(t)},scrollLeftNumber:function(t){this._scrollLeftChanged(t)},scrollIntoView:function(t){this._scrollIntoViewChanged(t)}},mounted:function(){var t=this;this._attached=!0,this._scrollTopChanged(this.scrollTopNumber),this._scrollLeftChanged(this.scrollLeftNumber),this._scrollIntoViewChanged(this.scrollIntoView),this.__handleScroll=function(e){event.preventDefault(),event.stopPropagation(),t._handleScroll.bind(t,event)()};var e=null,n=null;this.__handleTouchMove=function(i){var r=i.touches[0].pageX,a=i.touches[0].pageY,o=t.$refs.main;if(null===n)if(Math.abs(r-e.x)>Math.abs(a-e.y))if(t.scrollX){if(0===o.scrollLeft&&r>e.x)return void(n=!1);if(o.scrollWidth===o.offsetWidth+o.scrollLeft&&re.y)return void(n=!1);if(o.scrollHeight===o.offsetHeight+o.scrollTop&&an.scrollWidth-n.offsetWidth?t=n.scrollWidth-n.offsetWidth:"y"===e&&t>n.scrollHeight-n.offsetHeight&&(t=n.scrollHeight-n.offsetHeight);var i=0,r="";"x"===e?i=n.scrollLeft-t:"y"===e&&(i=n.scrollTop-t),0!==i&&(this.$refs.content.style.transition="transform .3s ease-out",this.$refs.content.style.webkitTransition="-webkit-transform .3s ease-out","x"===e?r="translateX("+i+"px) translateZ(0)":"y"===e&&(r="translateY("+i+"px) translateZ(0)"),this.$refs.content.removeEventListener("transitionend",this.__transitionEnd),this.$refs.content.removeEventListener("webkitTransitionEnd",this.__transitionEnd),this.__transitionEnd=this._transitionEnd.bind(this,t,e),this.$refs.content.addEventListener("transitionend",this.__transitionEnd),this.$refs.content.addEventListener("webkitTransitionEnd",this.__transitionEnd),"x"===e?n.style.overflowX="hidden":"y"===e&&(n.style.overflowY="hidden"),this.$refs.content.style.transform=r,this.$refs.content.style.webkitTransform=r)},_handleTrack:function(t){if("start"===t.detail.state)return this._x=t.detail.x,this._y=t.detail.y,void(this._noBubble=null);"end"===t.detail.state&&(this._noBubble=!1),null===this._noBubble&&this.scrollY&&(Math.abs(this._y-t.detail.y)/Math.abs(this._x-t.detail.x)>1?this._noBubble=!0:this._noBubble=!1),null===this._noBubble&&this.scrollX&&(Math.abs(this._x-t.detail.x)/Math.abs(this._y-t.detail.y)>1?this._noBubble=!0:this._noBubble=!1),this._x=t.detail.x,this._y=t.detail.y,this._noBubble&&t.stopPropagation()},_handleScroll:function(t){if(!(t.timeStamp-this._lastScrollTime<20)){this._lastScrollTime=t.timeStamp;var e=t.target;this.$trigger("scroll",t,{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,deltaX:this.lastScrollLeft-e.scrollLeft,deltaY:this.lastScrollTop-e.scrollTop}),this.scrollY&&(e.scrollTop<=this.upperThresholdNumber&&this.lastScrollTop-e.scrollTop>0&&t.timeStamp-this.lastScrollToUpperTime>200&&(this.$trigger("scrolltoupper",t,{direction:"top"}),this.lastScrollToUpperTime=t.timeStamp),e.scrollTop+e.offsetHeight+this.lowerThresholdNumber>=e.scrollHeight&&this.lastScrollTop-e.scrollTop<0&&t.timeStamp-this.lastScrollToLowerTime>200&&(this.$trigger("scrolltolower",t,{direction:"bottom"}),this.lastScrollToLowerTime=t.timeStamp)),this.scrollX&&(e.scrollLeft<=this.upperThresholdNumber&&this.lastScrollLeft-e.scrollLeft>0&&t.timeStamp-this.lastScrollToUpperTime>200&&(this.$trigger("scrolltoupper",t,{direction:"left"}),this.lastScrollToUpperTime=t.timeStamp),e.scrollLeft+e.offsetWidth+this.lowerThresholdNumber>=e.scrollWidth&&this.lastScrollLeft-e.scrollLeft<0&&t.timeStamp-this.lastScrollToLowerTime>200&&(this.$trigger("scrolltolower",t,{direction:"right"}),this.lastScrollToLowerTime=t.timeStamp)),this.lastScrollTop=e.scrollTop,this.lastScrollLeft=e.scrollLeft}},_scrollTopChanged:function(t){this.scrollY&&(this._innerSetScrollTop?this._innerSetScrollTop=!1:this.scrollWithAnimation?this.scrollTo(t,"y"):this.$refs.main.scrollTop=t)},_scrollLeftChanged:function(t){this.scrollX&&(this._innerSetScrollLeft?this._innerSetScrollLeft=!1:this.scrollWithAnimation?this.scrollTo(t,"x"):this.$refs.main.scrollLeft=t)},_scrollIntoViewChanged:function(e){if(e){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(e))return t.group('scroll-into-view="'+e+'" 有误'),t.error("id 属性值格式错误。如不能以数字开头。"),void t.groupEnd();var n=this.$el.querySelector("#"+e);if(n){var i=this.$refs.main.getBoundingClientRect(),r=n.getBoundingClientRect();if(this.scrollX){var a=r.left-i.left,o=this.$refs.main.scrollLeft,s=o+a;this.scrollWithAnimation?this.scrollTo(s,"x"):this.$refs.main.scrollLeft=s}if(this.scrollY){var c=r.top-i.top,u=this.$refs.main.scrollTop,l=u+c;this.scrollWithAnimation?this.scrollTo(l,"y"):this.$refs.main.scrollTop=l}}}},_transitionEnd:function(t,e){this.$refs.content.style.transition="",this.$refs.content.style.webkitTransition="",this.$refs.content.style.transform="",this.$refs.content.style.webkitTransform="";var n=this.$refs.main;"x"===e?(n.style.overflowX=this.scrollX?"auto":"hidden",n.scrollLeft=t):"y"===e&&(n.style.overflowY=this.scrollY?"auto":"hidden",n.scrollTop=t),this.$refs.content.removeEventListener("transitionend",this.__transitionEnd),this.$refs.content.removeEventListener("webkitTransitionEnd",this.__transitionEnd)},getScrollPosition:function(){var t=this.$refs.main;return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}}}}).call(this,n("3ad9")["default"])},b5ca:function(t,e,n){"use strict";n.r(e),n.d(e,"setTabBarItem",function(){return c}),n.d(e,"setTabBarStyle",function(){return u}),n.d(e,"hideTabBar",function(){return l}),n.d(e,"showTabBar",function(){return h}),n.d(e,"hideTabBarRedDot",function(){return d}),n.d(e,"showTabBarRedDot",function(){return f}),n.d(e,"removeTabBarBadge",function(){return p}),n.d(e,"setTabBarBadge",function(){return g});var i=n("f2b3"),r=["text","iconPath","selectedIconPath"],a=["color","selectedColor","backgroundColor","borderStyle"],o=["badge","redDot"];function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=getApp();if(n){var s=e.index,c=n.$children[0].tabBar;switch(t){case"showTabBar":n.$children[0].hideTabBar=!1;break;case"hideTabBar":n.$children[0].hideTabBar=!0;break;case"setTabBarItem":Object(i["g"])(c.list[s],r,e);break;case"setTabBarStyle":Object(i["g"])(c,a,e);break;case"showTabBarRedDot":Object(i["g"])(c.list[s],o,{badge:"",redDot:!0});break;case"setTabBarBadge":Object(i["g"])(c.list[s],o,{badge:e.text,redDot:!0});break;case"hideTabBarRedDot":case"removeTabBarBadge":Object(i["g"])(c.list[s],o,{badge:"",redDot:!1});break}}return{}}function c(t){return s("setTabBarItem",t)}function u(t){return s("setTabBarStyle",t)}function l(t){return s("hideTabBar",t)}function h(t){return s("showTabBar",t)}function d(t){return s("hideTabBarRedDot",t)}function f(t){return s("showTabBarRedDot",t)}function p(t){return s("removeTabBarBadge",t)}function g(t){return s("setTabBarBadge",t)}},b628:function(t,e,n){"use strict";var i=n("7272"),r=n.n(i);r.a},b705:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-rich-text",t._g({},t.$listeners),[n("div")])},r=[],a=n("b10a"),o=n("f2b3"),s={a:"",abbr:"",b:"",blockquote:"",br:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",ol:["start","type"],p:"",q:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","rowspan","height","width"],tfoot:"",th:["colspan","rowspan","height","width"],thead:"",tr:"",ul:""},c={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'"};function u(t){return t.replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,function(t,e){if(Object(o["c"])(c,e)&&c[e])return c[e];if(/^#[0-9]{1,4}$/.test(e))return String.fromCharCode(e.slice(1));if(/^#x[0-9a-f]{1,4}$/i.test(e))return String.fromCharCode("0"+e.slice(1));var n=document.createElement("div");return n.innerHTML=t,n.innerText||n.textContent})}function l(t,e){return t.forEach(function(t){if(Object(o["f"])(t))if(Object(o["c"])(t,"type")&&"node"!==t.type)"text"===t.type&&"string"===typeof t.text&&""!==t.text&&e.appendChild(document.createTextNode(u(t.text)));else{if("string"!==typeof t.name||!t.name)return;var n=t.name.toLowerCase();if(!Object(o["c"])(s,n))return;var i=document.createElement(n);if(!i)return;var r=t.attrs;if(Object(o["f"])(r)){var a=s[n]||[];Object.keys(r).forEach(function(t){var e=r[t];switch(t){case"class":case"style":i.setAttribute(t,e);break;default:-1!==a.indexOf(t)&&i.setAttribute(t,e)}})}var c=t.children;Array.isArray(c)&&c.length&&l(t.children,i),e.appendChild(i)}}),e}var h={name:"RichText",props:{nodes:{type:[Array,String],default:function(){return[]}}},watch:{nodes:function(t){this._renderNodes(t)}},mounted:function(){this._renderNodes(this.nodes)},methods:{_renderNodes:function(t){"string"===typeof t&&(t=Object(a["a"])(t));var e=l(t,document.createDocumentFragment());this.$el.firstChild.innerHTML="",this.$el.firstChild.appendChild(e)}}},d=h,f=(n("1f6b"),n("2877")),p=Object(f["a"])(d,i,r,!1,null,null,null);p.options.__file="index.vue";e["default"]=p.exports},b7a0:function(t,e,n){},b7b5:function(t,e,n){"use strict";n.r(e);var i=n("27a7"),r=n("ed1a"),a=["scanCode","setScreenBrightness","getScreenBrightness","setKeepScreenOn","addPhoneContact","saveImageToPhotosAlbum","saveVideoToPhotosAlbum","setClipboardData","getClipboardData","getRecorderManager","getProvider","login","getUserInfo","share","requestPayment","subscribePush","unsubscribePush","onPush","offPush"],o=n("d719"),s=n("d218"),c=n("abbf");n.d(e,"getApp",function(){return c["b"]}),n.d(e,"getCurrentPages",function(){return c["c"]});var u=Object.create(null);u.version="0.0.1",a.forEach(function(t){u[t]=Object(i["c"])(t)}),Object.keys(o["default"]).forEach(function(t){u[t]=Object(r["d"])(t,Object(i["b"])(t,o["default"][t]))}),Object.keys(s["default"]).forEach(function(t){u[t]=Object(r["d"])(t,Object(i["b"])(t,s["default"][t]))});e["default"]=u},b865:function(t,e,n){"use strict";(function(t){function i(e,n,i){t.UniViewJSBridge.subscribeHandler(e,n,i)}n.d(e,"a",function(){return i})}).call(this,n("c8ba"))},b866:function(t,e,n){"use strict";n.r(e),n.d(e,"getImageInfo",function(){return r});var i=n("cb0f"),r={src:{type:String,required:!0,validator:function(t,e){e.src=Object(i["a"])(t)}}}},b98b:function(t,e,n){},ba15:function(t,e,n){"use strict";var i=function(t,e,n,i){t.addEventListener(e,n,{passive:!1})};e["a"]={methods:{touchtrack:function(t,e,n){var r=this,a=0,o=0,s=0,c=0,u=function(t,n,i,u){if(!1===r[e]({target:t.target,currentTarget:t.currentTarget,preventDefault:t.preventDefault.bind(t),stopPropagation:t.stopPropagation.bind(t),touches:t.touches,changedTouches:t.changedTouches,detail:{state:n,x0:i,y0:u,dx:i-a,dy:u-o,ddx:i-s,ddy:u-c,timeStamp:t.timeStamp}}))return!1},l=null;i(t,"touchstart",function(t){if(1===t.touches.length&&!l)return l=t,a=s=t.touches[0].pageX,o=c=t.touches[0].pageY,u(t,"start",a,o)}),i(t,"touchmove",function(t){if(1===t.touches.length&&l){var e=u(t,"move",t.touches[0].pageX,t.touches[0].pageY);return s=t.touches[0].pageX,c=t.touches[0].pageY,t.preventDefault(),e}}),i(t,"touchend",function(t){if(0===t.touches.length&&l)return l=null,u(t,"end",t.changedTouches[0].pageX,t.changedTouches[0].pageY)}),i(t,"touchcancel",function(t){if(l){var e=l;return l=null,u(t,n?"cancel":"end",e.touches[0].pageX,e.touches[0].pageY)}})}}}},bab8:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"system-header"},[n("div",{staticClass:"header-text"},[t._t("default")],2),n("div",{staticClass:"header-btn header-back",on:{click:t._back}},[n("svg",{staticClass:"header-btn-img",attrs:{width:"200px",height:"200.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M729.6 931.2l-416-425.6 416-416c9.6-9.6 9.6-25.6 0-35.2-9.6-9.6-25.6-9.6-35.2 0l-432 435.2c-9.6 9.6-9.6 25.6 0 35.2l432 441.6c9.6 9.6 25.6 9.6 35.2 0C739.2 956.8 739.2 940.8 729.6 931.2z"}})])]),t.confirm?n("div",{staticClass:"header-btn header-confirm",on:{click:t._confirm}},[n("svg",{staticClass:"header-btn-img",attrs:{width:"200px",height:"200.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M939.6960642844446 226.08613831111114c-14.635971697777777-13.725872355555557-37.719236835555556-13.070208568888889-51.445109191111115 1.6029502577777779L402.69993870222225 744.6571451733333 137.46159843555557 483.31364238222227c-14.344349013333334-14.12709944888889-37.392384-13.98030904888889-51.51948344888889 0.3640399644444444-14.12709944888889 14.30911886222222-13.945078897777778 37.392384 0.40122709333333334 51.482296319999996l291.8171704888889 287.48392106666665c0.10960327111111111 0.10960327111111111 0.2544366933333333 0.1448334222222222 0.3640399644444444 0.2544366933333333s0.1448334222222222 0.2544366933333333 0.2544366933333333 0.3640399644444444c2.293843057777778 2.1842397866666667 5.061329351111111 3.4231500799999997 7.719212373333333 4.879309937777777 1.3113264355555554 0.7652670577777777 2.43867648 1.8926159644444445 3.822419057777778 2.43867648 4.2960634311111106 1.6753664 8.846562417777779 2.548279751111111 13.361832391111111 2.548279751111111 4.769706666666666 0 9.539412195555554-0.9472864711111111 13.98030904888889-2.839903573333333 1.4933469866666664-0.6184766577777778 2.6578830222222223-1.8926159644444445 4.0416267377777775-2.6950701511111115 2.7302991644444448-1.6029502577777779 5.5702027377777785-2.9495068444444446 7.901232924444444-5.315766044444445 0.10960327111111111-0.10960327111111111 0.1448334222222222-0.2916238222222222 0.2544366933333333-0.40122709333333334 0.07241614222222222-0.10960327111111111 0.21920654222222222-0.1448334222222222 0.3268528355555555-0.2544366933333333L941.2579134577779 277.5273335466667C955.0953460622222 262.9305059555556 954.3320359822221 239.8844279466666 939.6960642844446 226.08613831111114z"}})])]):t._e()])},r=[],a={name:"SystemHeader",props:{confirm:{type:Boolean,default:!1}},methods:{_back:function(){this.$emit("back")},_confirm:function(){this.$emit("confirm")}}},o=a,s=(n("0a32"),n("2877")),c=Object(s["a"])(o,i,r,!1,null,null,null);c.options.__file="system-header.vue";e["a"]=c.exports},bacd:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-canvas",[n("canvas",{ref:"canvas",attrs:{"canvas-id":t.canvasId,"disable-scroll":t.disableScroll,width:"300",height:"150"},on:{touchmove:t._touchmove}}),n("v-uni-resize-sensor",{ref:"sensor",on:{resize:t._resize}})],1)},r=[],a=n("e1df"),o=a["a"],s=(n("0741"),n("2877")),c=Object(s["a"])(o,i,r,!1,null,null,null);c.options.__file="index.vue";e["default"]=c.exports},bbc6:function(t,e,n){"use strict";(function(t){var i=n("cb0f");e["a"]={name:"TabBar",props:{position:{default:"bottom",validator:function(t){return-1!==["bottom","top"].indexOf(t)}},color:{type:String,default:"#999"},selectedColor:{type:String,default:"#007aff"},backgroundColor:{type:String,default:"#f7f7fa"},borderStyle:{default:"black",validator:function(t){return-1!==["black","white"].indexOf(t)}},list:{type:Array,default:function(){return[]}}},computed:{borderColor:function(){return"white"===this.borderStyle?"rgba(255, 255, 255, 0.33)":"rgba(0, 0, 0, 0.33)"}},watch:{$route:function(t,e){t.meta.isTabBar&&(this.__path__=t.path)}},beforeCreate:function(){this.__path__=this.$route.path},methods:{_getRealPath:function(t){return 0!==t.indexOf("/")&&(t="/"+t),Object(i["a"])(t)},_switchTab:function(e,n){var i=e.text,r=e.pagePath,a="/"+r;a===__uniRoutes[0].alias&&(a="/"),this.$route.path!==a?(this.__path__=this.$route.path,uni.switchTab({url:a})):t.emit("onTabItemTap",{index:n,text:i,pagePath:r})}}}}).call(this,n("0dd1"))},bdb1:function(t,e,n){var i={"./can-i-use.js":"7771","./context/audio.js":"2c67","./context/canvas.js":"303f","./context/inner-audio.js":"57a7","./context/map.js":"8e58","./context/video.js":"d16d","./create-selector-query.js":"c420","./index.js":"d719","./location.js":"2ae7","./media/get-image-info.js":"a4cf","./media/preview-image.js":"898f","./navigation-bar.js":"f8c2","./network/request.js":"82c2","./network/socket.js":"811a","./page-event.js":"9eba","./popup.js":"4062","./route.js":"5bd2","./storage.js":"c84e","./tab-bar.js":"b5ca","./upx2px.js":"c75f"};function r(t){var e=a(t);return n(e)}function a(t){var e=i[t];if(!(e+1)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return e}r.keys=function(){return Object.keys(i)},r.resolve=a,t.exports=r,r.id="bdb1"},be12:function(t,e,n){"use strict";(function(t){function n(t,e,n){var i=Array.prototype.slice.call(t.changedTouches).filter(function(t){return t.identifier===e})[0];return!!i&&(t.deltaY=i.pageY-n,!0)}var i="pulling",r="reached",a="aborting",o="refreshing",s="restoring";e["a"]={mounted:function(){var e=this;this.enablePullDownRefresh&&(this.refreshContainerElem=this.$refs.refresh.$el,this.refreshControllerElem=this.refreshContainerElem.querySelector(".uni-page-refresh"),this.refreshInnerElemStyle=this.refreshControllerElem.querySelector(".uni-page-refresh-inner").style,t.on(this.$route.params.__id__+".startPullDownRefresh",function(){e.state||(e.state=o,e._addClass(),setTimeout(function(){e._refreshing()},50))}),t.on(this.$route.params.__id__+".stopPullDownRefresh",function(){e.state===o&&(e._removeClass(),e.state=s,e._addClass(),e._restoring(function(){e._removeClass(),e.state=e.distance=e.offset=null}))}))},methods:{_touchstart:function(t){var e=t.changedTouches[0];this.touchId=e.identifier,this.startY=e.pageY,[a,o,s].indexOf(this.state)>=0?this.canRefresh=!1:this.canRefresh=!0},_touchmove:function(t){if(this.canRefresh&&n(t,this.touchId,this.startY)){var e=t.deltaY;if(0===(document.documentElement.scrollTop||document.body.scrollTop)){if(!(e<0)||this.state){t.preventDefault(),null==this.distance&&(this.offset=e,this.state=i,this._addClass()),e-=this.offset,e<0&&(e=0),this.distance=e;var a=e>=this.refreshOptions.range&&this.state!==r,o=e1?i=1:i*=i*i;var r=Math.round(t/(this.refreshOptions.range/this.refreshOptions.height)),a=r?"translate3d(-50%, "+r+"px, 0)":0;n.webkitTransform=a,n.clip="rect("+(45-r)+"px,45px,45px,-5px)",this.refreshInnerElemStyle.webkitTransform="rotate("+360*i+"deg)"}},_aborting:function(t){var e=this.refreshControllerElem;if(e){var n=e.style;if(n.webkitTransform){n.webkitTransition="-webkit-transform 0.3s",n.webkitTransform="translate3d(-50%, 0, 0)";var i=function i(){r&&clearTimeout(r),e.removeEventListener("webkitTransitionEnd",i),n.webkitTransition="",t()};e.addEventListener("webkitTransitionEnd",i);var r=setTimeout(i,350)}else t()}},_refreshing:function(){var e=this.refreshControllerElem;if(e){var n=e.style;n.webkitTransition="-webkit-transform 0.2s",n.webkitTransform="translate3d(-50%, "+this.refreshOptions.height+"px, 0)",t.emit("onPullDownRefresh",{},this.$route.params.__id__)}},_restoring:function(t){var e=this.refreshControllerElem;if(e){var n=e.style;n.webkitTransition="-webkit-transform 0.3s",n.webkitTransform+=" scale(0.01)";var i=function i(){r&&clearTimeout(r),e.removeEventListener("webkitTransitionEnd",i),n.webkitTransition="",n.webkitTransform="translate3d(-50%, 0, 0)",t()};e.addEventListener("webkitTransitionEnd",i);var r=setTimeout(i,350)}}}}}).call(this,n("0dd1"))},bf53:function(t,e,n){},bfea:function(t,e,n){"use strict";var i=n("cf48"),r=n.n(i);r.a},c33f:function(t,e,n){"use strict";var i=n("f766"),r=n.n(i);r.a},c35d:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-picker",{on:{click:function(e){return e.stopPropagation(),t._click(e)}}},[n("div",[t._t("default")],2)])},r=[],a=n("58ae"),o=a["a"],s=(n("6f00"),n("2877")),c=Object(s["a"])(o,i,r,!1,null,null,null);c.options.__file="index.vue";e["default"]=c.exports},c3d0:function(t,e,n){},c41f:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-cover-view")},r=[],a={name:"CoverView"},o=a,s=n("2877"),c=Object(s["a"])(o,i,r,!1,null,null,null);c.options.__file="index.vue";e["default"]=c.exports},c420:function(t,e,n){"use strict";n.r(e),function(t,i){n.d(e,"createSelectorQuery",function(){return f});var r=n("f2b3"),a=n("62b5");function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n=5&&t<=18?t:18},default:18},name:{type:String},address:{type:String}}},c61c:function(t,e,n){"use strict";function i(t){return Math.sqrt(t.x*t.x+t.y*t.y)}n.r(e);var r,a,o={name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},data:function(){return{width:0,height:0,items:[]}},created:function(){this.gapV={x:null,y:null},this.pinchStartLen=null},mounted:function(){this._getWH(),this.items.forEach(function(t,e){t.componentInstance.setParent()})},methods:{_find:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.items,n=this.$el;function i(t){for(var r=0;r1){var n={x:e[1].pageX-e[0].pageX,y:e[1].pageY-e[0].pageY};if(this.pinchStartLen=i(n),this.gapV=n,!this.scaleArea){var r=this._find(e[0].target),a=this._find(e[1].target);this._scaleMovableView=r&&r===a?r:null}}},_touchmove:function(t){var e=t.touches;if(e&&e.length>1){t.preventDefault();var n={x:e[1].pageX-e[0].pageX,y:e[1].pageY-e[0].pageY};if(null!==this.gapV.x&&this.pinchStartLen>0){var r=i(n)/this.pinchStartLen;this._updateScale(r)}this.gapV=n}},_touchend:function(t){var e=t.touches;e&&e.length||t.changedTouches&&(this.gapV.x=0,this.gapV.y=0,this.pinchStartLen=null,this.scaleArea?this.items.forEach(function(t){t.componentInstance._endScale()}):this._scaleMovableView&&this._scaleMovableView.componentInstance._endScale())},_updateScale:function(t){t&&1!==t&&(this.scaleArea?this.items.forEach(function(e){e.componentInstance._setScale(t)}):this._scaleMovableView&&this._scaleMovableView.componentInstance._setScale(t))},_getWH:function(){var t=window.getComputedStyle(this.$el),e=this.$el.getBoundingClientRect();this.width=e.width-["Left","Right"].reduce(function(e,n){return e+parseFloat(t["border"+n+"Width"])+parseFloat(t["padding"+n])},0),this.height=e.height-["Top","Bottom"].reduce(function(e,n){return e+parseFloat(t["border"+n+"Width"])+parseFloat(t["padding"+n])},0)}},render:function(t){var e=this,n=[];this.$slots.default&&this.$slots.default.forEach(function(t){t.componentOptions&&"v-uni-movable-view"===t.componentOptions.tag&&n.push(t)}),this.items=n;var i=Object.assign({},this.$listeners),r=["touchstart","touchmove","touchend"];return r.forEach(function(t){var n=i[t],r=e["_".concat(t)];i[t]=n?[].concat(n,r):r}),t("uni-movable-area",{on:i},n)}},s=o,c=(n("a3e5"),n("2877")),u=Object(c["a"])(s,r,a,!1,null,null,null);u.options.__file="index.vue";e["default"]=u.exports},c630:function(t,e,n){},c63b:function(t,e,n){},c75f:function(t,e,n){"use strict";n.r(e),n.d(e,"checkDeviceWidth",function(){return c}),n.d(e,"upx2px",function(){return u});var i=1e-4,r=750,a=!1,o=0,s=0;function c(){var t=uni.getSystemInfoSync(),e=t.platform,n=t.pixelRatio,i=t.windowWidth;o=i,s=n,a="ios"===e}function u(t,e){return 0===o&&c(),t=Number(t),0===t?0:(t=t/r*(e||o),t=Math.floor(t+i),0===t?1!==s&&a?.5:1:t)}},c84e:function(t,e,n){"use strict";function i(t){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.key,n=t.data,r={type:"object"===i(n)?"object":"string",data:n};localStorage.setItem(e,JSON.stringify(r));var a=localStorage.getItem("uni-storage-keys");if(a){var o=JSON.parse(a);o.indexOf(e)<0&&(o.push(e),localStorage.setItem("uni-storage-keys",JSON.stringify(o)))}else localStorage.setItem("uni-storage-keys",JSON.stringify([e]));return{errMsg:"setStorage:ok"}}function a(t,e){r({key:t,data:e})}function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.key,n=localStorage.getItem(e);return n?{data:JSON.parse(n).data,errMsg:"getStorage:ok"}:{data:"",errMsg:"getStorage:fail"}}function s(t){var e=o({key:t});return e.data}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.key,n=localStorage.getItem("uni-storage-keys");if(n){var i=JSON.parse(n),r=i.indexOf(e);i.splice(r,1),localStorage.setItem("uni-storage-keys",JSON.stringify(i))}return localStorage.removeItem(e),{errMsg:"removeStorage:ok"}}function u(t){c({key:t})}function l(){return localStorage.clear(),{errMsg:"clearStorage:ok"}}function h(){l()}function d(){var t=localStorage.getItem("uni-storage-keys");return t?{keys:JSON.parse(t),currentSize:0,limitSize:0,errMsg:"getStorageInfo:ok"}:{keys:"",currentSize:0,limitSize:0,errMsg:"getStorageInfo:fail"}}function f(){var t=d();return delete t.errMsg,t}n.r(e),n.d(e,"setStorage",function(){return r}),n.d(e,"setStorageSync",function(){return a}),n.d(e,"getStorage",function(){return o}),n.d(e,"getStorageSync",function(){return s}),n.d(e,"removeStorage",function(){return c}),n.d(e,"removeStorageSync",function(){return u}),n.d(e,"clearStorage",function(){return l}),n.d(e,"clearStorageSync",function(){return h}),n.d(e,"getStorageInfo",function(){return d}),n.d(e,"getStorageInfoSync",function(){return f})},c863:function(t,e,n){},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},c8ed:function(t,e,n){"use strict";var i=n("edd3"),r=n.n(i);r.a},c96e:function(t,e,n){"use strict";var i=n("2c0a"),r=n.n(i);r.a},cb0f:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("0f74"),r=/^(http|https|file):\/\//,a=/^data:[a-z-]+\/[a-z-]+;base64,/;function o(t){return __uniConfig.router.base?__uniConfig.router.base+t:t}function s(t){if(0===t.indexOf("/"))return o(t.substr(1));if(r.test(t)||a.test(t)||0===t.indexOf("blob:"))return t;var e=getCurrentPages();return e.length?o(Object(i["a"])(e[e.length-1].$page.route,t).substr(1)):t}},cef5:function(t,e,n){"use strict";n.r(e),n.d(e,"getProvider",function(){return r});var i={OAUTH:"OAUTH",SHARE:"SHARE",PAYMENT:"PAYMENT",PUSH:"PUSH"},r={service:{type:String,required:!0,validator:function(t,e){if(t=(t||"").toUpperCase(),t&&Object.values(i).indexOf(t)<0)return"service error"}}}},cf48:function(t,e,n){},d078:function(t,e,n){},d16d:function(t,e,n){"use strict";n.r(e),function(t){function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=t.text,n=t.color;o(this.id,this.pageId,"sendDanmu",{text:e,color:n})}},{key:"playbackRate",value:function(t){~s.indexOf(t)||(t=1),o(this.id,this.pageId,"playbackRate",{rate:t})}},{key:"requestFullScreen",value:function(){o(this.id,this.pageId,"requestFullScreen")}},{key:"exitFullScreen",value:function(){o(this.id,this.pageId,"exitFullScreen")}},{key:"showStatusBar",value:function(){o(this.id,this.pageId,"showStatusBar")}},{key:"hideStatusBar",value:function(){o(this.id,this.pageId,"hideStatusBar")}}]),t}();function u(e,n){if(n)return new c(e,n.$page.id);var i=getApp();if(i.$route&&i.$route.params.__id__)return new c(e,i.$route.params.__id__);t.emit("onError","createVideoContext:fail")}}.call(this,n("0dd1"))},d218:function(t,e,n){"use strict";n.r(e);var i=Object.create(null),r=n("e3a7");r.keys().forEach(function(t){"./index.js"!==t&&Object.assign(i,r(t))}),e["default"]=i},d3bd:function(t,e,n){"use strict";n.r(e);var i,r,a=n("8af1"),o={name:"Button",mixins:[a["b"],a["a"],a["c"]],props:{hoverClass:{type:String,default:"button-hover"},disabled:{type:[Boolean,String],default:!1},id:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:Number,default:20},hoverStayTime:{type:Number,default:70},formType:{type:String,default:"",validator:function(t){return~["","submit","reset"].indexOf(t)}}},data:function(){return{clickFunction:null}},methods:{_onClick:function(t,e){this.disabled||(e&&this.$el.click(),this.formType&&this.$dispatch("Form","submit"===this.formType?"uni-form-submit":"uni-form-reset",{type:this.formType}))},_bindObjectListeners:function(t,e){if(e)for(var n in e){var i=t.on[n],r=e[n];t.on[n]=i?[].concat(i,r):r}return t}},render:function(t){var e=this,n=Object.create(null);return this.$listeners&&Object.keys(this.$listeners).forEach(function(t){(!e.disabled||"click"!==t&&"tap"!==t)&&(n[t]=e.$listeners[t])}),this.hoverClass&&"none"!==this.hoverClass?t("uni-button",this._bindObjectListeners({class:[this.hovering?this.hoverClass:""],attrs:{disabled:this.disabled},on:{touchstart:this._hoverTouchStart,touchend:this._hoverTouchEnd,touchcancel:this._hoverTouchCancel,click:this._onClick}},n),this.$slots.default):t("uni-button",this._bindObjectListeners({class:[this.hovering?this.hoverClass:""],attrs:{disabled:this.disabled},on:{click:this._onClick}},n),this.$slots.default)},listeners:{"label-click":"_onClick","@label-click":"_onClick"}},s=o,c=(n("5676"),n("2877")),u=Object(c["a"])(s,i,r,!1,null,null,null);u.options.__file="index.vue";e["default"]=u.exports},d4b6:function(t,e,n){"use strict";n.d(e,"b",function(){return f}),n.d(e,"a",function(){return k});var i=n("f2b3"),r=n("85b6"),a=n("24d9"),o=n("a470");function s(t,e){return l(t)||u(t,e)||c()}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function u(t,e){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done);i=!0)if(n.push(o.value),e&&n.length===e)break}catch(c){r=!0,a=c}finally{try{i||null==s["return"]||s["return"]()}finally{if(r)throw a}}return n}function l(t){if(Array.isArray(t))return t}function h(t,e){var n={id:t.id,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,dataset:Object(r["b"])(t.dataset)};return e&&Object.assign(n,e),n}function d(t){if(t){for(var e=[],n=Object(o["a"])(),i=n.top,r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return e._processed?(e.type=n.type||t,e):Object(a["b"])({type:n.type||t,timeStamp:e.timeStamp||0,detail:n,target:h(i,n),currentTarget:h(r),touches:d(e.touches),changedTouches:d(e.changedTouches),preventDefault:function(){},stopPropagation:function(){}})}var p=350,g=10,v=!!i["h"]&&{passive:!0},m=!1;function b(){m&&(clearTimeout(m),m=!1)}var _=0,y=0;function w(t){if(b(),1===t.touches.length){var e=s(t.touches,1),n=e[0],i=n.pageX,r=n.pageY;_=i,y=r,m=setTimeout(function(){t.target.dispatchEvent(new TouchEvent("longpress",{bubbles:!0,cancelable:!0,target:t.target,currentTarget:t.currentTarget,touches:t.touches,changedTouches:t.changedTouches}))},p)}}function S(t){if(m){if(1!==t.touches.length)return b();var e=s(t.touches,1),n=e[0],i=n.pageX,r=n.pageY;return Math.abs(i-_)>g||Math.abs(r-y)>g?b():void 0}}function k(){window.addEventListener("touchstart",w,v),window.addEventListener("touchmove",S,v),window.addEventListener("touchend",b,v),window.addEventListener("touchcancel",b,v)}},d5be:function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"chooseImage",function(){return c});var i=n("e2e2"),r=t,a=r.invokeCallbackHandler,o=null,s=function(t){var e=document.createElement("input");return e.type="file",e.style="visibility: hidden;z-index: -999;width: 0;height: 0;",e.accept="image/*",t.count>1&&(e.multiple="multiple"),1===t.sourceType.length&&"camera"===t.sourceType[0]&&(e.capture="camera"),e};function c(t,e){var n=t.count,r=t.sourceType;o&&(document.body.removeChild(o),o=null),o=s({count:n,sourceType:r}),document.body.appendChild(o),o.addEventListener("change",function(t){for(var n=[],r=[],o=t.target.files.length,s=0;s=e||n.radioList[e].radioChecked&&(n.radioList[r].radioChecked=!1)}))})},_getFormData:function(){var t={};if(""!==this.name){var e="";this.radioList.forEach(function(t){t.radioChecked&&(e=t.value)}),t["value"]=e,t["key"]=this.name}return t}}},s=o,c=(n("fb61"),n("2877")),u=Object(c["a"])(s,i,r,!1,null,null,null);u.options.__file="index.vue";e["default"]=u.exports},d68b:function(t,e,n){"use strict";n.r(e),n.d(e,"showModal",function(){return r}),n.d(e,"showToast",function(){return a}),n.d(e,"showLoading",function(){return o}),n.d(e,"showActionSheet",function(){return s});var i=n("cb0f"),r={title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"取消"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"确定"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean,default:!0}},a={title:{type:String,default:""},icon:{default:"success",validator:function(t,e){-1===["success","loading","none"].indexOf(t)&&(e.icon="success")}},image:{type:String,default:"",validator:function(t,e){t&&(e.image=Object(i["a"])(t))}},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!0}},o={title:{type:String,default:""},icon:{type:String,default:"loading"},duration:{type:Number,default:1e8},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!0}},s={itemList:{type:Array,required:!0,validator:function(t,e){if(!t.length)return"parameter.itemList should have at least 1 item"}},itemColor:{type:String,default:"#000000"},visible:{type:Boolean,default:!0}}},d719:function(t,e,n){"use strict";n.r(e);var i=Object.create(null),r=n("bdb1");r.keys().forEach(function(t){"./index.js"!==t&&Object.assign(i,r(t))}),e["default"]=i},d827:function(t,e,n){},d859:function(t,e,n){},d871:function(t,e,n){},db18:function(t,e,n){"use strict";var i=n("86db"),r=n.n(i);r.a},de29:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("f2b3");function r(t){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function a(t,e,n){var r=e[t],a=!Object(i["c"])(n,t),s=n[t],c=h(Boolean,r.type);if(c>-1&&a&&!Object(i["c"])(r,"default")&&(s=!1),void 0===s&&Object(i["c"])(r,"default")){var u=r["default"];s=Object(i["e"])(u)?u():u,n[t]=s}return o(r,t,s,a,n)}function o(t,e,n,i,r){if(t.required&&i)return"Missing required parameter `".concat(e,"`");if(null==n&&!t.required){var a=t.validator;return a?a(n,r):void 0}var o=t.type,s=!o||!0===o,u=[];if(o){Array.isArray(o)||(o=[o]);for(var l=0;l2&&void 0!==arguments[2]&&arguments[2],i=document.getElementById(e);i&&n&&(i.parentNode.removeChild(i),i=null),i||(i=document.createElement("style"),i.type="text/css",e&&(i.id=e),document.getElementsByTagName("head")[0].appendChild(i)),i.appendChild(document.createTextNode(t))}n.d(e,"a",function(){return i})},ea0d:function(t,e,n){},ea86:function(t,e,n){"use strict";(function(t){var i=n("5a56");e["a"]={name:"Toast",mixins:[i["default"]],props:{title:{type:String,default:""},icon:{default:"success",validator:function(t){return-1!==["success","loading","none"].indexOf(t)}},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!1}},computed:{iconClass:function(){return"success"===this.icon?"uni-icon-success-no-circle":"loading"===this.icon?"uni-loading":void 0}},beforeUpdate:function(){this.visible&&(this.timeoutId&&clearTimeout(this.timeoutId),this.timeoutId=setTimeout(function(){t.emit("onHideToast")},this.duration))}}}).call(this,n("0dd1"))},ed1a:function(t,e,n){"use strict";n.d(e,"b",function(){return s}),n.d(e,"a",function(){return c}),n.d(e,"c",function(){return u}),n.d(e,"d",function(){return d});var i=n("f2b3"),r=/hideKeyboard|upx2px|canIUse|^create|Sync$|Manager$/,a=["request","downloadFile","uploadFile","connectSocket"],o=/^on/;function s(t){return r.test(t)}function c(t){return o.test(t)}function u(t){return-1!==a.indexOf(t)}function l(t){return t.then(function(t){return[null,t]}).catch(function(t){return[t]})}function h(t){return!s(t)&&!c(t)}function d(t,e){return h(t)?function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length,r=new Array(n>1?n-1:0),a=1;a9?t:"0"+t};function c(t){return"function"===typeof t}function u(t){return"[object Object]"===a.call(t)}function l(t,e){return o.call(t,e)}function h(t){return a.call(t).slice(8,-1)}function d(t,e,n){e.forEach(function(e){l(n,e)&&(t[e]=n[e])})}function f(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(""+t).replace(/[^\x00-\xff]/g,"**").length}function p(t){var e=t.date,n=void 0===e?new Date:e,i=t.mode,r=void 0===i?"date":i;return"time"===r?s(n.getHours())+":"+s(n.getMinutes()):n.getFullYear()+"-"+s(n.getMonth()+1)+"-"+s(n.getDate())}function g(t){var e,n,i;return t=t.replace("#",""),6===t.length&&(e=t.substring(0,2),n=t.substring(2,4),i=t.substring(4,6),1===e.length&&(e+=e),1===n.length&&(n+=n),1===i.length&&(i+=i),e=parseInt(e,16),n=parseInt(n,16),i=parseInt(i,16),{r:e,g:n,b:i})}n.d(e,"h",function(){return i}),n.d(e,"e",function(){return c}),n.d(e,"f",function(){return u}),n.d(e,"c",function(){return l}),n.d(e,"i",function(){return h}),n.d(e,"g",function(){return d}),n.d(e,"b",function(){return f}),n.d(e,"a",function(){return p}),n.d(e,"d",function(){return g})},f4e0:function(t,e,n){"use strict";var i=n("985f"),r=n.n(i);r.a},f53a:function(t,e,n){"use strict";var i=n("bf53"),r=n.n(i);r.a},f766:function(t,e,n){},f7b4:function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"onCompassChange",function(){return a}),n.d(e,"startCompass",function(){return o}),n.d(e,"stopCompass",function(){return s});var i,r=[];function a(t){r.push(t),i||o()}function o(){var e=t,n=e.invokeCallbackHandler;if(window.DeviceOrientationEvent)return i=function(t){var e=360-t.alpha;r.forEach(function(t){n(t,{errMsg:"onCompassChange:ok",direction:e||0})})},window.addEventListener("deviceorientation",i,!1),{};throw new Error("device nonsupport deviceorientation")}function s(){return i&&(window.removeEventListener("deviceorientation",i,!1),i=null),{}}}.call(this,n("0dd1"))},f7b7:function(t,e,n){},f7fd:function(t,e,n){"use strict";var i=n("b98b"),r=n.n(i);r.a},f8c2:function(t,e,n){"use strict";function i(t,e){var n=getCurrentPages();if(n.length){var i=n[n.length-1].$parent.$parent;switch(t){case"setNavigationBarColor":var r=e.frontColor,a=e.backgroundColor,o=e.animation,s=o.duration,c=o.timingFunc;r&&(i.navigationBar.textColor="#000000"===r?"black":"white"),a&&(i.navigationBar.backgroundColor=a),i.navigationBar.duration=s+"ms",i.navigationBar.timingFunc=c;break;case"showNavigationBarLoading":i.navigationBar.loading=!0;break;case"hideNavigationBarLoading":i.navigationBar.loading=!1;break;case"setNavigationBarTitle":var u=e.title;i.navigationBar.titleText=u;break}}return{}}function r(t){return i("setNavigationBarColor",t)}function a(){return i("showNavigationBarLoading")}function o(){return i("hideNavigationBarLoading")}function s(t){return i("setNavigationBarTitle",t)}n.r(e),n.d(e,"setNavigationBarColor",function(){return r}),n.d(e,"showNavigationBarLoading",function(){return a}),n.d(e,"hideNavigationBarLoading",function(){return o}),n.d(e,"setNavigationBarTitle",function(){return s})},fa1e:function(t,e,n){"use strict";function i(){var t=document.activeElement;!t||"TEXTAREA"!==t.tagName&&"INPUT"!==t.tagName||t.blur()}n.r(e),n.d(e,"hideKeyboard",function(){return i})},fae3:function(t,e,n){"use strict";var i;(n.r(e),"undefined"!==typeof window)&&((i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(n.p=i[1]));n("2ef3")},fb61:function(t,e,n){"use strict";var i=n("f7b7"),r=n.n(i);r.a},ff28:function(t,e,n){"use strict";var i=n("6f1a"),r=n.n(i);r.a},ffdc:function(t,e,n){"use strict";function i(t,e,n,i){var r,a=document.createElement("script"),o=e.callback||"callback",s="__callback"+Date.now(),c=e.timeout||3e4;function u(){clearTimeout(r),delete window[s],a.remove()}window[s]=function(t){"function"===typeof n&&n(t),u()},a.onerror=function(){"function"===typeof i&&i(),u()},r=setTimeout(function(){"function"===typeof i&&i(),u()},c),a.src=t+(t.indexOf("?")>=0?"&":"?")+o+"="+s,document.body.appendChild(a)}n.d(e,"a",function(){return i})}})}); \ No newline at end of file diff --git a/packages/uni-h5/package.json b/packages/uni-h5/package.json index f4f05e09..7a525f75 100644 --- a/packages/uni-h5/package.json +++ b/packages/uni-h5/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-h5", - "version": "0.0.9", + "version": "0.0.10", "description": "uni-app h5", "main": "dist/index.umd.min.js", "scripts": { diff --git a/src/core/view/components/picker/index.vue b/src/core/view/components/picker/index.vue index b4b556a6..315740d3 100644 --- a/src/core/view/components/picker/index.vue +++ b/src/core/view/components/picker/index.vue @@ -1,7 +1,7 @@ @@ -176,7 +176,7 @@ export default { } const id = this.$page.id subscribe(`${id}-picker-change`, this.change) - // subscribe(`${id}-picker-columnchange`, this.columnchange) + subscribe(`${id}-picker-columnchange`, this.columnchange) subscribe(`${id}-picker-cancel`, this.cancel) this.visible = true this._show() @@ -193,7 +193,7 @@ export default { this.visible = false const id = this.$page.id unsubscribe(`${id}-picker-change`) - // unsubscribe(`${id}-picker-columnchange`) + unsubscribe(`${id}-picker-columnchange`) unsubscribe(`${id}-picker-cancel`) if (!this.disabled) { this.valueChangeSource = 'click' @@ -204,13 +204,14 @@ export default { }) } }, - // columnchange (args) { - // }, + columnchange (args) { + this.$trigger('change', {}, args) + }, cancel (args) { this.visible = false const id = this.$page.id unsubscribe(`${id}-picker-change`) - // unsubscribe(`${id}-picker-columnchange`) + unsubscribe(`${id}-picker-columnchange`) unsubscribe(`${id}-picker-cancel`) this.$trigger('cancel', {}, {}) }, diff --git a/src/platforms/h5/components/app/popup/picker.vue b/src/platforms/h5/components/app/popup/picker.vue index 63cefdfc..585a1e58 100644 --- a/src/platforms/h5/components/app/popup/picker.vue +++ b/src/platforms/h5/components/app/popup/picker.vue @@ -1,41 +1,42 @@ @@ -142,7 +143,8 @@ export default { return { timeArray: [], dateArray: [], - valueArray: [] + valueArray: [], + oldValueArray: [] } }, computed: { @@ -213,6 +215,18 @@ export default { this._cloneArray(valueArray, endArray) } } + val.forEach((value, column) => { + if (value !== this.oldValueArray[column]) { + this.oldValueArray[column] = value + if (this.mode === mode.MULTISELECTOR) { + // 触发 View 层 columnchange 事件 + UniServiceJSBridge.publishHandler(this.pageId + '-picker-columnchange', { + column, + value + }, this.pageId) + } + } + }) } }, created () { @@ -295,7 +309,8 @@ export default { valueArray = val.split('-').map((val, i) => this.dateArray[i].indexOf(val)) break } - this.valueArray = valueArray + this.oldValueArray = [...valueArray] + this.valueArray = [...valueArray] }, _getValue () { var val = this.valueArray @@ -317,14 +332,6 @@ export default { value: this._getValue() }, this.pageId) }, - // 暂时取消 columnchange 事件 - // _columnchange (event) { - // // 触发 View 层 columnchange 事件 - // UniServiceJSBridge.publishHandler(this.pageId + '-picker-columnchange', { - // column: 0, - // value: this._getValue() - // }, this.pageId) - // }, _cancel () { // 通知父组件修改 visible this.$emit('close') @@ -335,109 +342,109 @@ export default { }