diff --git a/lerna.json b/lerna.json index 70a75521862e60f901de9693caa5e30fab00610a..db3c54d8fa398f4ff781029390fcb119cb6862c7 100644 --- a/lerna.json +++ b/lerna.json @@ -12,5 +12,5 @@ "message": "chore(release): publish %s" } }, - "version": "3.0.0-alpha-24020191018006" + "version": "3.0.0-alpha-24020191018012" } diff --git a/packages/uni-app-plus-nvue/package.json b/packages/uni-app-plus-nvue/package.json index c19329bcee75d73e8326c863c03017fb23081c91..89e2ab0a65d42386f141ad588609da038930e352 100644 --- a/packages/uni-app-plus-nvue/package.json +++ b/packages/uni-app-plus-nvue/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app-plus-nvue", - "version": "3.0.0-alpha-24020191018006", + "version": "3.0.0-alpha-24020191018012", "description": "uni-app app-plus-nvue", "main": "dist/index.js", "repository": { diff --git a/packages/uni-app-plus/dist/index.v3.js b/packages/uni-app-plus/dist/index.v3.js index 064c1299532b9d8bf491afacc17157210cf645bb..298c08b79b3c4aaff0d09e60a7b9b8d179d8f571 100644 --- a/packages/uni-app-plus/dist/index.v3.js +++ b/packages/uni-app-plus/dist/index.v3.js @@ -7140,6 +7140,128 @@ var serviceContext = (function () { } } + const callbacks$1 = {}; + + function createCallbacks (namespace) { + let scopedCallbacks = callbacks$1[namespace]; + if (!scopedCallbacks) { + scopedCallbacks = { + id: 1, + callbacks: Object.create(null) + }; + callbacks$1[namespace] = scopedCallbacks; + } + return { + get (id) { + return scopedCallbacks.callbacks[id] + }, + pop (id) { + const callback = scopedCallbacks.callbacks[id]; + if (callback) { + delete scopedCallbacks.callbacks[id]; + } + return callback + }, + push (callback) { + const id = scopedCallbacks.id++; + scopedCallbacks.callbacks[id] = callback; + return id + } + } + } + + const requestComponentInfoCallbacks = createCallbacks('requestComponentInfo'); + + function requestComponentInfo (pageVm, queue, callback) { + UniServiceJSBridge.publishHandler('requestComponentInfo', { + reqId: requestComponentInfoCallbacks.push(callback), + reqs: queue + }, pageVm.$page.id); + } + + function parseDataset (attr) { + const dataset = {}; + + Object.keys(attr || {}).forEach(key => { + if (key.indexOf('data') === 0) { + let str = key.replace('data', ''); + str = str.charAt(0).toLowerCase() + str.slice(1); + dataset[str] = attr[key]; + } + }); + + return dataset + } + + function findAttrs (ids, elm, result) { + let nodes = elm.children; + if (!Array.isArray(nodes)) { + return false + } + for (let i = 0; i < nodes.length; i++) { + let node = nodes[i]; + if (node.attr) { + let index = ids.indexOf(node.attr.id); + if (index >= 0) { + result[index] = { + id: ids[index], + ref: node.ref, + dataset: parseDataset(node.attr) + }; + if (ids.length === 1) { + break + } + } + } + if (node.children) { + findAttrs(ids, node, result); + } + } + } + + function getSelectors (queue) { + let ids = []; + for (let i = 0; i < queue.length; i++) { + const selector = queue[i].selector; + if (selector.indexOf('#') === 0) { + ids.push(selector.substring(1)); + } + } + return ids + } + + function getComponentRectAll (dom, attrs, index, result, callback) { + const attr = attrs[index]; + dom.getComponentRect(attr.ref, option => { + option.size.id = attr.id; + option.size.dataset = attr.dataset; + result.push(option.size); + index += 1; + if (index < attrs.length) { + getComponentRectAll(dom, attrs, index, result, callback); + } else { + callback(result); + } + }); + } + + function requestComponentInfo$1 (pageVm, queue, callback) { + // TODO 重构,逻辑不对,queue 里的每一项可能有单独的作用域查找(即 component) + const dom = pageVm._$weex.requireModule('dom'); + const selectors = getSelectors(queue); + let outAttrs = new Array(selectors.length); + findAttrs(selectors, pageVm.$el, outAttrs); + getComponentRectAll(dom, outAttrs, 0, [], (result) => { + callback(result); + }); + } + + function requestComponentInfo$2 (pageVm, queue, callback) { + pageVm.$page.meta.isNVue + ? requestComponentInfo$1(pageVm, queue, callback) + : requestComponentInfo(pageVm, queue, callback); + } + var api = /*#__PURE__*/Object.freeze({ @@ -7257,7 +7379,8 @@ var serviceContext = (function () { setTabBarItem: setTabBarItem$2, setTabBarStyle: setTabBarStyle$2, hideTabBar: hideTabBar$2, - showTabBar: showTabBar$2 + showTabBar: showTabBar$2, + requestComponentInfo: requestComponentInfo$2 }); const Emitter = new Vue(); @@ -7304,6 +7427,16 @@ var serviceContext = (function () { */ function onMethod (name, callback) { return UniServiceJSBridge.on('api.' + name, callback) + } + + function getCurrentPageVm (method) { + const pages = getCurrentPages(); + const len = pages.length; + if (!len) { + UniServiceJSBridge.emit('onError', `${method}:fail`); + } + const page = pages[len - 1]; + return page.$vm } const eventNames = [ @@ -7482,9 +7615,9 @@ var serviceContext = (function () { 'error', 'waiting' ]; - const callbacks$1 = {}; + const callbacks$2 = {}; eventNames$1.forEach(name => { - callbacks$1[name] = []; + callbacks$2[name] = []; }); const props$1 = [ @@ -7548,7 +7681,7 @@ var serviceContext = (function () { errMsg, errCode }) => { - callbacks$1[state].forEach(callback => { + callbacks$2[state].forEach(callback => { if (typeof callback === 'function') { callback(state === 'error' ? { errMsg, @@ -7600,7 +7733,7 @@ var serviceContext = (function () { eventNames$1.forEach(item => { const name = item[0].toUpperCase() + item.substr(1); BackgroundAudioManager.prototype[`on${name}`] = function (callback) { - callbacks$1[item].push(callback); + callbacks$2[item].push(callback); }; }); @@ -7614,10 +7747,118 @@ var serviceContext = (function () { getBackgroundAudioManager: getBackgroundAudioManager }); - const callbacks$2 = []; + function operateMapPlayer (mapId, pageVm, type, data) { + invokeMethod('operateMapPlayer', mapId, pageVm, type, data); + } + + class MapContext { + constructor (id, pageVm) { + this.id = id; + this.pageVm = pageVm; + } + + getCenterLocation (args) { + operateMapPlayer(this.id, this.pageVm, 'getCenterLocation', args); + } + + moveToLocation () { + operateMapPlayer(this.id, this.pageVm, 'moveToLocation'); + } + + translateMarker (args) { + operateMapPlayer(this.id, this.pageVm, 'translateMarker', args); + } + + includePoints (args) { + operateMapPlayer(this.id, this.pageVm, 'includePoints', args); + } + + getRegion (args) { + operateMapPlayer(this.id, this.pageVm, 'getRegion', args); + } + + getScale (args) { + operateMapPlayer(this.id, this.pageVm, 'getScale', args); + } + } + + function createMapContext$1 (id, context) { + if (context) { + return new MapContext(id, context) + } + return new MapContext(id, getCurrentPageVm('createMapContext')) + } + + var require_context_module_1_6 = /*#__PURE__*/Object.freeze({ + createMapContext: createMapContext$1 + }); + + const RATES = [0.5, 0.8, 1.0, 1.25, 1.5]; + + function operateVideoPlayer (videoId, pageVm, type, data) { + invokeMethod('operateVideoPlayer', videoId, pageVm, type, data); + } + + class VideoContext { + constructor (id, pageVm) { + this.id = id; + this.pageVm = pageVm; + } + + play () { + operateVideoPlayer(this.id, this.pageVm, 'play'); + } + pause () { + operateVideoPlayer(this.id, this.pageVm, 'pause'); + } + stop () { + operateVideoPlayer(this.id, this.pageVm, 'stop'); + } + seek (position) { + operateVideoPlayer(this.id, this.pageVm, 'seek', { + position + }); + } + sendDanmu (args) { + operateVideoPlayer(this.id, this.pageVm, 'sendDanmu', args); + } + playbackRate (rate) { + if (!~RATES.indexOf(rate)) { + rate = 1.0; + } + operateVideoPlayer(this.id, this.pageVm, 'playbackRate', { + rate + }); + } + requestFullScreen () { + operateVideoPlayer(this.id, this.pageVm, 'requestFullScreen'); + } + exitFullScreen () { + operateVideoPlayer(this.id, this.pageVm, 'exitFullScreen'); + } + showStatusBar () { + operateVideoPlayer(this.id, this.pageVm, 'showStatusBar'); + } + hideStatusBar () { + operateVideoPlayer(this.id, this.pageVm, 'hideStatusBar'); + } + } + + function createVideoContext$1 (id, context) { + if (context) { + return new VideoContext(id, context) + } + return new VideoContext(id, getCurrentPageVm('createVideoContext')) + } + + var require_context_module_1_7 = /*#__PURE__*/Object.freeze({ + createVideoContext: createVideoContext$1 + }); + + const callbacks$3 = []; onMethod('onAccelerometerChange', function (res) { - callbacks$2.forEach(callbackId => { + callbacks$3.forEach(callbackId => { invoke(callbackId, res); }); }); @@ -7629,7 +7870,7 @@ var serviceContext = (function () { */ function onAccelerometerChange (callbackId) { // TODO 当没有 start 时,添加 on 需要主动 start? - callbacks$2.push(callbackId); + callbacks$3.push(callbackId); if (!isEnable) { startAccelerometer(); } @@ -7654,7 +7895,7 @@ var serviceContext = (function () { }) } - var require_context_module_1_6 = /*#__PURE__*/Object.freeze({ + var require_context_module_1_8 = /*#__PURE__*/Object.freeze({ onAccelerometerChange: onAccelerometerChange, startAccelerometer: startAccelerometer, stopAccelerometer: stopAccelerometer @@ -7677,17 +7918,17 @@ var serviceContext = (function () { const onBLEConnectionStateChange$1 = on('onBLEConnectionStateChange'); const onBLECharacteristicValueChange$1 = on('onBLECharacteristicValueChange'); - var require_context_module_1_7 = /*#__PURE__*/Object.freeze({ + var require_context_module_1_9 = /*#__PURE__*/Object.freeze({ onBluetoothDeviceFound: onBluetoothDeviceFound$1, onBluetoothAdapterStateChange: onBluetoothAdapterStateChange$1, onBLEConnectionStateChange: onBLEConnectionStateChange$1, onBLECharacteristicValueChange: onBLECharacteristicValueChange$1 }); - const callbacks$3 = []; + const callbacks$4 = []; onMethod('onCompassChange', function (res) { - callbacks$3.forEach(callbackId => { + callbacks$4.forEach(callbackId => { invoke(callbackId, res); }); }); @@ -7699,7 +7940,7 @@ var serviceContext = (function () { */ function onCompassChange (callbackId) { // TODO 当没有 start 时,添加 on 需要主动 start? - callbacks$3.push(callbackId); + callbacks$4.push(callbackId); if (!isEnable$1) { startCompass(); } @@ -7724,29 +7965,29 @@ var serviceContext = (function () { }) } - var require_context_module_1_8 = /*#__PURE__*/Object.freeze({ + var require_context_module_1_10 = /*#__PURE__*/Object.freeze({ onCompassChange: onCompassChange, startCompass: startCompass, stopCompass: stopCompass }); - const callbacks$4 = []; + const callbacks$5 = []; onMethod('onNetworkStatusChange', res => { - callbacks$4.forEach(callbackId => { + callbacks$5.forEach(callbackId => { invoke(callbackId, res); }); }); function onNetworkStatusChange (callbackId) { - callbacks$4.push(callbackId); + callbacks$5.push(callbackId); } - var require_context_module_1_9 = /*#__PURE__*/Object.freeze({ + var require_context_module_1_11 = /*#__PURE__*/Object.freeze({ onNetworkStatusChange: onNetworkStatusChange }); - const callbacks$5 = { + const callbacks$6 = { pause: [], resume: [], start: [], @@ -7760,7 +8001,7 @@ var serviceContext = (function () { const state = res.state; delete res.state; delete res.errMsg; - callbacks$5[state].forEach(callback => { + callbacks$6[state].forEach(callback => { if (typeof callback === 'function') { callback(res); } @@ -7768,7 +8009,7 @@ var serviceContext = (function () { }); } onError (callback) { - callbacks$5.error.push(callback); + callbacks$6.error.push(callback); } onFrameRecorded (callback) { @@ -7780,16 +8021,16 @@ var serviceContext = (function () { } onPause (callback) { - callbacks$5.pause.push(callback); + callbacks$6.pause.push(callback); } onResume (callback) { - callbacks$5.resume.push(callback); + callbacks$6.resume.push(callback); } onStart (callback) { - callbacks$5.start.push(callback); + callbacks$6.start.push(callback); } onStop (callback) { - callbacks$5.stop.push(callback); + callbacks$6.stop.push(callback); } pause () { invokeMethod('operateRecorder', { @@ -7819,7 +8060,7 @@ var serviceContext = (function () { return recorderManager || (recorderManager = new RecorderManager()) } - var require_context_module_1_10 = /*#__PURE__*/Object.freeze({ + var require_context_module_1_12 = /*#__PURE__*/Object.freeze({ getRecorderManager: getRecorderManager }); @@ -7907,7 +8148,7 @@ var serviceContext = (function () { return task } - var require_context_module_1_11 = /*#__PURE__*/Object.freeze({ + var require_context_module_1_13 = /*#__PURE__*/Object.freeze({ downloadFile: downloadFile$1 }); @@ -8012,7 +8253,7 @@ var serviceContext = (function () { return new RequestTask(requestTaskId) } - var require_context_module_1_12 = /*#__PURE__*/Object.freeze({ + var require_context_module_1_14 = /*#__PURE__*/Object.freeze({ request: request$1 }); @@ -8090,7 +8331,7 @@ var serviceContext = (function () { const socketTasks$1 = Object.create(null); const socketTasksArray = []; - const callbacks$6 = Object.create(null); + const callbacks$7 = Object.create(null); onMethod('onSocketTaskStateChange', ({ socketTaskId, state, @@ -8111,8 +8352,8 @@ var serviceContext = (function () { if (state === 'open') { socketTask.readyState = socketTask.OPEN; } - if (socketTask === socketTasksArray[0] && callbacks$6[state]) { - invoke(callbacks$6[state], state === 'message' ? { + if (socketTask === socketTasksArray[0] && callbacks$7[state]) { + invoke(callbacks$7[state], state === 'message' ? { data } : {}); } @@ -8171,22 +8412,22 @@ var serviceContext = (function () { } function onSocketOpen (callbackId) { - callbacks$6.open = callbackId; + callbacks$7.open = callbackId; } function onSocketError (callbackId) { - callbacks$6.error = callbackId; + callbacks$7.error = callbackId; } function onSocketMessage (callbackId) { - callbacks$6.message = callbackId; + callbacks$7.message = callbackId; } function onSocketClose (callbackId) { - callbacks$6.close = callbackId; + callbacks$7.close = callbackId; } - var require_context_module_1_13 = /*#__PURE__*/Object.freeze({ + var require_context_module_1_15 = /*#__PURE__*/Object.freeze({ connectSocket: connectSocket$1, sendSocketMessage: sendSocketMessage$1, closeSocket: closeSocket$1, @@ -8280,7 +8521,7 @@ var serviceContext = (function () { return task } - var require_context_module_1_14 = /*#__PURE__*/Object.freeze({ + var require_context_module_1_16 = /*#__PURE__*/Object.freeze({ uploadFile: uploadFile$1 }); @@ -8389,7 +8630,7 @@ var serviceContext = (function () { return res } - var require_context_module_1_15 = /*#__PURE__*/Object.freeze({ + var require_context_module_1_17 = /*#__PURE__*/Object.freeze({ setStorage: setStorage$1, setStorageSync: setStorageSync$1, getStorage: getStorage$1, @@ -8480,23 +8721,195 @@ var serviceContext = (function () { return new MPAnimation(option) } - var require_context_module_1_16 = /*#__PURE__*/Object.freeze({ + var require_context_module_1_18 = /*#__PURE__*/Object.freeze({ createAnimation: createAnimation }); - const callbacks$7 = []; + const createIntersectionObserverCallbacks = createCallbacks('requestComponentObserver'); + + const defaultOptions = { + thresholds: [0], + initialRatio: 0, + observeAll: false + }; + + class ServiceIntersectionObserver { + constructor (component, options) { + this.pageId = component.$page.id; + this.component = component._$id || component; // app-plus 平台传输_$id + this.options = Object.assign({}, defaultOptions, options); + } + _makeRootMargin (margins = {}) { + this.options.rootMargin = ['top', 'right', 'bottom', 'left'].map(name => `${Number(margins[name]) || 0}px`).join( + ' '); + } + relativeTo (selector, margins) { + this.options.relativeToSelector = selector; + this._makeRootMargin(margins); + return this + } + relativeToViewport (margins) { + this.options.relativeToSelector = null; + this._makeRootMargin(margins); + return this + } + observe (selector, callback) { + if (typeof callback !== 'function') { + return + } + this.options.selector = selector; + + this.reqId = createIntersectionObserverCallbacks.push(callback); + + UniServiceJSBridge.publishHandler('requestComponentObserver', { + reqId: this.reqId, + component: this.component, + options: this.options + }, this.pageId); + } + disconnect () { + UniServiceJSBridge.publishHandler('destroyComponentObserver', { + reqId: this.reqId + }, this.pageId); + } + } + + function createIntersectionObserver (context, options) { + if (!context._isVue) { + options = context; + context = null; + } + if (context) { + return new ServiceIntersectionObserver(context, options) + } + return new ServiceIntersectionObserver(getCurrentPageVm('createIntersectionObserver'), options) + } + + var require_context_module_1_19 = /*#__PURE__*/Object.freeze({ + createIntersectionObserver: createIntersectionObserver + }); + + class NodesRef { + constructor (selectorQuery, component, selector, single) { + this._selectorQuery = selectorQuery; + this._component = component; + this._selector = selector; + this._single = single; + } + + boundingClientRect (callback) { + this._selectorQuery._push( + this._selector, + this._component, + this._single, { + id: true, + dataset: true, + rect: true, + size: true + }, + callback); + return this._selectorQuery + } + + fields (fields, callback) { + this._selectorQuery._push( + this._selector, + this._component, + this._single, + fields, + callback + ); + return this._selectorQuery + } + + scrollOffset (callback) { + this._selectorQuery._push( + this._selector, + this._component, + this._single, { + id: true, + dataset: true, + scrollOffset: true + }, + callback + ); + return this._selectorQuery + } + } + + class SelectorQuery { + constructor (page) { + this._page = page; + this._queue = []; + this._queueCb = []; + } + + exec (callback) { + invokeMethod('requestComponentInfo', this._page, this._queue, res => { + const queueCbs = this._queueCb; + res.forEach((result, index) => { + const queueCb = queueCbs[index]; + if (isFn(queueCb)) { + queueCb.call(this, result); + } + }); + isFn(callback) && callback.call(this, res); + }); + } + + ['in'] (component) { + // app-plus 平台传递 id + this._component = component._$id || component; + return this + } + + select (selector) { + return new NodesRef(this, this._component, selector, true) + } + + selectAll (selector) { + return new NodesRef(this, this._component, selector, false) + } + + selectViewport () { + return new NodesRef(this, 0, '', true) + } + + _push (selector, component, single, fields, callback) { + this._queue.push({ + component, + selector, + single, + fields + }); + this._queueCb.push(callback); + } + } + + function createSelectorQuery (context) { + if (context) { + return new SelectorQuery(context) + } + return new SelectorQuery(getCurrentPageVm('createSelectorQuery')) + } + + var require_context_module_1_20 = /*#__PURE__*/Object.freeze({ + createSelectorQuery: createSelectorQuery + }); + + const callbacks$8 = []; onMethod('onKeyboardHeightChange', res => { - callbacks$7.forEach(callbackId => { + callbacks$8.forEach(callbackId => { invoke(callbackId, res); }); }); function onKeyboardHeightChange (callbackId) { - callbacks$7.push(callbackId); + callbacks$8.push(callbackId); } - var require_context_module_1_17 = /*#__PURE__*/Object.freeze({ + var require_context_module_1_21 = /*#__PURE__*/Object.freeze({ onKeyboardHeightChange: onKeyboardHeightChange }); @@ -8508,7 +8921,7 @@ var serviceContext = (function () { return {} } - var require_context_module_1_18 = /*#__PURE__*/Object.freeze({ + var require_context_module_1_22 = /*#__PURE__*/Object.freeze({ pageScrollTo: pageScrollTo$1 }); @@ -8532,42 +8945,42 @@ var serviceContext = (function () { const hideTabBarRedDot$1 = removeTabBarBadge$1; - const callbacks$8 = []; + const callbacks$9 = []; onMethod('onTabBarMidButtonTap', res => { - callbacks$8.forEach(callbackId => { + callbacks$9.forEach(callbackId => { invoke(callbackId, res); }); }); function onTabBarMidButtonTap (callbackId) { - callbacks$8.push(callbackId); + callbacks$9.push(callbackId); } - var require_context_module_1_19 = /*#__PURE__*/Object.freeze({ + var require_context_module_1_23 = /*#__PURE__*/Object.freeze({ removeTabBarBadge: removeTabBarBadge$1, showTabBarRedDot: showTabBarRedDot$1, hideTabBarRedDot: hideTabBarRedDot$1, onTabBarMidButtonTap: onTabBarMidButtonTap }); - const callbacks$9 = []; + const callbacks$a = []; onMethod('onViewDidResize', res => { - callbacks$9.forEach(callbackId => { + callbacks$a.forEach(callbackId => { invoke(callbackId, res); }); }); function onWindowResize (callbackId) { - callbacks$9.push(callbackId); + callbacks$a.push(callbackId); } function offWindowResize (callbackId) { // 此处和微信平台一致查询不到去掉最后一个 - callbacks$9.splice(callbacks$9.indexOf(callbackId), 1); + callbacks$a.splice(callbacks$a.indexOf(callbackId), 1); } - var require_context_module_1_20 = /*#__PURE__*/Object.freeze({ + var require_context_module_1_24 = /*#__PURE__*/Object.freeze({ onWindowResize: onWindowResize, offWindowResize: offWindowResize }); @@ -8583,21 +8996,25 @@ var serviceContext = (function () { './base/upx2px.js': require_context_module_1_3, './context/audio.js': require_context_module_1_4, './context/background-audio.js': require_context_module_1_5, - './device/accelerometer.js': require_context_module_1_6, - './device/bluetooth.js': require_context_module_1_7, - './device/compass.js': require_context_module_1_8, - './device/network.js': require_context_module_1_9, - './media/recorder.js': require_context_module_1_10, - './network/download-file.js': require_context_module_1_11, - './network/request.js': require_context_module_1_12, - './network/socket.js': require_context_module_1_13, - './network/upload-file.js': require_context_module_1_14, - './storage/storage.js': require_context_module_1_15, - './ui/create-animation.js': require_context_module_1_16, - './ui/keyboard.js': require_context_module_1_17, - './ui/page-scroll-to.js': require_context_module_1_18, - './ui/tab-bar.js': require_context_module_1_19, - './ui/window.js': require_context_module_1_20, + './context/create-map-context.js': require_context_module_1_6, + './context/create-video-context.js': require_context_module_1_7, + './device/accelerometer.js': require_context_module_1_8, + './device/bluetooth.js': require_context_module_1_9, + './device/compass.js': require_context_module_1_10, + './device/network.js': require_context_module_1_11, + './media/recorder.js': require_context_module_1_12, + './network/download-file.js': require_context_module_1_13, + './network/request.js': require_context_module_1_14, + './network/socket.js': require_context_module_1_15, + './network/upload-file.js': require_context_module_1_16, + './storage/storage.js': require_context_module_1_17, + './ui/create-animation.js': require_context_module_1_18, + './ui/create-intersection-observer.js': require_context_module_1_19, + './ui/create-selector-query.js': require_context_module_1_20, + './ui/keyboard.js': require_context_module_1_21, + './ui/page-scroll-to.js': require_context_module_1_22, + './ui/tab-bar.js': require_context_module_1_23, + './ui/window.js': require_context_module_1_24, }; var req = function req(key) { @@ -8635,10 +9052,10 @@ var serviceContext = (function () { pageIds = [pageIds]; } const evalJSCode = - `typeof UniViewJSBridge !== 'undefined' && UniViewJSBridge.subscribeHandler("${eventType}",${args})`; + `typeof UniViewJSBridge !== 'undefined' && UniViewJSBridge.subscribeHandler("${eventType}",${args},__PAGE_ID__)`; pageIds.forEach(id => { const webview = plus.webview.getWebviewById(String(id)); - webview && webview.evalJS(evalJSCode); + webview && webview.evalJS(evalJSCode.replace('__PAGE_ID__', id)); }); } @@ -8750,36 +9167,6 @@ var serviceContext = (function () { on('onWebInvokeAppService', onWebInvokeAppService); } - const callbacks$a = {}; - - function createCallbacks (namespace) { - let scopedCallbacks = callbacks$a[namespace]; - if (!scopedCallbacks) { - scopedCallbacks = { - id: 1, - callbacks: Object.create(null) - }; - callbacks$a[namespace] = scopedCallbacks; - } - return { - get (id) { - return scopedCallbacks.callbacks[id] - }, - pop (id) { - const callback = scopedCallbacks.callbacks[id]; - if (callback) { - delete scopedCallbacks.callbacks[id]; - } - return callback - }, - push (callback) { - const id = scopedCallbacks.id++; - scopedCallbacks.callbacks[id] = callback; - return id - } - } - } - function initSubscribe (subscribe, { getApp, getCurrentPages @@ -9611,6 +9998,12 @@ var serviceContext = (function () { initData(Vue); initLifecycle(Vue); + Object.defineProperty(Vue.prototype, '$page', { + get () { + return this.$root.$scope.$page + } + }); + const oldMount = Vue.prototype.$mount; Vue.prototype.$mount = function mount (el, hydrating) { if (this.mpType === 'app') { diff --git a/packages/uni-app-plus/dist/view.umd.js b/packages/uni-app-plus/dist/view.umd.js index 4a5862b7f5edd36f2b620cef0819695dd762863b..a33c74008ca0584079d5e12ed480c174c5549edc 100644 --- a/packages/uni-app-plus/dist/view.umd.js +++ b/packages/uni-app-plus/dist/view.umd.js @@ -91,7 +91,7 @@ return /******/ (function(modules) { // webpackBootstrap /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 120); +/******/ return __webpack_require__(__webpack_require__.s = 121); /******/ }) /************************************************************************/ /******/ ([ @@ -276,13 +276,13 @@ function broadcast(componentName, eventName) { } }); // EXTERNAL MODULE: ./src/core/view/mixins/listeners.js -var listeners = __webpack_require__(52); +var listeners = __webpack_require__(53); // EXTERNAL MODULE: ./src/core/view/mixins/hover.js var hover = __webpack_require__(14); // EXTERNAL MODULE: ./src/core/view/mixins/subscriber.js -var subscriber = __webpack_require__(53); +var subscriber = __webpack_require__(54); // CONCATENATED MODULE: ./src/core/view/mixins/index.js /* concated harmony reexport emitter */__webpack_require__.d(__webpack_exports__, "a", function() { return emitter; }); @@ -569,10 +569,10 @@ __webpack_require__.r(__webpack_exports__); var view_runtime_esm = __webpack_require__(5); // EXTERNAL MODULE: ./src/core/view/bridge/subscribe/api/request-component-info.js -var request_component_info = __webpack_require__(56); +var request_component_info = __webpack_require__(57); // EXTERNAL MODULE: ./src/core/view/bridge/subscribe/api/request-component-observer.js -var request_component_observer = __webpack_require__(49); +var request_component_observer = __webpack_require__(50); // CONCATENATED MODULE: ./src/core/view/bridge/subscribe/api/index.js @@ -586,7 +586,7 @@ var request_component_observer = __webpack_require__(49); var subscribe_scroll = __webpack_require__(12); // EXTERNAL MODULE: ./src/platforms/app-plus/view/bridge/subscribe/index.js -var bridge_subscribe = __webpack_require__(57); +var bridge_subscribe = __webpack_require__(58); // CONCATENATED MODULE: ./src/core/view/bridge/subscribe/index.js @@ -9100,7 +9100,7 @@ if (inBrowser) { /* harmony default export */ __webpack_exports__["a"] = (Vue); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(48))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(49))) /***/ }), /* 6 */ @@ -9881,10 +9881,10 @@ function createScrollListener(pageId, _ref2) { /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return initData; }); /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5); /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3); -/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41); -/* harmony import */ var _vdom_sync__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(60); -/* harmony import */ var _page__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(43); -/* harmony import */ var _page_factory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(42); +/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(42); +/* harmony import */ var _vdom_sync__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(61); +/* harmony import */ var _page__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(44); +/* harmony import */ var _page_factory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(43); var _handleData; function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } @@ -9929,7 +9929,8 @@ var handleData = (_handleData = {}, _defineProperty(_handleData, _constants__WEB pageId = _data2[0], pagePath = _data2[1]; - new PageVueComponent({ + var page = getCurrentPages()[0]; + page.$vm = new PageVueComponent({ mpType: 'page', pageId: pageId, pagePath: pagePath @@ -10083,7 +10084,7 @@ function initData(Vue) { "use strict"; /* WEBPACK VAR INJECTION */(function(UniViewJSBridge) {/* harmony import */ var uni_mixins__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1); -/* harmony import */ var uni_helpers_hidpi__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(47); +/* harmony import */ var uni_helpers_hidpi__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(48); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } @@ -10857,12 +10858,55 @@ function processTouches(target, touches) { /* 41 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return findElm; }); +function findVmById(id, vm) { + if (id === vm._$id) { + return vm; + } + + var childVms = vm.$children; + var len = childVms.length; + + for (var i = 0; i < len; i++) { + var childVm = findVmById(id, childVms[i]); + + if (childVm) { + return childVm; + } + } +} + +function findElm(component, pageVm) { + if (!component) { + return pageVm.$el; + } + + if (true) { + if (typeof component === 'string') { + var componentVm = findVmById(component, pageVm); + + if (!componentVm) { + throw new Error("Not Found\uFF1APage[".concat(pageVm.$page.id, "][").concat(component, "]")); + } + + return componentVm.$el; + } + } + + return component.$el; +} + +/***/ }), +/* 42 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ON_PAGE_CREATE; }); var ON_PAGE_CREATE = 'onPageCreate'; /***/ }), -/* 42 */ +/* 43 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -10900,7 +10944,7 @@ function createPage(pagePath, pageId, pageQuery, pageInstance) { } /***/ }), -/* 43 */ +/* 44 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -10921,7 +10965,7 @@ function setCurrentPage(pageId, pagePath) { } /***/ }), -/* 44 */ +/* 45 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -10995,7 +11039,7 @@ Friction.prototype.configuration = function () { }; /***/ }), -/* 45 */ +/* 46 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -11228,16 +11272,16 @@ Spring.prototype.configuration = function () { }; /***/ }), -/* 46 */ +/* 47 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // EXTERNAL MODULE: ./src/core/view/mixins/scroller/Friction.js -var Friction = __webpack_require__(44); +var Friction = __webpack_require__(45); // EXTERNAL MODULE: ./src/core/view/mixins/scroller/Spring.js -var Spring = __webpack_require__(45); +var Spring = __webpack_require__(46); // CONCATENATED MODULE: ./src/core/view/mixins/scroller/Scroll.js @@ -11780,7 +11824,7 @@ Scroller.prototype.isScrolling = function () { }); /***/ }), -/* 47 */ +/* 48 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -11945,7 +11989,7 @@ function wrapper(canvas) { } /***/ }), -/* 48 */ +/* 49 */ /***/ (function(module, exports) { var g; @@ -11971,15 +12015,17 @@ module.exports = g; /***/ }), -/* 49 */ +/* 50 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(UniViewJSBridge) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return requestComponentObserver; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return destroyComponentObserver; }); -/* harmony import */ var intersection_observer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(64); +/* harmony import */ var intersection_observer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65); /* harmony import */ var intersection_observer__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(intersection_observer__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var uni_helpers_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); +/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41); + @@ -11997,17 +12043,19 @@ function getRect(rect) { var intersectionObservers = {}; function requestComponentObserver(_ref, pageId) { var reqId = _ref.reqId, + component = _ref.component, options = _ref.options; var pages = getCurrentPages(); - var pageVm = pages.find(function (page) { + var page = pages.find(function (page) { return page.$page.id === pageId; }); - if (!pageVm) { + if (!page) { throw new Error("Not Found\uFF1APage[".concat(pageId, "]")); } - var $el = pageVm.$el; + var pageVm = page.$vm; + var $el = Object(_util__WEBPACK_IMPORTED_MODULE_2__[/* findElm */ "a"])(component, pageVm); var root = options.relativeToSelector ? $el.querySelector(options.relativeToSelector) : null; var intersectionObserver = intersectionObservers[reqId] = new IntersectionObserver(function (entries, observer) { entries.forEach(function (entrie) { @@ -12055,23 +12103,23 @@ function destroyComponentObserver(_ref2) { /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(4))) /***/ }), -/* 50 */ +/* 51 */ /***/ (function(module, exports) { module.exports = ['uni-app', 'uni-tabbar', 'uni-page', 'uni-page-head', 'uni-page-wrapper', 'uni-page-body', 'uni-page-refresh', 'uni-actionsheet', 'uni-modal', 'uni-toast', 'uni-resize-sensor', 'uni-ad', 'uni-audio', 'uni-button', 'uni-camera', 'uni-canvas', 'uni-checkbox', 'uni-checkbox-group', 'uni-cover-image', 'uni-cover-view', 'uni-form', 'uni-functional-page-navigator', 'uni-icon', 'uni-image', 'uni-input', 'uni-label', 'uni-live-player', 'uni-live-pusher', 'uni-map', 'uni-movable-area', 'uni-movable-view', 'uni-navigator', 'uni-official-account', 'uni-open-data', 'uni-picker', 'uni-picker-view', 'uni-picker-view-column', 'uni-progress', 'uni-radio', 'uni-radio-group', 'uni-rich-text', 'uni-scroll-view', 'uni-slider', 'uni-swiper', 'uni-swiper-item', 'uni-switch', 'uni-text', 'uni-textarea', 'uni-video', 'uni-view', 'uni-web-view']; /***/ }), -/* 51 */ +/* 52 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(UniViewJSBridge, global) {/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5); -/* harmony import */ var uni_platform_view_index_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65); +/* harmony import */ var uni_platform_view_index_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(66); /* harmony import */ var uni_platform_view_index_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(uni_platform_view_index_css__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var uni_platform_page_factory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(42); -/* harmony import */ var uni_platform_view_framework_page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(43); -/* harmony import */ var uni_platform_view_framework_plugins_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(61); -/* harmony import */ var _view_api_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(55); +/* harmony import */ var uni_platform_page_factory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(43); +/* harmony import */ var uni_platform_view_framework_page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(44); +/* harmony import */ var uni_platform_view_framework_plugins_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(62); +/* harmony import */ var _view_api_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(56); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _view_api_js__WEBPACK_IMPORTED_MODULE_5__["a"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "b", function() { return _view_api_js__WEBPACK_IMPORTED_MODULE_5__["b"]; }); @@ -12102,13 +12150,13 @@ global.__definePage = uni_platform_page_factory__WEBPACK_IMPORTED_MODULE_2__[/* global.Vue = vue__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"]; vue__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].use(uni_platform_view_framework_plugins_index__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"]); -__webpack_require__(103); +__webpack_require__(104); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(4), __webpack_require__(48))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(4), __webpack_require__(49))) /***/ }), -/* 52 */ +/* 53 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -12222,7 +12270,7 @@ __webpack_require__(103); /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(4))) /***/ }), -/* 53 */ +/* 54 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -12272,7 +12320,7 @@ __webpack_require__(103); /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(4))) /***/ }), -/* 54 */ +/* 55 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -12315,7 +12363,7 @@ function switchTab(args) { /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(4))) /***/ }), -/* 55 */ +/* 56 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -12368,7 +12416,7 @@ function upx2px(number, newDeviceWidth) { return number < 0 ? -result : result; } // EXTERNAL MODULE: ./src/platforms/app-plus/view/api/index.js -var api = __webpack_require__(54); +var api = __webpack_require__(55); // EXTERNAL MODULE: ./src/platforms/app-plus/helpers/get-window-offset.js var get_window_offset = __webpack_require__(9); @@ -12523,13 +12571,15 @@ function canIUse(schema) { } /***/ }), -/* 56 */ +/* 57 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(UniViewJSBridge) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return requestComponentInfo; }); /* harmony import */ var uni_helpers_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7); /* harmony import */ var uni_platform_helpers_get_window_offset__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9); +/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41); + @@ -12616,9 +12666,7 @@ function getNodeInfo(el, fields) { } function getNodesInfo(pageVm, component, selector, single, fields) { - /* eslint-disable no-mixed-operators */ - // TODO 判断 component 是否是 _$id,如果是,从 pageVm 中递归查找该组件实例 - var $el = component && component.$el || pageVm.$el; + var $el = Object(_util__WEBPACK_IMPORTED_MODULE_2__[/* findElm */ "a"])(component, pageVm); if (single) { var node = $el && ($el.matches(selector) ? $el : $el.querySelector(selector)); @@ -12653,15 +12701,15 @@ function requestComponentInfo(_ref, pageId) { reqs = _ref.reqs; var pages = getCurrentPages(); // 跨平台时,View 层也应该实现该方法,举例 App 上,View 层的 getCurrentPages 返回长度为1的当前页面数组 - var pageVm = pages.find(function (page) { + var page = pages.find(function (page) { return page.$page.id === pageId; }); - if (!pageVm) { - // TODO 是否需要 defer + if (!page) { throw new Error("Not Found\uFF1APage[".concat(pageId, "]")); } + var pageVm = page.$vm; var result = []; reqs.forEach(function (_ref2) { var component = _ref2.component, @@ -12683,14 +12731,14 @@ function requestComponentInfo(_ref, pageId) { /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(4))) /***/ }), -/* 57 */ +/* 58 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(UniViewJSBridge) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return initSubscribe; }); /* harmony import */ var uni_shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2); /* harmony import */ var uni_core_view_bridge_subscribe_scroll__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12); -/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41); +/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(42); /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3); @@ -12732,14 +12780,14 @@ function initSubscribe(subscribe) { /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(4))) /***/ }), -/* 58 */ +/* 59 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(UniViewJSBridge) {/* harmony import */ var uni_helpers_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7); /* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); -/* harmony import */ var _behaviors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(62); -/* harmony import */ var _wxs_component_descriptor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(59); +/* harmony import */ var _behaviors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(63); +/* harmony import */ var _wxs_component_descriptor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(60); @@ -12832,7 +12880,7 @@ function pageMounted() { /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(4))) /***/ }), -/* 59 */ +/* 60 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -13047,10 +13095,10 @@ function createComponentDescriptor(vm) { return vm.$el.__wxsComponentDescriptor; } } -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(48))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(49))) /***/ }), -/* 60 */ +/* 61 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -13155,13 +13203,13 @@ function () { /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(4))) /***/ }), -/* 61 */ +/* 62 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // EXTERNAL MODULE: ./src/core/helpers/tags.js -var tags = __webpack_require__(50); +var tags = __webpack_require__(51); var tags_default = /*#__PURE__*/__webpack_require__.n(tags); // CONCATENATED MODULE: ./src/core/vue.js @@ -13188,7 +13236,7 @@ function initVue(Vue) { }; } // EXTERNAL MODULE: ./src/core/view/plugins/index.js -var plugins = __webpack_require__(58); +var plugins = __webpack_require__(59); // EXTERNAL MODULE: ./src/platforms/app-plus/view/framework/plugins/data.js var data = __webpack_require__(13); @@ -13252,7 +13300,7 @@ function initEvent(Vue) { }); /***/ }), -/* 62 */ +/* 63 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -13371,7 +13419,7 @@ function initBehaviors(options, vm) { } /***/ }), -/* 63 */ +/* 64 */ /***/ (function(module, exports) { // document.currentScript polyfill by Adam Miller @@ -13413,7 +13461,7 @@ function initBehaviors(options, vm) { /***/ }), -/* 64 */ +/* 65 */ /***/ (function(module, exports) { /** @@ -14160,7 +14208,7 @@ window.IntersectionObserverEntry = IntersectionObserverEntry; /***/ }), -/* 65 */ +/* 66 */ /***/ (function(module, exports, __webpack_require__) { // extracted by mini-css-extract-plugin @@ -14168,37 +14216,37 @@ window.IntersectionObserverEntry = IntersectionObserverEntry; /***/ }), -/* 66 */ +/* 67 */ /***/ (function(module, exports, __webpack_require__) { var map = { - "./button/index.vue": 114, - "./canvas/index.vue": 112, - "./checkbox-group/index.vue": 99, - "./checkbox/index.vue": 101, - "./form/index.vue": 102, - "./icon/index.vue": 94, - "./image/index.vue": 97, - "./input/index.vue": 105, - "./label/index.vue": 111, - "./movable-area/index.vue": 113, - "./movable-view/index.vue": 93, + "./button/index.vue": 116, + "./canvas/index.vue": 113, + "./checkbox-group/index.vue": 101, + "./checkbox/index.vue": 103, + "./form/index.vue": 95, + "./icon/index.vue": 96, + "./image/index.vue": 106, + "./input/index.vue": 107, + "./label/index.vue": 112, + "./movable-area/index.vue": 115, + "./movable-view/index.vue": 94, "./navigator/index.vue": 109, - "./picker-view-column/index.vue": 116, - "./picker-view/index.vue": 118, - "./progress/index.vue": 104, - "./radio-group/index.vue": 96, - "./radio/index.vue": 110, - "./resize-sensor/index.vue": 117, - "./rich-text/index.vue": 92, - "./scroll-view/index.vue": 107, - "./slider/index.vue": 108, - "./swiper-item/index.vue": 106, - "./swiper/index.vue": 115, - "./switch/index.vue": 95, - "./text/index.vue": 119, - "./textarea/index.vue": 100, - "./view/index.vue": 98 + "./picker-view-column/index.vue": 117, + "./picker-view/index.vue": 120, + "./progress/index.vue": 98, + "./radio-group/index.vue": 97, + "./radio/index.vue": 100, + "./resize-sensor/index.vue": 119, + "./rich-text/index.vue": 93, + "./scroll-view/index.vue": 111, + "./slider/index.vue": 110, + "./swiper-item/index.vue": 108, + "./swiper/index.vue": 114, + "./switch/index.vue": 105, + "./text/index.vue": 118, + "./textarea/index.vue": 102, + "./view/index.vue": 99 }; @@ -14220,10 +14268,10 @@ webpackContext.keys = function webpackContextKeys() { }; webpackContext.resolve = webpackContextResolve; module.exports = webpackContext; -webpackContext.id = 66; +webpackContext.id = 67; /***/ }), -/* 67 */ +/* 68 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14233,7 +14281,7 @@ webpackContext.id = 66; /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), -/* 68 */ +/* 69 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14243,7 +14291,7 @@ webpackContext.id = 66; /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), -/* 69 */ +/* 70 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14253,7 +14301,7 @@ webpackContext.id = 66; /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), -/* 70 */ +/* 71 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14263,7 +14311,7 @@ webpackContext.id = 66; /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), -/* 71 */ +/* 72 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14273,7 +14321,7 @@ webpackContext.id = 66; /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), -/* 72 */ +/* 73 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14283,7 +14331,7 @@ webpackContext.id = 66; /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), -/* 73 */ +/* 74 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14293,7 +14341,7 @@ webpackContext.id = 66; /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), -/* 74 */ +/* 75 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14303,7 +14351,7 @@ webpackContext.id = 66; /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), -/* 75 */ +/* 76 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14313,7 +14361,7 @@ webpackContext.id = 66; /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), -/* 76 */ +/* 77 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14323,7 +14371,7 @@ webpackContext.id = 66; /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), -/* 77 */ +/* 78 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14333,7 +14381,7 @@ webpackContext.id = 66; /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), -/* 78 */ +/* 79 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14343,7 +14391,7 @@ webpackContext.id = 66; /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), -/* 79 */ +/* 80 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14353,7 +14401,7 @@ webpackContext.id = 66; /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), -/* 80 */ +/* 81 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14363,7 +14411,7 @@ webpackContext.id = 66; /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), -/* 81 */ +/* 82 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14373,7 +14421,7 @@ webpackContext.id = 66; /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), -/* 82 */ +/* 83 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14383,7 +14431,7 @@ webpackContext.id = 66; /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), -/* 83 */ +/* 84 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14393,7 +14441,7 @@ webpackContext.id = 66; /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), -/* 84 */ +/* 85 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14403,7 +14451,7 @@ webpackContext.id = 66; /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), -/* 85 */ +/* 86 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14413,7 +14461,7 @@ webpackContext.id = 66; /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), -/* 86 */ +/* 87 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14423,7 +14471,7 @@ webpackContext.id = 66; /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), -/* 87 */ +/* 88 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14433,7 +14481,7 @@ webpackContext.id = 66; /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), -/* 88 */ +/* 89 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14443,7 +14491,7 @@ webpackContext.id = 66; /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), -/* 89 */ +/* 90 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14453,7 +14501,7 @@ webpackContext.id = 66; /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), -/* 90 */ +/* 91 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14463,7 +14511,7 @@ webpackContext.id = 66; /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), -/* 91 */ +/* 92 */ /***/ (function(module, exports) { function webpackEmptyContext(req) { @@ -14474,10 +14522,10 @@ function webpackEmptyContext(req) { webpackEmptyContext.keys = function() { return []; }; webpackEmptyContext.resolve = webpackEmptyContext; module.exports = webpackEmptyContext; -webpackEmptyContext.id = 91; +webpackEmptyContext.id = 92; /***/ }), -/* 92 */ +/* 93 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -15068,7 +15116,7 @@ component.options.__file = "src/core/view/components/rich-text/index.vue" /* harmony default export */ var rich_text = __webpack_exports__["default"] = (component.exports); /***/ }), -/* 93 */ +/* 94 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -16214,7 +16262,7 @@ function g(e, t, n) { // CONCATENATED MODULE: ./src/core/view/components/movable-view/index.vue?vue&type=script&lang=js& /* harmony default export */ var components_movable_viewvue_type_script_lang_js_ = (movable_viewvue_type_script_lang_js_); // EXTERNAL MODULE: ./src/core/view/components/movable-view/index.vue?vue&type=style&index=0&lang=css& -var movable_viewvue_type_style_index_0_lang_css_ = __webpack_require__(75); +var movable_viewvue_type_style_index_0_lang_css_ = __webpack_require__(76); // EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(0); @@ -16245,7 +16293,111 @@ component.options.__file = "src/core/view/components/movable-view/index.vue" /* harmony default export */ var movable_view = __webpack_exports__["default"] = (component.exports); /***/ }), -/* 94 */ +/* 95 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26557f38-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/form/index.vue?vue&type=template&id=7735a91d& +var render = function() { + var _vm = this + var _h = _vm.$createElement + var _c = _vm._self._c || _h + return _c("uni-form", _vm._g({}, _vm.$listeners), [ + _c("span", [_vm._t("default")], 2) + ]) +} +var staticRenderFns = [] +render._withStripped = true + + +// CONCATENATED MODULE: ./src/core/view/components/form/index.vue?vue&type=template&id=7735a91d& + +// EXTERNAL MODULE: ./src/core/view/mixins/index.js + 1 modules +var mixins = __webpack_require__(1); + +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/form/index.vue?vue&type=script&lang=js& +// +// +// +// +// +// +// + +/* harmony default export */ var formvue_type_script_lang_js_ = ({ + name: 'Form', + mixins: [mixins["c" /* listeners */]], + data: function data() { + return { + childrenList: [] + }; + }, + listeners: { + '@form-submit': '_onSubmit', + '@form-reset': '_onReset', + '@form-group-update': '_formGroupUpdateHandler' + }, + methods: { + _onSubmit: function _onSubmit($event) { + var data = {}; + this.childrenList.forEach(function (vm) { + if (vm._getFormData && vm._getFormData().key) { + data[vm._getFormData().key] = vm._getFormData().value; + } + }); + this.$trigger('submit', $event, { + value: data + }); + }, + _onReset: function _onReset($event) { + this.$trigger('reset', $event, {}); + this.childrenList.forEach(function (vm) { + vm._resetFormData && vm._resetFormData(); + }); + }, + _formGroupUpdateHandler: function _formGroupUpdateHandler($event) { + if ($event.type === 'add') { + this.childrenList.push($event.vm); + } else { + var index = this.childrenList.indexOf($event.vm); + this.childrenList.splice(index, 1); + } + } + } +}); +// CONCATENATED MODULE: ./src/core/view/components/form/index.vue?vue&type=script&lang=js& + /* harmony default export */ var components_formvue_type_script_lang_js_ = (formvue_type_script_lang_js_); +// EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js +var componentNormalizer = __webpack_require__(0); + +// CONCATENATED MODULE: ./src/core/view/components/form/index.vue + + + + + +/* normalize component */ + +var component = Object(componentNormalizer["a" /* default */])( + components_formvue_type_script_lang_js_, + render, + staticRenderFns, + false, + null, + null, + null + +) + +/* hot reload */ +if (false) { var api; } +component.options.__file = "src/core/view/components/form/index.vue" +/* harmony default export */ var components_form = __webpack_exports__["default"] = (component.exports); + +/***/ }), +/* 96 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -16315,7 +16467,7 @@ render._withStripped = true // CONCATENATED MODULE: ./src/core/view/components/icon/index.vue?vue&type=script&lang=js& /* harmony default export */ var components_iconvue_type_script_lang_js_ = (iconvue_type_script_lang_js_); // EXTERNAL MODULE: ./src/core/view/components/icon/index.vue?vue&type=style&index=0&lang=css& -var iconvue_type_style_index_0_lang_css_ = __webpack_require__(71); +var iconvue_type_style_index_0_lang_css_ = __webpack_require__(72); // EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(0); @@ -16346,206 +16498,13 @@ component.options.__file = "src/core/view/components/icon/index.vue" /* harmony default export */ var icon = __webpack_exports__["default"] = (component.exports); /***/ }), -/* 95 */ +/* 97 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26557f38-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/switch/index.vue?vue&type=template&id=04951fe6& -var render = function() { - var _vm = this - var _h = _vm.$createElement - var _c = _vm._self._c || _h - return _c( - "uni-switch", - _vm._g({ on: { click: _vm._onClick } }, _vm.$listeners), - [ - _c("div", { staticClass: "uni-switch-wrapper" }, [ - _c("div", { - directives: [ - { - name: "show", - rawName: "v-show", - value: _vm.type === "switch", - expression: "type === 'switch'" - } - ], - staticClass: "uni-switch-input", - class: [_vm.switchChecked ? "uni-switch-input-checked" : ""], - style: { - backgroundColor: _vm.switchChecked ? _vm.color : "#DFDFDF", - borderColor: _vm.switchChecked ? _vm.color : "#DFDFDF" - } - }), - _c("div", { - directives: [ - { - name: "show", - rawName: "v-show", - value: _vm.type === "checkbox", - expression: "type === 'checkbox'" - } - ], - staticClass: "uni-checkbox-input", - class: [_vm.switchChecked ? "uni-checkbox-input-checked" : ""], - style: { color: _vm.color } - }) - ]) - ] - ) -} -var staticRenderFns = [] -render._withStripped = true - - -// CONCATENATED MODULE: ./src/core/view/components/switch/index.vue?vue&type=template&id=04951fe6& - -// EXTERNAL MODULE: ./src/core/view/mixins/index.js + 1 modules -var mixins = __webpack_require__(1); - -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/switch/index.vue?vue&type=script&lang=js& -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// - -/* harmony default export */ var switchvue_type_script_lang_js_ = ({ - name: 'Switch', - mixins: [mixins["a" /* emitter */], mixins["c" /* listeners */]], - props: { - name: { - type: String, - default: '' - }, - checked: { - type: [Boolean, String], - default: false - }, - type: { - type: String, - default: 'switch' - }, - id: { - type: String, - default: '' - }, - disabled: { - type: [Boolean, String], - default: false - }, - color: { - type: String, - default: '#007aff' - } - }, - data: function data() { - return { - switchChecked: this.checked - }; - }, - watch: { - checked: function checked(val) { - this.switchChecked = val; - } - }, - created: function created() { - this.$dispatch('Form', 'uni-form-group-update', { - type: 'add', - vm: this - }); - }, - beforeDestroy: function beforeDestroy() { - this.$dispatch('Form', 'uni-form-group-update', { - type: 'remove', - vm: this - }); - }, - listeners: { - 'label-click': '_onClick', - '@label-click': '_onClick' - }, - methods: { - _onClick: function _onClick($event) { - if (this.disabled) { - return; - } - - this.switchChecked = !this.switchChecked; - this.$trigger('change', $event, { - value: this.switchChecked - }); - }, - _resetFormData: function _resetFormData() { - this.switchChecked = false; - }, - _getFormData: function _getFormData() { - var data = {}; - - if (this.name !== '') { - data['value'] = this.switchChecked; - data['key'] = this.name; - } - - return data; - } - } -}); -// CONCATENATED MODULE: ./src/core/view/components/switch/index.vue?vue&type=script&lang=js& - /* harmony default export */ var components_switchvue_type_script_lang_js_ = (switchvue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/core/view/components/switch/index.vue?vue&type=style&index=0&lang=css& -var switchvue_type_style_index_0_lang_css_ = __webpack_require__(87); - -// EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js -var componentNormalizer = __webpack_require__(0); - -// CONCATENATED MODULE: ./src/core/view/components/switch/index.vue - - - - - - -/* normalize component */ - -var component = Object(componentNormalizer["a" /* default */])( - components_switchvue_type_script_lang_js_, - render, - staticRenderFns, - false, - null, - null, - null - -) - -/* hot reload */ -if (false) { var api; } -component.options.__file = "src/core/view/components/switch/index.vue" -/* harmony default export */ var components_switch = __webpack_exports__["default"] = (component.exports); - -/***/ }), -/* 96 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26557f38-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/radio-group/index.vue?vue&type=template&id=17be8d0a& +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26557f38-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/radio-group/index.vue?vue&type=template&id=17be8d0a& var render = function() { var _vm = this var _h = _vm.$createElement @@ -16669,7 +16628,7 @@ var mixins = __webpack_require__(1); // CONCATENATED MODULE: ./src/core/view/components/radio-group/index.vue?vue&type=script&lang=js& /* harmony default export */ var components_radio_groupvue_type_script_lang_js_ = (radio_groupvue_type_script_lang_js_); // EXTERNAL MODULE: ./src/core/view/components/radio-group/index.vue?vue&type=style&index=0&lang=css& -var radio_groupvue_type_style_index_0_lang_css_ = __webpack_require__(80); +var radio_groupvue_type_style_index_0_lang_css_ = __webpack_require__(81); // EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(0); @@ -16700,42 +16659,45 @@ component.options.__file = "src/core/view/components/radio-group/index.vue" /* harmony default export */ var radio_group = __webpack_exports__["default"] = (component.exports); /***/ }), -/* 97 */ +/* 98 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26557f38-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/image/index.vue?vue&type=template&id=c7af6f90& +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26557f38-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/progress/index.vue?vue&type=template&id=34f62046& var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( - "uni-image", - _vm._g({}, _vm.$listeners), + "uni-progress", + _vm._g({ staticClass: "uni-progress" }, _vm.$listeners), [ - _c("div", { ref: "content", style: _vm.modeStyle }), - _c("img", { attrs: { src: _vm.realImagePath } }), - _vm.mode === "widthFix" - ? _c("v-uni-resize-sensor", { - ref: "sensor", - on: { resize: _vm._resize } - }) + _c("div", { staticClass: "uni-progress-bar", style: _vm.outerBarStyle }, [ + _c("div", { + staticClass: "uni-progress-inner-bar", + style: _vm.innerBarStyle + }) + ]), + _vm.showInfo + ? [ + _c("p", { staticClass: "uni-progress-info" }, [ + _vm._v(_vm._s(_vm.currentPercent) + "%") + ]) + ] : _vm._e() ], - 1 + 2 ) } var staticRenderFns = [] render._withStripped = true -// CONCATENATED MODULE: ./src/core/view/components/image/index.vue?vue&type=template&id=c7af6f90& - -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/image/index.vue?vue&type=script&lang=js& -function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } +// CONCATENATED MODULE: ./src/core/view/components/progress/index.vue?vue&type=template&id=34f62046& +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/progress/index.vue?vue&type=script&lang=js& // // // @@ -16748,189 +16710,128 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterat // // // -/* harmony default export */ var imagevue_type_script_lang_js_ = ({ - name: 'Image', +// +// +// +// +var VALUES = { + activeColor: '#007AFF', + backgroundColor: '#EBEBEB', + activeMode: 'backwards' +}; +/* harmony default export */ var progressvue_type_script_lang_js_ = ({ + name: 'Progress', props: { - src: { - type: String, - default: '' - }, - mode: { - type: String, - default: 'scaleToFill' + percent: { + type: [Number, String], + default: 0, + validator: function validator(value) { + return !isNaN(parseFloat(value, 10)); + } }, - // TODO 懒加载 - lazyLoad: { + showInfo: { type: [Boolean, String], default: false - } - }, - data: function data() { - return { - originalWidth: 0, - originalHeight: 0, - availHeight: '', - sizeFixed: false - }; - }, - computed: { - ratio: function ratio() { - return this.originalWidth && this.originalHeight ? this.originalWidth / this.originalHeight : 0; }, - realImagePath: function realImagePath() { - return this.src && this.$getRealPath(this.src); + strokeWidth: { + type: [Number, String], + default: 6, + validator: function validator(value) { + return !isNaN(parseFloat(value, 10)); + } }, - modeStyle: function modeStyle() { - var size = 'auto'; - var position = ''; - var repeat = 'no-repeat'; - - switch (this.mode) { - case 'aspectFit': - size = 'contain'; - position = 'center center'; - break; - - case 'aspectFill': - size = 'cover'; - position = 'center center'; - break; - - case 'widthFix': - size = '100% 100%'; - break; - - case 'top': - position = 'center top'; - break; - - case 'bottom': - position = 'center bottom'; - break; - - case 'center': - position = 'center center'; - break; - - case 'left': - position = 'left center'; - break; - - case 'right': - position = 'right center'; - break; - - case 'top left': - position = 'left top'; - break; - - case 'top right': - position = 'right top'; - break; - - case 'bottom left': - position = 'left bottom'; - break; - - case 'bottom right': - position = 'right bottom'; - break; + color: { + type: String, + default: VALUES.activeColor + }, + activeColor: { + type: String, + default: VALUES.activeColor + }, + backgroundColor: { + type: String, + default: VALUES.backgroundColor + }, + active: { + type: [Boolean, String], + default: false + }, + activeMode: { + type: String, + default: VALUES.activeMode + } + }, + data: function data() { + return { + currentPercent: 0, + strokeTimer: 0, + lastPercent: 0 + }; + }, + computed: { + outerBarStyle: function outerBarStyle() { + return "background-color: ".concat(this.backgroundColor, "; height: ").concat(this.strokeWidth, "px;"); + }, + innerBarStyle: function innerBarStyle() { + // 兼容下不推荐的属性,activeColor 优先级高于 color。 + var backgroundColor = ''; - default: - size = '100% 100%'; - position = '0% 0%'; - break; + if (this.color !== VALUES.activeColor && this.activeColor === VALUES.activeColor) { + backgroundColor = this.color; + } else { + backgroundColor = this.activeColor; } - return "background-position:".concat(position, ";background-size:").concat(size, ";background-repeat:").concat(repeat, ";"); + return "width: ".concat(this.currentPercent, "%;background-color: ").concat(backgroundColor); + }, + realPercent: function realPercent() { + // 确保最终计算时使用的是 Number 类型的值,并且在有效范围内。 + var realValue = parseFloat(this.percent, 10); + realValue < 0 && (realValue = 0); + realValue > 100 && (realValue = 100); + return realValue; } }, watch: { - src: function src(newValue, oldValue) { - this._loadImage(); - }, - mode: function mode(newValue, oldValue) { - if (oldValue === 'widthFix') { - this.$el.style.height = this.availHeight; - this.sizeFixed = false; - } + realPercent: function realPercent(newValue, oldValue) { + this.strokeTimer && clearInterval(this.strokeTimer); + this.lastPercent = oldValue || 0; - if (newValue === 'widthFix' && this.ratio) { - this._fixSize(); - } + this._activeAnimation(); } }, - mounted: function mounted() { - this.availHeight = this.$el.style.height || ''; - - this._loadImage(); + created: function created() { + this._activeAnimation(); }, methods: { - _resize: function _resize() { - if (this.mode === 'widthFix' && !this.sizeFixed) { - this._fixSize(); - } - }, - _fixSize: function _fixSize() { - var elWidth = this._getWidth(); - - if (elWidth) { - var height = elWidth / this.ratio; // fix: 解决 Chrome 浏览器上某些情况下导致 1px 缝隙的问题 - - if ((typeof navigator === "undefined" ? "undefined" : _typeof(navigator)) && navigator.vendor === 'Google Inc.' && height > 10) { - height = Math.round(height / 2) * 2; - } + _activeAnimation: function _activeAnimation() { + var _this = this; - this.$el.style.height = height + 'px'; - this.sizeFixed = true; + if (this.active) { + this.currentPercent = this.activeMode === VALUES.activeMode ? 0 : this.lastPercent; + this.strokeTimer = setInterval(function () { + if (_this.currentPercent + 1 > _this.realPercent) { + _this.currentPercent = _this.realPercent; + _this.strokeTimer && clearInterval(_this.strokeTimer); + } else { + _this.currentPercent += 1; + } + }, 30); + } else { + this.currentPercent = this.realPercent; } - }, - _loadImage: function _loadImage() { - this.$refs.content.style.backgroundImage = this.src ? "url(".concat(this.realImagePath, ")") : 'none'; - - var _self = this; - - var img = new Image(); - - img.onload = function ($event) { - _self.originalWidth = this.width; - _self.originalHeight = this.height; - - if (_self.mode === 'widthFix') { - _self._fixSize(); - } - - _self.$trigger('load', $event, { - width: this.width, - height: this.height - }); - }; - - img.onerror = function ($event) { - _self.$trigger('error', $event, { - errMsg: "GET ".concat(_self.src, " 404 (Not Found)") - }); - }; - - img.src = this.realImagePath; - }, - _getWidth: function _getWidth() { - var computedStyle = window.getComputedStyle(this.$el); - var borderWidth = (parseFloat(computedStyle.borderLeftWidth, 10) || 0) + (parseFloat(computedStyle.borderRightWidth, 10) || 0); - var paddingWidth = (parseFloat(computedStyle.paddingLeft, 10) || 0) + (parseFloat(computedStyle.paddingRight, 10) || 0); - return this.$el.offsetWidth - borderWidth - paddingWidth; } } }); -// CONCATENATED MODULE: ./src/core/view/components/image/index.vue?vue&type=script&lang=js& - /* harmony default export */ var components_imagevue_type_script_lang_js_ = (imagevue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/core/view/components/image/index.vue?vue&type=style&index=0&lang=css& -var imagevue_type_style_index_0_lang_css_ = __webpack_require__(72); +// CONCATENATED MODULE: ./src/core/view/components/progress/index.vue?vue&type=script&lang=js& + /* harmony default export */ var components_progressvue_type_script_lang_js_ = (progressvue_type_script_lang_js_); +// EXTERNAL MODULE: ./src/core/view/components/progress/index.vue?vue&type=style&index=0&lang=css& +var progressvue_type_style_index_0_lang_css_ = __webpack_require__(80); // EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(0); -// CONCATENATED MODULE: ./src/core/view/components/image/index.vue +// CONCATENATED MODULE: ./src/core/view/components/progress/index.vue @@ -16940,7 +16841,7 @@ var componentNormalizer = __webpack_require__(0); /* normalize component */ var component = Object(componentNormalizer["a" /* default */])( - components_imagevue_type_script_lang_js_, + components_progressvue_type_script_lang_js_, render, staticRenderFns, false, @@ -16952,11 +16853,11 @@ var component = Object(componentNormalizer["a" /* default */])( /* hot reload */ if (false) { var api; } -component.options.__file = "src/core/view/components/image/index.vue" -/* harmony default export */ var components_image = __webpack_exports__["default"] = (component.exports); +component.options.__file = "src/core/view/components/progress/index.vue" +/* harmony default export */ var progress = __webpack_exports__["default"] = (component.exports); /***/ }), -/* 98 */ +/* 99 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -17034,7 +16935,7 @@ var hover = __webpack_require__(14); // CONCATENATED MODULE: ./src/core/view/components/view/index.vue?vue&type=script&lang=js& /* harmony default export */ var components_viewvue_type_script_lang_js_ = (viewvue_type_script_lang_js_); // EXTERNAL MODULE: ./src/core/view/components/view/index.vue?vue&type=style&index=0&lang=css& -var viewvue_type_style_index_0_lang_css_ = __webpack_require__(90); +var viewvue_type_style_index_0_lang_css_ = __webpack_require__(91); // EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(0); @@ -17065,34 +16966,54 @@ component.options.__file = "src/core/view/components/view/index.vue" /* harmony default export */ var view = __webpack_exports__["default"] = (component.exports); /***/ }), -/* 99 */ +/* 100 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26557f38-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/checkbox-group/index.vue?vue&type=template&id=37cde58e& +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26557f38-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/radio/index.vue?vue&type=template&id=4b562a50& var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( - "uni-checkbox-group", - _vm._g({}, _vm.$listeners), - [_vm._t("default")], - 2 + "uni-radio", + _vm._g({ on: { click: _vm._onClick } }, _vm.$listeners), + [ + _c( + "div", + { staticClass: "uni-radio-wrapper" }, + [ + _c("div", { + staticClass: "uni-radio-input", + class: _vm.radioChecked ? "uni-radio-input-checked" : "", + style: _vm.radioChecked ? _vm.checkedStyle : "" + }), + _vm._t("default") + ], + 2 + ) + ] ) } var staticRenderFns = [] render._withStripped = true -// CONCATENATED MODULE: ./src/core/view/components/checkbox-group/index.vue?vue&type=template&id=37cde58e& +// CONCATENATED MODULE: ./src/core/view/components/radio/index.vue?vue&type=template&id=4b562a50& // EXTERNAL MODULE: ./src/core/view/mixins/index.js + 1 modules var mixins = __webpack_require__(1); -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/checkbox-group/index.vue?vue&type=script&lang=js& +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/radio/index.vue?vue&type=script&lang=js& +// +// +// +// +// +// +// // // // @@ -17100,11 +17021,162 @@ var mixins = __webpack_require__(1); // // -/* harmony default export */ var checkbox_groupvue_type_script_lang_js_ = ({ - name: 'CheckboxGroup', +/* harmony default export */ var radiovue_type_script_lang_js_ = ({ + name: 'Radio', mixins: [mixins["a" /* emitter */], mixins["c" /* listeners */]], props: { - name: { + checked: { + type: [Boolean, String], + default: false + }, + id: { + type: String, + default: '' + }, + disabled: { + type: [Boolean, String], + default: false + }, + color: { + type: String, + default: '#007AFF' + }, + value: { + type: String, + default: '' + } + }, + data: function data() { + return { + radioChecked: this.checked, + radioValue: this.value + }; + }, + computed: { + checkedStyle: function checkedStyle() { + return "background-color: ".concat(this.color, ";border-color: ").concat(this.color, ";"); + } + }, + watch: { + checked: function checked(val) { + this.radioChecked = val; + }, + value: function value(val) { + this.radioValue = val; + } + }, + listeners: { + 'label-click': '_onClick', + '@label-click': '_onClick' + }, + created: function created() { + this.$dispatch('RadioGroup', 'uni-radio-group-update', { + type: 'add', + vm: this + }); + this.$dispatch('Form', 'uni-form-group-update', { + type: 'add', + vm: this + }); + }, + beforeDestroy: function beforeDestroy() { + 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 _onClick($event) { + if (this.disabled || this.radioChecked) { + return; + } + + this.radioChecked = true; + this.$dispatch('RadioGroup', 'uni-radio-change', $event, this); + }, + _resetFormData: function _resetFormData() { + this.radioChecked = this.min; + } + } +}); +// CONCATENATED MODULE: ./src/core/view/components/radio/index.vue?vue&type=script&lang=js& + /* harmony default export */ var components_radiovue_type_script_lang_js_ = (radiovue_type_script_lang_js_); +// EXTERNAL MODULE: ./src/core/view/components/radio/index.vue?vue&type=style&index=0&lang=css& +var radiovue_type_style_index_0_lang_css_ = __webpack_require__(82); + +// EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js +var componentNormalizer = __webpack_require__(0); + +// CONCATENATED MODULE: ./src/core/view/components/radio/index.vue + + + + + + +/* normalize component */ + +var component = Object(componentNormalizer["a" /* default */])( + components_radiovue_type_script_lang_js_, + render, + staticRenderFns, + false, + null, + null, + null + +) + +/* hot reload */ +if (false) { var api; } +component.options.__file = "src/core/view/components/radio/index.vue" +/* harmony default export */ var components_radio = __webpack_exports__["default"] = (component.exports); + +/***/ }), +/* 101 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26557f38-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/checkbox-group/index.vue?vue&type=template&id=37cde58e& +var render = function() { + var _vm = this + var _h = _vm.$createElement + var _c = _vm._self._c || _h + return _c( + "uni-checkbox-group", + _vm._g({}, _vm.$listeners), + [_vm._t("default")], + 2 + ) +} +var staticRenderFns = [] +render._withStripped = true + + +// CONCATENATED MODULE: ./src/core/view/components/checkbox-group/index.vue?vue&type=template&id=37cde58e& + +// EXTERNAL MODULE: ./src/core/view/mixins/index.js + 1 modules +var mixins = __webpack_require__(1); + +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/checkbox-group/index.vue?vue&type=script&lang=js& +// +// +// +// +// +// + +/* harmony default export */ var checkbox_groupvue_type_script_lang_js_ = ({ + name: 'CheckboxGroup', + mixins: [mixins["a" /* emitter */], mixins["c" /* listeners */]], + props: { + name: { type: String, default: '' } @@ -17171,7 +17243,7 @@ var mixins = __webpack_require__(1); // CONCATENATED MODULE: ./src/core/view/components/checkbox-group/index.vue?vue&type=script&lang=js& /* harmony default export */ var components_checkbox_groupvue_type_script_lang_js_ = (checkbox_groupvue_type_script_lang_js_); // EXTERNAL MODULE: ./src/core/view/components/checkbox-group/index.vue?vue&type=style&index=0&lang=css& -var checkbox_groupvue_type_style_index_0_lang_css_ = __webpack_require__(69); +var checkbox_groupvue_type_style_index_0_lang_css_ = __webpack_require__(70); // EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(0); @@ -17202,7 +17274,7 @@ component.options.__file = "src/core/view/components/checkbox-group/index.vue" /* harmony default export */ var checkbox_group = __webpack_exports__["default"] = (component.exports); /***/ }), -/* 100 */ +/* 102 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -17621,7 +17693,7 @@ var mixins = __webpack_require__(1); // CONCATENATED MODULE: ./src/core/view/components/textarea/index.vue?vue&type=script&lang=js& /* harmony default export */ var components_textareavue_type_script_lang_js_ = (textareavue_type_script_lang_js_); // EXTERNAL MODULE: ./src/core/view/components/textarea/index.vue?vue&type=style&index=0&lang=css& -var textareavue_type_style_index_0_lang_css_ = __webpack_require__(89); +var textareavue_type_style_index_0_lang_css_ = __webpack_require__(90); // EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(0); @@ -17652,7 +17724,7 @@ component.options.__file = "src/core/view/components/textarea/index.vue" /* harmony default export */ var components_textarea = __webpack_exports__["default"] = (component.exports); /***/ }), -/* 101 */ +/* 103 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -17787,7 +17859,7 @@ var mixins = __webpack_require__(1); // CONCATENATED MODULE: ./src/core/view/components/checkbox/index.vue?vue&type=script&lang=js& /* harmony default export */ var components_checkboxvue_type_script_lang_js_ = (checkboxvue_type_script_lang_js_); // EXTERNAL MODULE: ./src/core/view/components/checkbox/index.vue?vue&type=style&index=0&lang=css& -var checkboxvue_type_style_index_0_lang_css_ = __webpack_require__(70); +var checkboxvue_type_style_index_0_lang_css_ = __webpack_require__(71); // EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(0); @@ -17818,151 +17890,47 @@ component.options.__file = "src/core/view/components/checkbox/index.vue" /* harmony default export */ var components_checkbox = __webpack_exports__["default"] = (component.exports); /***/ }), -/* 102 */ +/* 104 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26557f38-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/form/index.vue?vue&type=template&id=7735a91d& -var render = function() { - var _vm = this - var _h = _vm.$createElement - var _c = _vm._self._c || _h - return _c("uni-form", _vm._g({}, _vm.$listeners), [ - _c("span", [_vm._t("default")], 2) - ]) -} -var staticRenderFns = [] -render._withStripped = true - +// EXTERNAL MODULE: ./packages/uni-app-plus/dist/view.runtime.esm.js +var view_runtime_esm = __webpack_require__(5); -// CONCATENATED MODULE: ./src/core/view/components/form/index.vue?vue&type=template&id=7735a91d& +// CONCATENATED MODULE: ./src/core/helpers/get-real-route.js +function getRealRoute(fromRoute, toRoute) { + if (!toRoute) { + toRoute = fromRoute; -// EXTERNAL MODULE: ./src/core/view/mixins/index.js + 1 modules -var mixins = __webpack_require__(1); + if (toRoute.indexOf('/') === 0) { + return toRoute; + } -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/form/index.vue?vue&type=script&lang=js& -// -// -// -// -// -// -// + var pages = getCurrentPages(); -/* harmony default export */ var formvue_type_script_lang_js_ = ({ - name: 'Form', - mixins: [mixins["c" /* listeners */]], - data: function data() { - return { - childrenList: [] - }; - }, - listeners: { - '@form-submit': '_onSubmit', - '@form-reset': '_onReset', - '@form-group-update': '_formGroupUpdateHandler' - }, - methods: { - _onSubmit: function _onSubmit($event) { - var data = {}; - this.childrenList.forEach(function (vm) { - if (vm._getFormData && vm._getFormData().key) { - data[vm._getFormData().key] = vm._getFormData().value; - } - }); - this.$trigger('submit', $event, { - value: data - }); - }, - _onReset: function _onReset($event) { - this.$trigger('reset', $event, {}); - this.childrenList.forEach(function (vm) { - vm._resetFormData && vm._resetFormData(); - }); - }, - _formGroupUpdateHandler: function _formGroupUpdateHandler($event) { - if ($event.type === 'add') { - this.childrenList.push($event.vm); - } else { - var index = this.childrenList.indexOf($event.vm); - this.childrenList.splice(index, 1); - } + if (pages.length) { + fromRoute = pages[pages.length - 1].$page.route; + } else { + fromRoute = ''; + } + } else { + if (toRoute.indexOf('/') === 0) { + return toRoute; } } -}); -// CONCATENATED MODULE: ./src/core/view/components/form/index.vue?vue&type=script&lang=js& - /* harmony default export */ var components_formvue_type_script_lang_js_ = (formvue_type_script_lang_js_); -// EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js -var componentNormalizer = __webpack_require__(0); - -// CONCATENATED MODULE: ./src/core/view/components/form/index.vue - - + if (toRoute.indexOf('./') === 0) { + return getRealRoute(fromRoute, toRoute.substr(2)); + } + var toRouteArray = toRoute.split('/'); + var toRouteLength = toRouteArray.length; + var i = 0; -/* normalize component */ - -var component = Object(componentNormalizer["a" /* default */])( - components_formvue_type_script_lang_js_, - render, - staticRenderFns, - false, - null, - null, - null - -) - -/* hot reload */ -if (false) { var api; } -component.options.__file = "src/core/view/components/form/index.vue" -/* harmony default export */ var components_form = __webpack_exports__["default"] = (component.exports); - -/***/ }), -/* 103 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: ./packages/uni-app-plus/dist/view.runtime.esm.js -var view_runtime_esm = __webpack_require__(5); - -// CONCATENATED MODULE: ./src/core/helpers/get-real-route.js -function getRealRoute(fromRoute, toRoute) { - if (!toRoute) { - toRoute = fromRoute; - - if (toRoute.indexOf('/') === 0) { - return toRoute; - } - - var pages = getCurrentPages(); - - if (pages.length) { - fromRoute = pages[pages.length - 1].$page.route; - } else { - fromRoute = ''; - } - } else { - if (toRoute.indexOf('/') === 0) { - return toRoute; - } - } - - if (toRoute.indexOf('./') === 0) { - return getRealRoute(fromRoute, toRoute.substr(2)); - } - - var toRouteArray = toRoute.split('/'); - var toRouteLength = toRouteArray.length; - var i = 0; - - for (; i < toRouteLength && toRouteArray[i] === '..'; i++) {// noop - } + for (; i < toRouteLength && toRouteArray[i] === '..'; i++) {// noop + } toRouteArray.splice(0, i); toRoute = toRouteArray.join('/'); @@ -18147,7 +18115,7 @@ function startAnimation(context) { var requireComponents = [// baseComponents -__webpack_require__(66), __webpack_require__(91)]; +__webpack_require__(67), __webpack_require__(92)]; requireComponents.forEach(function (components, index) { components.keys().forEach(function (fileName) { // 获取组件配置 @@ -18163,45 +18131,65 @@ requireComponents.forEach(function (components, index) { }); /***/ }), -/* 104 */ +/* 105 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26557f38-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/progress/index.vue?vue&type=template&id=34f62046& +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26557f38-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/switch/index.vue?vue&type=template&id=04951fe6& var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( - "uni-progress", - _vm._g({ staticClass: "uni-progress" }, _vm.$listeners), + "uni-switch", + _vm._g({ on: { click: _vm._onClick } }, _vm.$listeners), [ - _c("div", { staticClass: "uni-progress-bar", style: _vm.outerBarStyle }, [ + _c("div", { staticClass: "uni-switch-wrapper" }, [ _c("div", { - staticClass: "uni-progress-inner-bar", - style: _vm.innerBarStyle + directives: [ + { + name: "show", + rawName: "v-show", + value: _vm.type === "switch", + expression: "type === 'switch'" + } + ], + staticClass: "uni-switch-input", + class: [_vm.switchChecked ? "uni-switch-input-checked" : ""], + style: { + backgroundColor: _vm.switchChecked ? _vm.color : "#DFDFDF", + borderColor: _vm.switchChecked ? _vm.color : "#DFDFDF" + } + }), + _c("div", { + directives: [ + { + name: "show", + rawName: "v-show", + value: _vm.type === "checkbox", + expression: "type === 'checkbox'" + } + ], + staticClass: "uni-checkbox-input", + class: [_vm.switchChecked ? "uni-checkbox-input-checked" : ""], + style: { color: _vm.color } }) - ]), - _vm.showInfo - ? [ - _c("p", { staticClass: "uni-progress-info" }, [ - _vm._v(_vm._s(_vm.currentPercent) + "%") - ]) - ] - : _vm._e() - ], - 2 + ]) + ] ) } var staticRenderFns = [] render._withStripped = true -// CONCATENATED MODULE: ./src/core/view/components/progress/index.vue?vue&type=template&id=34f62046& +// CONCATENATED MODULE: ./src/core/view/components/switch/index.vue?vue&type=template&id=04951fe6& -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/progress/index.vue?vue&type=script&lang=js& +// EXTERNAL MODULE: ./src/core/view/mixins/index.js + 1 modules +var mixins = __webpack_require__(1); + +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/switch/index.vue?vue&type=script&lang=js& // // // @@ -18218,124 +18206,99 @@ render._withStripped = true // // // -var VALUES = { - activeColor: '#007AFF', - backgroundColor: '#EBEBEB', - activeMode: 'backwards' -}; -/* harmony default export */ var progressvue_type_script_lang_js_ = ({ - name: 'Progress', +// +// + +/* harmony default export */ var switchvue_type_script_lang_js_ = ({ + name: 'Switch', + mixins: [mixins["a" /* emitter */], mixins["c" /* listeners */]], props: { - percent: { - type: [Number, String], - default: 0, - validator: function validator(value) { - return !isNaN(parseFloat(value, 10)); - } + name: { + type: String, + default: '' }, - showInfo: { + checked: { type: [Boolean, String], default: false }, - strokeWidth: { - type: [Number, String], - default: 6, - validator: function validator(value) { - return !isNaN(parseFloat(value, 10)); - } - }, - color: { - type: String, - default: VALUES.activeColor - }, - activeColor: { + type: { type: String, - default: VALUES.activeColor + default: 'switch' }, - backgroundColor: { + id: { type: String, - default: VALUES.backgroundColor + default: '' }, - active: { + disabled: { type: [Boolean, String], default: false }, - activeMode: { + color: { type: String, - default: VALUES.activeMode + default: '#007aff' } }, data: function data() { return { - currentPercent: 0, - strokeTimer: 0, - lastPercent: 0 + switchChecked: this.checked }; }, - computed: { - outerBarStyle: function outerBarStyle() { - return "background-color: ".concat(this.backgroundColor, "; height: ").concat(this.strokeWidth, "px;"); - }, - innerBarStyle: function innerBarStyle() { - // 兼容下不推荐的属性,activeColor 优先级高于 color。 - var backgroundColor = ''; - - if (this.color !== VALUES.activeColor && this.activeColor === VALUES.activeColor) { - backgroundColor = this.color; - } else { - backgroundColor = this.activeColor; - } - - return "width: ".concat(this.currentPercent, "%;background-color: ").concat(backgroundColor); - }, - realPercent: function realPercent() { - // 确保最终计算时使用的是 Number 类型的值,并且在有效范围内。 - var realValue = parseFloat(this.percent, 10); - realValue < 0 && (realValue = 0); - realValue > 100 && (realValue = 100); - return realValue; - } - }, watch: { - realPercent: function realPercent(newValue, oldValue) { - this.strokeTimer && clearInterval(this.strokeTimer); - this.lastPercent = oldValue || 0; - - this._activeAnimation(); + checked: function checked(val) { + this.switchChecked = val; } }, created: function created() { - this._activeAnimation(); + this.$dispatch('Form', 'uni-form-group-update', { + type: 'add', + vm: this + }); + }, + beforeDestroy: function beforeDestroy() { + this.$dispatch('Form', 'uni-form-group-update', { + type: 'remove', + vm: this + }); + }, + listeners: { + 'label-click': '_onClick', + '@label-click': '_onClick' }, methods: { - _activeAnimation: function _activeAnimation() { - var _this = this; + _onClick: function _onClick($event) { + if (this.disabled) { + return; + } - if (this.active) { - this.currentPercent = this.activeMode === VALUES.activeMode ? 0 : this.lastPercent; - this.strokeTimer = setInterval(function () { - if (_this.currentPercent + 1 > _this.realPercent) { - _this.currentPercent = _this.realPercent; - _this.strokeTimer && clearInterval(_this.strokeTimer); - } else { - _this.currentPercent += 1; - } - }, 30); - } else { - this.currentPercent = this.realPercent; + this.switchChecked = !this.switchChecked; + this.$trigger('change', $event, { + value: this.switchChecked + }); + }, + _resetFormData: function _resetFormData() { + this.switchChecked = false; + }, + _getFormData: function _getFormData() { + var data = {}; + + if (this.name !== '') { + data['value'] = this.switchChecked; + data['key'] = this.name; } + + return data; } } }); -// CONCATENATED MODULE: ./src/core/view/components/progress/index.vue?vue&type=script&lang=js& - /* harmony default export */ var components_progressvue_type_script_lang_js_ = (progressvue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/core/view/components/progress/index.vue?vue&type=style&index=0&lang=css& -var progressvue_type_style_index_0_lang_css_ = __webpack_require__(79); +// CONCATENATED MODULE: ./src/core/view/components/switch/index.vue?vue&type=script&lang=js& + /* harmony default export */ var components_switchvue_type_script_lang_js_ = (switchvue_type_script_lang_js_); +// EXTERNAL MODULE: ./src/core/view/components/switch/index.vue?vue&type=style&index=0&lang=css& +var switchvue_type_style_index_0_lang_css_ = __webpack_require__(88); // EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(0); -// CONCATENATED MODULE: ./src/core/view/components/progress/index.vue +// CONCATENATED MODULE: ./src/core/view/components/switch/index.vue @@ -18345,7 +18308,7 @@ var componentNormalizer = __webpack_require__(0); /* normalize component */ var component = Object(componentNormalizer["a" /* default */])( - components_progressvue_type_script_lang_js_, + components_switchvue_type_script_lang_js_, render, staticRenderFns, false, @@ -18357,214 +18320,46 @@ var component = Object(componentNormalizer["a" /* default */])( /* hot reload */ if (false) { var api; } -component.options.__file = "src/core/view/components/progress/index.vue" -/* harmony default export */ var progress = __webpack_exports__["default"] = (component.exports); +component.options.__file = "src/core/view/components/switch/index.vue" +/* harmony default export */ var components_switch = __webpack_exports__["default"] = (component.exports); /***/ }), -/* 105 */ +/* 106 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26557f38-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/input/index.vue?vue&type=template&id=c65e1032& +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26557f38-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/image/index.vue?vue&type=template&id=c7af6f90& var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( - "uni-input", - _vm._g( - { - on: { - change: function($event) { - $event.stopPropagation() - } - } - }, - _vm.$listeners - ), + "uni-image", + _vm._g({}, _vm.$listeners), [ - _c("div", { ref: "wrapper", staticClass: "uni-input-wrapper" }, [ - _c( - "div", - { - directives: [ - { - name: "show", - rawName: "v-show", - value: !(_vm.composing || _vm.inputValue.length), - expression: "!(composing || inputValue.length)" - } - ], - ref: "placeholder", - staticClass: "uni-input-placeholder", - class: _vm.placeholderClass, - style: _vm.placeholderStyle - }, - [_vm._v(_vm._s(_vm.placeholder))] - ), - _vm.inputType === "checkbox" - ? _c("input", { - directives: [ - { - name: "model", - rawName: "v-model", - value: _vm.inputValue, - expression: "inputValue" - } - ], - ref: "input", - staticClass: "uni-input-input", - attrs: { - disabled: _vm.disabled, - maxlength: _vm.maxlength, - step: _vm.step, - autocomplete: "off", - type: "checkbox" - }, - domProps: { - checked: Array.isArray(_vm.inputValue) - ? _vm._i(_vm.inputValue, null) > -1 - : _vm.inputValue - }, - on: { - focus: _vm._onFocus, - blur: _vm._onBlur, - input: function($event) { - $event.stopPropagation() - return _vm._onInput($event) - }, - compositionstart: _vm._onComposition, - compositionend: _vm._onComposition, - keyup: function($event) { - $event.stopPropagation() - return _vm._onKeyup($event) - }, - change: function($event) { - var $$a = _vm.inputValue, - $$el = $event.target, - $$c = $$el.checked ? true : false - if (Array.isArray($$a)) { - var $$v = null, - $$i = _vm._i($$a, $$v) - if ($$el.checked) { - $$i < 0 && (_vm.inputValue = $$a.concat([$$v])) - } else { - $$i > -1 && - (_vm.inputValue = $$a - .slice(0, $$i) - .concat($$a.slice($$i + 1))) - } - } else { - _vm.inputValue = $$c - } - } - } - }) - : _vm.inputType === "radio" - ? _c("input", { - directives: [ - { - name: "model", - rawName: "v-model", - value: _vm.inputValue, - expression: "inputValue" - } - ], - ref: "input", - staticClass: "uni-input-input", - attrs: { - disabled: _vm.disabled, - maxlength: _vm.maxlength, - step: _vm.step, - autocomplete: "off", - type: "radio" - }, - domProps: { checked: _vm._q(_vm.inputValue, null) }, - on: { - focus: _vm._onFocus, - blur: _vm._onBlur, - input: function($event) { - $event.stopPropagation() - return _vm._onInput($event) - }, - compositionstart: _vm._onComposition, - compositionend: _vm._onComposition, - keyup: function($event) { - $event.stopPropagation() - return _vm._onKeyup($event) - }, - change: function($event) { - _vm.inputValue = null - } - } - }) - : _c("input", { - directives: [ - { - name: "model", - rawName: "v-model", - value: _vm.inputValue, - expression: "inputValue" - } - ], - ref: "input", - staticClass: "uni-input-input", - attrs: { - disabled: _vm.disabled, - maxlength: _vm.maxlength, - step: _vm.step, - autocomplete: "off", - type: _vm.inputType - }, - domProps: { value: _vm.inputValue }, - on: { - focus: _vm._onFocus, - blur: _vm._onBlur, - input: [ - function($event) { - if ($event.target.composing) { - return - } - _vm.inputValue = $event.target.value - }, - function($event) { - $event.stopPropagation() - return _vm._onInput($event) - } - ], - compositionstart: _vm._onComposition, - compositionend: _vm._onComposition, - keyup: function($event) { - $event.stopPropagation() - return _vm._onKeyup($event) - } - } - }) - ]) - ] + _c("div", { ref: "content", style: _vm.modeStyle }), + _c("img", { attrs: { src: _vm.realImagePath } }), + _vm.mode === "widthFix" + ? _c("v-uni-resize-sensor", { + ref: "sensor", + on: { resize: _vm._resize } + }) + : _vm._e() + ], + 1 ) } var staticRenderFns = [] render._withStripped = true -// CONCATENATED MODULE: ./src/core/view/components/input/index.vue?vue&type=template&id=c65e1032& +// CONCATENATED MODULE: ./src/core/view/components/image/index.vue?vue&type=template&id=c7af6f90& -// EXTERNAL MODULE: ./src/core/view/mixins/index.js + 1 modules -var mixins = __webpack_require__(1); +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/image/index.vue?vue&type=script&lang=js& +function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/input/index.vue?vue&type=script&lang=js& -// -// -// -// -// -// -// -// -// // // // @@ -18577,269 +18372,199 @@ var mixins = __webpack_require__(1); // // // -// -// -// -// -// -// -// -// -// -// -// -// - -var INPUT_TYPES = ['text', 'number', 'idcard', 'digit', 'password']; -var NUMBER_TYPES = ['number', 'digit']; -/* harmony default export */ var inputvue_type_script_lang_js_ = ({ - name: 'Input', - mixins: [mixins["a" /* emitter */]], - model: { - prop: 'value', - event: 'update:value' - }, +/* harmony default export */ var imagevue_type_script_lang_js_ = ({ + name: 'Image', props: { - name: { + src: { type: String, default: '' }, - value: { - type: [String, Number], - default: '' - }, - type: { + mode: { type: String, - default: 'text' + default: 'scaleToFill' }, - password: { + // TODO 懒加载 + lazyLoad: { type: [Boolean, String], default: false - }, - placeholder: { - type: String, - default: '' - }, - placeholderStyle: { - type: String, - default: '' - }, - placeholderClass: { - type: String, - default: '' - }, - disabled: { - type: [Boolean, String], - default: false - }, - maxlength: { - type: [Number, String], - default: 140 - }, - focus: { - type: [Boolean, String], - default: false - }, - confirmType: { - type: String, - default: 'done' } }, data: function data() { return { - inputValue: this.value + '', - composing: false, - wrapperHeight: 0, - cachedValue: '' + originalWidth: 0, + originalHeight: 0, + availHeight: '', + sizeFixed: false }; }, computed: { - inputType: function inputType() { - var type = ''; + ratio: function ratio() { + return this.originalWidth && this.originalHeight ? this.originalWidth / this.originalHeight : 0; + }, + realImagePath: function realImagePath() { + return this.src && this.$getRealPath(this.src); + }, + modeStyle: function modeStyle() { + var size = 'auto'; + var position = ''; + var repeat = 'no-repeat'; - switch (this.type) { - case 'text': - this.confirmType === 'search' && (type = 'search'); + switch (this.mode) { + case 'aspectFit': + size = 'contain'; + position = 'center center'; break; - case 'idcard': - // TODO 可能要根据不同平台进行区分处理 - type = 'text'; + case 'aspectFill': + size = 'cover'; + position = 'center center'; break; - case 'digit': - type = 'number'; + case 'widthFix': + size = '100% 100%'; + break; + + case 'top': + position = 'center top'; + break; + + case 'bottom': + position = 'center bottom'; + break; + + case 'center': + position = 'center center'; + break; + + case 'left': + position = 'left center'; + break; + + case 'right': + position = 'right center'; + break; + + case 'top left': + position = 'left top'; + break; + + case 'top right': + position = 'right top'; + break; + + case 'bottom left': + position = 'left bottom'; + break; + + case 'bottom right': + position = 'right bottom'; break; default: - type = ~INPUT_TYPES.indexOf(this.type) ? this.type : 'text'; + size = '100% 100%'; + position = '0% 0%'; break; } - return this.password ? 'password' : type; - }, - step: function step() { - // 处理部分设备中无法输入小数点的问题 - return ~NUMBER_TYPES.indexOf(this.type) ? '0.000000000000000001' : ''; + return "background-position:".concat(position, ";background-size:").concat(size, ";background-repeat:").concat(repeat, ";"); } }, watch: { - focus: function focus(value) { - value && this._focusInput(); - }, - value: function value(_value) { - this.inputValue = _value + ''; - }, - inputValue: function inputValue(value) { - this.$emit('update:value', value); + src: function src(newValue, oldValue) { + this._loadImage(); }, - maxlength: function maxlength(value) { - var realValue = this.inputValue.slice(0, parseInt(value, 10)); - realValue !== this.inputValue && (this.inputValue = realValue); + mode: function mode(newValue, oldValue) { + if (oldValue === 'widthFix') { + this.$el.style.height = this.availHeight; + this.sizeFixed = false; + } + + if (newValue === 'widthFix' && this.ratio) { + this._fixSize(); + } } }, - created: function created() { - this.$dispatch('Form', 'uni-form-group-update', { - type: 'add', - vm: this - }); - }, mounted: function mounted() { - if (this.confirmType === 'search') { - var formElem = document.createElement('form'); - formElem.action = ''; - - formElem.onsubmit = function () { - return false; - }; + this.availHeight = this.$el.style.height || ''; - formElem.className = 'uni-input-form'; - formElem.appendChild(this.$refs.input); - this.$refs.wrapper.appendChild(formElem); - } + this._loadImage(); + }, + methods: { + _resize: function _resize() { + if (this.mode === 'widthFix' && !this.sizeFixed) { + this._fixSize(); + } + }, + _fixSize: function _fixSize() { + var elWidth = this._getWidth(); - var $vm = this; + if (elWidth) { + var height = elWidth / this.ratio; // fix: 解决 Chrome 浏览器上某些情况下导致 1px 缝隙的问题 - while ($vm) { - var scopeId = $vm.$options._scopeId; + if ((typeof navigator === "undefined" ? "undefined" : _typeof(navigator)) && navigator.vendor === 'Google Inc.' && height > 10) { + height = Math.round(height / 2) * 2; + } - if (scopeId) { - this.$refs.placeholder.setAttribute(scopeId, ''); + this.$el.style.height = height + 'px'; + this.sizeFixed = true; } + }, + _loadImage: function _loadImage() { + this.$refs.content.style.backgroundImage = this.src ? "url(".concat(this.realImagePath, ")") : 'none'; - $vm = $vm.$parent; - } + var _self = this; - this.focus && this._focusInput(); - }, - beforeDestroy: function beforeDestroy() { - this.$dispatch('Form', 'uni-form-group-update', { - type: 'remove', - vm: this - }); - }, - methods: { - _onKeyup: function _onKeyup($event) { - if ($event.keyCode === 13) { - this.$trigger('confirm', $event, { - value: $event.target.value + var img = new Image(); + + img.onload = function ($event) { + _self.originalWidth = this.width; + _self.originalHeight = this.height; + + if (_self.mode === 'widthFix') { + _self._fixSize(); + } + + _self.$trigger('load', $event, { + width: this.width, + height: this.height }); - } + }; + + img.onerror = function ($event) { + _self.$trigger('error', $event, { + errMsg: "GET ".concat(_self.src, " 404 (Not Found)") + }); + }; + + img.src = this.realImagePath; }, - _onInput: function _onInput($event) { - if (this.composing) { - return; - } // 处理部分输入法可以输入其它字符的情况 + _getWidth: function _getWidth() { + var computedStyle = window.getComputedStyle(this.$el); + var borderWidth = (parseFloat(computedStyle.borderLeftWidth, 10) || 0) + (parseFloat(computedStyle.borderRightWidth, 10) || 0); + var paddingWidth = (parseFloat(computedStyle.paddingLeft, 10) || 0) + (parseFloat(computedStyle.paddingRight, 10) || 0); + return this.$el.offsetWidth - borderWidth - paddingWidth; + } + } +}); +// CONCATENATED MODULE: ./src/core/view/components/image/index.vue?vue&type=script&lang=js& + /* harmony default export */ var components_imagevue_type_script_lang_js_ = (imagevue_type_script_lang_js_); +// EXTERNAL MODULE: ./src/core/view/components/image/index.vue?vue&type=style&index=0&lang=css& +var imagevue_type_style_index_0_lang_css_ = __webpack_require__(73); +// EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js +var componentNormalizer = __webpack_require__(0); - if (~NUMBER_TYPES.indexOf(this.type)) { - if (this.$refs.input.validity && !this.$refs.input.validity.valid) { - $event.target.value = this.cachedValue; - this.inputValue = $event.target.value; // 输入非法字符不触发 input 事件 +// CONCATENATED MODULE: ./src/core/view/components/image/index.vue - return; - } else { - this.cachedValue = this.inputValue; - } - } // type="number" 不支持 maxlength 属性,因此需要主动限制长度。 - if (this.inputType === 'number') { - var maxlength = parseInt(this.maxlength, 10); - if (maxlength > 0 && $event.target.value.length > maxlength) { - $event.target.value = $event.target.value.slice(0, maxlength); - this.inputValue = $event.target.value; // 字符长度超出范围不触发 input 事件 - return; - } - } - this.$trigger('input', $event, { - value: this.inputValue - }); - }, - _onFocus: function _onFocus($event) { - this.$trigger('focus', $event, { - value: $event.target.value - }); - }, - _onBlur: function _onBlur($event) { - this.$trigger('blur', $event, { - value: $event.target.value - }); - }, - _focusInput: function _focusInput() { - var _this = this; - - setTimeout(function () { - _this.$refs.input.focus(); - }, 350); - }, - _blurInput: function _blurInput() { - var _this2 = this; - - setTimeout(function () { - _this2.$refs.input.blur(); - }, 350); - }, - _onComposition: function _onComposition($event) { - if ($event.type === 'compositionstart') { - this.composing = true; - } else { - this.composing = false; - } - }, - _resetFormData: function _resetFormData() { - this.inputValue = ''; - }, - _getFormData: function _getFormData() { - return this.name ? { - value: this.inputValue, - key: this.name - } : {}; - } - } -}); -// CONCATENATED MODULE: ./src/core/view/components/input/index.vue?vue&type=script&lang=js& - /* harmony default export */ var components_inputvue_type_script_lang_js_ = (inputvue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/core/view/components/input/index.vue?vue&type=style&index=0&lang=css& -var inputvue_type_style_index_0_lang_css_ = __webpack_require__(73); - -// EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js -var componentNormalizer = __webpack_require__(0); - -// CONCATENATED MODULE: ./src/core/view/components/input/index.vue - - - - - - -/* normalize component */ +/* normalize component */ var component = Object(componentNormalizer["a" /* default */])( - components_inputvue_type_script_lang_js_, + components_imagevue_type_script_lang_js_, render, staticRenderFns, false, @@ -18851,137 +18576,222 @@ var component = Object(componentNormalizer["a" /* default */])( /* hot reload */ if (false) { var api; } -component.options.__file = "src/core/view/components/input/index.vue" -/* harmony default export */ var input = __webpack_exports__["default"] = (component.exports); +component.options.__file = "src/core/view/components/image/index.vue" +/* harmony default export */ var components_image = __webpack_exports__["default"] = (component.exports); /***/ }), -/* 106 */ +/* 107 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26557f38-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/swiper-item/index.vue?vue&type=template&id=3883b065& +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26557f38-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/input/index.vue?vue&type=template&id=c65e1032& var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( - "uni-swiper-item", - _vm._g({}, _vm.$listeners), - [_vm._t("default")], - 2 + "uni-input", + _vm._g( + { + on: { + change: function($event) { + $event.stopPropagation() + } + } + }, + _vm.$listeners + ), + [ + _c("div", { ref: "wrapper", staticClass: "uni-input-wrapper" }, [ + _c( + "div", + { + directives: [ + { + name: "show", + rawName: "v-show", + value: !(_vm.composing || _vm.inputValue.length), + expression: "!(composing || inputValue.length)" + } + ], + ref: "placeholder", + staticClass: "uni-input-placeholder", + class: _vm.placeholderClass, + style: _vm.placeholderStyle + }, + [_vm._v(_vm._s(_vm.placeholder))] + ), + _vm.inputType === "checkbox" + ? _c("input", { + directives: [ + { + name: "model", + rawName: "v-model", + value: _vm.inputValue, + expression: "inputValue" + } + ], + ref: "input", + staticClass: "uni-input-input", + attrs: { + disabled: _vm.disabled, + maxlength: _vm.maxlength, + step: _vm.step, + autocomplete: "off", + type: "checkbox" + }, + domProps: { + checked: Array.isArray(_vm.inputValue) + ? _vm._i(_vm.inputValue, null) > -1 + : _vm.inputValue + }, + on: { + focus: _vm._onFocus, + blur: _vm._onBlur, + input: function($event) { + $event.stopPropagation() + return _vm._onInput($event) + }, + compositionstart: _vm._onComposition, + compositionend: _vm._onComposition, + keyup: function($event) { + $event.stopPropagation() + return _vm._onKeyup($event) + }, + change: function($event) { + var $$a = _vm.inputValue, + $$el = $event.target, + $$c = $$el.checked ? true : false + if (Array.isArray($$a)) { + var $$v = null, + $$i = _vm._i($$a, $$v) + if ($$el.checked) { + $$i < 0 && (_vm.inputValue = $$a.concat([$$v])) + } else { + $$i > -1 && + (_vm.inputValue = $$a + .slice(0, $$i) + .concat($$a.slice($$i + 1))) + } + } else { + _vm.inputValue = $$c + } + } + } + }) + : _vm.inputType === "radio" + ? _c("input", { + directives: [ + { + name: "model", + rawName: "v-model", + value: _vm.inputValue, + expression: "inputValue" + } + ], + ref: "input", + staticClass: "uni-input-input", + attrs: { + disabled: _vm.disabled, + maxlength: _vm.maxlength, + step: _vm.step, + autocomplete: "off", + type: "radio" + }, + domProps: { checked: _vm._q(_vm.inputValue, null) }, + on: { + focus: _vm._onFocus, + blur: _vm._onBlur, + input: function($event) { + $event.stopPropagation() + return _vm._onInput($event) + }, + compositionstart: _vm._onComposition, + compositionend: _vm._onComposition, + keyup: function($event) { + $event.stopPropagation() + return _vm._onKeyup($event) + }, + change: function($event) { + _vm.inputValue = null + } + } + }) + : _c("input", { + directives: [ + { + name: "model", + rawName: "v-model", + value: _vm.inputValue, + expression: "inputValue" + } + ], + ref: "input", + staticClass: "uni-input-input", + attrs: { + disabled: _vm.disabled, + maxlength: _vm.maxlength, + step: _vm.step, + autocomplete: "off", + type: _vm.inputType + }, + domProps: { value: _vm.inputValue }, + on: { + focus: _vm._onFocus, + blur: _vm._onBlur, + input: [ + function($event) { + if ($event.target.composing) { + return + } + _vm.inputValue = $event.target.value + }, + function($event) { + $event.stopPropagation() + return _vm._onInput($event) + } + ], + compositionstart: _vm._onComposition, + compositionend: _vm._onComposition, + keyup: function($event) { + $event.stopPropagation() + return _vm._onKeyup($event) + } + } + }) + ]) + ] ) } var staticRenderFns = [] render._withStripped = true -// CONCATENATED MODULE: ./src/core/view/components/swiper-item/index.vue?vue&type=template&id=3883b065& +// CONCATENATED MODULE: ./src/core/view/components/input/index.vue?vue&type=template&id=c65e1032& -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/swiper-item/index.vue?vue&type=script&lang=js& +// EXTERNAL MODULE: ./src/core/view/mixins/index.js + 1 modules +var mixins = __webpack_require__(1); + +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/input/index.vue?vue&type=script&lang=js& +// +// +// +// +// +// +// +// +// +// +// +// // // // // // -/* harmony default export */ var swiper_itemvue_type_script_lang_js_ = ({ - name: 'SwiperItem', - props: { - itemId: { - type: String, - default: '' - } - }, - mounted: function mounted() { - var $el = this.$el; - $el.style.position = 'absolute'; - $el.style.width = '100%'; - $el.style.height = '100%'; - var callbacks = this.$vnode._callbacks; - - if (callbacks) { - callbacks.forEach(function (callback) { - callback(); - }); - } - } -}); -// CONCATENATED MODULE: ./src/core/view/components/swiper-item/index.vue?vue&type=script&lang=js& - /* harmony default export */ var components_swiper_itemvue_type_script_lang_js_ = (swiper_itemvue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/core/view/components/swiper-item/index.vue?vue&type=style&index=0&lang=css& -var swiper_itemvue_type_style_index_0_lang_css_ = __webpack_require__(85); - -// EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js -var componentNormalizer = __webpack_require__(0); - -// CONCATENATED MODULE: ./src/core/view/components/swiper-item/index.vue - - - - - - -/* normalize component */ - -var component = Object(componentNormalizer["a" /* default */])( - components_swiper_itemvue_type_script_lang_js_, - render, - staticRenderFns, - false, - null, - null, - null - -) - -/* hot reload */ -if (false) { var api; } -component.options.__file = "src/core/view/components/swiper-item/index.vue" -/* harmony default export */ var swiper_item = __webpack_exports__["default"] = (component.exports); - -/***/ }), -/* 107 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26557f38-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/scroll-view/index.vue?vue&type=template&id=e9d562fc& -var render = function() { - var _vm = this - var _h = _vm.$createElement - var _c = _vm._self._c || _h - return _c("uni-scroll-view", _vm._g({}, _vm.$listeners), [ - _c("div", { ref: "wrap", staticClass: "uni-scroll-view" }, [ - _c( - "div", - { - ref: "main", - staticClass: "uni-scroll-view", - style: { - "overflow-x": _vm.scrollX ? "auto" : "hidden", - "overflow-y": _vm.scrollY ? "auto" : "hidden" - } - }, - [_c("div", { ref: "content" }, [_vm._t("default")], 2)] - ) - ]) - ]) -} -var staticRenderFns = [] -render._withStripped = true - - -// CONCATENATED MODULE: ./src/core/view/components/scroll-view/index.vue?vue&type=template&id=e9d562fc& - -// EXTERNAL MODULE: ./src/core/view/mixins/scroller/index.js + 2 modules -var scroller = __webpack_require__(46); - -// EXTERNAL MODULE: ./src/shared/index.js + 4 modules -var shared = __webpack_require__(2); - -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/scroll-view/index.vue?vue&type=script&lang=js& // // // @@ -18999,400 +18809,246 @@ var shared = __webpack_require__(2); // // - -var passiveOptions = shared["f" /* supportsPassive */] ? { - passive: true -} : false; -/* harmony default export */ var scroll_viewvue_type_script_lang_js_ = ({ - name: 'ScrollView', - mixins: [scroller["a" /* default */]], +var INPUT_TYPES = ['text', 'number', 'idcard', 'digit', 'password']; +var NUMBER_TYPES = ['number', 'digit']; +/* harmony default export */ var inputvue_type_script_lang_js_ = ({ + name: 'Input', + mixins: [mixins["a" /* emitter */]], + model: { + prop: 'value', + event: 'update:value' + }, props: { - scrollX: { - type: [Boolean, String], - default: false + name: { + type: String, + default: '' }, - scrollY: { - type: [Boolean, String], - default: false + value: { + type: [String, Number], + default: '' }, - upperThreshold: { - type: [Number, String], - default: 50 + type: { + type: String, + default: 'text' }, - lowerThreshold: { - type: [Number, String], - default: 50 + password: { + type: [Boolean, String], + default: false }, - scrollTop: { - type: [Number, String], - default: 0 + placeholder: { + type: String, + default: '' }, - scrollLeft: { - type: [Number, String], - default: 0 + placeholderStyle: { + type: String, + default: '' }, - scrollIntoView: { + placeholderClass: { type: String, default: '' }, - scrollWithAnimation: { + disabled: { type: [Boolean, String], default: false }, - enableBackToTop: { + maxlength: { + type: [Number, String], + default: 140 + }, + focus: { type: [Boolean, String], default: false + }, + confirmType: { + type: String, + default: 'done' } }, data: function data() { return { - lastScrollTop: this.scrollTopNumber, - lastScrollLeft: this.scrollLeftNumber, - lastScrollToUpperTime: 0, - lastScrollToLowerTime: 0 + inputValue: this.value + '', + composing: false, + wrapperHeight: 0, + cachedValue: '' }; }, computed: { - upperThresholdNumber: function upperThresholdNumber() { - var val = Number(this.upperThreshold); - return isNaN(val) ? 50 : val; - }, - lowerThresholdNumber: function lowerThresholdNumber() { - var val = Number(this.lowerThreshold); - return isNaN(val) ? 50 : val; - }, - scrollTopNumber: function scrollTopNumber() { - return Number(this.scrollTop) || 0; + inputType: function inputType() { + var type = ''; + + switch (this.type) { + case 'text': + this.confirmType === 'search' && (type = 'search'); + break; + + case 'idcard': + // TODO 可能要根据不同平台进行区分处理 + type = 'text'; + break; + + case 'digit': + type = 'number'; + break; + + default: + type = ~INPUT_TYPES.indexOf(this.type) ? this.type : 'text'; + break; + } + + return this.password ? 'password' : type; }, - scrollLeftNumber: function scrollLeftNumber() { - return Number(this.scrollLeft) || 0; + step: function step() { + // 处理部分设备中无法输入小数点的问题 + return ~NUMBER_TYPES.indexOf(this.type) ? '0.000000000000000001' : ''; } }, watch: { - scrollTopNumber: function scrollTopNumber(val) { - this._scrollTopChanged(val); + focus: function focus(value) { + value && this._focusInput(); }, - scrollLeftNumber: function scrollLeftNumber(val) { - this._scrollLeftChanged(val); + value: function value(_value) { + this.inputValue = _value + ''; }, - scrollIntoView: function scrollIntoView(val) { - this._scrollIntoViewChanged(val); + inputValue: function inputValue(value) { + this.$emit('update:value', value); + }, + maxlength: function maxlength(value) { + var realValue = this.inputValue.slice(0, parseInt(value, 10)); + realValue !== this.inputValue && (this.inputValue = realValue); } }, + created: function created() { + this.$dispatch('Form', 'uni-form-group-update', { + type: 'add', + vm: this + }); + }, mounted: function mounted() { - var self = this; - this._attached = true; - - this._scrollTopChanged(this.scrollTopNumber); + if (this.confirmType === 'search') { + var formElem = document.createElement('form'); + formElem.action = ''; - this._scrollLeftChanged(this.scrollLeftNumber); + formElem.onsubmit = function () { + return false; + }; - this._scrollIntoViewChanged(this.scrollIntoView); + formElem.className = 'uni-input-form'; + formElem.appendChild(this.$refs.input); + this.$refs.wrapper.appendChild(formElem); + } - this.__handleScroll = function (e) { - event.preventDefault(); - event.stopPropagation(); + var $vm = this; - self._handleScroll.bind(self, event)(); - }; + while ($vm) { + var scopeId = $vm.$options._scopeId; - var touchStart = null; - var needStop = null; + if (scopeId) { + this.$refs.placeholder.setAttribute(scopeId, ''); + } - this.__handleTouchMove = function (event) { - var x = event.touches[0].pageX; - var y = event.touches[0].pageY; - var main = self.$refs.main; + $vm = $vm.$parent; + } - if (needStop === null) { - if (Math.abs(x - touchStart.x) > Math.abs(y - touchStart.y)) { - // 横向滑动 - if (self.scrollX) { - if (main.scrollLeft === 0 && x > touchStart.x) { - needStop = false; - return; - } else if (main.scrollWidth === main.offsetWidth + main.scrollLeft && x < touchStart.x) { - needStop = false; - return; - } - - needStop = true; - } else { - needStop = false; - } - } else { - // 纵向滑动 - if (self.scrollY) { - if (main.scrollTop === 0 && y > touchStart.y) { - needStop = false; - return; - } else if (main.scrollHeight === main.offsetHeight + main.scrollTop && y < touchStart.y) { - needStop = false; - return; - } - - needStop = true; - } else { - needStop = false; - } - } - } - - if (needStop) { - event.stopPropagation(); - } - }; - - this.__handleTouchStart = function (event) { - if (event.touches.length === 1) { - needStop = null; - touchStart = { - x: event.touches[0].pageX, - y: event.touches[0].pageY - }; - } - }; - - this.$refs.main.addEventListener('touchstart', this.__handleTouchStart, passiveOptions); - this.$refs.main.addEventListener('touchmove', this.__handleTouchMove, passiveOptions); - this.$refs.main.addEventListener('scroll', this.__handleScroll, shared["f" /* supportsPassive */] ? { - passive: false - } : false); - }, - activated: function activated() { - // 还原 scroll-view 滚动位置 - this.scrollY && (this.$refs.main.scrollTop = this.lastScrollTop); - this.scrollX && (this.$refs.main.scrollLeft = this.lastScrollLeft); + this.focus && this._focusInput(); }, beforeDestroy: function beforeDestroy() { - this.$refs.main.removeEventListener('touchstart', this.__handleTouchStart, passiveOptions); - this.$refs.main.removeEventListener('touchmove', this.__handleTouchMove, passiveOptions); - this.$refs.main.removeEventListener('scroll', this.__handleScroll, shared["f" /* supportsPassive */] ? { - passive: false - } : false); + this.$dispatch('Form', 'uni-form-group-update', { + type: 'remove', + vm: this + }); }, methods: { - scrollTo: function scrollTo(t, n) { - var i = this.$refs.main; - t < 0 ? t = 0 : n === 'x' && t > i.scrollWidth - i.offsetWidth ? t = i.scrollWidth - i.offsetWidth : n === 'y' && t > i.scrollHeight - i.offsetHeight && (t = i.scrollHeight - i.offsetHeight); - var r = 0; - var o = ''; - n === 'x' ? r = i.scrollLeft - t : n === 'y' && (r = i.scrollTop - t); - - if (r !== 0) { - this.$refs.content.style.transition = 'transform .3s ease-out'; - this.$refs.content.style.webkitTransition = '-webkit-transform .3s ease-out'; - - if (n === 'x') { - o = 'translateX(' + r + 'px) translateZ(0)'; - } else { - n === 'y' && (o = 'translateY(' + r + 'px) translateZ(0)'); - } - - this.$refs.content.removeEventListener('transitionend', this.__transitionEnd); - this.$refs.content.removeEventListener('webkitTransitionEnd', this.__transitionEnd); - this.__transitionEnd = this._transitionEnd.bind(this, t, n); - this.$refs.content.addEventListener('transitionend', this.__transitionEnd); - this.$refs.content.addEventListener('webkitTransitionEnd', this.__transitionEnd); - - if (n === 'x') { - // if (e !== 'ios') { - i.style.overflowX = 'hidden'; // } - } else if (n === 'y') { - i.style.overflowY = 'hidden'; - } - - this.$refs.content.style.transform = o; - this.$refs.content.style.webkitTransform = o; + _onKeyup: function _onKeyup($event) { + if ($event.keyCode === 13) { + this.$trigger('confirm', $event, { + value: $event.target.value + }); } }, - _handleTrack: function _handleTrack($event) { - if ($event.detail.state === 'start') { - this._x = $event.detail.x; - this._y = $event.detail.y; - this._noBubble = null; + _onInput: function _onInput($event) { + if (this.composing) { return; - } + } // 处理部分输入法可以输入其它字符的情况 - if ($event.detail.state === 'end') { - this._noBubble = false; - } - if (this._noBubble === null && this.scrollY) { - if (Math.abs(this._y - $event.detail.y) / Math.abs(this._x - $event.detail.x) > 1) { - this._noBubble = true; - } else { - this._noBubble = false; - } - } + if (~NUMBER_TYPES.indexOf(this.type)) { + if (this.$refs.input.validity && !this.$refs.input.validity.valid) { + $event.target.value = this.cachedValue; + this.inputValue = $event.target.value; // 输入非法字符不触发 input 事件 - if (this._noBubble === null && this.scrollX) { - if (Math.abs(this._x - $event.detail.x) / Math.abs(this._y - $event.detail.y) > 1) { - this._noBubble = true; + return; } else { - this._noBubble = false; + this.cachedValue = this.inputValue; } - } - - this._x = $event.detail.x; - this._y = $event.detail.y; - - if (this._noBubble) { - $event.stopPropagation(); - } - }, - _handleScroll: function _handleScroll($event) { - if (!($event.timeStamp - this._lastScrollTime < 20)) { - this._lastScrollTime = $event.timeStamp; - var target = $event.target; - this.$trigger('scroll', $event, { - scrollLeft: target.scrollLeft, - scrollTop: target.scrollTop, - scrollHeight: target.scrollHeight, - scrollWidth: target.scrollWidth, - deltaX: this.lastScrollLeft - target.scrollLeft, - deltaY: this.lastScrollTop - target.scrollTop - }); + } // type="number" 不支持 maxlength 属性,因此需要主动限制长度。 - if (this.scrollY) { - if (target.scrollTop <= this.upperThresholdNumber && this.lastScrollTop - target.scrollTop > 0 && $event.timeStamp - this.lastScrollToUpperTime > 200) { - this.$trigger('scrolltoupper', $event, { - direction: 'top' - }); - this.lastScrollToUpperTime = $event.timeStamp; - } - if (target.scrollTop + target.offsetHeight + this.lowerThresholdNumber >= target.scrollHeight && this.lastScrollTop - target.scrollTop < 0 && $event.timeStamp - this.lastScrollToLowerTime > 200) { - this.$trigger('scrolltolower', $event, { - direction: 'bottom' - }); - this.lastScrollToLowerTime = $event.timeStamp; - } - } + if (this.inputType === 'number') { + var maxlength = parseInt(this.maxlength, 10); - if (this.scrollX) { - if (target.scrollLeft <= this.upperThresholdNumber && this.lastScrollLeft - target.scrollLeft > 0 && $event.timeStamp - this.lastScrollToUpperTime > 200) { - this.$trigger('scrolltoupper', $event, { - direction: 'left' - }); - this.lastScrollToUpperTime = $event.timeStamp; - } + if (maxlength > 0 && $event.target.value.length > maxlength) { + $event.target.value = $event.target.value.slice(0, maxlength); + this.inputValue = $event.target.value; // 字符长度超出范围不触发 input 事件 - if (target.scrollLeft + target.offsetWidth + this.lowerThresholdNumber >= target.scrollWidth && this.lastScrollLeft - target.scrollLeft < 0 && $event.timeStamp - this.lastScrollToLowerTime > 200) { - this.$trigger('scrolltolower', $event, { - direction: 'right' - }); - this.lastScrollToLowerTime = $event.timeStamp; - } + return; } - - this.lastScrollTop = target.scrollTop; - this.lastScrollLeft = target.scrollLeft; } + + this.$trigger('input', $event, { + value: this.inputValue + }); }, - _scrollTopChanged: function _scrollTopChanged(val) { - if (this.scrollY) { - if (this._innerSetScrollTop) { - this._innerSetScrollTop = false; - } else { - if (this.scrollWithAnimation) { - this.scrollTo(val, 'y'); - } else { - this.$refs.main.scrollTop = val; - } - } - } + _onFocus: function _onFocus($event) { + this.$trigger('focus', $event, { + value: $event.target.value + }); }, - _scrollLeftChanged: function _scrollLeftChanged(val) { - if (this.scrollX) { - if (this._innerSetScrollLeft) { - this._innerSetScrollLeft = false; - } else { - if (this.scrollWithAnimation) { - this.scrollTo(val, 'x'); - } else { - this.$refs.main.scrollLeft = val; - } - } - } + _onBlur: function _onBlur($event) { + this.$trigger('blur', $event, { + value: $event.target.value + }); }, - _scrollIntoViewChanged: function _scrollIntoViewChanged(val) { - if (val) { - if (!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(val)) { - console.group('scroll-into-view="' + val + '" 有误'); - console.error('id 属性值格式错误。如不能以数字开头。'); - console.groupEnd(); - return; - } - - var element = this.$el.querySelector('#' + val); - - if (element) { - var mainRect = this.$refs.main.getBoundingClientRect(); - var elRect = element.getBoundingClientRect(); - - if (this.scrollX) { - var left = elRect.left - mainRect.left; - var scrollLeft = this.$refs.main.scrollLeft; - var x = scrollLeft + left; - - if (this.scrollWithAnimation) { - this.scrollTo(x, 'x'); - } else { - this.$refs.main.scrollLeft = x; - } - } - - if (this.scrollY) { - var top = elRect.top - mainRect.top; - var scrollTop = this.$refs.main.scrollTop; - var y = scrollTop + top; + _focusInput: function _focusInput() { + var _this = this; - if (this.scrollWithAnimation) { - this.scrollTo(y, 'y'); - } else { - this.$refs.main.scrollTop = y; - } - } - } - } + setTimeout(function () { + _this.$refs.input.focus(); + }, 350); }, - _transitionEnd: function _transitionEnd(val, type) { - this.$refs.content.style.transition = ''; - this.$refs.content.style.webkitTransition = ''; - this.$refs.content.style.transform = ''; - this.$refs.content.style.webkitTransform = ''; - var main = this.$refs.main; + _blurInput: function _blurInput() { + var _this2 = this; - if (type === 'x') { - main.style.overflowX = this.scrollX ? 'auto' : 'hidden'; - main.scrollLeft = val; - } else if (type === 'y') { - main.style.overflowY = this.scrollY ? 'auto' : 'hidden'; - main.scrollTop = val; + setTimeout(function () { + _this2.$refs.input.blur(); + }, 350); + }, + _onComposition: function _onComposition($event) { + if ($event.type === 'compositionstart') { + this.composing = true; + } else { + this.composing = false; } - - this.$refs.content.removeEventListener('transitionend', this.__transitionEnd); - this.$refs.content.removeEventListener('webkitTransitionEnd', this.__transitionEnd); }, - getScrollPosition: function getScrollPosition() { - var main = this.$refs.main; - return { - scrollLeft: main.scrollLeft, - scrollTop: main.scrollTop - }; + _resetFormData: function _resetFormData() { + this.inputValue = ''; + }, + _getFormData: function _getFormData() { + return this.name ? { + value: this.inputValue, + key: this.name + } : {}; } } }); -// CONCATENATED MODULE: ./src/core/view/components/scroll-view/index.vue?vue&type=script&lang=js& - /* harmony default export */ var components_scroll_viewvue_type_script_lang_js_ = (scroll_viewvue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/core/view/components/scroll-view/index.vue?vue&type=style&index=0&lang=css& -var scroll_viewvue_type_style_index_0_lang_css_ = __webpack_require__(83); +// CONCATENATED MODULE: ./src/core/view/components/input/index.vue?vue&type=script&lang=js& + /* harmony default export */ var components_inputvue_type_script_lang_js_ = (inputvue_type_script_lang_js_); +// EXTERNAL MODULE: ./src/core/view/components/input/index.vue?vue&type=style&index=0&lang=css& +var inputvue_type_style_index_0_lang_css_ = __webpack_require__(74); // EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(0); -// CONCATENATED MODULE: ./src/core/view/components/scroll-view/index.vue +// CONCATENATED MODULE: ./src/core/view/components/input/index.vue @@ -19402,7 +19058,7 @@ var componentNormalizer = __webpack_require__(0); /* normalize component */ var component = Object(componentNormalizer["a" /* default */])( - components_scroll_viewvue_type_script_lang_js_, + components_inputvue_type_script_lang_js_, render, staticRenderFns, false, @@ -19414,8 +19070,8 @@ var component = Object(componentNormalizer["a" /* default */])( /* hot reload */ if (false) { var api; } -component.options.__file = "src/core/view/components/scroll-view/index.vue" -/* harmony default export */ var scroll_view = __webpack_exports__["default"] = (component.exports); +component.options.__file = "src/core/view/components/input/index.vue" +/* harmony default export */ var input = __webpack_exports__["default"] = (component.exports); /***/ }), /* 108 */ @@ -19424,55 +19080,15 @@ component.options.__file = "src/core/view/components/scroll-view/index.vue" "use strict"; __webpack_require__.r(__webpack_exports__); -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26557f38-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/slider/index.vue?vue&type=template&id=1969bd7a& +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26557f38-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/swiper-item/index.vue?vue&type=template&id=3883b065& var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( - "uni-slider", - _vm._g({ ref: "uni-slider", on: { click: _vm._onClick } }, _vm.$listeners), - [ - _c("div", { staticClass: "uni-slider-wrapper" }, [ - _c("div", { staticClass: "uni-slider-tap-area" }, [ - _c( - "div", - { staticClass: "uni-slider-handle-wrapper", style: _vm.setBgColor }, - [ - _c("div", { - ref: "uni-slider-handle", - staticClass: "uni-slider-handle", - style: _vm.setBlockBg - }), - _c("div", { - staticClass: "uni-slider-thumb", - style: _vm.setBlockStyle - }), - _c("div", { - staticClass: "uni-slider-track", - style: _vm.setActiveColor - }) - ] - ) - ]), - _c( - "span", - { - directives: [ - { - name: "show", - rawName: "v-show", - value: _vm.showValue, - expression: "showValue" - } - ], - staticClass: "uni-slider-value" - }, - [_vm._v(_vm._s(_vm.sliderValue))] - ) - ]), - _vm._t("default") - ], + "uni-swiper-item", + _vm._g({}, _vm.$listeners), + [_vm._t("default")], 2 ) } @@ -19480,223 +19096,45 @@ var staticRenderFns = [] render._withStripped = true -// CONCATENATED MODULE: ./src/core/view/components/slider/index.vue?vue&type=template&id=1969bd7a& - -// EXTERNAL MODULE: ./src/core/view/mixins/index.js + 1 modules -var mixins = __webpack_require__(1); - -// EXTERNAL MODULE: ./src/core/view/mixins/touchtrack.js -var touchtrack = __webpack_require__(8); +// CONCATENATED MODULE: ./src/core/view/components/swiper-item/index.vue?vue&type=template&id=3883b065& -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/slider/index.vue?vue&type=script&lang=js& -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/swiper-item/index.vue?vue&type=script&lang=js& // // // // // - - -/* harmony default export */ var slidervue_type_script_lang_js_ = ({ - name: 'Slider', - mixins: [mixins["a" /* emitter */], mixins["c" /* listeners */], touchtrack["a" /* default */]], +/* harmony default export */ var swiper_itemvue_type_script_lang_js_ = ({ + name: 'SwiperItem', props: { - name: { + itemId: { 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: false - }, - 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: false - } - }, - data: function data() { - return { - sliderValue: Number(this.value) - }; - }, - computed: { - setBlockStyle: function setBlockStyle() { - 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 setBgColor() { - return { - backgroundColor: this._getBgColor() - }; - }, - setBlockBg: function setBlockBg() { - return { - left: this._getValueWidth() - }; - }, - setActiveColor: function setActiveColor() { - // 有问题,设置最大值最小值是有问题 - return { - backgroundColor: this._getActiveColor(), - width: this._getValueWidth() - }; - } - }, - watch: { - value: function value(val) { - this.sliderValue = Number(val); } }, mounted: function mounted() { - this.touchtrack(this.$refs['uni-slider-handle'], '_onTrack'); - }, - created: function created() { - this.$dispatch('Form', 'uni-form-group-update', { - type: 'add', - vm: this - }); - }, - beforeDestroy: function beforeDestroy() { - this.$dispatch('Form', 'uni-form-group-update', { - type: 'remove', - vm: this - }); - }, - methods: { - _onUserChangedValue: function _onUserChangedValue(e) { - var slider = this.$refs['uni-slider']; - var offsetWidth = slider.offsetWidth; - var boxLeft = slider.getBoundingClientRect().left; - var value = (e.x - boxLeft) * (this.max - this.min) / offsetWidth + Number(this.min); - this.sliderValue = this._filterValue(value); - }, - _filterValue: function _filterValue(e) { - return e < this.min ? this.min : e > this.max ? this.max : Math.round((e - this.min) / this.step) * this.step + Number(this.min); - }, - _getValueWidth: function _getValueWidth() { - return 100 * (this.sliderValue - this.min) / (this.max - this.min) + '%'; - }, - _getBgColor: function _getBgColor() { - return this.backgroundColor !== '#e9e9e9' ? this.backgroundColor : this.color !== '#007aff' ? this.color : '#007aff'; - }, - _getActiveColor: function _getActiveColor() { - return this.activeColor !== '#007aff' ? this.activeColor : this.selectedColor !== '#e9e9e9' ? this.selectedColor : '#e9e9e9'; - }, - _onTrack: function _onTrack(e) { - if (!this.disabled) { - return e.detail.state === 'move' ? (this._onUserChangedValue({ - x: e.detail.x0 - }), this.$trigger('changing', e, { - value: this.sliderValue - }), !1) : void (e.detail.state === 'end' && this.$trigger('change', e, { - value: this.sliderValue - })); - } - }, - _onClick: function _onClick($event) { - if (this.disabled) { - return; - } - - this._onUserChangedValue($event); - - this.$trigger('change', $event, { - value: this.sliderValue - }); - }, - _resetFormData: function _resetFormData() { - this.sliderValue = this.min; - }, - _getFormData: function _getFormData() { - var data = {}; - - if (this.name !== '') { - data['value'] = this.sliderValue; - data['key'] = this.name; - } + var $el = this.$el; + $el.style.position = 'absolute'; + $el.style.width = '100%'; + $el.style.height = '100%'; + var callbacks = this.$vnode._callbacks; - return data; + if (callbacks) { + callbacks.forEach(function (callback) { + callback(); + }); } } }); -// CONCATENATED MODULE: ./src/core/view/components/slider/index.vue?vue&type=script&lang=js& - /* harmony default export */ var components_slidervue_type_script_lang_js_ = (slidervue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/core/view/components/slider/index.vue?vue&type=style&index=0&lang=css& -var slidervue_type_style_index_0_lang_css_ = __webpack_require__(84); +// CONCATENATED MODULE: ./src/core/view/components/swiper-item/index.vue?vue&type=script&lang=js& + /* harmony default export */ var components_swiper_itemvue_type_script_lang_js_ = (swiper_itemvue_type_script_lang_js_); +// EXTERNAL MODULE: ./src/core/view/components/swiper-item/index.vue?vue&type=style&index=0&lang=css& +var swiper_itemvue_type_style_index_0_lang_css_ = __webpack_require__(86); // EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(0); -// CONCATENATED MODULE: ./src/core/view/components/slider/index.vue +// CONCATENATED MODULE: ./src/core/view/components/swiper-item/index.vue @@ -19706,7 +19144,7 @@ var componentNormalizer = __webpack_require__(0); /* normalize component */ var component = Object(componentNormalizer["a" /* default */])( - components_slidervue_type_script_lang_js_, + components_swiper_itemvue_type_script_lang_js_, render, staticRenderFns, false, @@ -19718,8 +19156,8 @@ var component = Object(componentNormalizer["a" /* default */])( /* hot reload */ if (false) { var api; } -component.options.__file = "src/core/view/components/slider/index.vue" -/* harmony default export */ var slider = __webpack_exports__["default"] = (component.exports); +component.options.__file = "src/core/view/components/swiper-item/index.vue" +/* harmony default export */ var swiper_item = __webpack_exports__["default"] = (component.exports); /***/ }), /* 109 */ @@ -19867,7 +19305,7 @@ var OPEN_TYPES = ['navigate', 'redirect', 'switchTab', 'reLaunch', 'navigateBack // CONCATENATED MODULE: ./src/core/view/components/navigator/index.vue?vue&type=script&lang=js& /* harmony default export */ var components_navigatorvue_type_script_lang_js_ = (navigatorvue_type_script_lang_js_); // EXTERNAL MODULE: ./src/core/view/components/navigator/index.vue?vue&type=style&index=0&lang=css& -var navigatorvue_type_style_index_0_lang_css_ = __webpack_require__(76); +var navigatorvue_type_style_index_0_lang_css_ = __webpack_require__(77); // EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(0); @@ -19904,41 +19342,87 @@ component.options.__file = "src/core/view/components/navigator/index.vue" "use strict"; __webpack_require__.r(__webpack_exports__); -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26557f38-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/radio/index.vue?vue&type=template&id=4b562a50& +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26557f38-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/slider/index.vue?vue&type=template&id=1969bd7a& var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( - "uni-radio", - _vm._g({ on: { click: _vm._onClick } }, _vm.$listeners), + "uni-slider", + _vm._g({ ref: "uni-slider", on: { click: _vm._onClick } }, _vm.$listeners), [ - _c( - "div", - { staticClass: "uni-radio-wrapper" }, - [ - _c("div", { - staticClass: "uni-radio-input", - class: _vm.radioChecked ? "uni-radio-input-checked" : "", - style: _vm.radioChecked ? _vm.checkedStyle : "" - }), - _vm._t("default") - ], - 2 - ) - ] + _c("div", { staticClass: "uni-slider-wrapper" }, [ + _c("div", { staticClass: "uni-slider-tap-area" }, [ + _c( + "div", + { staticClass: "uni-slider-handle-wrapper", style: _vm.setBgColor }, + [ + _c("div", { + ref: "uni-slider-handle", + staticClass: "uni-slider-handle", + style: _vm.setBlockBg + }), + _c("div", { + staticClass: "uni-slider-thumb", + style: _vm.setBlockStyle + }), + _c("div", { + staticClass: "uni-slider-track", + style: _vm.setActiveColor + }) + ] + ) + ]), + _c( + "span", + { + directives: [ + { + name: "show", + rawName: "v-show", + value: _vm.showValue, + expression: "showValue" + } + ], + staticClass: "uni-slider-value" + }, + [_vm._v(_vm._s(_vm.sliderValue))] + ) + ]), + _vm._t("default") + ], + 2 ) } var staticRenderFns = [] render._withStripped = true -// CONCATENATED MODULE: ./src/core/view/components/radio/index.vue?vue&type=template&id=4b562a50& +// CONCATENATED MODULE: ./src/core/view/components/slider/index.vue?vue&type=template&id=1969bd7a& // EXTERNAL MODULE: ./src/core/view/mixins/index.js + 1 modules var mixins = __webpack_require__(1); -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/radio/index.vue?vue&type=script&lang=js& +// EXTERNAL MODULE: ./src/core/view/mixins/touchtrack.js +var touchtrack = __webpack_require__(8); + +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/slider/index.vue?vue&type=script&lang=js& +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// // // // @@ -19953,97 +19437,184 @@ var mixins = __webpack_require__(1); // // -/* harmony default export */ var radiovue_type_script_lang_js_ = ({ - name: 'Radio', - mixins: [mixins["a" /* emitter */], mixins["c" /* listeners */]], + +/* harmony default export */ var slidervue_type_script_lang_js_ = ({ + name: 'Slider', + mixins: [mixins["a" /* emitter */], mixins["c" /* listeners */], touchtrack["a" /* default */]], props: { - checked: { - type: [Boolean, String], - default: false - }, - id: { + 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: false }, color: { type: String, - default: '#007AFF' + default: '#e9e9e9' }, - value: { + backgroundColor: { type: String, - default: '' + 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: false } }, data: function data() { return { - radioChecked: this.checked, - radioValue: this.value + sliderValue: Number(this.value) }; }, computed: { - checkedStyle: function checkedStyle() { - return "background-color: ".concat(this.color, ";border-color: ").concat(this.color, ";"); + setBlockStyle: function setBlockStyle() { + 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 setBgColor() { + return { + backgroundColor: this._getBgColor() + }; + }, + setBlockBg: function setBlockBg() { + return { + left: this._getValueWidth() + }; + }, + setActiveColor: function setActiveColor() { + // 有问题,设置最大值最小值是有问题 + return { + backgroundColor: this._getActiveColor(), + width: this._getValueWidth() + }; } }, watch: { - checked: function checked(val) { - this.radioChecked = val; - }, value: function value(val) { - this.radioValue = val; + this.sliderValue = Number(val); } }, - listeners: { - 'label-click': '_onClick', - '@label-click': '_onClick' + mounted: function mounted() { + this.touchtrack(this.$refs['uni-slider-handle'], '_onTrack'); }, created: function created() { - this.$dispatch('RadioGroup', 'uni-radio-group-update', { - type: 'add', - vm: this - }); this.$dispatch('Form', 'uni-form-group-update', { type: 'add', vm: this }); }, beforeDestroy: function beforeDestroy() { - this.$dispatch('RadioGroup', 'uni-radio-group-update', { - type: 'remove', - vm: this - }); this.$dispatch('Form', 'uni-form-group-update', { type: 'remove', vm: this }); }, methods: { + _onUserChangedValue: function _onUserChangedValue(e) { + var slider = this.$refs['uni-slider']; + var offsetWidth = slider.offsetWidth; + var boxLeft = slider.getBoundingClientRect().left; + var value = (e.x - boxLeft) * (this.max - this.min) / offsetWidth + Number(this.min); + this.sliderValue = this._filterValue(value); + }, + _filterValue: function _filterValue(e) { + return e < this.min ? this.min : e > this.max ? this.max : Math.round((e - this.min) / this.step) * this.step + Number(this.min); + }, + _getValueWidth: function _getValueWidth() { + return 100 * (this.sliderValue - this.min) / (this.max - this.min) + '%'; + }, + _getBgColor: function _getBgColor() { + return this.backgroundColor !== '#e9e9e9' ? this.backgroundColor : this.color !== '#007aff' ? this.color : '#007aff'; + }, + _getActiveColor: function _getActiveColor() { + return this.activeColor !== '#007aff' ? this.activeColor : this.selectedColor !== '#e9e9e9' ? this.selectedColor : '#e9e9e9'; + }, + _onTrack: function _onTrack(e) { + if (!this.disabled) { + return e.detail.state === 'move' ? (this._onUserChangedValue({ + x: e.detail.x0 + }), this.$trigger('changing', e, { + value: this.sliderValue + }), !1) : void (e.detail.state === 'end' && this.$trigger('change', e, { + value: this.sliderValue + })); + } + }, _onClick: function _onClick($event) { - if (this.disabled || this.radioChecked) { + if (this.disabled) { return; } - this.radioChecked = true; - this.$dispatch('RadioGroup', 'uni-radio-change', $event, this); + this._onUserChangedValue($event); + + this.$trigger('change', $event, { + value: this.sliderValue + }); }, _resetFormData: function _resetFormData() { - this.radioChecked = this.min; + this.sliderValue = this.min; + }, + _getFormData: function _getFormData() { + var data = {}; + + if (this.name !== '') { + data['value'] = this.sliderValue; + data['key'] = this.name; + } + + return data; } } }); -// CONCATENATED MODULE: ./src/core/view/components/radio/index.vue?vue&type=script&lang=js& - /* harmony default export */ var components_radiovue_type_script_lang_js_ = (radiovue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/core/view/components/radio/index.vue?vue&type=style&index=0&lang=css& -var radiovue_type_style_index_0_lang_css_ = __webpack_require__(81); +// CONCATENATED MODULE: ./src/core/view/components/slider/index.vue?vue&type=script&lang=js& + /* harmony default export */ var components_slidervue_type_script_lang_js_ = (slidervue_type_script_lang_js_); +// EXTERNAL MODULE: ./src/core/view/components/slider/index.vue?vue&type=style&index=0&lang=css& +var slidervue_type_style_index_0_lang_css_ = __webpack_require__(85); // EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(0); -// CONCATENATED MODULE: ./src/core/view/components/radio/index.vue +// CONCATENATED MODULE: ./src/core/view/components/slider/index.vue @@ -20053,7 +19624,7 @@ var componentNormalizer = __webpack_require__(0); /* normalize component */ var component = Object(componentNormalizer["a" /* default */])( - components_radiovue_type_script_lang_js_, + components_slidervue_type_script_lang_js_, render, staticRenderFns, false, @@ -20065,8 +19636,8 @@ var component = Object(componentNormalizer["a" /* default */])( /* hot reload */ if (false) { var api; } -component.options.__file = "src/core/view/components/radio/index.vue" -/* harmony default export */ var components_radio = __webpack_exports__["default"] = (component.exports); +component.options.__file = "src/core/view/components/slider/index.vue" +/* harmony default export */ var slider = __webpack_exports__["default"] = (component.exports); /***/ }), /* 111 */ @@ -20075,340 +19646,453 @@ component.options.__file = "src/core/view/components/radio/index.vue" "use strict"; __webpack_require__.r(__webpack_exports__); -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26557f38-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/label/index.vue?vue&type=template&id=04b5b291& -var render = function() { - var _vm = this - var _h = _vm.$createElement - var _c = _vm._self._c || _h - return _c( - "uni-label", - _vm._g({ on: { click: _vm._onClick } }, _vm.$listeners), - [_vm._t("default")], - 2 - ) -} -var staticRenderFns = [] -render._withStripped = true - - -// CONCATENATED MODULE: ./src/core/view/components/label/index.vue?vue&type=template&id=04b5b291& - -// EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/label/index.vue?vue&type=script&lang=js& -var labelvue_type_script_lang_js_ = __webpack_require__(23); - -// CONCATENATED MODULE: ./src/core/view/components/label/index.vue?vue&type=script&lang=js& - /* harmony default export */ var components_labelvue_type_script_lang_js_ = (labelvue_type_script_lang_js_["a" /* default */]); -// EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js -var componentNormalizer = __webpack_require__(0); - -// CONCATENATED MODULE: ./src/core/view/components/label/index.vue - - - - - -/* normalize component */ - -var component = Object(componentNormalizer["a" /* default */])( - components_labelvue_type_script_lang_js_, - render, - staticRenderFns, - false, - null, - null, - null - -) - -/* hot reload */ -if (false) { var api; } -component.options.__file = "src/core/view/components/label/index.vue" -/* harmony default export */ var label = __webpack_exports__["default"] = (component.exports); - -/***/ }), -/* 112 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26557f38-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/canvas/index.vue?vue&type=template&id=6ef05d9e& +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26557f38-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/scroll-view/index.vue?vue&type=template&id=e9d562fc& var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h - return _c( - "uni-canvas", - _vm._g( - { - attrs: { - "canvas-id": _vm.canvasId, - "disable-scroll": _vm.disableScroll - } - }, - _vm._listeners - ), - [ - _c("canvas", { ref: "canvas", attrs: { width: "300", height: "150" } }), + return _c("uni-scroll-view", _vm._g({}, _vm.$listeners), [ + _c("div", { ref: "wrap", staticClass: "uni-scroll-view" }, [ _c( "div", { - staticStyle: { - position: "absolute", - top: "0", - left: "0", - width: "100%", - height: "100%", - overflow: "hidden" + ref: "main", + staticClass: "uni-scroll-view", + style: { + "overflow-x": _vm.scrollX ? "auto" : "hidden", + "overflow-y": _vm.scrollY ? "auto" : "hidden" } }, - [_vm._t("default")], - 2 - ), - _c("v-uni-resize-sensor", { ref: "sensor", on: { resize: _vm._resize } }) - ], - 1 - ) + [_c("div", { ref: "content" }, [_vm._t("default")], 2)] + ) + ]) + ]) } var staticRenderFns = [] render._withStripped = true -// CONCATENATED MODULE: ./src/core/view/components/canvas/index.vue?vue&type=template&id=6ef05d9e& +// CONCATENATED MODULE: ./src/core/view/components/scroll-view/index.vue?vue&type=template&id=e9d562fc& -// EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/canvas/index.vue?vue&type=script&lang=js& -var canvasvue_type_script_lang_js_ = __webpack_require__(16); +// EXTERNAL MODULE: ./src/core/view/mixins/scroller/index.js + 2 modules +var scroller = __webpack_require__(47); -// CONCATENATED MODULE: ./src/core/view/components/canvas/index.vue?vue&type=script&lang=js& - /* harmony default export */ var components_canvasvue_type_script_lang_js_ = (canvasvue_type_script_lang_js_["a" /* default */]); -// EXTERNAL MODULE: ./src/core/view/components/canvas/index.vue?vue&type=style&index=0&lang=css& -var canvasvue_type_style_index_0_lang_css_ = __webpack_require__(68); +// EXTERNAL MODULE: ./src/shared/index.js + 4 modules +var shared = __webpack_require__(2); -// EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js -var componentNormalizer = __webpack_require__(0); +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/scroll-view/index.vue?vue&type=script&lang=js& +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// -// CONCATENATED MODULE: ./src/core/view/components/canvas/index.vue +var passiveOptions = shared["f" /* supportsPassive */] ? { + passive: true +} : false; +/* harmony default export */ var scroll_viewvue_type_script_lang_js_ = ({ + name: 'ScrollView', + mixins: [scroller["a" /* default */]], + props: { + scrollX: { + type: [Boolean, String], + default: false + }, + scrollY: { + type: [Boolean, String], + default: false + }, + 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: false + }, + enableBackToTop: { + type: [Boolean, String], + default: false + } + }, + data: function data() { + return { + lastScrollTop: this.scrollTopNumber, + lastScrollLeft: this.scrollLeftNumber, + lastScrollToUpperTime: 0, + lastScrollToLowerTime: 0 + }; + }, + computed: { + upperThresholdNumber: function upperThresholdNumber() { + var val = Number(this.upperThreshold); + return isNaN(val) ? 50 : val; + }, + lowerThresholdNumber: function lowerThresholdNumber() { + var val = Number(this.lowerThreshold); + return isNaN(val) ? 50 : val; + }, + scrollTopNumber: function scrollTopNumber() { + return Number(this.scrollTop) || 0; + }, + scrollLeftNumber: function scrollLeftNumber() { + return Number(this.scrollLeft) || 0; + } + }, + watch: { + scrollTopNumber: function scrollTopNumber(val) { + this._scrollTopChanged(val); + }, + scrollLeftNumber: function scrollLeftNumber(val) { + this._scrollLeftChanged(val); + }, + scrollIntoView: function scrollIntoView(val) { + this._scrollIntoViewChanged(val); + } + }, + mounted: function mounted() { + var self = this; + this._attached = true; + + this._scrollTopChanged(this.scrollTopNumber); + this._scrollLeftChanged(this.scrollLeftNumber); + this._scrollIntoViewChanged(this.scrollIntoView); + this.__handleScroll = function (e) { + event.preventDefault(); + event.stopPropagation(); + self._handleScroll.bind(self, event)(); + }; -/* normalize component */ + var touchStart = null; + var needStop = null; -var component = Object(componentNormalizer["a" /* default */])( - components_canvasvue_type_script_lang_js_, - render, - staticRenderFns, - false, - null, - null, - null - -) + this.__handleTouchMove = function (event) { + var x = event.touches[0].pageX; + var y = event.touches[0].pageY; + var main = self.$refs.main; -/* hot reload */ -if (false) { var api; } -component.options.__file = "src/core/view/components/canvas/index.vue" -/* harmony default export */ var canvas = __webpack_exports__["default"] = (component.exports); + if (needStop === null) { + if (Math.abs(x - touchStart.x) > Math.abs(y - touchStart.y)) { + // 横向滑动 + if (self.scrollX) { + if (main.scrollLeft === 0 && x > touchStart.x) { + needStop = false; + return; + } else if (main.scrollWidth === main.offsetWidth + main.scrollLeft && x < touchStart.x) { + needStop = false; + return; + } -/***/ }), -/* 113 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + needStop = true; + } else { + needStop = false; + } + } else { + // 纵向滑动 + if (self.scrollY) { + if (main.scrollTop === 0 && y > touchStart.y) { + needStop = false; + return; + } else if (main.scrollHeight === main.offsetHeight + main.scrollTop && y < touchStart.y) { + needStop = false; + return; + } -"use strict"; -__webpack_require__.r(__webpack_exports__); + needStop = true; + } else { + needStop = false; + } + } + } -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/movable-area/index.vue?vue&type=script&lang=js& -function calc(e) { - return Math.sqrt(e.x * e.x + e.y * e.y); -} + if (needStop) { + event.stopPropagation(); + } + }; -/* harmony default export */ var movable_areavue_type_script_lang_js_ = ({ - name: 'MovableArea', - props: { - scaleArea: { - type: Boolean, - default: false - } - }, - data: function data() { - return { - width: 0, - height: 0, - items: [] + this.__handleTouchStart = function (event) { + if (event.touches.length === 1) { + needStop = null; + touchStart = { + x: event.touches[0].pageX, + y: event.touches[0].pageY + }; + } }; + + this.$refs.main.addEventListener('touchstart', this.__handleTouchStart, passiveOptions); + this.$refs.main.addEventListener('touchmove', this.__handleTouchMove, passiveOptions); + this.$refs.main.addEventListener('scroll', this.__handleScroll, shared["f" /* supportsPassive */] ? { + passive: false + } : false); }, - created: function created() { - this.gapV = { - x: null, - y: null - }; - this.pinchStartLen = null; + activated: function activated() { + // 还原 scroll-view 滚动位置 + this.scrollY && (this.$refs.main.scrollTop = this.lastScrollTop); + this.scrollX && (this.$refs.main.scrollLeft = this.lastScrollLeft); }, - mounted: function mounted() { - this._resize(); + beforeDestroy: function beforeDestroy() { + this.$refs.main.removeEventListener('touchstart', this.__handleTouchStart, passiveOptions); + this.$refs.main.removeEventListener('touchmove', this.__handleTouchMove, passiveOptions); + this.$refs.main.removeEventListener('scroll', this.__handleScroll, shared["f" /* supportsPassive */] ? { + passive: false + } : false); }, methods: { - _resize: function _resize() { - this._getWH(); - - this.items.forEach(function (item, index) { - item.componentInstance.setParent(); - }); - }, - _find: function _find(target) { - var items = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.items; - var root = this.$el; + scrollTo: function scrollTo(t, n) { + var i = this.$refs.main; + t < 0 ? t = 0 : n === 'x' && t > i.scrollWidth - i.offsetWidth ? t = i.scrollWidth - i.offsetWidth : n === 'y' && t > i.scrollHeight - i.offsetHeight && (t = i.scrollHeight - i.offsetHeight); + var r = 0; + var o = ''; + n === 'x' ? r = i.scrollLeft - t : n === 'y' && (r = i.scrollTop - t); - function get(node) { - for (var i = 0; i < items.length; i++) { - var item = items[i]; + if (r !== 0) { + this.$refs.content.style.transition = 'transform .3s ease-out'; + this.$refs.content.style.webkitTransition = '-webkit-transform .3s ease-out'; - if (node === item.componentInstance.$el) { - return item; - } + if (n === 'x') { + o = 'translateX(' + r + 'px) translateZ(0)'; + } else { + n === 'y' && (o = 'translateY(' + r + 'px) translateZ(0)'); } - if (node === root || node === document.body || node === document) { - return null; + this.$refs.content.removeEventListener('transitionend', this.__transitionEnd); + this.$refs.content.removeEventListener('webkitTransitionEnd', this.__transitionEnd); + this.__transitionEnd = this._transitionEnd.bind(this, t, n); + this.$refs.content.addEventListener('transitionend', this.__transitionEnd); + this.$refs.content.addEventListener('webkitTransitionEnd', this.__transitionEnd); + + if (n === 'x') { + // if (e !== 'ios') { + i.style.overflowX = 'hidden'; // } + } else if (n === 'y') { + i.style.overflowY = 'hidden'; } - return get(node.parentNode); + this.$refs.content.style.transform = o; + this.$refs.content.style.webkitTransform = o; } - - return get(target); }, - _touchstart: function _touchstart(t) { - var i = t.touches; - - if (i) { - if (i.length > 1) { - var r = { - x: i[1].pageX - i[0].pageX, - y: i[1].pageY - i[0].pageY - }; - this.pinchStartLen = calc(r); - this.gapV = r; + _handleTrack: function _handleTrack($event) { + if ($event.detail.state === 'start') { + this._x = $event.detail.x; + this._y = $event.detail.y; + this._noBubble = null; + return; + } - if (!this.scaleArea) { - var touch0 = this._find(i[0].target); + if ($event.detail.state === 'end') { + this._noBubble = false; + } - var touch1 = this._find(i[1].target); + if (this._noBubble === null && this.scrollY) { + if (Math.abs(this._y - $event.detail.y) / Math.abs(this._x - $event.detail.x) > 1) { + this._noBubble = true; + } else { + this._noBubble = false; + } + } - this._scaleMovableView = touch0 && touch0 === touch1 ? touch0 : null; - } + if (this._noBubble === null && this.scrollX) { + if (Math.abs(this._x - $event.detail.x) / Math.abs(this._y - $event.detail.y) > 1) { + this._noBubble = true; + } else { + this._noBubble = false; } } - }, - _touchmove: function _touchmove(t) { - var n = t.touches; - if (n) { - if (n.length > 1) { - t.preventDefault(); - var i = { - x: n[1].pageX - n[0].pageX, - y: n[1].pageY - n[0].pageY - }; + this._x = $event.detail.x; + this._y = $event.detail.y; - if (this.gapV.x !== null && this.pinchStartLen > 0) { - var r = calc(i) / this.pinchStartLen; + if (this._noBubble) { + $event.stopPropagation(); + } + }, + _handleScroll: function _handleScroll($event) { + if (!($event.timeStamp - this._lastScrollTime < 20)) { + this._lastScrollTime = $event.timeStamp; + var target = $event.target; + this.$trigger('scroll', $event, { + scrollLeft: target.scrollLeft, + scrollTop: target.scrollTop, + scrollHeight: target.scrollHeight, + scrollWidth: target.scrollWidth, + deltaX: this.lastScrollLeft - target.scrollLeft, + deltaY: this.lastScrollTop - target.scrollTop + }); - this._updateScale(r); + if (this.scrollY) { + if (target.scrollTop <= this.upperThresholdNumber && this.lastScrollTop - target.scrollTop > 0 && $event.timeStamp - this.lastScrollToUpperTime > 200) { + this.$trigger('scrolltoupper', $event, { + direction: 'top' + }); + this.lastScrollToUpperTime = $event.timeStamp; } - this.gapV = i; + if (target.scrollTop + target.offsetHeight + this.lowerThresholdNumber >= target.scrollHeight && this.lastScrollTop - target.scrollTop < 0 && $event.timeStamp - this.lastScrollToLowerTime > 200) { + this.$trigger('scrolltolower', $event, { + direction: 'bottom' + }); + this.lastScrollToLowerTime = $event.timeStamp; + } } - } - }, - _touchend: function _touchend(e) { - var t = e.touches; - if (!(t && t.length)) { - if (e.changedTouches) { - this.gapV.x = 0; - this.gapV.y = 0; - this.pinchStartLen = null; + if (this.scrollX) { + if (target.scrollLeft <= this.upperThresholdNumber && this.lastScrollLeft - target.scrollLeft > 0 && $event.timeStamp - this.lastScrollToUpperTime > 200) { + this.$trigger('scrolltoupper', $event, { + direction: 'left' + }); + this.lastScrollToUpperTime = $event.timeStamp; + } - if (this.scaleArea) { - this.items.forEach(function (item) { - item.componentInstance._endScale(); + if (target.scrollLeft + target.offsetWidth + this.lowerThresholdNumber >= target.scrollWidth && this.lastScrollLeft - target.scrollLeft < 0 && $event.timeStamp - this.lastScrollToLowerTime > 200) { + this.$trigger('scrolltolower', $event, { + direction: 'right' }); + this.lastScrollToLowerTime = $event.timeStamp; + } + } + + this.lastScrollTop = target.scrollTop; + this.lastScrollLeft = target.scrollLeft; + } + }, + _scrollTopChanged: function _scrollTopChanged(val) { + if (this.scrollY) { + if (this._innerSetScrollTop) { + this._innerSetScrollTop = false; + } else { + if (this.scrollWithAnimation) { + this.scrollTo(val, 'y'); } else { - if (this._scaleMovableView) { - this._scaleMovableView.componentInstance._endScale(); - } + this.$refs.main.scrollTop = val; } } } }, - _updateScale: function _updateScale(e) { - if (e && e !== 1) { - if (this.scaleArea) { - this.items.forEach(function (item) { - item.componentInstance._setScale(e); - }); + _scrollLeftChanged: function _scrollLeftChanged(val) { + if (this.scrollX) { + if (this._innerSetScrollLeft) { + this._innerSetScrollLeft = false; } else { - if (this._scaleMovableView) { - this._scaleMovableView.componentInstance._setScale(e); + if (this.scrollWithAnimation) { + this.scrollTo(val, 'x'); + } else { + this.$refs.main.scrollLeft = val; } } } }, - _getWH: function _getWH() { - var style = window.getComputedStyle(this.$el); - var rect = this.$el.getBoundingClientRect(); - this.width = rect.width - ['Left', 'Right'].reduce(function (all, item) { - return all + parseFloat(style['border' + item + 'Width']) + parseFloat(style['padding' + item]); - }, 0); - this.height = rect.height - ['Top', 'Bottom'].reduce(function (all, item) { - return all + parseFloat(style['border' + item + 'Width']) + parseFloat(style['padding' + item]); - }, 0); - } - }, - render: function render(createElement) { - var _this = this; + _scrollIntoViewChanged: function _scrollIntoViewChanged(val) { + if (val) { + if (!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(val)) { + console.group('scroll-into-view="' + val + '" 有误'); + console.error('id 属性值格式错误。如不能以数字开头。'); + console.groupEnd(); + return; + } - var items = []; + var element = this.$el.querySelector('#' + val); - if (this.$slots.default) { - this.$slots.default.forEach(function (vnode) { - if (vnode.componentOptions && vnode.componentOptions.tag === 'v-uni-movable-view') { - items.push(vnode); - } - }); - } + if (element) { + var mainRect = this.$refs.main.getBoundingClientRect(); + var elRect = element.getBoundingClientRect(); - this.items = items; - var $listeners = Object.assign({}, this.$listeners); - var events = ['touchstart', 'touchmove', 'touchend']; - events.forEach(function (event) { - var existing = $listeners[event]; + if (this.scrollX) { + var left = elRect.left - mainRect.left; + var scrollLeft = this.$refs.main.scrollLeft; + var x = scrollLeft + left; - var ours = _this["_".concat(event)]; + if (this.scrollWithAnimation) { + this.scrollTo(x, 'x'); + } else { + this.$refs.main.scrollLeft = x; + } + } - $listeners[event] = existing ? [].concat(existing, ours) : ours; - }); - return createElement('uni-movable-area', { - on: $listeners - }, [createElement('v-uni-resize-sensor', { - on: { - resize: this._resize + if (this.scrollY) { + var top = elRect.top - mainRect.top; + var scrollTop = this.$refs.main.scrollTop; + var y = scrollTop + top; + + if (this.scrollWithAnimation) { + this.scrollTo(y, 'y'); + } else { + this.$refs.main.scrollTop = y; + } + } + } } - })].concat(items)); + }, + _transitionEnd: function _transitionEnd(val, type) { + this.$refs.content.style.transition = ''; + this.$refs.content.style.webkitTransition = ''; + this.$refs.content.style.transform = ''; + this.$refs.content.style.webkitTransform = ''; + var main = this.$refs.main; + + if (type === 'x') { + main.style.overflowX = this.scrollX ? 'auto' : 'hidden'; + main.scrollLeft = val; + } else if (type === 'y') { + main.style.overflowY = this.scrollY ? 'auto' : 'hidden'; + main.scrollTop = val; + } + + this.$refs.content.removeEventListener('transitionend', this.__transitionEnd); + this.$refs.content.removeEventListener('webkitTransitionEnd', this.__transitionEnd); + }, + getScrollPosition: function getScrollPosition() { + var main = this.$refs.main; + return { + scrollLeft: main.scrollLeft, + scrollTop: main.scrollTop + }; + } } }); -// CONCATENATED MODULE: ./src/core/view/components/movable-area/index.vue?vue&type=script&lang=js& - /* harmony default export */ var components_movable_areavue_type_script_lang_js_ = (movable_areavue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/core/view/components/movable-area/index.vue?vue&type=style&index=0&lang=css& -var movable_areavue_type_style_index_0_lang_css_ = __webpack_require__(74); +// CONCATENATED MODULE: ./src/core/view/components/scroll-view/index.vue?vue&type=script&lang=js& + /* harmony default export */ var components_scroll_viewvue_type_script_lang_js_ = (scroll_viewvue_type_script_lang_js_); +// EXTERNAL MODULE: ./src/core/view/components/scroll-view/index.vue?vue&type=style&index=0&lang=css& +var scroll_viewvue_type_style_index_0_lang_css_ = __webpack_require__(84); // EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(0); -// CONCATENATED MODULE: ./src/core/view/components/movable-area/index.vue -var render, staticRenderFns +// CONCATENATED MODULE: ./src/core/view/components/scroll-view/index.vue + @@ -20417,7 +20101,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(componentNormalizer["a" /* default */])( - components_movable_areavue_type_script_lang_js_, + components_scroll_viewvue_type_script_lang_js_, render, staticRenderFns, false, @@ -20429,147 +20113,130 @@ var component = Object(componentNormalizer["a" /* default */])( /* hot reload */ if (false) { var api; } -component.options.__file = "src/core/view/components/movable-area/index.vue" -/* harmony default export */ var movable_area = __webpack_exports__["default"] = (component.exports); +component.options.__file = "src/core/view/components/scroll-view/index.vue" +/* harmony default export */ var scroll_view = __webpack_exports__["default"] = (component.exports); /***/ }), -/* 114 */ +/* 112 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -// EXTERNAL MODULE: ./src/core/view/mixins/index.js + 1 modules -var mixins = __webpack_require__(1); +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26557f38-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/label/index.vue?vue&type=template&id=04b5b291& +var render = function() { + var _vm = this + var _h = _vm.$createElement + var _c = _vm._self._c || _h + return _c( + "uni-label", + _vm._g({ on: { click: _vm._onClick } }, _vm.$listeners), + [_vm._t("default")], + 2 + ) +} +var staticRenderFns = [] +render._withStripped = true -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/button/index.vue?vue&type=script&lang=js& -/* harmony default export */ var buttonvue_type_script_lang_js_ = ({ - name: 'Button', - mixins: [mixins["b" /* hover */], mixins["a" /* emitter */], mixins["c" /* listeners */]], - props: { - hoverClass: { - type: String, - default: 'button-hover' - }, - disabled: { - type: [Boolean, String], - default: false - }, - id: { - type: String, - default: '' - }, - hoverStopPropagation: { - type: Boolean, - default: false - }, - hoverStartTime: { - type: Number, - default: 20 - }, - hoverStayTime: { - type: Number, - default: 70 - }, - formType: { - type: String, - default: '', - validator: function validator(value) { - // 只有这几个可取值,其它都是非法的。 - return ~['', 'submit', 'reset'].indexOf(value); - } - } - }, - data: function data() { - return { - clickFunction: null - }; - }, - methods: { - _onClick: function _onClick($event, isLabelClick) { - if (this.disabled) { - return; - } +// CONCATENATED MODULE: ./src/core/view/components/label/index.vue?vue&type=template&id=04b5b291& - if (isLabelClick) { - this.$el.click(); - } // TODO 通知父表单执行相应的行为 +// EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/label/index.vue?vue&type=script&lang=js& +var labelvue_type_script_lang_js_ = __webpack_require__(23); +// CONCATENATED MODULE: ./src/core/view/components/label/index.vue?vue&type=script&lang=js& + /* harmony default export */ var components_labelvue_type_script_lang_js_ = (labelvue_type_script_lang_js_["a" /* default */]); +// EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js +var componentNormalizer = __webpack_require__(0); - if (this.formType) { - this.$dispatch('Form', this.formType === 'submit' ? 'uni-form-submit' : 'uni-form-reset', { - type: this.formType - }); - } - }, - _bindObjectListeners: function _bindObjectListeners(data, value) { - if (value) { - for (var key in value) { - var existing = data.on[key]; - var ours = value[key]; - data.on[key] = existing ? [].concat(existing, ours) : ours; - } - } +// CONCATENATED MODULE: ./src/core/view/components/label/index.vue - return data; - } - }, - render: function render(createElement) { - var _this = this; - var $listeners = Object.create(null); - if (this.$listeners) { - Object.keys(this.$listeners).forEach(function (e) { - if (_this.disabled && (e === 'click' || e === 'tap')) { - return; - } - $listeners[e] = _this.$listeners[e]; - }); - } - if (this.hoverClass && this.hoverClass !== 'none') { - return createElement('uni-button', this._bindObjectListeners({ - class: [this.hovering ? this.hoverClass : ''], +/* normalize component */ + +var component = Object(componentNormalizer["a" /* default */])( + components_labelvue_type_script_lang_js_, + render, + staticRenderFns, + false, + null, + null, + null + +) + +/* hot reload */ +if (false) { var api; } +component.options.__file = "src/core/view/components/label/index.vue" +/* harmony default export */ var label = __webpack_exports__["default"] = (component.exports); + +/***/ }), +/* 113 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26557f38-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/canvas/index.vue?vue&type=template&id=6ef05d9e& +var render = function() { + var _vm = this + var _h = _vm.$createElement + var _c = _vm._self._c || _h + return _c( + "uni-canvas", + _vm._g( + { attrs: { - 'disabled': this.disabled - }, - on: { - touchstart: this._hoverTouchStart, - touchend: this._hoverTouchEnd, - touchcancel: this._hoverTouchCancel, - click: this._onClick + "canvas-id": _vm.canvasId, + "disable-scroll": _vm.disableScroll } - }, $listeners), this.$slots.default); - } else { - return createElement('uni-button', this._bindObjectListeners({ - class: [this.hovering ? this.hoverClass : ''], - attrs: { - 'disabled': this.disabled + }, + _vm._listeners + ), + [ + _c("canvas", { ref: "canvas", attrs: { width: "300", height: "150" } }), + _c( + "div", + { + staticStyle: { + position: "absolute", + top: "0", + left: "0", + width: "100%", + height: "100%", + overflow: "hidden" + } }, - on: { - click: this._onClick - } - }, $listeners), this.$slots.default); - } - }, - listeners: { - 'label-click': '_onClick', - '@label-click': '_onClick' - } -}); -// CONCATENATED MODULE: ./src/core/view/components/button/index.vue?vue&type=script&lang=js& - /* harmony default export */ var components_buttonvue_type_script_lang_js_ = (buttonvue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/core/view/components/button/index.vue?vue&type=style&index=0&lang=css& -var buttonvue_type_style_index_0_lang_css_ = __webpack_require__(67); + [_vm._t("default")], + 2 + ), + _c("v-uni-resize-sensor", { ref: "sensor", on: { resize: _vm._resize } }) + ], + 1 + ) +} +var staticRenderFns = [] +render._withStripped = true + + +// CONCATENATED MODULE: ./src/core/view/components/canvas/index.vue?vue&type=template&id=6ef05d9e& + +// EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/canvas/index.vue?vue&type=script&lang=js& +var canvasvue_type_script_lang_js_ = __webpack_require__(16); + +// CONCATENATED MODULE: ./src/core/view/components/canvas/index.vue?vue&type=script&lang=js& + /* harmony default export */ var components_canvasvue_type_script_lang_js_ = (canvasvue_type_script_lang_js_["a" /* default */]); +// EXTERNAL MODULE: ./src/core/view/components/canvas/index.vue?vue&type=style&index=0&lang=css& +var canvasvue_type_style_index_0_lang_css_ = __webpack_require__(69); // EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(0); -// CONCATENATED MODULE: ./src/core/view/components/button/index.vue -var render, staticRenderFns +// CONCATENATED MODULE: ./src/core/view/components/canvas/index.vue + @@ -20578,7 +20245,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(componentNormalizer["a" /* default */])( - components_buttonvue_type_script_lang_js_, + components_canvasvue_type_script_lang_js_, render, staticRenderFns, false, @@ -20590,11 +20257,11 @@ var component = Object(componentNormalizer["a" /* default */])( /* hot reload */ if (false) { var api; } -component.options.__file = "src/core/view/components/button/index.vue" -/* harmony default export */ var components_button = __webpack_exports__["default"] = (component.exports); +component.options.__file = "src/core/view/components/canvas/index.vue" +/* harmony default export */ var canvas = __webpack_exports__["default"] = (component.exports); /***/ }), -/* 115 */ +/* 114 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -20765,579 +20432,960 @@ var touchtrack = __webpack_require__(8); mounted: function mounted() { var _this = this; - this._currentCheck(); + this._currentCheck(); + + this.touchtrack(this.$refs.slidesWrapper, '_handleContentTrack', true); + + this._resetLayout(); + + this.$watch(function () { + return _this.autoplay && !_this.userTracking; + }, this._inintAutoplay); + + this._inintAutoplay(this.autoplay && !this.userTracking); + + this.$watch('items.length', this._resetLayout); + }, + beforeDestroy: function beforeDestroy() { + this._cancelSchedule(); + }, + methods: { + _inintAutoplay: function _inintAutoplay(enable) { + if (enable) { + this._scheduleAutoplay(); + } else { + this._cancelSchedule(); + } + }, + + /** + * 页面变更检查和同步 + */ + _currentCheck: function _currentCheck() { + var current = -1; + + if (this.currentItemId) { + for (var i = 0, items = this.items; i < items.length; i++) { + var componentInstance = items[i].componentInstance; + + if (componentInstance && componentInstance.itemId === this.currentItemId) { + current = i; + break; + } + } + } + + if (current < 0) { + current = Math.round(this.current) || 0; + } + + current = current < 0 ? 0 : current; + + if (this.currentSync !== current) { + this.currentChangeSource = ''; + this.currentSync = current; + } + }, + _itemReady: function _itemReady(vnode, callback) { + if (vnode.componentInstance && vnode.componentInstance._isMounted) { + callback(); + } else { + vnode._callbacks = vnode._callbacks || []; + + vnode._callbacks.push(callback); + } + }, + + /** + * 当前页面变更 + */ + _currentChanged: function _currentChanged(current) { + var _this2 = this; + + var source = this.currentChangeSource; + this.currentChangeSource = ''; + + if (!source) { + this._animateViewport(current, '', 0); + } + + var item = this.items[current]; + + if (item) { + this._itemReady(item, function () { + var currentItemId = _this2.currentItemIdSync = item.componentInstance.itemId || ''; + + _this2.$trigger('change', {}, { + current: _this2.currentSync, + currentItemId: currentItemId, + source: source + }); + }); + } + }, + + /** + * 自动播放 + */ + _scheduleAutoplay: function _scheduleAutoplay() { + var self = this; + + this._cancelSchedule(); + + function timer() { + self._timer = null; + self.currentChangeSource = 'autoplay'; + + if (self.circularEnabled) { + self.currentSync = self._normalizeCurrentValue(self.currentSync + 1); + } else { + self.currentSync = self.currentSync + self.displayMultipleItemsNumber < self.items.length ? self.currentSync + 1 : 0; + } + + self._animateViewport(self.currentSync, 'autoplay', self.circularEnabled ? 1 : 0); + + self._timer = setTimeout(timer, self.intervalNumber); + } + + if (!(!this._isMounted || this._invalid || this.items.length <= this.displayMultipleItemsNumber)) { + this._timer = setTimeout(timer, this.intervalNumber); + } + }, + + /** + * 清除定时器 + */ + _cancelSchedule: function _cancelSchedule() { + if (this._timer) { + clearTimeout(this._timer); + this._timer = null; + } + }, + + /** + * 检查当前页值 + */ + _normalizeCurrentValue: function _normalizeCurrentValue(current) { + var length = this.items.length; + + if (!length) { + return -1; + } + + var index = (Math.round(current) % length + length) % length; + + if (this.circularEnabled) { + if (length <= this.displayMultipleItemsNumber) { + return 0; + } + } else if (index > length - this.displayMultipleItemsNumber) { + return length - this.displayMultipleItemsNumber; + } + + return index; + }, + _upx2px: function _upx2px(val) { + if (/\d+[ur]px$/i.test(val)) { + val.replace(/\d+[ur]px$/i, function (text) { + return "".concat(uni.upx2px(parseFloat(text)), "px"); + }); + } + + return val || ''; + }, + + /** + * 重新布局 + */ + _resetLayout: function _resetLayout() { + if (this._isMounted) { + this._cancelSchedule(); + + this._endViewportAnimation(); - this.touchtrack(this.$refs.slidesWrapper, '_handleContentTrack', true); + var items = this.items; - this._resetLayout(); + for (var i = 0; i < items.length; i++) { + this._updateItemPos(i, i); + } - this.$watch(function () { - return _this.autoplay && !_this.userTracking; - }, this._inintAutoplay); + this._viewportMoveRatio = 1; - this._inintAutoplay(this.autoplay && !this.userTracking); + if (this.displayMultipleItemsNumber === 1 && items.length) { + var itemRect = items[0].componentInstance.$el.getBoundingClientRect(); + var slideFrameRect = this.$refs.slideFrame.getBoundingClientRect(); + this._viewportMoveRatio = itemRect.width / slideFrameRect.width; - this.$watch('items.length', this._resetLayout); - }, - beforeDestroy: function beforeDestroy() { - this._cancelSchedule(); - }, - methods: { - _inintAutoplay: function _inintAutoplay(enable) { - if (enable) { - this._scheduleAutoplay(); - } else { - this._cancelSchedule(); - } - }, + if (!(this._viewportMoveRatio > 0 && this._viewportMoveRatio < 1)) { + this._viewportMoveRatio = 1; + } + } - /** - * 页面变更检查和同步 - */ - _currentCheck: function _currentCheck() { - var current = -1; + var position = this._viewportPosition; + this._viewportPosition = -2; + var current = this.currentSync; - if (this.currentItemId) { - for (var i = 0, items = this.items; i < items.length; i++) { - var componentInstance = items[i].componentInstance; + if (current >= 0) { + this._invalid = false; - if (componentInstance && componentInstance.itemId === this.currentItemId) { - current = i; - break; + if (this.userTracking) { + this._updateViewport(position + current - this._contentTrackViewport); + + this._contentTrackViewport = current; + } else { + this._updateViewport(current); + + if (this.autoplay) { + this._scheduleAutoplay(); + } + } + } else { + this._invalid = true; + + this._updateViewport(-this.displayMultipleItemsNumber - 1); + } + } + }, + _checkCircularLayout: function _checkCircularLayout(e) { + if (!this._invalid) { + for (var items = this.items, n = items.length, i = e + this.displayMultipleItemsNumber, r = 0; r < n; r++) { + var item = items[r]; + var _position = item._position; + var s = Math.floor(e / n) * n + r; + var l = s + n; + var c = s - n; + var u = Math.max(e - (s + 1), s - i, 0); + var d = Math.max(e - (l + 1), l - i, 0); + var h = Math.max(e - (c + 1), c - i, 0); + var p = Math.min(u, d, h); + var f = [s, l, c][[u, d, h].indexOf(p)]; + + if (_position !== f) { + this._updateItemPos(r, f); } } } + }, + _updateItemPos: function _updateItemPos(current, position) { + var x = this.vertical ? '0' : 100 * position + '%'; + var y = this.vertical ? 100 * position + '%' : '0'; + var transform = 'translate(' + x + ', ' + y + ') translateZ(0)'; + var item = this.items[current]; - if (current < 0) { - current = Math.round(this.current) || 0; + this._itemReady(item, function () { + var el = item.componentInstance.$el; + el.style['-webkit-transform'] = transform; + el.style.transform = transform; + el._position = position; + }); + }, + _updateViewport: function _updateViewport(index) { + if (!(Math.floor(2 * this._viewportPosition) === Math.floor(2 * index) && Math.ceil(2 * this._viewportPosition) === Math.ceil(2 * index))) { + if (this.circularEnabled) { + this._checkCircularLayout(index); + } } - current = current < 0 ? 0 : current; + var x = this.vertical ? '0' : 100 * -index * this._viewportMoveRatio + '%'; + var y = this.vertical ? 100 * -index * this._viewportMoveRatio + '%' : '0'; + var transform = 'translate(' + x + ', ' + y + ') translateZ(0)'; + var slideFrame = this.$refs.slideFrame; - if (this.currentSync !== current) { - this.currentChangeSource = ''; - this.currentSync = current; + if (slideFrame) { + slideFrame.style['-webkit-transform'] = transform; + slideFrame.style.transform = transform; } - }, - _itemReady: function _itemReady(vnode, callback) { - if (vnode.componentInstance && vnode.componentInstance._isMounted) { - callback(); - } else { - vnode._callbacks = vnode._callbacks || []; - vnode._callbacks.push(callback); + this._viewportPosition = index; + + if (!this._transitionStart) { + if (index % 1 === 0) { + return; + } + + this._transitionStart = index; } - }, - /** - * 当前页面变更 - */ - _currentChanged: function _currentChanged(current) { - var _this2 = this; + index -= Math.floor(this._transitionStart); - var source = this.currentChangeSource; - this.currentChangeSource = ''; + if (index <= -(this.items.length - 1)) { + index += this.items.length; + } else if (index >= this.items.length) { + index -= this.items.length; + } - if (!source) { - this._animateViewport(current, '', 0); + index = this._transitionStart % 1 > 0.5 || this._transitionStart < 0 ? index - 1 : index; + this.$trigger('transition', {}, { + dx: this.vertical ? 0 : index * slideFrame.offsetWidth, + dy: this.vertical ? index * slideFrame.offsetHeight : 0 + }); + }, + _animateFrameFuncProto: function _animateFrameFuncProto() { + var _this3 = this; + + if (!this._animating) { + this._requestedAnimation = false; + return; } - var item = this.items[current]; + var _animating = this._animating; + var toPos = _animating.toPos; + var acc = _animating.acc; + var endTime = _animating.endTime; + var source = _animating.source; + var time = endTime - Date.now(); - if (item) { - this._itemReady(item, function () { - var currentItemId = _this2.currentItemIdSync = item.componentInstance.itemId || ''; + if (time <= 0) { + this._updateViewport(toPos); - _this2.$trigger('change', {}, { - current: _this2.currentSync, - currentItemId: currentItemId, - source: source + this._animating = null; + this._requestedAnimation = false; + this._transitionStart = null; + var item = this.items[this.currentSync]; + + if (item) { + this._itemReady(item, function () { + var currentItemId = item.componentInstance.itemId || ''; + + _this3.$trigger('animationfinish', {}, { + current: _this3.currentSync, + currentItemId: currentItemId, + source: source + }); }); - }); + } + + return; } + + var s = acc * time * time / 2; + var l = toPos + s; + + this._updateViewport(l); + + requestAnimationFrame(this._animateFrameFuncProto.bind(this)); }, + _animateViewport: function _animateViewport(current, source, n) { + this._cancelViewportAnimation(); - /** - * 自动播放 - */ - _scheduleAutoplay: function _scheduleAutoplay() { - var self = this; + var duration = this.durationNumber; + var length = this.items.length; + var position = this._viewportPosition; - this._cancelSchedule(); + if (this.circularEnabled) { + if (n < 0) { + for (; position < current;) { + position += length; + } - function timer() { - self._timer = null; - self.currentChangeSource = 'autoplay'; + for (; position - length > current;) { + position -= length; + } + } else if (n > 0) { + for (; position > current;) { + position -= length; + } - if (self.circularEnabled) { - self.currentSync = self._normalizeCurrentValue(self.currentSync + 1); + for (; position + length < current;) { + position += length; + } } else { - self.currentSync = self.currentSync + self.displayMultipleItemsNumber < self.items.length ? self.currentSync + 1 : 0; - } + for (; position + length < current;) { + position += length; + } - self._animateViewport(self.currentSync, 'autoplay', self.circularEnabled ? 1 : 0); + for (; position - length > current;) { + position -= length; + } - self._timer = setTimeout(timer, self.intervalNumber); + if (position + length - current < current - position) { + position += length; + } + } } - if (!(!this._isMounted || this._invalid || this.items.length <= this.displayMultipleItemsNumber)) { - this._timer = setTimeout(timer, this.intervalNumber); + this._animating = { + toPos: current, + acc: 2 * (position - current) / (duration * duration), + endTime: Date.now() + duration, + source: source + }; + + if (!this._requestedAnimation) { + this._requestedAnimation = true; + requestAnimationFrame(this._animateFrameFuncProto.bind(this)); } }, + _cancelViewportAnimation: function _cancelViewportAnimation() { + this._animating = null; + }, /** - * 清除定时器 + * 结束动画 */ - _cancelSchedule: function _cancelSchedule() { - if (this._timer) { - clearTimeout(this._timer); - this._timer = null; + _endViewportAnimation: function _endViewportAnimation() { + if (this._animating) { + this._updateViewport(this._animating.toPos); + + this._animating = null; } }, + _handleTrackStart: function _handleTrackStart() { + this._cancelSchedule(); - /** - * 检查当前页值 - */ - _normalizeCurrentValue: function _normalizeCurrentValue(current) { + this._contentTrackViewport = this._viewportPosition; + this._contentTrackSpeed = 0; + this._contentTrackT = Date.now(); + + this._cancelViewportAnimation(); + }, + _handleTrackMove: function _handleTrackMove(data) { + var self = this; + var contentTrackT = this._contentTrackT; + this._contentTrackT = Date.now(); var length = this.items.length; + var other = length - this.displayMultipleItemsNumber; - if (!length) { - return -1; + function calc(val) { + return 0.5 - 0.25 / (val + 0.5); } - var index = (Math.round(current) % length + length) % length; + function move(oldVal, newVal) { + var val = self._contentTrackViewport + oldVal; + self._contentTrackSpeed = 0.6 * self._contentTrackSpeed + 0.4 * newVal; - if (this.circularEnabled) { - if (length <= this.displayMultipleItemsNumber) { - return 0; + if (!self.circularEnabled) { + if (val < 0 || val > other) { + if (val < 0) { + val = -calc(-val); + } else { + if (val > other) { + val = other + calc(val - other); + } + } + + self._contentTrackSpeed = 0; + } } - } else if (index > length - this.displayMultipleItemsNumber) { - return length - this.displayMultipleItemsNumber; - } - return index; - }, - _upx2px: function _upx2px(val) { - if (/\d+[ur]px$/i.test(val)) { - val.replace(/\d+[ur]px$/i, function (text) { - return "".concat(uni.upx2px(parseFloat(text)), "px"); - }); + self._updateViewport(val); } - return val || ''; - }, + var time = this._contentTrackT - contentTrackT || 1; - /** - * 重新布局 - */ - _resetLayout: function _resetLayout() { - if (this._isMounted) { - this._cancelSchedule(); + if (this.vertical) { + move(-data.dy / this.$refs.slideFrame.offsetHeight, -data.ddy / time); + } else { + move(-data.dx / this.$refs.slideFrame.offsetWidth, -data.ddx / time); + } + }, + _handleTrackEnd: function _handleTrackEnd(isCancel) { + this.userTracking = false; + var t = this._contentTrackSpeed / Math.abs(this._contentTrackSpeed); + var n = 0; - this._endViewportAnimation(); + if (!isCancel && Math.abs(this._contentTrackSpeed) > 0.2) { + n = 0.5 * t; + } - var items = this.items; + var current = this._normalizeCurrentValue(this._viewportPosition + n); - for (var i = 0; i < items.length; i++) { - this._updateItemPos(i, i); - } + if (isCancel) { + this._updateViewport(this._contentTrackViewport); + } else { + this.currentChangeSource = 'touch'; + this.currentSync = current; - this._viewportMoveRatio = 1; + this._animateViewport(current, 'touch', n !== 0 ? n : current === 0 && this.circularEnabled && this._viewportPosition >= 1 ? 1 : 0); + } + }, + _handleContentTrack: function _handleContentTrack(e) { + if (!this._invalid) { + if (e.detail.state === 'start') { + this.userTracking = true; + this._userDirectionChecked = false; + return this._handleTrackStart(); + } // fixed by xxxxxx - if (this.displayMultipleItemsNumber === 1 && items.length) { - var itemRect = items[0].componentInstance.$el.getBoundingClientRect(); - var slideFrameRect = this.$refs.slideFrame.getBoundingClientRect(); - this._viewportMoveRatio = itemRect.width / slideFrameRect.width; - if (!(this._viewportMoveRatio > 0 && this._viewportMoveRatio < 1)) { - this._viewportMoveRatio = 1; - } + if (e.detail.state === 'end') { + return this._handleTrackEnd(false); } - var position = this._viewportPosition; - this._viewportPosition = -2; - var current = this.currentSync; + if (e.detail.state === 'cancel') { + return this._handleTrackEnd(true); + } - if (current >= 0) { - this._invalid = false; + if (this.userTracking) { + if (!this._userDirectionChecked) { + this._userDirectionChecked = true; + var t = Math.abs(e.detail.dx); + var n = Math.abs(e.detail.dy); - if (this.userTracking) { - this._updateViewport(position + current - this._contentTrackViewport); + if (t >= n && this.vertical) { + this.userTracking = false; + } else { + if (t <= n && !this.vertical) { + this.userTracking = false; + } + } - this._contentTrackViewport = current; - } else { - this._updateViewport(current); + if (!this.userTracking) { + if (this.autoplay) { + this._scheduleAutoplay(); + } - if (this.autoplay) { - this._scheduleAutoplay(); + return; } } - } else { - this._invalid = true; - this._updateViewport(-this.displayMultipleItemsNumber - 1); - } - } - }, - _checkCircularLayout: function _checkCircularLayout(e) { - if (!this._invalid) { - for (var items = this.items, n = items.length, i = e + this.displayMultipleItemsNumber, r = 0; r < n; r++) { - var item = items[r]; - var _position = item._position; - var s = Math.floor(e / n) * n + r; - var l = s + n; - var c = s - n; - var u = Math.max(e - (s + 1), s - i, 0); - var d = Math.max(e - (l + 1), l - i, 0); - var h = Math.max(e - (c + 1), c - i, 0); - var p = Math.min(u, d, h); - var f = [s, l, c][[u, d, h].indexOf(p)]; + this._handleTrackMove(e.detail); - if (_position !== f) { - this._updateItemPos(r, f); - } + return false; } } - }, - _updateItemPos: function _updateItemPos(current, position) { - var x = this.vertical ? '0' : 100 * position + '%'; - var y = this.vertical ? 100 * position + '%' : '0'; - var transform = 'translate(' + x + ', ' + y + ') translateZ(0)'; - var item = this.items[current]; + } + }, + render: function render(createElement) { + var slidesDots = []; + var swiperItems = []; - this._itemReady(item, function () { - var el = item.componentInstance.$el; - el.style['-webkit-transform'] = transform; - el.style.transform = transform; - el._position = position; + if (this.$slots.default) { + this.$slots.default.forEach(function (vnode) { + if (vnode.componentOptions && vnode.componentOptions.tag === 'v-uni-swiper-item') { + swiperItems.push(vnode); + } }); - }, - _updateViewport: function _updateViewport(index) { - if (!(Math.floor(2 * this._viewportPosition) === Math.floor(2 * index) && Math.ceil(2 * this._viewportPosition) === Math.ceil(2 * index))) { - if (this.circularEnabled) { - this._checkCircularLayout(index); + } + + for (var index = 0, length = swiperItems.length; index < length; index++) { + var currentSync = this.currentSync; + slidesDots.push(createElement('div', { + class: { + 'uni-swiper-dot': true, + 'uni-swiper-dot-active': index < currentSync + this.displayMultipleItemsNumber && index >= currentSync || index < currentSync + this.displayMultipleItemsNumber - length + }, + style: { + 'background': index === currentSync ? this.indicatorActiveColor : this.indicatorColor } - } + })); + } + + this.items = swiperItems; + var slidesWrapperChild = [createElement('div', { + ref: 'slides', + style: this.slidesStyle, + 'class': 'uni-swiper-slides' + }, [createElement('div', { + ref: 'slideFrame', + class: 'uni-swiper-slide-frame', + style: this.slideFrameStyle + }, swiperItems)])]; + + if (this.indicatorDots) { + slidesWrapperChild.push(createElement('div', { + ref: 'slidesDots', + 'class': ['uni-swiper-dots', this.vertical ? 'uni-swiper-dots-vertical' : 'uni-swiper-dots-horizontal'] + }, slidesDots)); + } + + return createElement('uni-swiper', [createElement('div', { + ref: 'slidesWrapper', + 'class': 'uni-swiper-wrapper', + on: this.$listeners + }, slidesWrapperChild)]); + } +}); +// CONCATENATED MODULE: ./src/core/view/components/swiper/index.vue?vue&type=script&lang=js& + /* harmony default export */ var components_swipervue_type_script_lang_js_ = (swipervue_type_script_lang_js_); +// EXTERNAL MODULE: ./src/core/view/components/swiper/index.vue?vue&type=style&index=0&lang=css& +var swipervue_type_style_index_0_lang_css_ = __webpack_require__(87); + +// EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js +var componentNormalizer = __webpack_require__(0); + +// CONCATENATED MODULE: ./src/core/view/components/swiper/index.vue +var render, staticRenderFns - var x = this.vertical ? '0' : 100 * -index * this._viewportMoveRatio + '%'; - var y = this.vertical ? 100 * -index * this._viewportMoveRatio + '%' : '0'; - var transform = 'translate(' + x + ', ' + y + ') translateZ(0)'; - var slideFrame = this.$refs.slideFrame; - if (slideFrame) { - slideFrame.style['-webkit-transform'] = transform; - slideFrame.style.transform = transform; - } - this._viewportPosition = index; - if (!this._transitionStart) { - if (index % 1 === 0) { - return; - } - this._transitionStart = index; - } +/* normalize component */ - index -= Math.floor(this._transitionStart); +var component = Object(componentNormalizer["a" /* default */])( + components_swipervue_type_script_lang_js_, + render, + staticRenderFns, + false, + null, + null, + null + +) - if (index <= -(this.items.length - 1)) { - index += this.items.length; - } else if (index >= this.items.length) { - index -= this.items.length; - } +/* hot reload */ +if (false) { var api; } +component.options.__file = "src/core/view/components/swiper/index.vue" +/* harmony default export */ var swiper = __webpack_exports__["default"] = (component.exports); - index = this._transitionStart % 1 > 0.5 || this._transitionStart < 0 ? index - 1 : index; - this.$trigger('transition', {}, { - dx: this.vertical ? 0 : index * slideFrame.offsetWidth, - dy: this.vertical ? index * slideFrame.offsetHeight : 0 - }); - }, - _animateFrameFuncProto: function _animateFrameFuncProto() { - var _this3 = this; +/***/ }), +/* 115 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - if (!this._animating) { - this._requestedAnimation = false; - return; - } +"use strict"; +__webpack_require__.r(__webpack_exports__); - var _animating = this._animating; - var toPos = _animating.toPos; - var acc = _animating.acc; - var endTime = _animating.endTime; - var source = _animating.source; - var time = endTime - Date.now(); +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/movable-area/index.vue?vue&type=script&lang=js& +function calc(e) { + return Math.sqrt(e.x * e.x + e.y * e.y); +} - if (time <= 0) { - this._updateViewport(toPos); +/* harmony default export */ var movable_areavue_type_script_lang_js_ = ({ + name: 'MovableArea', + props: { + scaleArea: { + type: Boolean, + default: false + } + }, + data: function data() { + return { + width: 0, + height: 0, + items: [] + }; + }, + created: function created() { + this.gapV = { + x: null, + y: null + }; + this.pinchStartLen = null; + }, + mounted: function mounted() { + this._resize(); + }, + methods: { + _resize: function _resize() { + this._getWH(); - this._animating = null; - this._requestedAnimation = false; - this._transitionStart = null; - var item = this.items[this.currentSync]; + this.items.forEach(function (item, index) { + item.componentInstance.setParent(); + }); + }, + _find: function _find(target) { + var items = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.items; + var root = this.$el; - if (item) { - this._itemReady(item, function () { - var currentItemId = item.componentInstance.itemId || ''; + function get(node) { + for (var i = 0; i < items.length; i++) { + var item = items[i]; - _this3.$trigger('animationfinish', {}, { - current: _this3.currentSync, - currentItemId: currentItemId, - source: source - }); - }); + if (node === item.componentInstance.$el) { + return item; + } } - return; + if (node === root || node === document.body || node === document) { + return null; + } + + return get(node.parentNode); } - var s = acc * time * time / 2; - var l = toPos + s; + return get(target); + }, + _touchstart: function _touchstart(t) { + var i = t.touches; - this._updateViewport(l); + if (i) { + if (i.length > 1) { + var r = { + x: i[1].pageX - i[0].pageX, + y: i[1].pageY - i[0].pageY + }; + this.pinchStartLen = calc(r); + this.gapV = r; - requestAnimationFrame(this._animateFrameFuncProto.bind(this)); - }, - _animateViewport: function _animateViewport(current, source, n) { - this._cancelViewportAnimation(); + if (!this.scaleArea) { + var touch0 = this._find(i[0].target); - var duration = this.durationNumber; - var length = this.items.length; - var position = this._viewportPosition; + var touch1 = this._find(i[1].target); - if (this.circularEnabled) { - if (n < 0) { - for (; position < current;) { - position += length; + this._scaleMovableView = touch0 && touch0 === touch1 ? touch0 : null; } + } + } + }, + _touchmove: function _touchmove(t) { + var n = t.touches; - for (; position - length > current;) { - position -= length; - } - } else if (n > 0) { - for (; position > current;) { - position -= length; - } + if (n) { + if (n.length > 1) { + t.preventDefault(); + var i = { + x: n[1].pageX - n[0].pageX, + y: n[1].pageY - n[0].pageY + }; - for (; position + length < current;) { - position += length; - } - } else { - for (; position + length < current;) { - position += length; - } + if (this.gapV.x !== null && this.pinchStartLen > 0) { + var r = calc(i) / this.pinchStartLen; - for (; position - length > current;) { - position -= length; + this._updateScale(r); } - if (position + length - current < current - position) { - position += length; - } + this.gapV = i; } } - - this._animating = { - toPos: current, - acc: 2 * (position - current) / (duration * duration), - endTime: Date.now() + duration, - source: source - }; - - if (!this._requestedAnimation) { - this._requestedAnimation = true; - requestAnimationFrame(this._animateFrameFuncProto.bind(this)); - } - }, - _cancelViewportAnimation: function _cancelViewportAnimation() { - this._animating = null; }, + _touchend: function _touchend(e) { + var t = e.touches; - /** - * 结束动画 - */ - _endViewportAnimation: function _endViewportAnimation() { - if (this._animating) { - this._updateViewport(this._animating.toPos); + if (!(t && t.length)) { + if (e.changedTouches) { + this.gapV.x = 0; + this.gapV.y = 0; + this.pinchStartLen = null; - this._animating = null; + if (this.scaleArea) { + this.items.forEach(function (item) { + item.componentInstance._endScale(); + }); + } else { + if (this._scaleMovableView) { + this._scaleMovableView.componentInstance._endScale(); + } + } + } } }, - _handleTrackStart: function _handleTrackStart() { - this._cancelSchedule(); - - this._contentTrackViewport = this._viewportPosition; - this._contentTrackSpeed = 0; - this._contentTrackT = Date.now(); - - this._cancelViewportAnimation(); + _updateScale: function _updateScale(e) { + if (e && e !== 1) { + if (this.scaleArea) { + this.items.forEach(function (item) { + item.componentInstance._setScale(e); + }); + } else { + if (this._scaleMovableView) { + this._scaleMovableView.componentInstance._setScale(e); + } + } + } }, - _handleTrackMove: function _handleTrackMove(data) { - var self = this; - var contentTrackT = this._contentTrackT; - this._contentTrackT = Date.now(); - var length = this.items.length; - var other = length - this.displayMultipleItemsNumber; + _getWH: function _getWH() { + var style = window.getComputedStyle(this.$el); + var rect = this.$el.getBoundingClientRect(); + this.width = rect.width - ['Left', 'Right'].reduce(function (all, item) { + return all + parseFloat(style['border' + item + 'Width']) + parseFloat(style['padding' + item]); + }, 0); + this.height = rect.height - ['Top', 'Bottom'].reduce(function (all, item) { + return all + parseFloat(style['border' + item + 'Width']) + parseFloat(style['padding' + item]); + }, 0); + } + }, + render: function render(createElement) { + var _this = this; - function calc(val) { - return 0.5 - 0.25 / (val + 0.5); - } + var items = []; - function move(oldVal, newVal) { - var val = self._contentTrackViewport + oldVal; - self._contentTrackSpeed = 0.6 * self._contentTrackSpeed + 0.4 * newVal; + if (this.$slots.default) { + this.$slots.default.forEach(function (vnode) { + if (vnode.componentOptions && vnode.componentOptions.tag === 'v-uni-movable-view') { + items.push(vnode); + } + }); + } - if (!self.circularEnabled) { - if (val < 0 || val > other) { - if (val < 0) { - val = -calc(-val); - } else { - if (val > other) { - val = other + calc(val - other); - } - } + this.items = items; + var $listeners = Object.assign({}, this.$listeners); + var events = ['touchstart', 'touchmove', 'touchend']; + events.forEach(function (event) { + var existing = $listeners[event]; - self._contentTrackSpeed = 0; - } - } + var ours = _this["_".concat(event)]; - self._updateViewport(val); + $listeners[event] = existing ? [].concat(existing, ours) : ours; + }); + return createElement('uni-movable-area', { + on: $listeners + }, [createElement('v-uni-resize-sensor', { + on: { + resize: this._resize } + })].concat(items)); + } +}); +// CONCATENATED MODULE: ./src/core/view/components/movable-area/index.vue?vue&type=script&lang=js& + /* harmony default export */ var components_movable_areavue_type_script_lang_js_ = (movable_areavue_type_script_lang_js_); +// EXTERNAL MODULE: ./src/core/view/components/movable-area/index.vue?vue&type=style&index=0&lang=css& +var movable_areavue_type_style_index_0_lang_css_ = __webpack_require__(75); - var time = this._contentTrackT - contentTrackT || 1; +// EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js +var componentNormalizer = __webpack_require__(0); - if (this.vertical) { - move(-data.dy / this.$refs.slideFrame.offsetHeight, -data.ddy / time); - } else { - move(-data.dx / this.$refs.slideFrame.offsetWidth, -data.ddx / time); - } - }, - _handleTrackEnd: function _handleTrackEnd(isCancel) { - this.userTracking = false; - var t = this._contentTrackSpeed / Math.abs(this._contentTrackSpeed); - var n = 0; +// CONCATENATED MODULE: ./src/core/view/components/movable-area/index.vue +var render, staticRenderFns - if (!isCancel && Math.abs(this._contentTrackSpeed) > 0.2) { - n = 0.5 * t; - } - var current = this._normalizeCurrentValue(this._viewportPosition + n); - if (isCancel) { - this._updateViewport(this._contentTrackViewport); - } else { - this.currentChangeSource = 'touch'; - this.currentSync = current; - this._animateViewport(current, 'touch', n !== 0 ? n : current === 0 && this.circularEnabled && this._viewportPosition >= 1 ? 1 : 0); - } - }, - _handleContentTrack: function _handleContentTrack(e) { - if (!this._invalid) { - if (e.detail.state === 'start') { - this.userTracking = true; - this._userDirectionChecked = false; - return this._handleTrackStart(); - } // fixed by xxxxxx +/* normalize component */ - if (e.detail.state === 'end') { - return this._handleTrackEnd(false); - } +var component = Object(componentNormalizer["a" /* default */])( + components_movable_areavue_type_script_lang_js_, + render, + staticRenderFns, + false, + null, + null, + null + +) - if (e.detail.state === 'cancel') { - return this._handleTrackEnd(true); - } +/* hot reload */ +if (false) { var api; } +component.options.__file = "src/core/view/components/movable-area/index.vue" +/* harmony default export */ var movable_area = __webpack_exports__["default"] = (component.exports); - if (this.userTracking) { - if (!this._userDirectionChecked) { - this._userDirectionChecked = true; - var t = Math.abs(e.detail.dx); - var n = Math.abs(e.detail.dy); +/***/ }), +/* 116 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - if (t >= n && this.vertical) { - this.userTracking = false; - } else { - if (t <= n && !this.vertical) { - this.userTracking = false; - } - } +"use strict"; +__webpack_require__.r(__webpack_exports__); - if (!this.userTracking) { - if (this.autoplay) { - this._scheduleAutoplay(); - } +// EXTERNAL MODULE: ./src/core/view/mixins/index.js + 1 modules +var mixins = __webpack_require__(1); - return; - } - } +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/button/index.vue?vue&type=script&lang=js& - this._handleTrackMove(e.detail); +/* harmony default export */ var buttonvue_type_script_lang_js_ = ({ + name: 'Button', + mixins: [mixins["b" /* hover */], mixins["a" /* emitter */], mixins["c" /* listeners */]], + props: { + hoverClass: { + type: String, + default: 'button-hover' + }, + disabled: { + type: [Boolean, String], + default: false + }, + id: { + type: String, + default: '' + }, + hoverStopPropagation: { + type: Boolean, + default: false + }, + hoverStartTime: { + type: Number, + default: 20 + }, + hoverStayTime: { + type: Number, + default: 70 + }, + formType: { + type: String, + default: '', + validator: function validator(value) { + // 只有这几个可取值,其它都是非法的。 + return ~['', 'submit', 'reset'].indexOf(value); + } + } + }, + data: function data() { + return { + clickFunction: null + }; + }, + methods: { + _onClick: function _onClick($event, isLabelClick) { + if (this.disabled) { + return; + } - return false; + if (isLabelClick) { + this.$el.click(); + } // TODO 通知父表单执行相应的行为 + + + if (this.formType) { + this.$dispatch('Form', this.formType === 'submit' ? 'uni-form-submit' : 'uni-form-reset', { + type: this.formType + }); + } + }, + _bindObjectListeners: function _bindObjectListeners(data, value) { + if (value) { + for (var key in value) { + var existing = data.on[key]; + var ours = value[key]; + data.on[key] = existing ? [].concat(existing, ours) : ours; } } + + return data; } }, render: function render(createElement) { - var slidesDots = []; - var swiperItems = []; + var _this = this; - if (this.$slots.default) { - this.$slots.default.forEach(function (vnode) { - if (vnode.componentOptions && vnode.componentOptions.tag === 'v-uni-swiper-item') { - swiperItems.push(vnode); + var $listeners = Object.create(null); + + if (this.$listeners) { + Object.keys(this.$listeners).forEach(function (e) { + if (_this.disabled && (e === 'click' || e === 'tap')) { + return; } + + $listeners[e] = _this.$listeners[e]; }); } - for (var index = 0, length = swiperItems.length; index < length; index++) { - var currentSync = this.currentSync; - slidesDots.push(createElement('div', { - class: { - 'uni-swiper-dot': true, - 'uni-swiper-dot-active': index < currentSync + this.displayMultipleItemsNumber && index >= currentSync || index < currentSync + this.displayMultipleItemsNumber - length + if (this.hoverClass && this.hoverClass !== 'none') { + return createElement('uni-button', this._bindObjectListeners({ + class: [this.hovering ? this.hoverClass : ''], + attrs: { + 'disabled': this.disabled }, - style: { - 'background': index === currentSync ? this.indicatorActiveColor : this.indicatorColor - } - })); - } - - this.items = swiperItems; - var slidesWrapperChild = [createElement('div', { - ref: 'slides', - style: this.slidesStyle, - 'class': 'uni-swiper-slides' - }, [createElement('div', { - ref: 'slideFrame', - class: 'uni-swiper-slide-frame', - style: this.slideFrameStyle - }, swiperItems)])]; - - if (this.indicatorDots) { - slidesWrapperChild.push(createElement('div', { - ref: 'slidesDots', - 'class': ['uni-swiper-dots', this.vertical ? 'uni-swiper-dots-vertical' : 'uni-swiper-dots-horizontal'] - }, slidesDots)); + on: { + touchstart: this._hoverTouchStart, + touchend: this._hoverTouchEnd, + touchcancel: this._hoverTouchCancel, + click: this._onClick + } + }, $listeners), this.$slots.default); + } else { + return createElement('uni-button', this._bindObjectListeners({ + class: [this.hovering ? this.hoverClass : ''], + attrs: { + 'disabled': this.disabled + }, + on: { + click: this._onClick + } + }, $listeners), this.$slots.default); } - - return createElement('uni-swiper', [createElement('div', { - ref: 'slidesWrapper', - 'class': 'uni-swiper-wrapper', - on: this.$listeners - }, slidesWrapperChild)]); + }, + listeners: { + 'label-click': '_onClick', + '@label-click': '_onClick' } }); -// CONCATENATED MODULE: ./src/core/view/components/swiper/index.vue?vue&type=script&lang=js& - /* harmony default export */ var components_swipervue_type_script_lang_js_ = (swipervue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/core/view/components/swiper/index.vue?vue&type=style&index=0&lang=css& -var swipervue_type_style_index_0_lang_css_ = __webpack_require__(86); +// CONCATENATED MODULE: ./src/core/view/components/button/index.vue?vue&type=script&lang=js& + /* harmony default export */ var components_buttonvue_type_script_lang_js_ = (buttonvue_type_script_lang_js_); +// EXTERNAL MODULE: ./src/core/view/components/button/index.vue?vue&type=style&index=0&lang=css& +var buttonvue_type_style_index_0_lang_css_ = __webpack_require__(68); // EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(0); -// CONCATENATED MODULE: ./src/core/view/components/swiper/index.vue +// CONCATENATED MODULE: ./src/core/view/components/button/index.vue var render, staticRenderFns @@ -21347,7 +21395,7 @@ var render, staticRenderFns /* normalize component */ var component = Object(componentNormalizer["a" /* default */])( - components_swipervue_type_script_lang_js_, + components_buttonvue_type_script_lang_js_, render, staticRenderFns, false, @@ -21359,11 +21407,11 @@ var component = Object(componentNormalizer["a" /* default */])( /* hot reload */ if (false) { var api; } -component.options.__file = "src/core/view/components/swiper/index.vue" -/* harmony default export */ var swiper = __webpack_exports__["default"] = (component.exports); +component.options.__file = "src/core/view/components/button/index.vue" +/* harmony default export */ var components_button = __webpack_exports__["default"] = (component.exports); /***/ }), -/* 116 */ +/* 117 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -21373,13 +21421,13 @@ __webpack_require__.r(__webpack_exports__); var touchtrack = __webpack_require__(8); // EXTERNAL MODULE: ./src/core/view/mixins/scroller/index.js + 2 modules -var scroller = __webpack_require__(46); +var scroller = __webpack_require__(47); // EXTERNAL MODULE: ./src/core/view/mixins/scroller/Friction.js -var Friction = __webpack_require__(44); +var Friction = __webpack_require__(45); // EXTERNAL MODULE: ./src/core/view/mixins/scroller/Spring.js -var Spring = __webpack_require__(45); +var Spring = __webpack_require__(46); // CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/picker-view-column/index.vue?vue&type=script&lang=js& @@ -21605,7 +21653,7 @@ function onClick(dom, callback) { // CONCATENATED MODULE: ./src/core/view/components/picker-view-column/index.vue?vue&type=script&lang=js& /* harmony default export */ var components_picker_view_columnvue_type_script_lang_js_ = (picker_view_columnvue_type_script_lang_js_); // EXTERNAL MODULE: ./src/core/view/components/picker-view-column/index.vue?vue&type=style&index=0&lang=css& -var picker_view_columnvue_type_style_index_0_lang_css_ = __webpack_require__(77); +var picker_view_columnvue_type_style_index_0_lang_css_ = __webpack_require__(78); // EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(0); @@ -21636,7 +21684,114 @@ component.options.__file = "src/core/view/components/picker-view-column/index.vu /* harmony default export */ var picker_view_column = __webpack_exports__["default"] = (component.exports); /***/ }), -/* 117 */ +/* 118 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/text/index.vue?vue&type=script&lang=js& +var SPACE_UNICODE = { + 'ensp': "\u2002", + 'emsp': "\u2003", + 'nbsp': "\xA0" +}; +/* harmony default export */ var textvue_type_script_lang_js_ = ({ + name: 'Text', + props: { + selectable: { + type: [Boolean, String], + default: false + }, + space: { + type: String, + default: '' + }, + decode: { + type: [Boolean, String], + default: false + } + }, + methods: { + _decodeHtml: function _decodeHtml(htmlString) { + if (this.space && SPACE_UNICODE[this.space]) { + htmlString = htmlString.replace(/ /g, SPACE_UNICODE[this.space]); + } + + if (this.decode) { + htmlString = htmlString.replace(/ /g, SPACE_UNICODE.nbsp).replace(/ /g, SPACE_UNICODE.ensp).replace(/ /g, SPACE_UNICODE.emsp).replace(/</g, '<').replace(/>/g, '>').replace(/&/g, '&').replace(/"/g, '"').replace(/'/g, "'"); + } + + return htmlString; + } + }, + render: function render(createElement) { + var _this = this; + + var nodeList = []; + this.$slots.default && this.$slots.default.forEach(function (vnode) { + if (vnode.text) { + // 处理可能出现的多余的转义字符 + var nodeText = vnode.text.replace(/\\n/g, '\n'); + var texts = nodeText.split('\n'); + texts.forEach(function (text, index) { + nodeList.push(_this._decodeHtml(text)); + + if (index !== texts.length - 1) { + nodeList.push(createElement('br')); + } + }); + } else { + if (vnode.componentOptions && vnode.componentOptions.tag !== 'v-uni-text') { + console.warn(' 组件内只支持嵌套 ,不支持其它组件或自定义组件,否则会引发在不同平台的渲染差异。'); + } + + nodeList.push(vnode); + } + }); + return createElement('uni-text', { + on: this.$listeners, + attrs: { + selectable: !!this.selectable + } + }, [createElement('span', {}, nodeList)]); + } +}); +// CONCATENATED MODULE: ./src/core/view/components/text/index.vue?vue&type=script&lang=js& + /* harmony default export */ var components_textvue_type_script_lang_js_ = (textvue_type_script_lang_js_); +// EXTERNAL MODULE: ./src/core/view/components/text/index.vue?vue&type=style&index=0&lang=css& +var textvue_type_style_index_0_lang_css_ = __webpack_require__(89); + +// EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js +var componentNormalizer = __webpack_require__(0); + +// CONCATENATED MODULE: ./src/core/view/components/text/index.vue +var render, staticRenderFns + + + + + +/* normalize component */ + +var component = Object(componentNormalizer["a" /* default */])( + components_textvue_type_script_lang_js_, + render, + staticRenderFns, + false, + null, + null, + null + +) + +/* hot reload */ +if (false) { var api; } +component.options.__file = "src/core/view/components/text/index.vue" +/* harmony default export */ var components_text = __webpack_exports__["default"] = (component.exports); + +/***/ }), +/* 119 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -21714,7 +21869,7 @@ __webpack_require__.r(__webpack_exports__); // CONCATENATED MODULE: ./src/core/view/components/resize-sensor/index.vue?vue&type=script&lang=js& /* harmony default export */ var components_resize_sensorvue_type_script_lang_js_ = (resize_sensorvue_type_script_lang_js_); // EXTERNAL MODULE: ./src/core/view/components/resize-sensor/index.vue?vue&type=style&index=0&lang=css& -var resize_sensorvue_type_style_index_0_lang_css_ = __webpack_require__(82); +var resize_sensorvue_type_style_index_0_lang_css_ = __webpack_require__(83); // EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(0); @@ -21745,7 +21900,7 @@ component.options.__file = "src/core/view/components/resize-sensor/index.vue" /* harmony default export */ var resize_sensor = __webpack_exports__["default"] = (component.exports); /***/ }), -/* 118 */ +/* 120 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -21885,7 +22040,7 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr // CONCATENATED MODULE: ./src/core/view/components/picker-view/index.vue?vue&type=script&lang=js& /* harmony default export */ var components_picker_viewvue_type_script_lang_js_ = (picker_viewvue_type_script_lang_js_); // EXTERNAL MODULE: ./src/core/view/components/picker-view/index.vue?vue&type=style&index=0&lang=css& -var picker_viewvue_type_style_index_0_lang_css_ = __webpack_require__(78); +var picker_viewvue_type_style_index_0_lang_css_ = __webpack_require__(79); // EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(0); @@ -21916,114 +22071,7 @@ component.options.__file = "src/core/view/components/picker-view/index.vue" /* harmony default export */ var picker_view = __webpack_exports__["default"] = (component.exports); /***/ }), -/* 119 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/core/view/components/text/index.vue?vue&type=script&lang=js& -var SPACE_UNICODE = { - 'ensp': "\u2002", - 'emsp': "\u2003", - 'nbsp': "\xA0" -}; -/* harmony default export */ var textvue_type_script_lang_js_ = ({ - name: 'Text', - props: { - selectable: { - type: [Boolean, String], - default: false - }, - space: { - type: String, - default: '' - }, - decode: { - type: [Boolean, String], - default: false - } - }, - methods: { - _decodeHtml: function _decodeHtml(htmlString) { - if (this.space && SPACE_UNICODE[this.space]) { - htmlString = htmlString.replace(/ /g, SPACE_UNICODE[this.space]); - } - - if (this.decode) { - htmlString = htmlString.replace(/ /g, SPACE_UNICODE.nbsp).replace(/ /g, SPACE_UNICODE.ensp).replace(/ /g, SPACE_UNICODE.emsp).replace(/</g, '<').replace(/>/g, '>').replace(/&/g, '&').replace(/"/g, '"').replace(/'/g, "'"); - } - - return htmlString; - } - }, - render: function render(createElement) { - var _this = this; - - var nodeList = []; - this.$slots.default && this.$slots.default.forEach(function (vnode) { - if (vnode.text) { - // 处理可能出现的多余的转义字符 - var nodeText = vnode.text.replace(/\\n/g, '\n'); - var texts = nodeText.split('\n'); - texts.forEach(function (text, index) { - nodeList.push(_this._decodeHtml(text)); - - if (index !== texts.length - 1) { - nodeList.push(createElement('br')); - } - }); - } else { - if (vnode.componentOptions && vnode.componentOptions.tag !== 'v-uni-text') { - console.warn(' 组件内只支持嵌套 ,不支持其它组件或自定义组件,否则会引发在不同平台的渲染差异。'); - } - - nodeList.push(vnode); - } - }); - return createElement('uni-text', { - on: this.$listeners, - attrs: { - selectable: !!this.selectable - } - }, [createElement('span', {}, nodeList)]); - } -}); -// CONCATENATED MODULE: ./src/core/view/components/text/index.vue?vue&type=script&lang=js& - /* harmony default export */ var components_textvue_type_script_lang_js_ = (textvue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/core/view/components/text/index.vue?vue&type=style&index=0&lang=css& -var textvue_type_style_index_0_lang_css_ = __webpack_require__(88); - -// EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js -var componentNormalizer = __webpack_require__(0); - -// CONCATENATED MODULE: ./src/core/view/components/text/index.vue -var render, staticRenderFns - - - - - -/* normalize component */ - -var component = Object(componentNormalizer["a" /* default */])( - components_textvue_type_script_lang_js_, - render, - staticRenderFns, - false, - null, - null, - null - -) - -/* hot reload */ -if (false) { var api; } -component.options.__file = "src/core/view/components/text/index.vue" -/* harmony default export */ var components_text = __webpack_exports__["default"] = (component.exports); - -/***/ }), -/* 120 */ +/* 121 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -22034,7 +22082,7 @@ __webpack_require__.r(__webpack_exports__); if (typeof window !== 'undefined') { if (true) { - __webpack_require__(63) + __webpack_require__(64) } var i @@ -22047,7 +22095,7 @@ if (typeof window !== 'undefined') { /* harmony default export */ var setPublicPath = (null); // EXTERNAL MODULE: ./lib/app-plus/view.js -var view = __webpack_require__(51); +var view = __webpack_require__(52); // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js /* concated harmony reexport upx2px */__webpack_require__.d(__webpack_exports__, "upx2px", function() { return view["h" /* upx2px */]; }); diff --git a/packages/uni-app-plus/package.json b/packages/uni-app-plus/package.json index b8f08771cbf980bb2355945a9776c734f2cb054f..09e69a2fe37a4f16b264e5fb721e9f5918764437 100644 --- a/packages/uni-app-plus/package.json +++ b/packages/uni-app-plus/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app-plus", - "version": "3.0.0-alpha-24020191018006", + "version": "3.0.0-alpha-24020191018012", "description": "uni-app app-plus", "main": "dist/index.js", "repository": { diff --git a/packages/uni-cli-shared/package.json b/packages/uni-cli-shared/package.json index 4b6a25d77b9dfe3cda926836a9167fbb7bcd048c..58415e54c350e3f4de38e8df7acbd5f610a46c4a 100644 --- a/packages/uni-cli-shared/package.json +++ b/packages/uni-cli-shared/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-cli-shared", - "version": "3.0.0-alpha-24020191018006", + "version": "3.0.0-alpha-24020191018012", "description": "uni-cli-shared", "main": "lib/index.js", "repository": { diff --git a/packages/uni-h5-ui/package.json b/packages/uni-h5-ui/package.json index a8c38a26caa0a93d78308cddbf6a12c4480ecce9..6f6867a15d96aafc87c82cd76f718b78b5266b9e 100644 --- a/packages/uni-h5-ui/package.json +++ b/packages/uni-h5-ui/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-h5-ui", - "version": "3.0.0-alpha-24020191018006", + "version": "3.0.0-alpha-24020191018012", "description": "uni-app h5 ui", "main": "dist/index.umd.min.js", "repository": { diff --git a/packages/uni-h5/dist/index.umd.min.js b/packages/uni-h5/dist/index.umd.min.js index cc4921e426272c025f0ca2414a6cf207e8d2e5e6..702a2a5bad25929a2db114173c5de155bc843365 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")}({"0138":function(t,e,n){"use strict";n.r(e),function(t){var i=n("052f"),r=n("3d1f"),a=n("98be"),o=n("abbf");n.d(e,"getApp",function(){return o["b"]}),n.d(e,"getCurrentPages",function(){return o["c"]}),Object(i["a"])(t.on,{getApp:o["b"],getCurrentPages:o["c"]}),Object(r["a"])(t.subscribe,{getApp:o["b"],getCurrentPages:o["c"]}),e["default"]=a["a"]}.call(this,n("0dd1"))},"052f":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("a741"),r=n("45db");function a(t,e){var n=e.getApp,a=e.getCurrentPages;function o(t){Object(i["a"])(n(),"onError",t)}function s(t){Object(i["a"])(n(),"onPageNotFound",t)}function c(t,e){var n=a().find(function(t){return t.$page.id===e});n&&(Object(r["setPullDownRefreshPageId"])(e),Object(i["b"])(n,"onPullDownRefresh"))}function u(t,e){var n=a();n.length&&Object(i["b"])(n[n.length-1],t,e)}function l(t){return function(e){u(t,e)}}function h(){Object(i["a"])(n(),"onHide"),u("onHide")}function f(){Object(i["a"])(n(),"onShow"),u("onShow")}function d(t,e){var n=t.name,i=t.arg;"postMessage"===n||uni[n](i)}t("onError",o),t("onPageNotFound",s),t("onAppEnterBackground",h),t("onAppEnterForeground",f),t("onPullDownRefresh",c),t("onTabItemTap",l("onTabItemTap")),t("onNavigationBarButtonTap",l("onNavigationBarButtonTap")),t("onNavigationBarSearchInputChanged",l("onNavigationBarSearchInputChanged")),t("onNavigationBarSearchInputConfirmed",l("onNavigationBarSearchInputConfirmed")),t("onNavigationBarSearchInputClicked",l("onNavigationBarSearchInputClicked")),t("onWebInvokeAppService",d)}},"0554":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=__uniConfig.qqMapKey,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(t)},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(t){s(n,{errMsg:"getLocation:fail "+JSON.stringify(t)})})},function(){s(n,{errMsg:"getLocation:fail"})},{enableHighAccuracy:a,timeout:3e5}):s(n,{errMsg:"getLocation:fail device nonsupport geolocation"})}}.call(this,n("0dd1"))},"0741":function(t,e,n){"use strict";var i=n("9a72"),r=n.n(i);r.a},"0784":function(t,e,n){"use strict";var i=n("a741"),r=n("f2b3");function a(t){var e=t.$route;t.route=e.meta.pagePath;var n=Object(r["c"])(e.params,"__id__")?e.params.__id__:e.meta.id;t.__page__={id:n,path:e.path,route:e.meta.pagePath,meta:Object.assign({},e.meta)},t.$vm=t,t.$root=t,t.$holder=t.$parent.$parent,t.$mp={mpType:"page",page:t,query:{},status:""}}function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={};return Object.keys(t).forEach(function(n){try{e[n]=decodeURIComponent(t[n])}catch(i){e[n]=t[n]}}),e}function s(){return{created:function(){a(this),Object(i["b"])(this,"onLoad",o(this.$route.query)),Object(i["b"])(this,"onShow")}}}n.d(e,"a",function(){return s})},"08c9":function(t,e,n){},"0950":function(t,e,n){},"0998":function(t,e,n){"use strict";var i=n("4509"),r=n.n(i);r.a},"0a32":function(t,e,n){"use strict";var i=n("17ac"),r=n.n(i);r.a},"0c7c":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})},"0dba":function(t,e,n){},"0dd1":function(t,e,n){"use strict";n.r(e),n.d(e,"on",function(){return c}),n.d(e,"off",function(){return u}),n.d(e,"once",function(){return l}),n.d(e,"emit",function(){return h}),n.d(e,"subscribe",function(){return f}),n.d(e,"unsubscribe",function(){return d}),n.d(e,"subscribeHandler",function(){return p});var i=n("8bbf"),r=n.n(i),a=n("27a7");n.d(e,"invokeCallbackHandler",function(){return a["a"]});var o=n("b865");n.d(e,"publishHandler",function(){return o["b"]});var s=new r.a,c=s.$on.bind(s),u=s.$off.bind(s),l=s.$once.bind(s),h=s.$emit.bind(s);function f(t,e){return c("view."+t,e)}function d(t,e){return u("view."+t,e)}function p(t,e,n){return h("view."+t,e,n)}},"0f11":function(t,e,n){"use strict";(function(t,i){var r=n("f2b3"),a=n("65a8"),o=n("81ea"),s=n("f1ea");e["a"]={name:"App",components:o["a"],mixins:s["default"],props:{keepAliveInclude:{type:Array,default:function(){return[]}}},data:function(){return{transitionName:"fade",hideTabBar:!1,tabBar:__uniConfig.tabBar||{}}},computed:{key:function(){return this.$route.meta.name+"-"+this.$route.params.__id__+"-"+(__uniConfig.reLaunch||1)},hasTabBar:function(){return __uniConfig.tabBar&&__uniConfig.tabBar.list&&__uniConfig.tabBar.list.length},showTabBar:function(){return this.$route.meta.isTabBar&&!this.hideTabBar}},watch:{$route:function(e,n){t.emit("onHidePopup")},hideTabBar:function(t,e){if(uni.canIUse("css.var")){var n=t?"0px":a["b"]+"px";document.documentElement.style.setProperty("--window-bottom",n),i.debug("uni.".concat(n?"showTabBar":"hideTabBar",":--window-bottom=").concat(n))}window.dispatchEvent(new CustomEvent("resize"))}},created:function(){uni.canIUse("css.var")&&document.documentElement.style.setProperty("--status-bar-height","0px")},mounted:function(){window.addEventListener("message",function(e){Object(r["f"])(e.data)&&"WEB_INVOKE_APPSERVICE"===e.data.type&&t.emit("onWebInvokeAppService",e.data.data,e.data.pageId)}),document.addEventListener("visibilitychange",function(){"visible"===document.visibilityState?t.emit("onAppEnterForeground"):t.emit("onAppEnterBackground")})}}}).call(this,n("0dd1"),n("3ad9")["default"])},"0f55":function(t,e,n){"use strict";var i=n("eaa4"),r=n.n(i);r.a},"0f74":function(t,e,n){"use strict";function i(t,e){if(e){if(0===e.indexOf("/"))return e}else{if(e=t,0===e.indexOf("/"))return e;var n=getCurrentPages();t=n.length?n[n.length-1].$page.route:""}if(0===e.indexOf("./"))return i(t,e.substr(2));for(var r=e.split("/"),a=r.length,o=0;o0?t.split("/"):[];return s.splice(s.length-o-1,o+1),"/"+s.concat(r).join("/")}n.d(e,"a",function(){return i})},1047:function(t,e,n){},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",{ref:"content",style:t.modeStyle}),n("img",{attrs:{src:t.realImagePath}}),"widthFix"===t.mode?n("v-uni-resize-sensor",{ref:"sensor",on:{resize:t._resize}}):t._e()],1)},r=[];function a(t){return a="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},a(t)}var o={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:"",sizeFixed:!1}},computed:{ratio:function(){return this.originalWidth&&this.originalHeight?this.originalWidth/this.originalHeight:0},realImagePath:function(){return this.src&&this.$getRealPath(this.src)},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-position:".concat(e,";background-size:").concat(t,";background-repeat:").concat(n,";")}},watch:{src:function(t,e){this._loadImage()},mode:function(t,e){"widthFix"===e&&(this.$el.style.height=this.availHeight,this.sizeFixed=!1),"widthFix"===t&&this.ratio&&this._fixSize()}},mounted:function(){this.availHeight=this.$el.style.height||"",this._loadImage()},methods:{_resize:function(){"widthFix"!==this.mode||this.sizeFixed||this._fixSize()},_fixSize:function(){var t=this._getWidth();if(t){var e=t/this.ratio;("undefined"===typeof navigator||a(navigator))&&"Google Inc."===navigator.vendor&&e>10&&(e=2*Math.round(e/2)),this.$el.style.height=e+"px",this.sizeFixed=!0}},_loadImage:function(){this.$refs.content.style.backgroundImage=this.src?"url(".concat(this.realImagePath,")"):"none";var t=this,e=new Image;e.onload=function(e){t.originalWidth=this.width,t.originalHeight=this.height,"widthFix"===t.mode&&t._fixSize(),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.realImagePath},_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}}},s=o,c=(n("db18"),n("0c7c")),u=Object(c["a"])(s,i,r,!1,null,null,null);e["default"]=u.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"])},"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,Number],validator:function(t,e){"number"===typeof t?e.current=t>0&&t.5&&e._A<=.5?a.forEach(function(t){t.color=o}):s<=.5&&e._A>.5&&a.forEach(function(t){t.color="#fff"}),e._A=s,i&&(i.style.opacity=s),n.backgroundColor="rgba(".concat(e._R,",").concat(e._G,",").concat(e._B,",").concat(s,")"),l.forEach(function(t,e){var n=u[e],i=n.match(/[\d+\.]+/g);i[3]=(1-s)*(4===i.length?i[3]:1),t.backgroundColor="rgba(".concat(i,")")}))})}else if("always"===this.transparentTitle){for(var d=this.$el.querySelectorAll(".uni-btn-icon"),p=[],g=0;g").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'")),t}},render:function(e){var n=this,i=[];return this.$slots.default&&this.$slots.default.forEach(function(r){if(r.text){var a=r.text.replace(/\\n/g,"\n"),o=a.split("\n");o.forEach(function(t,r){i.push(n._decodeHtml(t)),r!==o.length-1&&i.push(e("br"))})}else r.componentOptions&&"v-uni-text"!==r.componentOptions.tag&&t.warn(" 组件内只支持嵌套 ,不支持其它组件或自定义组件,否则会引发在不同平台的渲染差异。"),i.push(r)}),e("uni-text",{on:this.$listeners,attrs:{selectable:!!this.selectable}},[e("span",{},i)])}}}).call(this,n("3ad9")["default"])},"17ac":function(t,e,n){},"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("3033"),o=a["a"],s=(n("f7fd"),n("0c7c")),c=Object(s["a"])(o,i,r,!1,null,null,null);e["default"]=c.exports},"18fd":function(t,e,n){"use strict";n.d(e,"a",function(){return f});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=d("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),s=d("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,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),c=d("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=d("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),l=d("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),h=d("script,style");function f(t,e){var n,f,d,p=[],g=t;p.last=function(){return this[this.length-1]};while(t){if(f=!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),f=!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 d(t){for(var e={},n=t.split(","),i=0;i0&&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}}},1955:function(t,e,n){"use strict";n.r(e);var i=n("ba15"),r=n("8aec"),a=n("5363"),o=n("72b3");function s(t,e){var n=20,i=navigator.maxTouchPoints,r=0,a=0;t.addEventListener(i?"touchstart":"mousedown",function(t){var e=i?t.changedTouches[0]:t;r=e.clientX,a=e.clientY}),t.addEventListener(i?"touchend":"mouseup",function(t){var o=i?t.changedTouches[0]:t;Math.abs(o.clientX-r)*{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){var e=t.clientY;if(!this._scroller.isScrolling()){var n=this.$el.getBoundingClientRect(),i=e-n.top-this.height/2,r=this.indicatorHeight/2;if(!(Math.abs(i)<=r)){var a=Math.ceil((Math.abs(i)-r)/this.indicatorHeight),o=i<0?-a:a,s=Math.min(this.current+o,this.length-1);this.current=s=Math.max(s,0),this._scroller.scrollTo(s*this.indicatorHeight)}}},_handleWheel:function(t){var e=this.deltaY+t.deltaY;if(Math.abs(e)>10){this.deltaY=0;var n=Math.min(this.current+(e<0?-1:1),this.length-1);this.current=n=Math.max(n,0),this._scroller.scrollTo(n*this.indicatorHeight)}else this.deltaY=e;t.preventDefault()},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,friction:new a["a"](1e-4),spring:new o["a"](2,90,20),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.min(t.current,t.length-1);e=Math.max(e,0),t._scroller.update(e*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",{on:{wheel:this._handleWheel}},[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])])])}},h=l,f=(n("edfa"),n("0c7c")),d=Object(f["a"])(h,c,u,!1,null,null,null);e["default"]=d.exports},"19c4":function(t,e,n){var i={"./base/base64.js":"6481","./base/can-i-use.js":"957a","./base/event-bus.js":"b0ef","./base/interceptor.js":"a954","./base/upx2px.js":"2289","./context/canvas.js":"82b9","./context/context.js":"3bfb","./device/make-phone-call.js":"f102","./file/open-document.js":"2604","./location/choose-location.js":"e5bb","./location/get-location.js":"19d9","./location/open-location.js":"70bb","./media/choose-image.js":"f1b2","./media/choose-video.js":"ed9f","./media/get-image-info.js":"b866","./media/preview-image.js":"11fb","./network/download-file.js":"439a","./network/request.js":"a201","./network/socket.js":"abb2","./network/upload-file.js":"9a3e","./plugin/get-provider.js":"4e7c","./route/route.js":"332a","./storage/storage.js":"ec33","./ui/navigation-bar.js":"1934","./ui/page-scroll-to.js":"232e","./ui/popup.js":"2246","./ui/tab-bar.js":"5621"};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"},"19d9":function(t,e,n){"use strict";n.r(e),n.d(e,"getLocation",function(){return r});var i={WGS84:"WGS84",GCJ02:"GCJ02"},r={type:{type:String,validator:function(t,e){t=(t||"").toUpperCase(),e.type=Object.values(i).indexOf(t)<0?i.WGS84:t},default:i.WGS84},altitude:{altitude:Boolean,default:!1}}},"1a12":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&&void 0!==arguments[1]?arguments[1]:{},n=e.url,r=e.delta,a=e.animationType,o=e.animationDuration,s=e.from,c=void 0===s?"navigateBack":s,u=e.detail,l=getApp().$router;switch(t){case"redirectTo":l.replace({type:t,path:n});break;case"navigateTo":l.push({type:t,path:n,animationType:a,animationDuration:o});break;case"navigateBack":var h=!0,f=getCurrentPages();if(f.length){var d=f[f.length-1];Object(i["a"])(d.$options,"onBackPress")&&!0===d.__call_hook("onBackPress",{from:c})&&(h=!1)}h&&(r>1&&(l._$delta=r),l.go(-r,{animationType:a,animationDuration:o}));break;case"reLaunch":l.replace({type:t,path:n});break;case"switchTab":l.replace({type:t,path:n,params:{detail:u}});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)}},"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"))},"1c64":function(t,e,n){"use strict";var i=n("9613"),r=n.n(i);r.a},"1ca3":function(t,e,n){"use strict";n.r(e),n.d(e,"base64ToArrayBuffer",function(){return r}),n.d(e,"arrayBufferToBase64",function(){return a});var i=n("8390");function r(t){return Object(i["decode"])(t)}function a(t){return Object(i["encode"])(t)}},"1e4d":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;n=0&&this._callbacks.splice(e,1)}},{key:"offHeadersReceived",value:function(){}}]),t}(),u=Object.create(null);function l(t,e){var n=Object(r["a"])("createUploadTask",t),i=n.uploadTaskId,a=new c(i,e);return u[i]=a,a}Object(r["b"])("onUploadTaskStateChange",function(t){var e=t.uploadTaskId,n=t.state,r=t.data,a=t.statusCode,o=t.progress,s=t.totalBytesSent,c=t.totalBytesExpectedToSend,l=t.errMsg,h=u[e],f=h._callbackId;switch(n){case"progressUpdate":h._callbacks.forEach(function(t){t({progress:o,totalBytesSent:s,totalBytesExpectedToSend:c})});break;case"success":Object(i["a"])(f,{data:r,statusCode:a,errMsg:"request:ok"});case"fail":Object(i["a"])(f,{errMsg:"request:fail "+l});default:setTimeout(function(){delete u[e]},100);break}})},2246: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}}},2289:function(t,e,n){"use strict";n.r(e),n.d(e,"upx2px",function(){return i});var i=[{name:"upx",type:[Number,String],required:!0}]},"232e":function(t,e,n){"use strict";n.r(e),n.d(e,"pageScrollTo",function(){return i});var i={scrollTop:{type:Number,required:!0},duration:{type:Number,default:300,validator:function(t,e){e.duration=Math.max(0,t)}}}},"23af":function(t,e,n){},"23e5":function(t,e,n){"use strict";n.d(e,"b",function(){return c}),n.d(e,"a",function(){return g});var i=n("a741");function r(t){-1===this.keepAliveInclude.indexOf(t)&&this.keepAliveInclude.push(t)}var a=[];function o(t){if("number"===typeof t)a=this.keepAliveInclude.splice(-(t-1)).map(function(t){return parseInt(t.split("-").pop())});else{var e=this.keepAliveInclude.indexOf(t);-1!==e&&this.keepAliveInclude.splice(e,1)}}var s=Object.create(null);function c(t){return s[t]}function u(t){s[t]={x:window.pageXOffset,y:window.pageYOffset}}function l(t,e,n){e&&n&&e.meta.isTabBar&&n.meta.isTabBar&&u(n.params.__id__);for(var r=getCurrentPages(),a=r.length-1;a>=0;a--){var s=r[a],c=s.$page.meta;c.isTabBar||(o.call(this,c.name+"-"+s.$page.id),Object(i["b"])(s,"onUnload"))}}function h(t){__uniConfig.reLaunch=(__uniConfig.reLaunch||1)+1;for(var e=getCurrentPages(!0),n=e.length-1;n>=0;n--)Object(i["b"])(e[n],"onUnload"),e[n].$destroy();this.keepAliveInclude=[],s=Object.create(null)}var f=[];function d(t,e,n,i){f=getCurrentPages(!0);var a=e.params.__id__,s=t.params.__id__,c=t.meta.name+"-"+s;if(s===a)t.fullPath!==e.fullPath?(o.call(this,c),n()):n(!1);else if(t.meta.id&&t.meta.id!==s)n({path:t.path,replace:!0});else{var u=e.meta.name+"-"+a;switch(t.type){case"navigateTo":break;case"redirectTo":if(o.call(this,u),e.meta&&(e.meta.isQuit&&(t.meta.isQuit=!0,t.meta.isEntry=!!e.meta.isEntry),e.meta.isTabBar)){t.meta.isTabBar=!0,t.meta.tabBarIndex=e.meta.tabBarIndex;var d=getApp().$children[0];d.$set(d.tabBar.list[t.meta.tabBarIndex],"pagePath",t.meta.pagePath)}break;case"switchTab":l.call(this,i,t,e);break;case"reLaunch":h.call(this,c),t.meta.isQuit=!0;break;default:a&&a>s&&(o.call(this,u),this.$router._$delta>1&&o.call(this,this.$router._$delta));break}if("reLaunch"!==t.type&&e.meta.id&&r.call(this,u),r.call(this,c),t.meta&&t.meta.name){document.body.className="uni-body "+t.meta.name;var p="nvue-dir-"+__uniConfig.nvue["flex-direction"];t.meta.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(p,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(p))}n()}}function p(t,e){var n=e.params.__id__,r=t.params.__id__,o=f.find(function(t){return t.$page.id===n});switch(t.type){case"navigateTo":o&&Object(i["b"])(o,"onHide");break;case"redirectTo":o&&Object(i["b"])(o,"onUnload");break;case"switchTab":e.meta.isTabBar&&o&&Object(i["b"])(o,"onHide");break;case"reLaunch":break;default:n&&n>r&&(o&&Object(i["b"])(o,"onUnload"),this.$router._$delta>1&&a.reverse().forEach(function(t){var e=f.find(function(e){return e.$page.id===t});e&&Object(i["b"])(e,"onUnload")}));break}if(delete this.$router._$delta,a.length=0,"reLaunch"!==t.type){var s=getCurrentPages(!0).find(function(t){return t.$page.id===r});s&&(setTimeout(function(){Object(i["b"])(s,"onShow")},0),document.title=s.$parent.$parent.navigationBar.titleText)}}function g(t,e){t.$router.beforeEach(function(n,i,r){d.call(t,n,i,r,e)}),t.$router.afterEach(function(e,n){p.call(t,e,n)})}},"24aa":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},"24d9":function(t,e,n){"use strict";n.d(e,"b",function(){return a}),n.d(e,"a",function(){return o});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){return Object.assign({mp:t,_processed:!0},t)}function o(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),Object(i["c"])(e,"searchInput")&&"object"===r(e.searchInput)&&(t.searchInput=Object.assign({autoFocus:!1,align:"center",color:"#000000",backgroundColor:"rgba(255,255,255,0.5)",borderRadius:"0px",placeholder:"",placeholderColor:"#CCCCCC",disabled:!1},e.searchInput))),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({on:{change:function(t){t.stopPropagation()}}},t.$listeners),[n("div",{ref:"wrapper",staticClass:"uni-input-wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!(t.composing||t.inputValue.length),expression:"!(composing || inputValue.length)"}],ref:"placeholder",staticClass:"uni-input-placeholder",class:t.placeholderClass,style:t.placeholderStyle},[t._v(t._s(t.placeholder))]),"checkbox"===t.inputType?n("input",{directives:[{name:"model",rawName:"v-model",value:t.inputValue,expression:"inputValue"}],ref:"input",staticClass:"uni-input-input",attrs:{disabled:t.disabled,maxlength:t.maxlength,step:t.step,autocomplete:"off",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",staticClass:"uni-input-input",attrs:{disabled:t.disabled,maxlength:t.maxlength,step:t.step,autocomplete:"off",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",staticClass:"uni-input-input",attrs:{disabled:t.disabled,maxlength:t.maxlength,step:t.step,autocomplete:"off",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)}}})])])},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.inputValue.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("search"===this.confirmType){var t=document.createElement("form");t.action="",t.onsubmit=function(){return!1},t.className="uni-input-form",t.appendChild(this.$refs.input),this.$refs.wrapper.appendChild(t)}var e=this;while(e){var n=e.$options._scopeId;n&&this.$refs.placeholder.setAttribute(n,""),e=e.$parent}this.focus&&this._focusInput()},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_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("0c7c")),h=Object(l["a"])(u,i,r,!1,null,null,null);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("0c7c")),u=Object(c["a"])(s,i,r,!1,null,null,null);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("91ce"),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("cc76"),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["a"][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),f=e.length;r.forEach(function(t,n){l[t.name]=t,f>n&&(h[t.name]=e[n])}),r=l,e=h}if(Object(i["e"])(r.beforeValidate)){var d=r.beforeValidate(e);if(d)return c(d,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,d=a.complete,p=Object(i["e"])(c),g=Object(i["e"])(u),v=Object(i["e"])(l),m=Object(i["e"])(d);if(!p&&!g&&!v&&!m)return{params:e};var b={};for(var y in n){var _=n[y];Object(i["e"])(_)&&(b[y]=Object(r["b"])(_),delete n[y])}var w=b.beforeSuccess,k=b.afterSuccess,S=b.beforeFail,T=b.afterFail,x=b.beforeCancel,C=b.afterCancel,O=b.afterAll,M=h++,E="api."+t+"."+M,A=function(e){e.errMsg=e.errMsg||t+":ok",-1!==e.errMsg.indexOf(":ok")?e.errMsg=t+":ok":-1!==e.errMsg.indexOf(":cancel")?e.errMsg=t+":cancel":-1!==e.errMsg.indexOf(":fail")&&(e.errMsg=t+":fail");var n=e.errMsg;0===n.indexOf(t+":ok")?(Object(i["e"])(w)&&w(e),p&&c(e),Object(i["e"])(k)&&k(e)):0===n.indexOf(t+":cancel")?(e.errMsg=e.errMsg.replace(t+":cancel",t+":fail cancel"),g&&u(e),Object(i["e"])(x)&&x(e),v&&l(e),Object(i["e"])(C)&&C(e)):0===n.indexOf(t+":fail")&&(Object(i["e"])(S)&&S(e),g&&u(e),Object(i["e"])(T)&&T(e)),m&&d(e),Object(i["e"])(O)&&O(e)};return f[M]={name:E,callback:A},{params:e,callbackId:M}}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=f[t];if(n)return n.keepAlive||delete f[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 Object(i["e"])(e)?function(){for(var r=arguments.length,o=new Array(r),s=0;s=0&&n.splice(i,1)}}),Object(i["b"])("onAudioStateChange",function(t){var e=t.state,n=t.audioId,i=t.errMsg,r=t.errCode,a=l[n];a&&a._callbacks[e].forEach(function(t){"function"===typeof t&&t("error"===e?{errMsg:i,errCode:r}:{})})});var l=Object.create(null);function h(){var t=Object(i["a"])("createAudioInstance"),e=t.audioId,n=new u(e);return l[e]=n,n}},"2d89":function(t,e,n){"use strict";var i=n("42d0"),r=n.n(i);r.a},"2eae":function(t,e,n){"use strict";n.r(e),n.d(e,"interceptors",function(){return r});var i=n("8542");n.d(e,"addInterceptor",function(){return i["a"]}),n.d(e,"removeInterceptor",function(){return i["d"]});var r={promiseInterceptor:i["c"]}},"2ef3":function(t,e,n){"use strict";(function(t,e,i){var r=n("8bbf"),a=n.n(r),o=(n("7f16"),n("442e"));e.UniViewJSBridge={subscribeHandler:t.subscribeHandler},e.UniServiceJSBridge={subscribeHandler:i.subscribeHandler};var s=n("0138"),c=s.default,u=s.getApp,l=s.getCurrentPages;e.uni=c,e.wx=e.uni,e.getApp=u,e.getCurrentPages=l,a.a.use(n("4ca9").default,{routes:__uniRoutes}),a.a.use(n("8c15").default,{routes:__uniRoutes}),a.a.config.errorHandler=function(t,e,n){i.emit("onError",t)},Object(o["a"])(a.a),n("8f7e"),n("1efd")}).call(this,n("501c"),n("24aa"),n("0dd1"))},"2fb0":function(t,e,n){},3033: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("navigateBack"===this.openType||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({delta:this.delta});break;default:break}else t.error(" should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab")}}}}).call(this,n("3ad9")["default"])},"31e2":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-video",t._g({attrs:{id:t.id,src:t.src,"initial-time":t.initialTime,duration:t.duration,controls:t.controls,"danmu-list":t.danmuList,"danmu-btn":t.danmuBtn,"enable-danmu":t.enableDanmu,autoplay:t.autoplay,loop:t.loop,muted:t.muted,"page-gesture":t.pageGesture,direction:t.direction,"show-progress":t.showProgress,"show-fullscreen-btn":t.showFullscreenBtn,"show-play-btn":t.showPlayBtn,"show-center-play-btn":t.showCenterPlayBtn,"enable-progress-gesture":t.enableProgressGesture,"object-fit":t.objectFit,poster:t.poster,"x5-video-player-type":t.x5VideoPlayerType,"x5-video-player-fullscreen":t.x5VideoPlayerFullscren,"x5-video-orientation":t.x5VideoOrientation,"x5-playsinline":t.x5Playsinline}},t.$listeners),[n("div",{ref:"container",staticClass:"uni-video-container",class:{"uni-video-type-fullscreen":t.fullscreen,"uni-video-type-rotate-left":"left"===t.rotateType,"uni-video-type-rotate-right":"right"===t.rotateType},style:{width:t.fullscreen?t.width:"100%",height:t.fullscreen?t.height:"100%"},on:{click:t.triggerControls,touchstart:function(e){return t.touchstart(e)},touchend:function(e){return t.touchend(e)},touchmove:function(e){return t.touchmove(e)}}},[n("video",{ref:"video",staticClass:"uni-video-video",style:{opacity:t.start?1:.8,objectFit:t.objectFit},attrs:{loop:t.loop,src:t.srcSync,poster:t.poster,"x5-video-player-type":t.x5VideoPlayerType,"x5-video-player-fullscreen":t.x5VideoPlayerFullscren,"x5-video-orientation":t.x5VideoOrientation,"x5-playsinline":t.x5Playsinline,"webkit-playsinline":"",playsinline:""},domProps:{muted:t.muted}}),n("div",{directives:[{name:"show",rawName:"v-show",value:t.controlsShow,expression:"controlsShow"}],staticClass:"uni-video-bar uni-video-bar-full",on:{click:function(t){t.stopPropagation()}}},[n("div",{staticClass:"uni-video-controls"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showPlayBtn,expression:"showPlayBtn"}],staticClass:"uni-video-control-button",class:{"uni-video-control-button-play":!t.playing,"uni-video-control-button-pause":t.playing},on:{click:function(e){return e.stopPropagation(),t.trigger(e)}}}),n("div",{staticClass:"uni-video-current-time"},[t._v(t._s(t._f("getTime")(t.currentTime)))]),n("div",{ref:"progress",staticClass:"uni-video-progress-container",on:{click:function(e){return e.stopPropagation(),t.clickProgress(e)}}},[n("div",{staticClass:"uni-video-progress"},[n("div",{staticClass:"uni-video-progress-buffered",style:{width:100*t.buffered+"%"}}),n("div",{ref:"ball",staticClass:"uni-video-ball",style:{left:t.progress+"%"}},[n("div",{staticClass:"uni-video-inner"})])])]),n("div",{staticClass:"uni-video-duration"},[t._v(t._s(t._f("getTime")(t.duration||t.durationTime)))])]),t.danmuBtn?n("div",{staticClass:"uni-video-danmu-button",class:{"uni-video-danmu-button-active":t.enableDanmuSync},on:{click:function(e){return e.stopPropagation(),t.triggerDanmu(e)}}},[t._v("弹幕")]):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showFullscreenBtn,expression:"showFullscreenBtn"}],staticClass:"uni-video-fullscreen",class:{"uni-video-type-fullscreen":t.fullscreen},on:{click:function(e){return e.stopPropagation(),t.triggerFullscreen(e)}}})]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.start&&t.enableDanmuSync,expression:"start&&enableDanmuSync"}],ref:"danmu",staticClass:"uni-video-danmu",staticStyle:{"z-index":"0"}}),t.start?t._e():n("div",{staticClass:"uni-video-cover",on:{click:function(t){t.stopPropagation()}}},[n("div",{staticClass:"uni-video-cover-play-button",on:{click:function(e){return e.stopPropagation(),t.play(e)}}}),n("p",{staticClass:"uni-video-cover-duration"},[t._v(t._s(t._f("getTime")(t.duration||t.durationTime)))])]),n("div",{staticClass:"uni-video-toast",class:{"uni-video-toast-volume":"volume"===t.gestureType}},[n("div",{staticClass:"uni-video-toast-title"},[t._v("音量")]),n("svg",{staticClass:"uni-video-toast-icon",attrs:{width:"200px",height:"200px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M475.400704 201.19552l0 621.674496q0 14.856192-10.856448 25.71264t-25.71264 10.856448-25.71264-10.856448l-190.273536-190.273536-149.704704 0q-14.856192 0-25.71264-10.856448t-10.856448-25.71264l0-219.414528q0-14.856192 10.856448-25.71264t25.71264-10.856448l149.704704 0 190.273536-190.273536q10.856448-10.856448 25.71264-10.856448t25.71264 10.856448 10.856448 25.71264zm219.414528 310.837248q0 43.425792-24.28416 80.851968t-64.2816 53.425152q-5.71392 2.85696-14.2848 2.85696-14.856192 0-25.71264-10.570752t-10.856448-25.998336q0-11.999232 6.856704-20.284416t16.570368-14.2848 19.427328-13.142016 16.570368-20.284416 6.856704-32.569344-6.856704-32.569344-16.570368-20.284416-19.427328-13.142016-16.570368-14.2848-6.856704-20.284416q0-15.427584 10.856448-25.998336t25.71264-10.570752q8.57088 0 14.2848 2.85696 39.99744 15.427584 64.2816 53.139456t24.28416 81.137664zm146.276352 0q0 87.422976-48.56832 161.41824t-128.5632 107.707392q-7.428096 2.85696-14.2848 2.85696-15.427584 0-26.284032-10.856448t-10.856448-25.71264q0-22.284288 22.284288-33.712128 31.997952-16.570368 43.425792-25.141248 42.283008-30.855168 65.995776-77.423616t23.712768-99.136512-23.712768-99.136512-65.995776-77.423616q-11.42784-8.57088-43.425792-25.141248-22.284288-11.42784-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 79.99488 33.712128 128.5632 107.707392t48.56832 161.41824zm146.276352 0q0 131.42016-72.566784 241.41312t-193.130496 161.989632q-7.428096 2.85696-14.856192 2.85696-14.856192 0-25.71264-10.856448t-10.856448-25.71264q0-20.570112 22.284288-33.712128 3.999744-2.285568 12.85632-5.999616t12.85632-5.999616q26.284032-14.2848 46.854144-29.140992 70.281216-51.996672 109.707264-129.705984t39.426048-165.132288-39.426048-165.132288-109.707264-129.705984q-20.570112-14.856192-46.854144-29.140992-3.999744-2.285568-12.85632-5.999616t-12.85632-5.999616q-22.284288-13.142016-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 120.563712 51.996672 193.130496 161.989632t72.566784 241.41312z"}})]),n("div",{staticClass:"uni-video-toast-value"},[n("div",{staticClass:"uni-video-toast-value-content",style:{width:100*t.volumeNew+"%"}},[n("div",{staticClass:"uni-video-toast-volume-grids"},t._l(10,function(t,e){return n("div",{key:e,staticClass:"uni-video-toast-volume-grids-item"})}),0)])])]),n("div",{staticClass:"uni-video-toast",class:{"uni-video-toast-progress":"progress"==t.gestureType}},[n("div",{staticClass:"uni-video-toast-title"},[t._v(t._s(t._f("getTime")(t.currentTimeNew))+" / "+t._s(t._f("getTime")(t.durationTime)))])])]),n("div",{staticStyle:{position:"absolute",top:"0",width:"100%",height:"100%",overflow:"hidden","pointer-events":"none"}},[t._t("default")],2)])},r=[],a=n("8af1"),o=n("f2b3"),s=!!o["h"]&&{passive:!1},c={NONE:"none",STOP:"stop",VOLUME:"volume",PROGRESS:"progress"},u={name:"Video",filters:{getTime:function(t){var e=Math.floor(t/3600),n=Math.floor(t%3600/60),i=Math.floor(t%3600%60);e=(e<10?"0":"")+e,n=(n<10?"0":"")+n,i=(i<10?"0":"")+i;var r=n+":"+i;return"00"!==e&&(r=e+":"+r),r}},mixins:[a["d"]],props:{id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default:function(){return[]}},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:360},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},x5VideoPlayerType:{type:[Boolean,String],default:!1},x5VideoPlayerFullscren:{type:[Boolean,String],default:!1},x5VideoOrientation:{type:[Boolean,String],default:!1},x5Playsinline:{type:[Boolean,String],default:!1}},data:function(){return{start:!1,playing:!1,currentTime:0,durationTime:0,progress:0,touching:!1,enableDanmuSync:Boolean(this.enableDanmu),controlsVisible:!0,fullscreen:!1,width:"0",height:"0",fullscreenTriggering:!1,controlsTouching:!1,directionSync:Number(this.direction),touchStartOrigin:{x:0,y:0},gestureType:c.NONE,currentTimeOld:0,currentTimeNew:0,volumeOld:null,volumeNew:null,isIOS:!1,buffered:0,rotateType:""}},computed:{controlsShow:function(){return this.start&&this.controls&&this.controlsVisible},autoHideContorls:function(){return this.controlsShow&&this.playing&&!this.controlsTouching},srcSync:function(){return this.$getRealPath(this.src)}},watch:{enableDanmuSync:function(t){this.$emit("update:enableDanmu",t)},autoHideContorls:function(t){t?this.autoHideStart():this.autoHideEnd()},fullscreen:function(t){var e=this,n=this.$refs.container,i=this.playing;this.fullscreenTriggering=!0,n.remove(),t?(this.resize(),document.body.appendChild(n)):this.$el.appendChild(n),this.$trigger("fullscreenchange",{},{fullScreen:t}),i&&this.play(),setTimeout(function(){e.fullscreenTriggering=!1},0)},direction:function(t){this.directionSync=Number(t)},srcSync:function(t){var e=this;this.playing=!1,this.currentTime=0,t&&this.autoplay&&this.$nextTick(function(){e.$refs.video.play()})},currentTime:function(){this.updateProgress()},duration:function(){this.updateProgress()}},created:function(){this.otherData={danmuList:[],danmuIndex:{time:0,index:-1},hideTiming:null};var t=this.otherData.danmuList=JSON.parse(JSON.stringify(this.danmuList||[]));t.sort(function(t,e){return(t.time||0)-(t.time||0)}),this.width=window.innerWidth+"px",this.height=window.innerHeight+"px"},mounted:function(){var t,e,n=this,i=this.otherData,r=this.$refs.video,a=this.$refs.ball;r.addEventListener("durationchange",function(t){n.durationTime=r.duration}),r.addEventListener("loadedmetadata",function(t){var e=Number(n.initialTime)||0;e>0&&(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 f=c[h];if(!(e<=(f.time||0)))break;s.index=h-1}i.danmuIndex=s,n.$trigger("timeupdate",t,{currentTime:e,duration:a})}),r.addEventListener("x5videoenterfullscreen",function(t){n.$trigger("fullscreenchange",t,{fullScreen:!0})}),r.addEventListener("x5videoexitfullscreen",function(t){n.$trigger("fullscreenchange",t,{fullScreen:!1})});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("0c7c")),f=Object(h["a"])(l,i,r,!1,null,null,null);e["default"]=f.exports},"332a":function(t,e,n){"use strict";n.r(e),n.d(e,"redirectTo",function(){return c}),n.d(e,"reLaunch",function(){return u}),n.d(e,"navigateTo",function(){return l}),n.d(e,"switchTab",function(){return h}),n.d(e,"navigateBack",function(){return f});var i=n("0f74");function r(t){if("string"!==typeof t)return t;var e=t.indexOf("?");if(-1===e)return t;var n=t.substr(e+1).trim().replace(/^(\?|#|&)/,"");if(!n)return t;t=t.substr(0,e);var i=[];return n.split("&").forEach(function(t){var e=t.replace(/\+/g," ").split("="),n=e.shift(),r=e.length>0?e.join("="):"";i.push(n+"="+encodeURIComponent(r))}),i.length?t+"?"+i.join("&"):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){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({url:{type:String,required:!0,validator:a(t)}},e)}function s(t){return{animationType:{type:String,validator:function(e){if(e&&-1===t.indexOf(e))return"`"+e+"` is not supported for `animationType` (supported values are: `"+t.join("`|`")+"`)"}},animationDuration:{type:Number}}}var c=o("redirectTo"),u=o("reLaunch"),l=o("navigateTo",s(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"])),h=o("switchTab"),f=Object.assign({delta:{type:Number,validator:function(t,e){t=parseInt(t)||1,e.delta=Math.min(getCurrentPages().length-1,t)}}},s(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]))},"33ab":function(t,e,n){},"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=document.body.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 f(){var n=getCurrentPages();if(n.length&&n[n.length-1].$page.id===e){var o=window.pageYOffset;r&&Object(i["a"])("onPageScroll",{scrollTop:o},e),s&&t.emit("onPageScroll",{scrollTop:o}),a&&l&&h()&&(Object(i["a"])("onReachBottom",{},e),l=!1,setTimeout(function(){l=!0},350)),c=!1}}return function(){c||requestAnimationFrame(f),c=!0}}}).call(this,n("501c"))},"34b2":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"getImageInfo",function(){return a});var i=n("cb0f");function r(){return window.location.protocol+"//"+window.location.host}function a(e,n){var a=e.src,o=t,s=o.invokeCallbackHandler,c=new Image,u=Object(i["a"])(a);c.onload=function(){s(n,{errMsg:"getImageInfo:ok",width:c.naturalWidth,height:c.naturalHeight,path:0===u.indexOf("/")?r()+u:u})},c.onerror=function(t){s(n,{errMsg:"getImageInfo:fail"})},c.src=a}}.call(this,n("0dd1"))},3648:function(t,e,n){"use strict";n.r(e);var i=n("f2b3"),r={"css.var":window.CSS&&window.CSS.supports&&window.CSS.supports("--a",0)};function a(t){return!Object(i["c"])(r,t)||r[t]}n.d(e,"canIUse",function(){return a})},3676:function(t,e,n){"use strict";n.r(e),n.d(e,"getRecorderManager",function(){return l});var i=n("db70");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;n0&&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 f(){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 d(){var t=f();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 f}),n.d(e,"getStorageInfoSync",function(){return d})},4871:function(t,e,n){},"488c":function(t,e,n){},"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("24aa"))},"4ca9":function(t,e,n){"use strict";n.r(e),function(t){var i=n("6389"),r=n.n(i),a=n("85b6"),o=n("abbf"),s=n("0784"),c=n("aa92"),u=n("23e5");function l(t){var e=0;return t.forEach(function(t){t.meta.id&&e++}),e}function h(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":decodeURI(t.slice(e+1))}function f(){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;Object(c["a"])(e);var d=l(i),p=new r.a({id:d,mode:__uniConfig.router.mode,base:__uniConfig.router.base,routes:i,scrollBehavior:function(t,e,n){if(n)return n;if(t&&e&&t.meta.isTabBar&&e.meta.isTabBar){var i=Object(u["b"])(t.params.__id__);if(i)return i}return{x:0,y:0}}}),g=[],v=p.match("history"===__uniConfig.router.mode?f(__uniConfig.router.base):h());if(v.meta.name&&(v.meta.id?g.push(v.meta.name+"-"+v.meta.id):g.push(v.meta.name+"-"+(d+1))),v.meta&&v.meta.name&&(document.body.className="uni-body "+v.meta.name,v.meta.isNVue)){var m="nvue-dir-"+__uniConfig.nvue["flex-direction"];document.body.setAttribute("nvue",""),document.body.setAttribute(m,"")}e.mixin({beforeCreate:function(){var e=this.$options;if("app"===e.mpType){e.data=function(){return{keepAliveInclude:g}};var n=Object(o["a"])(i,v);Object.keys(n).forEach(function(t){e[t]=e[t]?[].concat(n[t],e[t]):[n[t]]}),e.router=p,Array.isArray(e.onError)&&0!==e.onError.length||(e.onError=[function(e){t.error(e)}])}else if(Object(a["b"])(this)){var r=Object(s["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.prototype.createSelectorQuery=function(){return uni.createSelectorQuery().in(this)},e.prototype.createIntersectionObserver=function(t){return uni.createIntersectionObserver(this,t)},e.use(r.a)}}}.call(this,n("3ad9")["default"])},"4da7":function(t,e,n){"use strict";n.r(e);var i,r,a=n("1712"),o=a["a"],s=(n("c8ed"),n("0c7c")),c=Object(s["a"])(o,i,r,!1,null,null,null);e["default"]=c.exports},"4e7c":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"}}}},"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("0c7c")),u=Object(c["a"])(s,i,r,!1,null,null,null);e["default"]=u.exports},"4f43":function(t,e,n){"use strict";n.r(e),function(t){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;n=0&&this._callbacks.splice(e,1)}},{key:"abort",value:function(){this._xhr&&(this._xhr.abort(),delete this._xhr)}}]),t}();function u(e,n){var r,a=e.url,o=e.header,s=__uniConfig.networkTimeout&&__uniConfig.networkTimeout.downloadFile||6e4,u=t,l=u.invokeCallbackHandler,h=new XMLHttpRequest,f=new c(h);return h.open("GET",a,!0),Object.keys(o).forEach(function(t){h.setRequestHeader(t,o[t])}),h.responseType="blob",h.onload=function(){clearTimeout(r);var t=h.status,e=this.response;l(n,{errMsg:"downloadFile:ok",statusCode:t,tempFilePath:Object(i["a"])(e)})},h.onabort=function(){clearTimeout(r),l(n,{errMsg:"downloadFile:fail abort"})},h.onerror=function(){clearTimeout(r),l(n,{errMsg:"downloadFile:fail"})},h.onprogress=function(t){f._callbacks.forEach(function(e){var n=t.loaded,i=t.total,r=Math.round(n/i*100);e({progress:r,totalBytesWritten:n,totalBytesExpectedToWrite:i})})},h.send(),r=setTimeout(function(){h.onprogress=h.onload=h.onabort=h.onerror=null,f.abort(),l(n,{errMsg:"downloadFile:fail timeout"})},s),f}}.call(this,n("0dd1"))},"4fef":function(t,e,n){"use strict";var i=n("2fb0"),r=n.n(i);r.a},"500a":function(t,e,n){},"501c":function(t,e,n){"use strict";n.r(e),n.d(e,"on",function(){return c}),n.d(e,"off",function(){return u}),n.d(e,"once",function(){return l}),n.d(e,"emit",function(){return h}),n.d(e,"subscribe",function(){return f}),n.d(e,"unsubscribe",function(){return d}),n.d(e,"subscribeHandler",function(){return p});var i=n("8bbf"),r=n.n(i),a=n("8ecd"),o=n("4a59");n.d(e,"publishHandler",function(){return o["a"]});var s=new r.a,c=s.$on.bind(s),u=s.$off.bind(s),l=s.$once.bind(s),h=s.$emit.bind(s);function f(t,e){return c("service."+t,e)}function d(t,e){return u("service."+t,e)}function p(t,e,n){h("service."+t,e,n)}Object(a["a"])(f)},5129:function(t,e){t.exports=["uni-app","uni-tabbar","uni-page","uni-page-head","uni-page-wrapper","uni-page-body","uni-page-refresh","uni-actionsheet","uni-modal","uni-toast","uni-resize-sensor","uni-ad","uni-audio","uni-button","uni-camera","uni-canvas","uni-checkbox","uni-checkbox-group","uni-cover-image","uni-cover-view","uni-form","uni-functional-page-navigator","uni-icon","uni-image","uni-input","uni-label","uni-live-player","uni-live-pusher","uni-map","uni-movable-area","uni-movable-view","uni-navigator","uni-official-account","uni-open-data","uni-picker","uni-picker-view","uni-picker-view-column","uni-progress","uni-radio","uni-radio-group","uni-rich-text","uni-scroll-view","uni-slider","uni-swiper","uni-swiper-item","uni-switch","uni-text","uni-textarea","uni-video","uni-view","uni-web-view"]},5363: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}n.d(e,"a",function(){return i}),i.prototype.set=function(t,e){this._x=t,this._v=e,this._startTime=(new Date).getTime()},i.prototype.setVelocityByEnd=function(t){this._v=(t-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)},i.prototype.x=function(t){var e;return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),e=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t),this._dt=t,this._x+this._v*e/this._dragLog-this._v/this._dragLog},i.prototype.dx=function(t){var e;return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),e=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t),this._dt=t,this._v*e},i.prototype.done=function(){return Math.abs(this.dx())<3},i.prototype.reconfigure=function(t){var e=this.x(),n=this.dx();this._drag=t,this._dragLog=Math.log(t),this.set(e,n)},i.prototype.configuration=function(){var t=this;return[{label:"Friction",read:function(){return t._drag},write:function(e){t.reconfigure(e)},min:.001,max:.1,step:.001}]}},"53f0":function(t,e,n){},5408:function(t,e,n){var i={"./button/index.vue":"d3bd","./canvas/index.vue":"bacd","./checkbox-group/index.vue":"25ce","./checkbox/index.vue":"7bb3","./form/index.vue":"b34d","./icon/index.vue":"9a8b","./image/index.vue":"1082","./input/index.vue":"250d","./label/index.vue":"70f4","./movable-area/index.vue":"c61c","./movable-view/index.vue":"8842","./navigator/index.vue":"17fd","./picker-view-column/index.vue":"1955","./picker-view/index.vue":"27ab","./progress/index.vue":"9b1f","./radio-group/index.vue":"d5ec","./radio/index.vue":"6491","./resize-sensor/index.vue":"3e8c","./rich-text/index.vue":"b705","./scroll-view/index.vue":"f1ef","./slider/index.vue":"9f96","./swiper-item/index.vue":"9213","./swiper/index.vue":"5513","./switch/index.vue":"4f1c","./text/index.vue":"4da7","./textarea/index.vue":"5768","./view/index.vue":"2bbe"};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="5408"},5513:function(t,e,n){"use strict";n.r(e);var i,r,a=n("ba15"),o={name:"Swiper",mixins:[a["a"]],props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1}},data:function(){return{currentSync:Math.round(this.current)||0,currentItemIdSync:this.currentItemId||"",userTracking:!1,currentChangeSource:"",items:[]}},computed:{intervalNumber:function(){var t=Number(this.interval);return isNaN(t)?5e3:t},durationNumber:function(){var t=Number(this.duration);return isNaN(t)?500:t},displayMultipleItemsNumber:function(){var t=Math.round(this.displayMultipleItems);return isNaN(t)?1:t},slidesStyle:function(){var t={};return(this.nextMargin||this.previousMargin)&&(t=this.vertical?{left:0,right:0,top:this._upx2px(this.previousMargin),bottom:this._upx2px(this.nextMargin)}:{top:0,bottom:0,left:this._upx2px(this.previousMargin),right:this._upx2px(this.nextMargin)}),t},slideFrameStyle:function(){var t=Math.abs(100/this.displayMultipleItemsNumber)+"%";return{width:this.vertical?"100%":t,height:this.vertical?t:"100%"}},circularEnabled:function(){return this.circular&&this.items.length>this.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:{_inintAutoplay:function(t){t?this._scheduleAutoplay():this._cancelSchedule()},_currentCheck:function(){var t=-1;if(this.currentItemId)for(var e=0,n=this.items;ee-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.autoplay&&this._scheduleAutoplay())):(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;r=this.items.length&&(t-=this.items.length),t=this._transitionStart%1>.5||this._transitionStart<0?t-1:t,this.$trigger("transition",{},{dx:this.vertical?0:t*r.offsetWidth,dy:this.vertical?t*r.offsetHeight:0})},_animateFrameFuncProto:function(){var t=this;if(this._animating){var e=this._animating,n=e.toPos,i=e.acc,r=e.endTime,a=e.source,o=r-Date.now();if(o<=0){this._updateViewport(n),this._animating=null,this._requestedAnimation=!1,this._transitionStart=null;var s=this.items[this.currentSync];s&&this._itemReady(s,function(){var e=s.componentInstance.itemId||"";t.$trigger("animationfinish",{},{current:t.currentSync,currentItemId:e,source:a})})}else{var c=i*o*o/2,u=n+c;this._updateViewport(u),requestAnimationFrame(this._animateFrameFuncProto.bind(this))}}else this._requestedAnimation=!1},_animateViewport:function(t,e,n){this._cancelViewportAnimation();var i=this.durationNumber,r=this.items.length,a=this._viewportPosition;if(this.circularEnabled)if(n<0){for(;at;)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)}var s=this._contentTrackT-n||1;this.vertical?o(-t.dy/this.$refs.slideFrame.offsetHeight,-t.ddy/s):o(-t.dx/this.$refs.slideFrame.offsetWidth,-t.ddx/s)},_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 void(this.autoplay&&this._scheduleAutoplay())}return this._handleTrackMove(t.detail),!1}}}},render:function(t){var e=[],n=[];this.$slots.default&&this.$slots.default.forEach(function(t){t.componentOptions&&"v-uni-swiper-item"===t.componentOptions.tag&&n.push(t)});for(var i=0,r=n.length;i=a||i=4&&(e.text="...")}}}},5676:function(t,e,n){"use strict";var i=n("0950"),r=n.n(i);r.a},"56e9":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 f});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("onShowLoading",t),{}}function h(){return a("onHideLoading"),{}}function f(t,e){a("onShowActionSheet",t,function(t){o(e,-1===t?{errMsg:"showActionSheet:fail cancel"}:{tapIndex:t})})}}.call(this,n("0dd1"))},5727:function(t,e,n){"use strict";var i=n("d60d"),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({attrs:{value:t._checkEmpty(t.value),maxlength:t.maxlengthNumber,placeholder:t._checkEmpty(t.placeholder),disabled:t.disabled,focus:t.focus,"auto-focus":t.autoFocus,"placeholder-class":t._checkEmpty(t.placeholderClass),"placeholder-style":t._checkEmpty(t.placeholderStyle),"auto-height":t.autoHeight,cursor:t.cursorNumber,"selection-start":t.selectionStartNumber,"selection-end":t.selectionEndNumber},on:{change:function(t){t.stopPropagation()}}},t.$listeners),[n("div",{staticClass:"uni-textarea-wrapper"},[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("div",{staticClass:"uni-textarea-compute"},[t._l(t.valueCompute,function(e,i){return n("div",{key:i},[t._v(t._s(e.trim()?e:"."))])}),n("v-uni-resize-sensor",{ref:"sensor",on:{resize:t._resize}})],2),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.valueSync,expression:"valueSync"}],ref:"textarea",staticClass:"uni-textarea-textarea",class:{"uni-textarea-textarea-ios":t.isIOS},attrs:{disabled:t.disabled,maxlength:t.maxlengthNumber,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(e){return e.stopPropagation(),t._input(e)}],focus:t._focus,blur:t._blur,"&touchstart":function(e){return t._touchstart(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},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),valueComposition:"",composition:!1,focusSync:this.focus,height:0,focusChangeSource:"",isIOS:0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")}},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},valueCompute:function(){return(this.composition?this.valueComposition:this.valueSync).split("\n")}},watch:{value:function(t){this.valueSync=String(t)},valueSync:function(t){t!==this._oldValue&&(this._oldValue=t,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._oldValue=this.$refs.textarea.value=this.valueSync,this._resize({height:this.$refs.sensor.$el.offsetHeight})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_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"},_resize:function(t){var e=t.height;this.height=e},_input:function(t){this.composition&&(this.valueComposition=t.target.value)},_getFormData:function(){return{value:this.valueSync,key:this.name}},_resetFormData:function(){this.valueSync=""},_checkEmpty:function(t){return t||!1}}},s=o,c=(n("9400"),n("0c7c")),u=Object(c["a"])(s,i,r,!1,null,null,null);e["default"]=u.exports},"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",{attrs:{id:t.id}},[n("div",{ref:"map",staticStyle:{width:"100%",height:"100%",position:"relative",overflow:"hidden"}}),n("div",{staticStyle:{position:"absolute",top:"0",width:"100%",height:"100%",overflow:"hidden","pointer-events":"none"}},[t._t("default")],2)])},r=[],a=n("8c4b"),o=a["a"],s=(n("3f7e"),n("0c7c")),c=Object(s["a"])(o,i,r,!1,null,null,null);e["default"]=c.exports},5964:function(t,e,n){"use strict";function i(t,e){var n=getCurrentPages();if(n.length){var i=n[n.length-1].$holder;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,document.title=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})},"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("fcd8"),r=n.n(i);r.a},"5abe":function(t,e){(function(){"use strict";if("object"===typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=window.document,e=[];i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i.prototype.observe=function(t){var e=this._observationTargets.some(function(e){return e.element==t});if(!e){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},i.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},i.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]})},i.prototype._parseRootMargin=function(t){var e=t||"0px",n=e.split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return n[1]=n[1]||n[0],n[2]=n[2]||n[0],n[3]=n[3]||n[1],n},i.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(o(window,"resize",this._checkForIntersections,!0),o(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},i.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(window,"resize",this._checkForIntersections,!0),s(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},i.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),e=t?this._getRootRect():l();this._observationTargets.forEach(function(i){var a=i.element,o=u(a),s=this._rootContainsTarget(a),c=i.entry,l=t&&s&&this._computeTargetAndRootIntersection(a,e),h=i.entry=new n({time:r(),target:a,boundingClientRect:o,rootBounds:e,intersectionRect:l});c?t&&s?this._hasCrossedThreshold(c,h)&&this._queuedEntries.push(h):c&&c.isIntersecting&&this._queuedEntries.push(h):this._queuedEntries.push(h)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},i.prototype._computeTargetAndRootIntersection=function(e,n){if("none"!=window.getComputedStyle(e).display){var i=u(e),r=i,a=f(e),o=!1;while(!o){var s=null,l=1==a.nodeType?window.getComputedStyle(a):{};if("none"==l.display)return;if(a==this.root||a==t?(o=!0,s=n):a!=t.body&&a!=t.documentElement&&"visible"!=l.overflow&&(s=u(a)),s&&(r=c(s,r),!r))break;a=f(a)}return r}},i.prototype._getRootRect=function(){var e;if(this.root)e=u(this.root);else{var n=t.documentElement,i=t.body;e={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},i.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100}),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},i.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,i=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==i)for(var r=0;r=0&&s>=0&&{top:n,bottom:i,left:r,right:a,width:o,height:s}}function u(t){var e;try{e=t.getBoundingClientRect()}catch(n){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):l()}function l(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function h(t,e){var n=e;while(n){if(n==t)return!0;n=f(n)}return!1}function f(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e&&e.assignedSlot?e.assignedSlot.parentNode:e}})()},"5d1d":function(t,e,n){"use strict";var i=n("91b0"),r=n.n(i);r.a},"5dc1":function(t,e,n){"use strict";(function(t){n.d(e,"b",function(){return o}),n.d(e,"a",function(){return s});n("5abe");var i=n("85b6");function r(t){return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}var a={};function o(e,n){var o=e.reqId,s=e.options,c=getCurrentPages(),u=c.find(function(t){return t.$page.id===n});if(!u)throw new Error("Not Found:Page[".concat(n,"]"));var l=u.$el,h=s.relativeToSelector?l.querySelector(s.relativeToSelector):null,f=a[o]=new IntersectionObserver(function(e,n){e.forEach(function(e){t.publishHandler("onRequestComponentObserver",{reqId:o,res:{intersectionRatio:e.intersectionRatio,intersectionRect:r(e.intersectionRect),boundingClientRect:r(e.boundingClientRect),relativeRect:r(e.rootBounds),time:Date.now(),dataset:Object(i["c"])(e.target.dataset||{}),id:e.target.id}},u.$page.id)})},{root:h,rootMargin:s.rootMargin,threshold:s.thresholds});s.observeAll?(f.USE_MUTATION_OBSERVER=!0,Array.prototype.map.call(l.querySelectorAll(s.selector),function(t){f.observe(t)})):(f.USE_MUTATION_OBSERVER=!1,f.observe(l.querySelector(s.selector)))}function s(e){var n=e.reqId,i=a[n];i&&(i.disconnect(),t.publishHandler("onRequestComponentObserver",{reqId:n,reqEnd:!0}))}}).call(this,n("501c"))},6062:function(t,e,n){"use strict";var i=n("748c"),r=n.n(i);r.a},6144:function(t,e,n){},"61c2":function(t,e,n){"use strict";var i=n("f2b3"),r=n("8af1");function a(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})}function o(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})}var s={name:"uni://form-field",init:function(t,e){e.constructor.options.props&&e.constructor.options.props.name&&e.constructor.options.props.value||(e.constructor.options.props||(e.constructor.options.props={}),e.constructor.options.props.name||(e.constructor.options.props.name=t.props.name={type:String}),e.constructor.options.props.value||(e.constructor.options.props.value=t.props.value={type:null})),t.propsData||(t.propsData={});var n=e.$vnode;if(n&&n.data&&n.data.attrs&&(Object(i["c"])(n.data.attrs,"name")&&(t.propsData.name=n.data.attrs.name),Object(i["c"])(n.data.attrs,"value")&&(t.propsData.value=n.data.attrs.value)),!e.constructor.options.methods||!e.constructor.options.methods._getFormData){e.constructor.options.methods||(e.constructor.options.methods={}),t.methods||(t.methods={});var s={_getFormData:function(){return this.name?{key:this.name,value:this.value}:{}},_resetFormData:function(){this.value=""}};Object.assign(e.constructor.options.methods,s),Object.assign(t.methods,s),Object.assign(e.constructor.options.methods,r["a"].methods),Object.assign(t.methods,r["a"].methods);var c=t["created"];e.constructor.options["created"]=t["created"]=c?[].concat(a,c):[a];var u=t["beforeDestroy"];e.constructor.options["beforeDestroy"]=t["beforeDestroy"]=u?[].concat(o,u):[o]}}};function c(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,"a",function(){return l});var u=c({},s.name,s);function l(t,e){t.behaviors.forEach(function(n){var i=u[n];i&&i.init(t,e)})}},6226:function(t,e,n){"use strict";var i=n("e670"),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("c99c"),r=n.n(i);r.a},6481:function(t,e,n){"use strict";n.r(e),n.d(e,"base64ToArrayBuffer",function(){return i}),n.d(e,"arrayBufferToBase64",function(){return r});var i=[{name:"base64",type:String,required:!0}],r=[{name:"arrayBuffer",type:[ArrayBuffer,Uint8Array],required:!0}]},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("0c7c")),u=Object(c["a"])(s,i,r,!1,null,null,null);e["default"]=u.exports},"64d0":function(t,e,n){"use strict";var i=n("1047"),r=n.n(i);r.a},6575: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",query:{latitude:i,longitude:r,scale:a,name:o,address:s}},function(){u(n,{errMsg:"openLocation:ok"})},function(){u(n,{errMsg:"openLocation:fail"})})}n.d(e,"openLocation",function(){return i})}.call(this,n("0dd1"))},"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},6725:function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"createSelectorQuery",function(){return f});var i=n("f2b3"),r=n("62b5");function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n=0}},fields:{type:String,default:"day",validator:function(t){return Object.values(d).indexOf(t)>=0}},start:{type:String,default:function(){if(this.mode===f.TIME)return"00:00";if(this.mode===f.DATE){var t=(new Date).getFullYear()-100;switch(this.fields){case d.YEAR:return t;case d.MONTH:return t+"-01";case d.DAY:return t+"-01-01"}}return""}},end:{type:String,default:function(){if(this.mode===f.TIME)return"23:59";if(this.mode===f.DATE){var t=(new Date).getFullYear()+100;switch(this.fields){case d.YEAR:return t;case d.MONTH:return t+"-12";case d.DAY:return t+"-12-31"}}return""}},disabled:{type:[Boolean,String],default:!1}},data:function(){return{valueSync:this.value||0,visible:!1,valueChangeSource:"",timeArray:[],dateArray:[],valueArray:[],oldValueArray:[]}},computed:{rangeArray:function(){var t=this.range;switch(this.mode){case f.SELECTOR:return[t];case f.MULTISELECTOR:return t;case f.TIME:return this.timeArray;case f.DATE:var e=this.dateArray;switch(this.fields){case d.YEAR:return[e[0]];case d.MONTH:return[e[0],e[1]];case d.DAY:return[e[0],e[1],e[2]]}}},startArray:function(){var t=this.mode===f.DATE?"-":":",e=this.mode===f.DATE?this.dateArray:this.timeArray,n=this.start.split(t).map(function(t,n){return e[n].indexOf(t)});return n.indexOf(-1)>=0&&(n=e.map(function(){return 0})),n},endArray:function(){var t=this.mode===f.DATE?"-":":",e=this.mode===f.DATE?this.dateArray:this.timeArray,n=this.end.split(t).map(function(t,n){return e[n].indexOf(t)});return n.indexOf(-1)>=0&&(n=e.map(function(t){return t.length-1})),n},units:function(){switch(this.mode){case f.DATE:return["年","月","日"];case f.TIME:return["时","分"];default:return[]}}},watch:{value:function(t){var e=this;Array.isArray(t)?(Array.isArray(this.valueSync)||(this.valueSync=[]),this.valueSync.length=t.length,t.forEach(function(t,n){t!==e.valueSync[n]&&e.$set(e.valueSync,n,t)})):"object"!==h(t)&&(this.valueSync=t)},valueSync:function(t){this.valueChangeSource&&this.$trigger("change",{},{value:t})},valueArray:function(t){var e=this;if(this.mode===f.TIME||this.mode===f.DATE){var n=this.mode===f.TIME?this._getTimeValue:this._getDateValue,i=this.valueArray,r=this.startArray,a=this.endArray;if(this.mode===f.DATE){var o=this.dateArray,s=o[2].length,c=o[2][i[2]],u=new Date("".concat(o[0][i[0]],"/").concat(o[1][i[1]],"/").concat(c)).getDate();c=Number(c),un(a)&&this._cloneArray(i,a)}t.forEach(function(t,n){t!==e.oldValueArray[n]&&(e.oldValueArray[n]=t,e.mode===f.MULTISELECTOR&&e.$trigger("columnchange",{},{column:n,value:t}))})}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this}),this._createTime(),this._createDate(),this.$watch("valueSync",this._setValue),this.$watch("mode",this._setValue)},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_show:function(){var t=this;if(!this.disabled){this.valueChangeSource="",this._setValue();var e=this.$refs.picker;e.remove(),(document.querySelector("uni-app")||document.body).append(e),e.style.display="block",setTimeout(function(){t.visible=!0},20)}},_getFormData:function(){return{value:this.valueSync,key:this.name}},_resetFormData:function(){this.valueSync=0},_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]+31*(t[1]||0)+(t[2]||0)},_cloneArray:function(t,e){for(var n=0;n=5&&t<=18?t:18},default:18},name:{type:String},address:{type:String}}},"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("9ad5"),o=a["a"],s=n("0c7c"),c=Object(s["a"])(o,i,r,!1,null,null,null);e["default"]=c.exports},"72b3":function(t,e,n){"use strict";function i(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),f=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)),f*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)),f*u*e+h*l*n}}}var d=Math.sqrt(4*i*r-n*n)/(2*i),p=-n/2*i,g=t,v=(e-p*t)/d;return{x:function(t){return Math.pow(Math.E,p*t)*(g*Math.cos(d*t)+v*Math.sin(d*t))},dx:function(t){var e=Math.pow(Math.E,p*t),n=Math.cos(d*t),i=Math.sin(d*t);return e*(v*d*n-g*d*i)+p*e*(v*i+g*n)}}},a.prototype.x=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(t):0},a.prototype.dx=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(t):0},a.prototype.setEnd=function(t,e,n){if(n||(n=(new Date).getTime()),t!==this._endPosition||!r(e,.4)){e=e||0;var i=this._endPosition;this._solution&&(r(e,.4)&&(e=this._solution.dx((n-this._startTime)/1e3)),i=this._solution.x((n-this._startTime)/1e3),r(e,.4)&&(e=0),r(i,.4)&&(i=0),i+=this._endPosition),this._solution&&r(i-t,.4)&&r(e,.4)||(this._endPosition=t,this._solution=this._solve(i-this._endPosition,e),this._startTime=n)}},a.prototype.snap=function(t){this._startTime=(new Date).getTime(),this._endPosition=t,this._solution={x:function(){return 0},dx:function(){return 0}}},a.prototype.done=function(t){return t||(t=(new Date).getTime()),i(this.x(),this._endPosition,.4)&&r(this.dx(),.4)},a.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())},a.prototype.springConstant=function(){return this._k},a.prototype.damping=function(){return this._c},a.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}]}},"748c":function(t,e,n){},"74ce":function(t,e,n){},"77e0":function(t,e,n){"use strict";n.r(e),function(t,n){e["default"]={data:function(){return{showToast:{visible:!1}}},created:function(){var e=this,i="",r=function(t){return function(n){i=t,setTimeout(function(){e.showToast=n},10)}};t.on("onShowToast",r("onShowToast")),t.on("onShowLoading",r("onShowLoading"));var a=function(t){return function(){var r="";if("onHideToast"===t&&"onShowToast"!==i?r="请注意 showToast 与 hideToast 必须配对使用":"onHideLoading"===t&&"onShowLoading"!==i&&(r="请注意 showLoading 与 hideLoading 必须配对使用"),r)return n.warn(r);i="",setTimeout(function(){e.showToast.visible=!1},10)}};t.on("onHidePopup",a("onHidePopup")),t.on("onHideToast",a("onHideToast")),t.on("onHideLoading",a("onHideLoading"))}}}.call(this,n("0dd1"),n("3ad9")["default"])},"78a1":function(t,e,n){"use strict";n.r(e),n.d(e,"onKeyboardHeightChange",function(){return o});var i=n("a118"),r=n("db70"),a=[];function o(t){a.push(t)}Object(r["b"])("onKeyboardHeightChange",function(t){a.forEach(function(e){Object(i["a"])(e,t)})})},"78c8":function(t,e,n){"use strict";n.r(e),n.d(e,"getSystemInfoSync",function(){return u}),n.d(e,"getSystemInfo",function(){return l});var i=n("a470"),r=n("d8c8"),a=n.n(r),o=navigator.userAgent,s=/android/i.test(o),c=/iphone|ipad|ipod/i.test(o);function u(){var t,e,n,r=window.innerWidth,u=window.innerHeight,l=window.screen,h=window.devicePixelRatio,f=l.width,d=l.height,p=navigator.language,g=0;if(c){t="iOS";var v=o.match(/OS\s([\w_]+)\slike/);v&&(e=v[1].replace(/_/g,"."));var m=o.match(/\(([a-zA-Z]+);/);m&&(n=m[1])}else if(s){t="Android";var b=o.match(/Android[\s\/]([\w\.]+)[;\s]/);b&&(e=b[1]);for(var y=o.match(/\((.+?)\)/),_=y?y[1].split(";"):o.split(" "),w=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i],k=0;k<_.length;k++){var S=_[k];if(S.indexOf("Build")>0){n=S.split("Build")[0].trim();break}for(var T=void 0,x=0;x0&&void 0!==arguments[0]?arguments[0]:{};t.interval;if(!o)return o=!0,Object(r["a"])("enableAccelerometer",{enable:!0})}function u(){return o=!1,Object(r["a"])("enableAccelerometer",{enable:!1})}},"7d18":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"uploadFile",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;n=0&&this._callbacks.splice(e,1)}},{key:"abort",value:function(){this._isAbort=!0,this._xhr&&(this._xhr.abort(),delete this._xhr)}}]),t}();function u(e,n){var r=e.url,a=e.filePath,o=e.name,s=e.header,u=e.formData,l=__uniConfig.networkTimeout&&__uniConfig.networkTimeout.uploadFile||6e4,h=t,f=h.invokeCallbackHandler,d=new c(null,n);function p(t){var e,i=new XMLHttpRequest,a=new FormData;Object.keys(u).forEach(function(t){a.append(t,u[t])}),a.append(o,t,t.name||"file-".concat(Date.now())),i.open("POST",r),Object.keys(s).forEach(function(t){i.setRequestHeader(t,s[t])}),i.upload.onprogress=function(t){d._callbacks.forEach(function(e){var n=t.loaded,i=t.total,r=Math.round(n/i*100);e({progress:r,totalBytesSent:n,totalBytesExpectedToSend:i})})},i.onerror=function(){clearTimeout(e),f(n,{errMsg:"uploadFile:fail"})},i.onabort=function(){clearTimeout(e),f(n,{errMsg:"uploadFile:fail abort"})},i.onload=function(){clearTimeout(e);var t=i.status;f(n,{errMsg:"uploadFile:ok",statusCode:t,data:i.responseText||i.response})},d._isAbort?f(n,{errMsg:"uploadFile:fail abort"}):(e=setTimeout(function(){i.upload.onprogress=i.onload=i.onabort=i.onerror=null,d.abort(),f(n,{errMsg:"uploadFile:fail timeout"})},l),i.send(a),d._xhr=i)}return Object(i["b"])(a).then(p).catch(function(){setTimeout(function(){f(n,{errMsg:"uploadFile:fail file error"})},0)}),d}}.call(this,n("0dd1"))},"7e6a":function(t,e,n){"use strict";var i=n("e47d"),r=n.n(i);r.a},"7f16":function(t,e,n){},"7f4e":function(t,e,n){"use strict";function i(t){var e=t.phoneNumber;return window.location.href="tel:".concat(e),{errMsg:"makePhoneCall:ok"}}n.r(e),n.d(e,"makePhoneCall",function(){return i})},"811a":function(t,e,n){"use strict";n.r(e),n.d(e,"connectSocket",function(){return f}),n.d(e,"sendSocketMessage",function(){return d}),n.d(e,"closeSocket",function(){return p}),n.d(e,"onSocketOpen",function(){return g}),n.d(e,"onSocketError",function(){return v}),n.d(e,"onSocketMessage",function(){return m}),n.d(e,"onSocketClose",function(){return b});var i=n("a118"),r=n("db70");function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n=0&&l.splice(o,1)}})},"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){return t._switchTab(e,i)}}},[n("div",{staticClass:"uni-tabbar__bd"},[e.iconPath?n("div",{staticClass:"uni-tabbar__icon",class:{"uni-tabbar__icon__diff":!e.text}},[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("a579"),o=a["a"],s=(n("f4e0"),n("0c7c")),c=Object(s["a"])(o,i,r,!1,null,null,null),u=c.exports,l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"uni-fade"}},[t.visible?n("uni-toast",{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"},[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"},[n("p",{staticClass:"uni-simple-toast__text"},[t._v(t._s(t.title))])])]):t._e()],1)},h=[],f=n("c719"),d=f["a"],p=(n("ff28"),Object(s["a"])(d,l,h,!1,null,null,null)),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"}),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){return 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){return t._close("confirm")}}},[t._v(t._s(t.confirmText))])])])])],1)},m=[],b=n("5a56"),y={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"])(_,v,m,!1,null,null,null)),k=w.exports,S=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){return t._close(-1)}}})]),n("div",{staticClass:"uni-actionsheet",class:{"uni-actionsheet_toggle":t.visible}},[n("div",{staticClass:"uni-actionsheet__menu"},[t.title?n("div",{staticClass:"uni-actionsheet__title"},[t._v(t._s(t.title))]):t._e(),t._l(t.itemList,function(e,i){return n("div",{key:i,staticClass:"uni-actionsheet__cell",style:{color:t.itemColor},on:{click:function(e){return t._close(i)}}},[t._v(t._s(e))])})],2),n("div",{staticClass:"uni-actionsheet__action"},[n("div",{staticClass:"uni-actionsheet__cell",style:{color:t.itemColor},on:{click:function(e){return t._close(-1)}}},[t._v("取消")])])])],1)},T=[],x={name:"ActionSheet",props:{title:{type:String,default:""},itemList:{type:Array,default:function(){return[]}},itemColor:{type:String,default:"#000000"},visible:{type:Boolean,default:!1}},methods:{_close:function(t){this.$emit("close",t)}}},C=x,O=(n("4fef"),Object(s["a"])(C,S,T,!1,null,null,null)),M=O.exports,E={Toast:g,Modal:k,ActionSheet:M};function A(t,e){var n=Object.keys(t);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(t)),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n}function j(t){for(var e=1;e0&&t<1?t:1}}},c={canvasId:{type:String,require:!0},actions:{type:Array,require:!0},reserve:{type:Boolean,default:!1}}},"82c2":function(t,e,n){"use strict";n.r(e),n.d(e,"request",function(){return f});var i=n("f2b3"),r=n("a118"),a=n("db70");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>2],a+=t[(3&i[n])<<4|i[n+1]>>4],a+=t[(15&i[n+1])<<2|i[n+2]>>6],a+=t[63&i[n+2]];return r%3===2?a=a.substring(0,a.length-1)+"=":r%3===1&&(a=a.substring(0,a.length-2)+"=="),a},e.decode=function(t){var e,i,r,a,o,s=.75*t.length,c=t.length,u=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var l=new ArrayBuffer(s),h=new Uint8Array(l);for(e=0;e>4,h[u++]=(15&r)<<4|a>>2,h[u++]=(3&a)<<6|63&o;return l}})()},"83a6":function(t,e,n){"use strict";e["a"]={data:function(){return{hovering:!1}},props:{hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:Number,default:50},hoverStayTime:{type:Number,default:400}},methods:{_hoverTouchStart:function(t){var e=this;t._hoverPropagationStopped||this.hoverClass&&"none"!==this.hoverClass&&!this.disabled&&(t.touches.length>1||(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)}}}},"84e0":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),{}}n.d(e,"pageScrollTo",function(){return i})}.call(this,n("0dd1"))},8542:function(t,e,n){"use strict";n.d(e,"a",function(){return m}),n.d(e,"d",function(){return b}),n.d(e,"e",function(){return S}),n.d(e,"b",function(){return x}),n.d(e,"c",function(){return C});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);e1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach(function(n){if(Array.isArray(t[n])){var r=e[n];e[n]=function(e){w(t[n],e).then(function(t){return Object(i["e"])(r)&&r(t)||t})}}}),e}function S(t,e){var n=[];Array.isArray(l.returnValue)&&n.push.apply(n,r(l.returnValue));var i=h[t];return i&&Array.isArray(i.returnValue)&&n.push.apply(n,r(i.returnValue)),n.forEach(function(t){e=t(e)||e}),e}function T(t){var e=Object.create(null);Object.keys(l).forEach(function(t){"returnValue"!==t&&(e[t]=l[t].slice())});var n=h[t];return n&&Object.keys(n).forEach(function(t){"returnValue"!==t&&(e[t]=(e[t]||[]).concat(n[t]))}),e}function x(t,e,n){for(var i=arguments.length,r=new Array(i>3?i-3:0),a=3;a0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return Array.isArray(t[e])&&t[e].length}function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=JSON.parse(JSON.stringify(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),f=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)),f*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)),f*u*e+h*l*n}}}var d=Math.sqrt(4*i*r-n*n)/(2*i),p=-n/2*i,g=t,v=(e-p*t)/d;return{x:function(t){return Math.pow(Math.E,p*t)*(g*Math.cos(d*t)+v*Math.sin(d*t))},dx:function(t){var e=Math.pow(Math.E,p*t),n=Math.cos(d*t),i=Math.sin(d*t);return e*(v*d*n-g*d*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 f=!1;function d(t){f||(f=!0,requestAnimationFrame(function(){t(),f=!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},animation:{type:[Boolean,String],default:!0}},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.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),d(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",{},{x:t,y:e,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}}},y=b,_=(n("7c2b"),n("0c7c")),w=Object(_["a"])(y,i,r,!1,null,null,null);e["default"]=w.exports},"893e":function(t,e,n){"use strict";n.r(e),function(t,i){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;n=0&&f.splice(r,1)}})});var p=["CLOSED","CLOSING","CONNECTING","OPEN","readyState"];p.forEach(function(t){Object.defineProperty(c,t,{get:function(){return d[t]}})})}catch(g){o=g}a(o,this)}return o(t,[{key:"send",value:function(){var t=arguments.length>0&&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=this._webSocket,n=[];n.push(t.code||1e3),"string"===typeof t.reason&&n.push(t.reason);try{e.close.apply(e,n),this._callback(t,"sendSocketMessage:ok")}catch(i){this._callback(t,"sendSocketMessage:fail ".concat(i))}}},{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 p(t,e){var n=t.url,i=t.protocols;return new d(n,i,function(t,n){t||f.push(n),u(e,{errMsg:"connectSocket:"+(t?"fail ".concat(t):"ok")})})}function g(t,e){var n=f[0];n&&n.readyState===n.OPEN?n.send(Object.assign({},t,{complete:function(t){u(e,t)}})):u(e,{errMsg:"sendSocketMessage:fail WebSocket is not connected "})}function v(t,e){var n=f[0];n?n.close(Object.assign({},t,{complete:function(t){u(e,t)}})):u(e,{errMsg:"closeSocket:fail WebSocket is not connected"})}function m(t){return function(e){h[t]=e}}l.forEach(function(t){var e=t[0].toUpperCase()+t.substr(1);d.prototype["on".concat(e)]=function(e){this._callbacks[t].push(e)}});var b=m("open"),y=m("error"),_=m("message"),w=m("close")}.call(this,n("0dd1"),n("3ad9")["default"])},"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";var i=n("5363"),r=n("72b3");function a(t,e,n){this._extent=t,this._friction=e||new i["a"](.01),this._spring=n||new r["a"](1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}function o(t,e,n){function i(t,e,n,r){if(!t||!t.cancelled){n(e);var a=e.done();a||t.cancelled||(t.id=requestAnimationFrame(i.bind(null,t,e,n,r))),a&&r&&r(e)}}function r(t){t&&t.id&&cancelAnimationFrame(t.id),t&&(t.cancelled=!0)}var a={id:0,cancelled:!1};return i(a,t,e,n),{cancel:r.bind(null,a),model:t}}function s(t,e){e=e||{},this._element=t,this._options=e,this._enableSnap=e.enableSnap||!1,this._itemSize=e.itemSize||0,this._enableX=e.enableX||!1,this._enableY=e.enableY||!1,this._shouldDispatchScrollEvent=!!e.onScroll,this._enableX?(this._extent=(e.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=e.scrollWidth):(this._extent=(e.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=e.scrollHeight),this._position=0,this._scroll=new a(this._extent,e.friction,e.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}a.prototype.snap=function(t,e){this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(e)},a.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()},a.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},a.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},a.prototype.done=function(){return this._springing?this._spring.done():this._friction.done()},a.prototype.setVelocityByEnd=function(t){this._friction.setVelocityByEnd(t)},a.prototype.configuration=function(){var t=this._friction.configuration();return t.push.apply(t,this._spring.configuration()),t},s.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()},s.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()},s.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;s<=0&&s>=-this._extent&&this._scroll.setVelocityByEnd(s)}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=o(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&&(s<=0&&s>=-i._extent&&(i._position=s,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})},s.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()},s.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)))},s.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)},s.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)}},s.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},s.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},s.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 s(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(),event.preventDefault())},_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"])();var n=function(t,e){for(var n=t.target;n&&n!==e;n=n.parentNode)if(n.tagName&&0===n.tagName.indexOf("UNI-"))break;return n};t.prototype.$handleEvent=function(t){if(t instanceof Event){var e=n(t,this.$el);t=r["b"].call(this,t.type,t,{},e||t.target,t.currentTarget)}return t},t.prototype.$getComponentDescriptor=function(t){return Object(o["a"])(t||this)},t.prototype.$handleWxsEvent=function(t){if(t instanceof Event){var e=t.currentTarget,i=e&&e.__vue__&&e.__vue__.$getComponentDescriptor();t=r["b"].call(this,t.type,t,{},n(t,this.$el)||t.target,t.currentTarget),t.instance=i}return t},t.mixin({beforeCreate:function(){var t=this,e=this.$options,n=e.wxs;n&&Object.keys(n).forEach(function(e){t[e]=n[e]}),e.behaviors&&e.behaviors.length&&Object(a["a"])(e,this),Object(i["b"])(this)&&(e.mounted=e.mounted?[].concat(s,e.mounted):[s])}})}}}.call(this,n("501c"))},"8c4b":function(t,e,n){"use strict";(function(t){var i,r=n("8af1"),a=n("f2b3");e["a"]={name:"Map",mixins:[r["d"]],props:{id:{type:String,default:""},latitude:{type:[String,Number],default:39.92},longitude:{type:[String,Number],default:116.46},scale:{type:[String,Number],default:16},markers:{type:Array,default:function(){return[]}},covers:{type:Array,default:function(){return[]}},includePoints:{type:Array,default:function(){return[]}},polyline:{type:Array,default:function(){return[]}},circles:{type:Array,default:function(){return[]}},controls:{type:Array,default:function(){return[]}},showLocation:{type:[Boolean,String],default:!1}},data:function(){return{center:{latitude:116.46,longitude:116.46},isMapReady:!1,isBoundsReady:!1,markersSync:[],polylineSync:[],circlesSync:[],controlsSync:[]}},watch:{latitude:function(){this.centerChange()},longitude:function(){this.centerChange()},scale:function(t){var e=this;this.mapReady(function(){e._map.setZoom(Number(t)||16)})},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.init()})},beforeDestroy:function(){this.removeMarkers(this.markersSync),this.removePolyline(),this.removeCircles(),this.removeControls(),this.removeLocation()},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._locationPosition;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),f=i.geometry.spherical.computeDistanceBetween(l,h)/1e3,d=("number"===typeof r?r:1e3)/36e5,p=f/d,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.$refs.map,{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("click",{},{})}),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")},centerChange:function(){var t=this,e=Number(this.latitude),n=Number(this.longitude);e===this.center.latitude&&n===this.center.longitude||(this.center.latitude=e,this.center.longitude=n,this._map&&this.mapReady(function(){t._map.setCenter(new i.LatLng(e,n))}))},createMarkers:function(t){var e=this,n=this._map,r=this.markersSync;t.forEach(function(t){var o=new i.Marker({map:n,flat:!0,autoRotation:!1});o.id=t.id,e.changeMarker(o,t),i.event.addListener(o,"click",function(n){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))}Object(a["c"])(t,"id")&&e.$trigger("markertap",{},{markerId:t.id})}),r.push(o)})},changeMarker:function(t,e){var n=this,r=this._map,o=e.title||e.name,s=new i.LatLng(e.latitude,e.longitude),c=new Image;c.onload=function(){var u,l,h,f,d=e.anchor||{},p=d.x,g=d.y;e.iconPath&&(e.width||e.height)?(l=e.width||c.width/c.height*e.height,h=e.height||c.height/c.width*e.width):(l=c.width/2,h=c.height/2),p=("number"===typeof p?p:.5)*l,g=("number"===typeof g?g:1)*h,f=h-(h-g),u=new i.MarkerImage(c.src,null,null,new i.Point(p,g),new i.Size(l,h)),t.setPosition(s),t.setIcon(u),t.setRotation(e.rotate||0);var v,m=e.label||{};t.label&&(t.label.setMap(null),delete t.label),m.content&&(v=new i.Label({position:s,map:r,clickable:!1,content:m.content,style:{border:"none",padding:"8px",background:"none",color:m.color,fontSize:(m.fontSize||14)+"px",lineHeight:(m.fontSize||14)+"px",marginLeft:m.x,marginTop:m.y}}),t.label=v);var b,y=e.callout||{},_=t.callout;y.content?b={id:e.id,position:s,map:r,top:f,content:y.content,color:y.color,fontSize:y.fontSize,borderRadius:y.borderRadius,bgColor:y.bgColor,padding:y.padding,boxShadow:y.boxShadow,display:y.display}:o&&(b={id:e.id,position:s,map:r,top:f,content:o,boxShadow:"0px 0px 3px 1px rgba(0,0,0,0.5)"}),b?_?_.setOption(b):(_=t.callout=new i.Callout(b),_.div.onclick=function(t){Object(a["c"])(e,"id")&&n.$trigger("callouttap",t,{markerId:e.id}),t.stopPropagation(),t.preventDefault()}):_&&(_.setMap(null),delete t.callout)},c.src=e.iconPath?this.$getRealPath(e.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]:{};this.option=t;var e=t.map;this.position=t.position,this.index=1,this.visible=this.alwaysVisible="ALWAYS"===t.display,this.init(),Object.defineProperty(this,"onclick",{setter:function(t){this.div.onclick=t},getter:function(){return this.div.onclick}}),e&&this.setMap(e)};e.prototype=new i.Overlay,e.prototype.init=function(){var t=this.option,e=this.div=document.createElement("div"),n=e.style;n.position="absolute",n.whiteSpace="nowrap",n.transform="translateX(-50%) translateY(-100%)",n.zIndex=1,n.boxShadow=t.boxShadow||"none",n.display=this.visible?"block":"none";var i=this.triangle=document.createElement("div");i.setAttribute("style","position: absolute;white-space: nowrap;border-width: 4px;border-style: solid;border-color: #fff transparent transparent;border-image: initial;font-size: 12px;padding: 0px;background-color: transparent;width: 0px;height: 0px;transform: translate(-50%, 100%);left: 50%;bottom: 0;"),this.setStyle(t),this.changed=function(t){n.display=this.visible?"block":"none"},e.appendChild(i)},e.prototype.construct=function(){var t=this.div,e=this.getPanes();e.floatPane.appendChild(t)},e.prototype.draw=function(){var t=this.getProjection();if(this.position&&this.div&&t){var e=t.fromLatLngToDivPixel(this.position),n=this.div.style;n.left=e.x+"px",n.top=e.y+"px"}},e.prototype.destroy=function(){this.div.parentNode.removeChild(this.div),this.div=null,this.triangle=null},e.prototype.setOption=function(t){this.option=t,this.setPosition(t.position),"ALWAYS"===t.display?this.alwaysVisible=this.visible=!0:this.alwaysVisible=!1,this.setStyle(t)},e.prototype.setStyle=function(t){var e=this.div,n=e.style;e.innerText=t.content,n.lineHeight=(t.fontSize||14)+"px",n.fontSize=(t.fontSize||14)+"px",n.padding=(t.padding||8)+"px",n.color=t.color||"#000",n.borderRadius=(t.borderRadius||0)+"px",n.backgroundColor=t.bgColor||"#fff",n.marginTop="-"+(t.top+5)+"px",this.triangle.style.borderColor="".concat(t.bgColor||"#fff"," transparent transparent")},e.prototype.setPosition=function(t){this.position=t,this.draw()},t()};var r=document.createElement("script");r.src="https://map.qq.com/api/js?v=2.exp&key=".concat(e,"&callback=").concat(n,"&libraries=geometry"),document.body.appendChild(r)}}}}}).call(this,n("3ad9")["default"])},"8ce3":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"chooseVideo",function(){return u});var i=n("e2e2"),r=n("f2b3"),a=t,o=a.invokeCallbackHandler,s=null,c=function(t){var e=document.createElement("input");return e.type="file",Object(r["j"])(e,{position:"absolute",visibility:"hidden","z-index":-999,width:0,height:0,top:0,left:0}),e.accept="video/*",1===t.sourceType.length&&"camera"===t.sourceType[0]&&(e.capture="camera"),e};function u(t,e){var n=t.sourceType;s&&(document.body.removeChild(s),s=null),s=c({sourceType:n}),document.body.appendChild(s),s.addEventListener("change",function(t){var n=t.target.files[0],r=Object(i["a"])(n),a={errMsg:"chooseVideo:ok",tempFilePath:r,size:n.size,duration:0,width:0,height:0},s=document.createElement("video");s.onloadedmetadata?(s.onloadedmetadata=function(){a.duration=s.duration||0,a.width=s.videoWidth||0,a.height=s.videoHeight||0,o(e,a)},s.src=r):o(e,a)}),s.click()}}.call(this,n("0dd1"))},"8e16":function(t,e,n){"use strict";var i=n("a1e3"),r=n.n(i);r.a},"8ecd":function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return l});var i=n("f2b3"),r=n("85b6"),a=n("65a8"),o=n("33ed"),s=n("99c6"),c=!!i["h"]&&{passive:!1};function u(e){if(uni.canIUse("css.var")){var n=e.$parent.$parent,i=n.showNavigationBar&&"transparent"!==n.navigationBar.type&&"float"!==n.navigationBar.type?a["a"]+"px":"0px",r=getApp().$children[0].showTabBar?a["b"]+"px":"0px",o=document.documentElement.style;o.setProperty("--window-top",i),o.setProperty("--window-bottom",r),t.debug("".concat(e.$page.route,"[").concat(e.$page.id,"]:--window-top=").concat(i)),t.debug("".concat(e.$page.route,"[").concat(e.$page.id,"]:--window-bottom=").concat(r))}}function l(t){Object.keys(s["a"]).forEach(function(e){t(e,s["a"][e])}),t("pageScrollTo",o["c"]);var e=!1,n=!1;t("onPageLoad",function(t){u(t)}),t("onPageShow",function(t){var a=t.$parent.$parent;t._isMounted&&u(t),n&&document.removeEventListener("touchmove",n,c),a.disableScroll&&(n=o["b"],document.addEventListener("touchmove",n,c));var s=Object(r["a"])(t.$options,"onPageScroll"),l=Object(r["a"])(t.$options,"onReachBottom"),h=a.onReachBottomDistance,f=Object(i["f"])(a.titleNView)&&"transparent"===a.titleNView.type||Object(i["f"])(a.navigationBar)&&"transparent"===a.navigationBar.type;e&&document.removeEventListener("scroll",e),(f||s||l)&&(e=Object(o["a"])(t.$page.id,{enablePageScroll:s,enablePageReachBottom:l,onReachBottomDistance:h,enableTransparentTitleNView:f}),requestAnimationFrame(function(){document.addEventListener("scroll",e)}))})}}).call(this,n("3ad9")["default"])},"8f7e":function(t,e,n){"use strict";n.r(e);var i=n("8bbf"),r=n.n(i),a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-app",{class:{"uni-app--showtabbar":t.showTabBar}},[n("keep-alive",{attrs:{include:t.keepAliveInclude}},[n("router-view",{key:t.key})],1),t.hasTabBar?n("tab-bar",t._b({directives:[{name:"show",rawName:"v-show",value:t.showTabBar,expression:"showTabBar"}]},"tab-bar",t.tabBar,!1)):t._e(),t.$options.components.Toast?n("toast",t._b({},"toast",t.showToast,!1)):t._e(),t.$options.components.ActionSheet?n("action-sheet",t._b({on:{close:t._onActionSheetClose}},"action-sheet",t.showActionSheet,!1)):t._e(),t.$options.components.Modal?n("modal",t._b({on:{close:t._onModalClose}},"modal",t.showModal,!1)):t._e()],1)},o=[],s=n("0f11"),c=s["a"],u=(n("854d"),n("0c7c")),l=Object(u["a"])(c,a,o,!1,null,null,null),h=l.exports,f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-page",{attrs:{"data-page":t.$route.meta.pagePath}},[t.showNavigationBar?n("page-head",t._b({},"page-head",t.navigationBar,!1)):t._e(),t.enablePullDownRefresh?n("page-refresh",{ref:"refresh",attrs:{color:t.refreshOptions.color,offset:t.refreshOptions.offset}}):t._e(),t.enablePullDownRefresh?n("page-body",{nativeOn:{touchstart:function(e){return t._touchstart(e)},touchmove:function(e){return t._touchmove(e)},touchend:function(e){return t._touchend(e)},touchcancel:function(e){return t._touchend(e)}}},[t._t("page")],2):n("page-body",[t._t("page")],2)],1)},d=[],p=n("85b6"),g=n("65a8"),v=n("24d9"),m=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-page-head",{attrs:{"uni-page-head-type":t.type}},[n("div",{staticClass:"uni-page-head",class:{"uni-page-head-transparent":"transparent"===t.type,"uni-page-head-titlePenetrate":t.titlePenetrate},style:{transitionDuration:t.duration,transitionTimingFunction:t.timingFunc,backgroundColor:t.bgColor,color:t.textColor}},[n("div",{staticClass:"uni-page-head-hd"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.backButton,expression:"backButton"}],staticClass:"uni-page-head-btn",on:{click:t._back}},[n("i",{staticClass:"uni-btn-icon",style:{color:t.color,fontSize:"27px"}},[t._v("")])]),t._l(t.btns,function(e,i){return["left"===e.float?n("div",{key:i,staticClass:"uni-page-head-btn",class:{"uni-page-head-btn-red-dot":e.redDot||e.badgeText,"uni-page-head-btn-select":e.select},style:{backgroundColor:"transparent"===t.type?e.background:"transparent",width:e.width},attrs:{"badge-text":e.badgeText}},[n("i",{staticClass:"uni-btn-icon",style:t._formatBtnStyle(e),domProps:{innerHTML:t._s(t._formatBtnFontText(e))},on:{click:function(e){return t._onBtnClick(i)}}})]):t._e()]})],2),t.searchInput?t._e():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.titleImage?n("img",{staticClass:"uni-page-head__title_image",attrs:{src:t.titleImage}}):[t._v("\n "+t._s(t.titleText)+"\n ")]],2)]),t.searchInput?n("div",{staticClass:"uni-page-head-search",style:{"border-radius":t.searchInput.borderRadius,"background-color":t.searchInput.backgroundColor}},[n("div",{staticClass:"uni-page-head-search-placeholder",class:["uni-page-head-search-placeholder-"+(t.focus||t.text?"left":t.searchInput.align)],style:{color:t.searchInput.placeholderColor}},[t._v(t._s(t.text||t.composing?"":t.searchInput.placeholder))]),n("v-uni-input",{ref:"input",staticClass:"uni-page-head-search-input",style:{color:t.searchInput.color},attrs:{focus:t.searchInput.autoFocus,disabled:t.searchInput.disabled,"placeholder-style":"color:"+t.searchInput.placeholderColor,"confirm-type":"search"},on:{focus:t._focus,blur:t._blur,"update:value":t._input},model:{value:t.text,callback:function(e){t.text=e},expression:"text"}})],1):t._e(),n("div",{staticClass:"uni-page-head-ft"},[t._l(t.btns,function(e,i){return["left"!==e.float?n("div",{key:i,staticClass:"uni-page-head-btn",class:{"uni-page-head-btn-red-dot":e.redDot||e.badgeText,"uni-page-head-btn-select":e.select},style:{backgroundColor:"transparent"===t.type?e.background:"transparent",width:e.width},attrs:{"badge-text":e.badgeText}},[n("i",{staticClass:"uni-btn-icon",style:t._formatBtnStyle(e),domProps:{innerHTML:t._s(t._formatBtnFontText(e))},on:{click:function(e){return t._onBtnClick(i)}}})]):t._e()]})],2)]),"transparent"!==t.type&&"float"!==t.type?n("div",{staticClass:"uni-placeholder",class:{"uni-placeholder-titlePenetrate":t.titlePenetrate}}):t._e()])},b=[],y=n("d161"),_=y["a"],w=(n("8e16"),Object(u["a"])(_,m,b,!1,null,null,null)),k=w.exports,S=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)},T=[],x={name:"PageBody"},C=x,O=(n("167a"),Object(u["a"])(C,S,T,!1,null,null,null)),M=O.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=[],j={name:"PageRefresh",props:{color:{type:String,default:"#2BD009"},offset:{type:Number,default:0}}},$=j,I=(n("9b5b"),Object(u["a"])($,E,A,!1,null,null,null)),P=I.exports,B=n("be12"),L={name:"Page",mpType:"page",components:{PageHead:k,PageBody:M,PageRefresh:P},mixins:[B["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{}}},titleImage:{type:String,default:""},transparentTitle:{type:String,default:"none"},titlePenetrate:{type:String,default:"NO"}},data:function(){var t={none:"default",auto:"transparent",always:"float"},e={YES:!0,NO:!1},n=Object(v["a"])({loading:!1,backButton:!this.isQuit&&!this.$route.meta.isQuit,backgroundColor:this.navigationBarBackgroundColor,textColor:"black"===this.navigationBarTextStyle?"#000":"#fff",titleText:this.navigationBarTitleText,titleImage:this.titleImage,duration:"0",timingFunc:"",type:t[this.transparentTitle],transparentTitle:this.transparentTitle,titlePenetrate:e[this.titlePenetrate]},this.titleNView),i="default"===this.navigationStyle&&this.titleNView,r=Object.assign({support:!0,color:"#2BD009",style:"circle",height:70,range:150,offset:0},this.pullToRefresh),a=Object(p["d"])(r.offset);return i&&(this.titleNView&&"transparent"===this.titleNView.type||(a+=g["a"])),r.offset=a,r.height=Object(p["d"])(r.height),r.range=Object(p["d"])(r.range),{showNavigationBar:i,navigationBar:n,refreshOptions:r}},created:function(){document.title=this.navigationBar.titleText}},N=L,D=(n("6226"),Object(u["a"])(N,f,d,!1,null,null,null)),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=[],q={name:"AsyncError",methods:{_onClick:function(){window.location.reload()}}},V=q,H=(n("b628"),Object(u["a"])(V,R,F,!1,null,null,null)),Y=H.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)),Q=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)},J=[],tt=n("92de"),et=tt["a"],nt=(n("9470"),Object(u["a"])(et,Z,J,!1,null,null,null)),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 allow-top-navigation allow-modals allow-popups",frameborder:"0"},on:{load:t._load}}),t.isPoimarkerSrc?n("div",{staticClass:"actTonav",on:{click:t._nav}}):t._e()])],1)},at=[],ot=n("bab8"),st=__uniConfig.qqMapKey,ct="uniapp",ut="https://apis.map.qq.com/tools/poimarker",lt={name:"SystemOpenLocation",components:{SystemHeader:ot["a"]},data:function(){var t=this.$route.query,e=t.latitude,n=t.longitude,i=t.scale,r=void 0===i?18:i,a=t.name,o=void 0===a?"":a,s=t.address,c=void 0===s?"":s;return{latitude:e,longitude:n,scale:r,name:o,address:c,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,ft=(n("3da9"),Object(u["a"])(ht,rt,at,!1,null,null,null)),dt=ft.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="number"===typeof this.current?this.current: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)),yt=bt.exports,_t={ChooseLocation:it,OpenLocation:dt,PreviewImage:yt};r.a.component(h.name,h),r.a.component(z.name,z),r.a.component(Y.name,Y),r.a.component(Q.name,Q),Object.keys(_t).forEach(function(t){var e=_t[t];r.a.component(e.name,e)})},"8ffa":function(t,e,n){},9040:function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"createIntersectionObserver",function(){return f});var i=n("8bbf"),r=n.n(i),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;n0&&void 0!==arguments[0]?arguments[0]:{};this.options.rootMargin=["top","right","bottom","left"].map(function(e){return"".concat(Number(t[e])||0,"px")}).join(" ")}},{key:"relativeTo",value:function(t,e){return this.options.relativeToSelector=t,this._makeRootMargin(e),this}},{key:"relativeToViewport",value:function(t){return this.options.relativeToSelector=null,this._makeRootMargin(t),this}},{key:"observe",value:function(e,n){"function"===typeof n&&(this.options.selector=e,this.reqId=u.push(n),t.publishHandler("requestComponentObserver",{reqId:this.reqId,options:this.options},this.pageId))}},{key:"disconnect",value:function(){t.publishHandler("destroyComponentObserver",{reqId:this.reqId},this.pageId)}}]),e}();function f(e,n){if(e instanceof r.a||(n=e,e=null),e)return new h(e.$page.id,n);var i=getApp();if(i.$route&&i.$route.params.__id__)return new h(i.$route.params.__id__,n);t.emit("onError","createIntersectionObserver:fail")}}.call(this,n("0dd1"))},"90c9":function(t,e,n){},"91b0":function(t,e,n){},"91ce":function(t,e,n){},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:""}},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()})}},o=a,s=(n("bfea"),n("0c7c")),c=Object(s["a"])(o,i,r,!1,null,null,null);e["default"]=c.exports},"924c":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;nMath.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"])},9613:function(t,e,n){},"98be":function(t,e,n){"use strict";var i=n("9250"),r=n.n(i),a=n("27a7"),o=n("ed1a"),s=Object.create(null),c=n("bdb1");c.keys().forEach(function(t){Object.assign(s,c(t))});var u=s,l=n("3b67"),h=Object.assign(Object.create(null),u,l["a"]);n.d(e,"a",function(){return f});var f=Object.create(null);r.a.forEach(function(t){h[t]?f[t]=Object(o["d"])(t,Object(a["b"])(t,h[t])):f[t]=Object(a["c"])(t)})},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")},r=[],a={name:"WebView",props:{src:{type:String,default:""}},watch:{src:function(t,e){this.iframe&&(this.iframe.src=this.$getRealPath(this.src))}},mounted:function(){var t=this.$el.getBoundingClientRect(),e=t.top,n=t.bottom,i=t.width,r=t.height;this.iframe=document.createElement("iframe"),this.iframe.style.position="absolute",this.iframe.style.display="block",this.iframe.style.border=0,this.iframe.style.top=e+"px",this.iframe.style.bottom=n+"px",this.iframe.style.width=i+"px",this.iframe.style.height=r+"px",this.iframe.src=this.$getRealPath(this.src),document.body.appendChild(this.iframe)},activated:function(){this.iframe.style.display="block"},deactivated:function(){this.iframe.style.display="none"},beforeDestroy:function(){document.body.removeChild(this.iframe)}},o=a,s=(n("c33f"),n("0c7c")),c=Object(s["a"])(o,i,r,!1,null,null,null);e["default"]=c.exports},"99c6":function(t,e,n){"use strict";var i=n("6bdf"),r=n("5dc1");e["a"]={requestComponentInfo:i["a"],requestComponentObserver:r["b"],destroyComponentObserver:r["a"]}},"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||{}}}}},"9a72":function(t,e,n){},"9a8b":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-icon",[n("i",{class:"uni-icon-"+t.type,style:{"font-size":t._converPx(t.size),color:t.color},attrs:{role:"img"}})])},r=[],a={name:"Icon",props:{type:{type:String,required:!0,default:""},size:{type:[String,Number],default:23},color:{type:String,default:""}},methods:{_converPx:function(t){if(/\d+[ur]px$/i.test(t))t.replace(/\d+[ur]px$/i,function(t){return"".concat(uni.upx2px(parseFloat(t)),"px")});else if(/^-?[\d\.]+$/.test(t))return"".concat(t,"px");return t||""}}},o=a,s=(n("7e6a"),n("0c7c")),c=Object(s["a"])(o,i,r,!1,null,null,null);e["default"]=c.exports},"9ad5":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"))},"9b1b":function(t,e,n){"use strict";n.r(e),n.d(e,"onWindowResize",function(){return o}),n.d(e,"offWindowResize",function(){return s});var i=n("a118"),r=n("db70"),a=[];function o(t){a.push(t)}function s(t){a.splice(a.indexOf(t),1)}Object(r["b"])("onViewDidResize",function(t){a.forEach(function(e){Object(i["a"])(e,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("0c7c")),u=Object(c["a"])(s,i,r,!1,null,null,null);e["default"]=u.exports},"9b5b":function(t,e,n){"use strict";var i=n("f8d2"),r=n.n(i);r.a},"9e56":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"))},"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("0c7c")),l=Object(u["a"])(c,i,r,!1,null,null,null);e["default"]=l.exports},a118:function(t,e,n){"use strict";(function(t){function i(){var e;return(e=t).invokeCallbackHandler.apply(e,arguments)}n.d(e,"a",function(){return i})}).call(this,n("0dd1"))},a1e3:function(t,e,n){},a201:function(t,e,n){"use strict";n.r(e),n.d(e,"request",function(){return u});var i=n("f2b3"),r={OPTIONS:"OPTIONS",GET:"GET",HEAD:"HEAD",POST:"POST",PUT:"PUT",DELETE:"DELETE",TRACE:"TRACE",CONNECT:"CONNECT"},a={JSON:"json"},o={TEXT:"text",ARRAYBUFFER:"arraybuffer"},s=encodeURIComponent;function c(t,e){var n=t.split("#"),r=n[1]||"";n=n[0].split("?");var a=n[1]||"";t=n[0];var o=a.split("&").filter(function(t){return t});for(var c in a={},o.forEach(function(t){t=t.split("="),a[t[0]]=t[1]}),e)e.hasOwnProperty(c)&&(Object(i["f"])(e[c])?a[s(c)]=s(JSON.stringify(e[c])):a[s(c)]=s(e[c]));return a=Object.keys(a).map(function(t){return"".concat(t,"=").concat(a[t])}).join("&"),t+(a?"?"+a:"")+(r?"#"+r:"")}var u={method:{type:String,validator:function(t,e){t=(t||"").toUpperCase(),e.method=Object.values(r).indexOf(t)<0?r.GET:t}},data:{type:[Object,String,ArrayBuffer],validator:function(t,e){e.data=t||""}},url:{type:String,required:!0,validator:function(t,e){e.method===r.GET&&Object(i["f"])(e.data)&&Object.keys(e.data).length&&(e.url=c(t,e.data))}},header:{type:Object,validator:function(t,e){var n=e.header=t||{};e.method!==r.GET&&(Object.keys(n).find(function(t){return"content-type"===t.toLowerCase()})||(n["Content-Type"]="application/json"))}},dataType:{type:String,validator:function(t,e){e.dataType=(t||a.JSON).toLowerCase()}},responseType:{type:String,validator:function(t,e){t=(t||"").toLowerCase(),e.responseType=Object.values(o).indexOf(t)<0?o.TEXT:t}}}},a20f:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return s});var i=function(){var t=document.createElement("canvas"),e=t.getContext("2d"),n=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/n}(),r=function(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},a={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",setTransform:[4,5]};if(1!==i){var o=CanvasRenderingContext2D.prototype;r(a,function(t,e){o[e]=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);var n=Array.prototype.slice.call(arguments);if("all"===t)n=n.map(function(t){return t*i});else if(Array.isArray(t))for(var r=0;r\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("0c7c"),u=Object(c["a"])(s,i,r,!1,null,null,null);e["default"]=u.exports},b628:function(t,e,n){"use strict";var i=n("bde3"),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":Array.isArray(e)&&(e=e.join(" "));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)}}},f=h,d=n("0c7c"),p=Object(d["a"])(f,i,r,!1,null,null,null);e["default"]=p.exports},b865:function(t,e,n){"use strict";(function(t,i){function r(e,n){return t.emit("api."+e,n)}function a(t,e,n){i.UniViewJSBridge.subscribeHandler(t,e,n)}n.d(e,"a",function(){return r}),n.d(e,"b",function(){return a})}).call(this,n("0dd1"),n("24aa"))},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)}}}},ba15:function(t,e,n){"use strict";var i=function(t,e,n,i){t.addEventListener(e,function(t){"function"===typeof n&&!1===n(t)&&(t.preventDefault(),t.stopPropagation())},{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,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 uni-btn-icon header-btn-icon",on:{click:t._back}},[t._v("")]),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}},created:function(){document.title=this.$slots.default[0].text},methods:{_back:function(){this.$emit("back")},_confirm:function(){this.$emit("confirm")}}},o=a,s=(n("0a32"),n("0c7c")),c=Object(s["a"])(o,i,r,!1,null,null,null);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",t._g({attrs:{"canvas-id":t.canvasId,"disable-scroll":t.disableScroll}},t._listeners),[n("canvas",{ref:"canvas",attrs:{width:"300",height:"150"}}),n("div",{staticStyle:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",overflow:"hidden"}},[t._t("default")],2),n("v-uni-resize-sensor",{ref:"sensor",on:{resize:t._resize}})],1)},r=[],a=n("147b"),o=a["a"],s=(n("0741"),n("0c7c")),c=Object(s["a"])(o,i,r,!1,null,null,null);e["default"]=c.exports},bdb1:function(t,e,n){var i={"./base/base64.js":"1ca3","./base/can-i-use.js":"3648","./base/interceptor.js":"2eae","./base/upx2px.js":"45d2","./context/audio.js":"2c67","./context/background-audio.js":"c3f2","./device/accelerometer.js":"7d13","./device/bluetooth.js":"9481","./device/compass.js":"e4ee","./device/network.js":"8b3f","./media/recorder.js":"3676","./network/download-file.js":"f0c3","./network/request.js":"82c2","./network/socket.js":"811a","./network/upload-file.js":"1ff3","./storage/storage.js":"484e","./ui/create-animation.js":"1e4d","./ui/keyboard.js":"78a1","./ui/page-scroll-to.js":"84e0","./ui/tab-bar.js":"454d","./ui/window.js":"9b1b"};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"},bde3:function(t,e,n){},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"))},be14:function(t,e,n){"use strict";n.r(e),function(t){function i(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,"chooseLocation",function(){return i})}.call(this,n("0dd1"))},bfea:function(t,e,n){"use strict";var i=n("1360"),r=n.n(i);r.a},c312:function(t,e,n){},c33f:function(t,e,n){"use strict";var i=n("74ce"),r=n.n(i);r.a},c3f2:function(t,e,n){"use strict";n.r(e),n.d(e,"getBackgroundAudioManager",function(){return f});var i=n("db70");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;n1&&(e[n[0].trim()]=n[1].trim())}}),e}var h=function(){function e(t){r(this,e),this.$vm=t,this.$el=t.$el}return o(e,[{key:"selectComponent",value:function(t){if(this.$el&&t){var e=this.$el.querySelector(t);return e&&e.__vue__&&f(e.__vue__)}}},{key:"selectAllComponents",value:function(t){if(!this.$el||!t)return[];var e=[];return this.$el.querySelectorAll(t).forEach(function(t){t.__vue__&&e.push(f(t.__vue__))}),e}},{key:"setStyle",value:function(t){return this.$el&&t?("string"===typeof t&&(t=l(t)),Object(i["f"])(t)&&(this.$el.__wxsStyle=t,this.$vm.$forceUpdate()),this):this}},{key:"addClass",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return this.$vm[t]&&this.$vm[t](JSON.parse(JSON.stringify(e))),this}},{key:"requestAnimationFrame",value:function(e){return t.requestAnimationFrame(e),this}},{key:"getState",value:function(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}},{key:"triggerEvent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.$vm.$emit(t,e),this}}]),e}();function f(t){if(t&&t.$options.name&&0===t.$options.name.indexOf("VUni")&&(t=t.$parent),t&&t.$el)return t.$el.__wxsComponentDescriptor||(t.$el.__wxsComponentDescriptor=new h(t)),t.$el.__wxsComponentDescriptor}}).call(this,n("24aa"))},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._resize()},methods:{_resize:function(){this._getWH(),this.items.forEach(function(t,e){t.componentInstance.setParent()})},_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},[t("v-uni-resize-sensor",{on:{resize:this._resize}})].concat(n))}},s=o,c=(n("a3e5"),n("0c7c")),u=Object(c["a"])(s,r,a,!1,null,null,null);e["default"]=u.exports},c719: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"))},c8ed:function(t,e,n){"use strict";var i=n("0dba"),r=n.n(i);r.a},c96e:function(t,e,n){"use strict";var i=n("c312"),r=n.n(i);r.a},c99c:function(t,e,n){},cb0f:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("0f74"),r=/^([a-z-]+:)?\/\//i,a=/^data:.*,.*/;function o(t){return __uniConfig.router.base?__uniConfig.router.base+t:t}function s(t){if(0===t.indexOf("/")){if(0!==t.indexOf("//"))return o(t.substr(1));t="https:"+t}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}},cc5f:function(t,e,n){"use strict";var i=n("6f45"),r=n.n(i);r.a},cc76:function(t,e,n){"use strict";var i=Object.create(null),r=n("19c4");r.keys().forEach(function(t){Object.assign(i,r(t))}),e["a"]=i},cee1:function(t,e,n){},d161: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","float"].indexOf(t)}},coverage:{type:String,default:"132px"},buttons:{type:Array,default:function(){return[]}},searchInput:{type:[Object,Boolean],default:function(){return!1}},titleImage:{type:String,default:""},transparentTitle:{default:"none",validator:function(t){return-1!==["none","auto","always"].indexOf(t)}},titlePenetrate:{type:Boolean,default:!1}},data:function(){return{focus:!1,text:"",composing:!1}},computed:{btns:function(){var t=this,e=[],n={};return this.buttons.length&&this.buttons.forEach(function(a){var o=Object.assign({},a);if(o.fontSrc&&!o.fontFamily){var s,c=o.fontSrc=Object(r["a"])(o.fontSrc);if(c in n)s=n[c];else{s="font".concat(Date.now()),n[c]=s;var u='@font-face{font-family: "'.concat(s,'";src: url("').concat(c,'") format("truetype")}');Object(i["a"])(u,"uni-btn-font-"+s)}o.fontFamily=s}o.color="transparent"===t.type?"#fff":o.color||t.textColor;var l=o.fontSize||("transparent"===t.type||/\\u/.test(o.text)?"22px":"27px");/\d$/.test(l)&&(l+="px"),o.fontSize=l,o.fontWeight=o.fontWeight||"normal",e.push(o)}),e}},mounted:function(){var e=this;if(this.searchInput){var n=this.$refs.input;n.$watch("composing",function(t){e.composing=t}),this.searchInput.disabled?n.$el.addEventListener("click",function(){t.emit("onNavigationBarSearchInputClicked","")}):n.$refs.input.addEventListener("keyup",function(n){"ENTER"===n.key.toUpperCase()&&t.emit("onNavigationBarSearchInputConfirmed",{text:e.text})})}},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){return t.fontSrc&&t.fontFamily?t.text.replace("\\u","&#x"):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},_focus:function(){this.focus=!0},_blur:function(){this.focus=!1},_input:function(e){t.emit("onNavigationBarSearchInputChanged",{text:e})}}}}).call(this,n("0dd1"))},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("0c7c")),u=Object(c["a"])(s,i,r,!1,null,null,null);e["default"]=u.exports},d4b6:function(t,e,n){"use strict";n.d(e,"b",function(){return d}),n.d(e,"a",function(){return S});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["c"])(t.dataset)};return e&&Object.assign(n,e),n}function f(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]:{};if(e._processed)return e.type=n.type||t,e;if("click"===t){var s=Object(o["a"])(),c=s.top;n={x:e.x,y:e.y-c},e.touches=e.changedTouches=[{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY}]}var u=Object(a["b"])({type:n.type||t,timeStamp:e.timeStamp||0,detail:n,target:h(i,n),currentTarget:h(r),touches:e instanceof Event||e instanceof CustomEvent?f(e.touches):e.touches,changedTouches:e instanceof Event||e instanceof CustomEvent?f(e.changedTouches):e.changedTouches,preventDefault:function(){},stopPropagation:function(){}});return u}var p=350,g=10,v=!!i["h"]&&{passive:!0},m=!1;function b(){m&&(clearTimeout(m),m=!1)}var y=0,_=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;y=i,_=r,m=setTimeout(function(){var e=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:t.target,currentTarget:t.currentTarget});e.touches=t.touches,e.changedTouches=t.changedTouches,t.target.dispatchEvent(e)},p)}}function k(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-y)>g||Math.abs(r-_)>g?b():void 0}}function S(){window.addEventListener("touchstart",w,v),window.addEventListener("touchmove",k,v),window.addEventListener("touchend",b,v),window.addEventListener("touchcancel",b,v)}},d5bc:function(t,e,n){},d5be:function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"chooseImage",function(){return u});var i=n("e2e2"),r=n("f2b3"),a=t,o=a.invokeCallbackHandler,s=null,c=function(t){var e=document.createElement("input");return e.type="file",Object(r["j"])(e,{position:"absolute",visibility:"hidden","z-index":-999,width:0,height:0,top:0,left:0}),e.accept="image/*",t.count>1&&(e.multiple="multiple"),1===t.sourceType.length&&"camera"===t.sourceType[0]&&(e.capture="camera"),e};function u(t,e){var n=t.count,r=t.sourceType;s&&(document.body.removeChild(s),s=null),s=c({count:n,sourceType:r}),document.body.appendChild(s),s.addEventListener("change",function(t){for(var n=[],r=[],a=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("0c7c")),u=Object(c["a"])(s,i,r,!1,null,null,null);e["default"]=u.exports},d60d:function(t,e,n){},d677: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-image",t._g({attrs:{src:t.src}},t.$listeners),[n("div",{staticClass:"uni-cover-image"},[t.src?n("img",{attrs:{src:t.$getRealPath(t.src)},on:{load:t._load,error:t._error}}):t._e()])])},r=[],a={name:"CoverImage",props:{src:{type:String,default:""}},methods:{_load:function(t){this.$trigger("load",t)},_error:function(t){this.$trigger("error",t)}}},o=a,s=(n("5d1d"),n("0c7c")),c=Object(s["a"])(o,i,r,!1,null,null,null);e["default"]=c.exports},d8c8:function(t,e,n){"use strict";var i,r,a=["top","left","right","bottom"],o={};function s(){return r="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":"",r}function c(){if(r="string"===typeof r?r:s(),r){var t=[],e=!1;try{var n=Object.defineProperty({},"passive",{get:function(){e={passive:!0}}});window.addEventListener("test",null,n)}catch(d){}var c=document.createElement("div");u(c,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),a.forEach(function(t){f(c,t)}),document.body.appendChild(c),l(),i=!0}else a.forEach(function(t){o[t]=0});function u(t,e){var n=t.style;Object.keys(e).forEach(function(t){var i=e[t];n[t]=i})}function l(e){e?t.push(e):t.forEach(function(t){t()})}function f(t,n){var i=document.createElement("div"),a=document.createElement("div"),s=document.createElement("div"),c=document.createElement("div"),f=100,d=1e4,p={position:"absolute",width:f+"px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:r+"(safe-area-inset-"+n+")"};u(i,p),u(a,p),u(s,{transition:"0s",animation:"none",width:"400px",height:"400px"}),u(c,{transition:"0s",animation:"none",width:"250%",height:"250%"}),i.appendChild(s),a.appendChild(c),t.appendChild(i),t.appendChild(a),l(function(){i.scrollTop=a.scrollTop=d;var t=i.scrollTop,r=a.scrollTop;function o(){this.scrollTop!==(this===i?t:r)&&(i.scrollTop=a.scrollTop=d,t=i.scrollTop,r=a.scrollTop,h(n))}i.addEventListener("scroll",o,e),a.addEventListener("scroll",o,e)});var g=getComputedStyle(i);Object.defineProperty(o,n,{configurable:!0,get:function(){return parseFloat(g.paddingBottom)}})}}function u(t){return i||c(),o[t]}var l=[];function h(t){l.length||setTimeout(function(){var t={};l.forEach(function(e){t[e]=o[e]}),l.length=0,f.forEach(function(e){e(t)})},0),l.push(t)}var f=[];function d(t){s()&&(i||c(),"function"===typeof t&&f.push(t))}function p(t){var e=f.indexOf(t);e>=0&&f.splice(e,1)}var g={get support(){return 0!=("string"===typeof r?r:s()).length},get top(){return u("top")},get left(){return u("left")},get right(){return u("right")},get bottom(){return u("bottom")},onChange:d,offChange:p};t.exports=g},daa0: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"))},db18:function(t,e,n){"use strict";var i=n("08c9"),r=n.n(i);r.a},db70:function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return r}),n.d(e,"b",function(){return a});var i=n("3b67");function r(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r-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;l=0?d:255,[l,h,f,d]}return i.group("非法颜色: "+t),i.error("不支持颜色:"+t),i.groupEnd(),[0,0,0,255]}function m(t){this.width=t}function b(t,e){this.image=t,this.repetition=e}var y,_=function(){function t(e,n){l(this,t),this.type=e,this.data=n,this.colorStop=[]}return f(t,[{key:"addColorStop",value:function(t,e){this.colorStop.push([t,v(e)])}}]),t}(),w=["scale","rotate","translate","setTransform","transform"],k=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],S=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];function T(){return y||(y=document.createElement("canvas")),y}var x=function(){function t(e,n){l(this,t),this.id=e,this.pageId=n,this.actions=[],this.path=[],this.subpath=[],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 f(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=o(this.actions);this.actions=[],this.path=[],"function"===typeof n&&(t=d.push(n)),p(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 b(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=T().getContext("2d");return e.font=this.state.font,new m(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:o(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=o(this.actions);return this.clearActions(),t}},{key:"lineDashOffset",set:function(t){this.actions.push({method:"setLineDashOffset",data:[t]})}},{key:"globalCompositeOperation",set:function(t){this.actions.push({method:"setGlobalCompositeOperation",data:[t]})}},{key:"shadowBlur",set:function(t){this.actions.push({method:"setShadowBlur",data:[t]})}},{key:"shadowColor",set:function(t){this.actions.push({method:"setShadowColor",data:[t]})}},{key:"shadowOffsetX",set:function(t){this.actions.push({method:"setShadowOffsetX",data:[t]})}},{key:"shadowOffsetY",set:function(t){this.actions.push({method:"setShadowOffsetY",data:[t]})}},{key:"font",set:function(t){var e=this;this.state.font=t;var n=t.match(/^(([\w\-]+\s)*)(\d+r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(n){var r=n[1].trim().split(/\s/),a=parseFloat(n[3]),o=n[7],s=[];r.forEach(function(t,n){["italic","oblique","normal"].indexOf(t)>-1?(s.push({method:"setFontStyle",data:[t]}),e.state.fontStyle=t):["bold","normal"].indexOf(t)>-1?(s.push({method:"setFontWeight",data:[t]}),e.state.fontWeight=t):0===n?(s.push({method:"setFontStyle",data:["normal"]}),e.state.fontStyle="normal"):1===n&&c()}),1===r.length&&c(),r=s.map(function(t){return t.data[0]}).join(" "),this.state.fontSize=a,this.state.fontFamily=o,this.actions.push({method:"setFont",data:["".concat(r," ").concat(a,"px ").concat(o)]})}else i.warn("Failed to set 'font' on 'CanvasContext': invalid format.");function c(){s.push({method:"setFontWeight",data:["normal"]}),e.state.fontWeight="normal"}},get:function(){return this.state.font}},{key:"fillStyle",set:function(t){this.setFillStyle(t)}},{key:"strokeStyle",set:function(t){this.setStrokeStyle(t)}},{key:"globalAlpha",set:function(t){t=Math.floor(255*parseFloat(t)),this.actions.push({method:"setGlobalAlpha",data:[t]})}},{key:"textAlign",set:function(t){this.actions.push({method:"setTextAlign",data:[t]})}},{key:"lineCap",set:function(t){this.actions.push({method:"setLineCap",data:[t]})}},{key:"lineJoin",set:function(t){this.actions.push({method:"setLineJoin",data:[t]})}},{key:"lineWidth",set:function(t){this.actions.push({method:"setLineWidth",data:[t]})}},{key:"miterLimit",set:function(t){this.actions.push({method:"setMiterLimit",data:[t]})}},{key:"textBaseline",set:function(t){this.actions.push({method:"setTextBaseline",data:[t]})}}]),t}();function C(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(w,k).forEach(function(t){function e(t){switch(t){case"fill":case"stroke":return function(){this.actions.push({method:t+"Path",data:o(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&&void 0!==arguments[0]?arguments[0]:{};t.interval;if(!o)return o=!0,Object(r["a"])("enableCompass",{enable:!0})}function u(){return o=!1,Object(r["a"])("enableCompass",{enable:!1})}},e5bb:function(t,e,n){"use strict";n.r(e),n.d(e,"chooseLocation",function(){return i});var i={keyword:{type:String}}},e670:function(t,e,n){},e826:function(t,e,n){"use strict";n.r(e),function(t){function i(e,n){var i=e.filePath,r=t,a=r.invokeCallbackHandler;window.open(i),a(n,{errMsg:"openDocument:ok"})}n.d(e,"openDocument",function(){return i})}.call(this,n("0dd1"))},e865:function(t,e,n){"use strict";var i=n("a897"),r=n.n(i);r.a},e8b5:function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"onWindowResize",function(){return o}),n.d(e,"offWindowResize",function(){return s});var i=[],r=[];function a(){r.push(setTimeout(function(){r.forEach(function(t){return clearTimeout(t)}),r.length=0;var e=t,n=e.invokeCallbackHandler,a=uni.getSystemInfoSync(),o=a.windowWidth,s=a.windowHeight,c=a.screenWidth,u=a.screenHeight,l=90===Math.abs(window.orientation),h=l?"landscape":"portrait";i.forEach(function(t){n(t,{deviceOrientation:h,size:{windowWidth:o,windowHeight:s,screenWidth:c,screenHeight:u}})})},20))}function o(t){i.length||window.addEventListener("resize",a),i.push(t)}function s(t){i.splice(i.indexOf(t),1),i.length||window.removeEventListener("resize",a)}}.call(this,n("0dd1"))},e949:function(t,e,n){"use strict";function i(t,e){var n=arguments.length>2&&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})},eaa4:function(t,e,n){},ec33:function(t,e,n){"use strict";n.r(e),n.d(e,"getStorage",function(){return i}),n.d(e,"getStorageSync",function(){return r}),n.d(e,"setStorage",function(){return a}),n.d(e,"setStorageSync",function(){return o}),n.d(e,"removeStorage",function(){return s}),n.d(e,"removeStorageSync",function(){return c});var i={key:{type:String,required:!0}},r=[{name:"key",type:String,required:!0}],a={key:{type:String,required:!0},data:{required:!0}},o=[{name:"key",type:String,required:!0},{name:"data",required:!0}],s=i,c=r},ed1a:function(t,e,n){"use strict";n.d(e,"b",function(){return l}),n.d(e,"a",function(){return h}),n.d(e,"c",function(){return f}),n.d(e,"d",function(){return g});var i=n("f2b3"),r=n("8542"),a=/^\$|restoreGlobal|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64/,o=/^create|Manager$/,s=["request","downloadFile","uploadFile","connectSocket"],c=/^on/;function u(t){return o.test(t)}function l(t){return a.test(t)}function h(t){return c.test(t)}function f(t){return-1!==s.indexOf(t)}function d(t){return t.then(function(t){return[null,t]}).catch(function(t){return[t]})}function p(t){return!(u(t)||l(t)||h(t))}function g(t,e){return p(t)?function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length,o=new Array(a>1?a-1:0),s=1;s=0&&this._callbacks.splice(e,1)}},{key:"offHeadersReceived",value:function(){}}]),t}(),u=Object.create(null);function l(t,e){var n=Object(r["a"])("createDownloadTask",t),i=n.downloadTaskId,a=new c(i,e);return u[i]=a,a}Object(r["b"])("onDownloadTaskStateChange",function(t){var e=t.downloadTaskId,n=t.state,r=t.tempFilePath,a=t.statusCode,o=t.progress,s=t.totalBytesWritten,c=t.totalBytesExpectedToWrite,l=t.errMsg,h=u[e],f=h._callbackId;switch(n){case"progressUpdate":h._callbacks.forEach(function(t){t({progress:o,totalBytesWritten:s,totalBytesExpectedToWrite:c})});break;case"success":Object(i["a"])(f,{tempFilePath:r,statusCode:a,errMsg:"request:ok"});case"fail":Object(i["a"])(f,{errMsg:"request:fail "+l});default:setTimeout(function(){delete u[e]},100);break}})},f102:function(t,e,n){"use strict";n.r(e),n.d(e,"makePhoneCall",function(){return i});var i={phoneNumber:{type:String,required:!0,validator:function(t){if(!t)return"makePhoneCall:fail parameter error: parameter.phoneNumber should not be empty String;"}}}},f10e:function(t,e,n){"use strict";var i=n("53f0"),r=n.n(i);r.a},f1b2:function(t,e,n){"use strict";n.r(e),n.d(e,"chooseImage",function(){return a});var i=["original","compressed"],r=["album","camera"],a={count:{type:Number,required:!1,default:9,validator:function(t,e){t<=0&&(e.count=9)}},sizeType:{type:Array,required:!1,default:i,validator:function(t,e){var n=t.length;if(n){for(var r=0;r9?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 f(t){var e=Object.create(null);return function(n){var i=e[n];return i||(e[n]=t(n))}}var d=/-(\w)/g;f(function(t){return t.replace(d,function(t,e){return e?e.toUpperCase():""})});function p(t,e,n){e.forEach(function(e){l(n,e)&&(t[e]=n[e])})}function g(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(""+t).replace(/[^\x00-\xff]/g,"**").length}function v(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 m(t,e){for(var n in e)t.style[n]=e[n]}function b(t){var e,n,i;if(t=t.replace("#",""),6===t.length)e=t.substring(0,2),n=t.substring(2,4),i=t.substring(4,6);else{if(3!==t.length)return!1;e=t.substring(0,1),n=t.substring(1,2),i=t.substring(2,3)}return 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}}decodeURIComponent;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 p}),n.d(e,"b",function(){return g}),n.d(e,"a",function(){return v}),n.d(e,"j",function(){return m}),n.d(e,"d",function(){return b})},f4e0:function(t,e,n){"use strict";var i=n("ffdb"),r=n.n(i);r.a},f53a:function(t,e,n){"use strict";var i=n("4871"),r=n.n(i);r.a},f6fd:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(i){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(i.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},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"))},f7fd:function(t,e,n){"use strict";var i=n("ac9d"),r=n.n(i);r.a},f8d2:function(t,e,n){},f9d2:function(t,e,n){"use strict";n.r(e),n.d(e,"createInnerAudioContext",function(){return h});var i=n("cb0f");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;n0&&(n.currentTime=t)});var o=["canplay","play","pause","ended","timeUpdate","error","waiting","seeking","seeked"],u=["pause","seeking","seeked","timeUpdate"];o.forEach(function(t){n.addEventListener(t.toLowerCase(),function(){e._stoping&&u.indexOf(t)>=0||e._events["on".concat(t.substr(0,1).toUpperCase()).concat(t.substr(1))].forEach(function(t){t()})},!1)})}return o(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 h(){return new l}c.forEach(function(t){l.prototype[t]=function(e){"function"===typeof e&&this._events[t].push(e)}}),u.forEach(function(t){l.prototype[t]=function(e){var n=this._events[t.replace("off","on")],i=n.indexOf(e);i>=0&&n.splice(i,1)}})},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})},fa89:function(t,e,n){},fae3:function(t,e,n){"use strict";var i;(n.r(e),"undefined"!==typeof window)&&(n("f6fd"),(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("90c9"),r=n.n(i);r.a},fcd1: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 f}),n.d(e,"showTabBarRedDot",function(){return d}),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=!1,c=getCurrentPages();if(c.length?c[c.length-1].$page.meta.isTabBar&&(s=!0):n.$children[0].hasTabBar&&(s=!0),!s)return{errMsg:"".concat(t,":fail not TabBar page")};var u=e.index,l=n.$children[0].tabBar;if(u>=__uniConfig.tabBar.list.length)return{errMsg:"".concat(t,":fail tabbar item not found")};switch(t){case"showTabBar":n.$children[0].hideTabBar=!1;break;case"hideTabBar":n.$children[0].hideTabBar=!0;break;case"setTabBarItem":Object(i["g"])(l.list[u],r,e);break;case"setTabBarStyle":Object(i["g"])(l,a,e);break;case"showTabBarRedDot":Object(i["g"])(l.list[u],o,{badge:"",redDot:!0});break;case"setTabBarBadge":Object(i["g"])(l.list[u],o,{badge:e.text,redDot:!0});break;case"hideTabBarRedDot":case"removeTabBarBadge":Object(i["g"])(l.list[u],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 f(t){return s("hideTabBarRedDot",t)}function d(t){return s("showTabBarRedDot",t)}function p(t){return s("removeTabBarBadge",t)}function g(t){return s("setTabBarBadge",t)}},fcd8:function(t,e,n){},ff28:function(t,e,n){"use strict";var i=n("23af"),r=n.n(i);r.a},ffdb:function(t,e,n){},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")}({"0138":function(t,e,n){"use strict";n.r(e),function(t){var i=n("052f"),r=n("3d1f"),o=n("98be"),a=n("abbf");n.d(e,"getApp",function(){return a["b"]}),n.d(e,"getCurrentPages",function(){return a["c"]}),Object(i["a"])(t.on,{getApp:a["b"],getCurrentPages:a["c"]}),Object(r["a"])(t.subscribe,{getApp:a["b"],getCurrentPages:a["c"]}),e["default"]=o["a"]}.call(this,n("0dd1"))},"052f":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("a741"),r=n("45db");function o(t,e){var n=e.getApp,o=e.getCurrentPages;function a(t){Object(i["a"])(n(),"onError",t)}function s(t){Object(i["a"])(n(),"onPageNotFound",t)}function c(t,e){var n=o().find(function(t){return t.$page.id===e});n&&(Object(r["setPullDownRefreshPageId"])(e),Object(i["b"])(n,"onPullDownRefresh"))}function u(t,e){var n=o();n.length&&Object(i["b"])(n[n.length-1],t,e)}function l(t){return function(e){u(t,e)}}function h(){Object(i["a"])(n(),"onHide"),u("onHide")}function f(){Object(i["a"])(n(),"onShow"),u("onShow")}function d(t,e){var n=t.name,i=t.arg;"postMessage"===n||uni[n](i)}t("onError",a),t("onPageNotFound",s),t("onAppEnterBackground",h),t("onAppEnterForeground",f),t("onPullDownRefresh",c),t("onTabItemTap",l("onTabItemTap")),t("onNavigationBarButtonTap",l("onNavigationBarButtonTap")),t("onNavigationBarSearchInputChanged",l("onNavigationBarSearchInputChanged")),t("onNavigationBarSearchInputConfirmed",l("onNavigationBarSearchInputConfirmed")),t("onNavigationBarSearchInputClicked",l("onNavigationBarSearchInputClicked")),t("onWebInvokeAppService",d)}},"0554":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"getLocation",function(){return o});var i=n("ffdc");function r(t,e,n){var r=__uniConfig.qqMapKey,o="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"])(o,{},function(t){"locations"in t&&t.locations.length?e({longitude:t.locations[0].lng,latitude:t.locations[0].lat}):n(t)},n)}function o(e,n){var i=e.type,o=e.altitude,a=t,s=a.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(t){s(n,{errMsg:"getLocation:fail "+JSON.stringify(t)})})},function(){s(n,{errMsg:"getLocation:fail"})},{enableHighAccuracy:o,timeout:3e5}):s(n,{errMsg:"getLocation:fail device nonsupport geolocation"})}}.call(this,n("0dd1"))},"0741":function(t,e,n){"use strict";var i=n("9a72"),r=n.n(i);r.a},"0758":function(t,e,n){"use strict";n.r(e),function(t){function i(e,n,i,r){var o=n.$page.id;t.publishHandler(o+"-map-"+e,{mapId:e,type:i,data:r},o)}n.d(e,"operateMapPlayer",function(){return i})}.call(this,n("0dd1"))},"0784":function(t,e,n){"use strict";var i=n("a741"),r=n("f2b3");function o(t){var e=t.$route;t.route=e.meta.pagePath;var n=Object(r["c"])(e.params,"__id__")?e.params.__id__:e.meta.id;t.__page__={id:n,path:e.path,route:e.meta.pagePath,meta:Object.assign({},e.meta)},t.$vm=t,t.$root=t,t.$holder=t.$parent.$parent,t.$mp={mpType:"page",page:t,query:{},status:""}}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={};return Object.keys(t).forEach(function(n){try{e[n]=decodeURIComponent(t[n])}catch(i){e[n]=t[n]}}),e}function s(){return{created:function(){o(this),Object(i["b"])(this,"onLoad",a(this.$route.query)),Object(i["b"])(this,"onShow")}}}n.d(e,"a",function(){return s})},"08c9":function(t,e,n){},"091a":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"createIntersectionObserver",function(){return h});var i=n("62b5"),r=n("db70");function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.options.rootMargin=["top","right","bottom","left"].map(function(e){return"".concat(Number(t[e])||0,"px")}).join(" ")}},{key:"relativeTo",value:function(t,e){return this.options.relativeToSelector=t,this._makeRootMargin(e),this}},{key:"relativeToViewport",value:function(t){return this.options.relativeToSelector=null,this._makeRootMargin(t),this}},{key:"observe",value:function(e,n){"function"===typeof n&&(this.options.selector=e,this.reqId=c.push(n),t.publishHandler("requestComponentObserver",{reqId:this.reqId,component:this.component,options:this.options},this.pageId))}},{key:"disconnect",value:function(){t.publishHandler("destroyComponentObserver",{reqId:this.reqId},this.pageId)}}]),e}();function h(t,e){return t._isVue||(e=t,t=null),new l(t||Object(r["a"])("createIntersectionObserver"),e)}}.call(this,n("0dd1"))},"0950":function(t,e,n){},"0998":function(t,e,n){"use strict";var i=n("4509"),r=n.n(i);r.a},"09e5":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"requestComponentInfo",function(){return o});var i=n("62b5"),r=Object(i["a"])("requestComponentInfo");function o(e,n,i){t.publishHandler("requestComponentInfo",{reqId:r.push(i),reqs:n},e.$page.id)}}.call(this,n("0dd1"))},"0a32":function(t,e,n){"use strict";var i=n("17ac"),r=n.n(i);r.a},"0c7c":function(t,e,n){"use strict";function i(t,e,n,i,r,o,a,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),o&&(u._scopeId="data-v-"+o),a?(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(a)},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})},"0dba":function(t,e,n){},"0dd1":function(t,e,n){"use strict";n.r(e),n.d(e,"on",function(){return c}),n.d(e,"off",function(){return u}),n.d(e,"once",function(){return l}),n.d(e,"emit",function(){return h}),n.d(e,"subscribe",function(){return f}),n.d(e,"unsubscribe",function(){return d}),n.d(e,"subscribeHandler",function(){return p});var i=n("8bbf"),r=n.n(i),o=n("27a7");n.d(e,"invokeCallbackHandler",function(){return o["a"]});var a=n("b865");n.d(e,"publishHandler",function(){return a["b"]});var s=new r.a,c=s.$on.bind(s),u=s.$off.bind(s),l=s.$once.bind(s),h=s.$emit.bind(s);function f(t,e){return c("view."+t,e)}function d(t,e){return u("view."+t,e)}function p(t,e,n){return h("view."+t,e,n)}},"0f11":function(t,e,n){"use strict";(function(t,i){var r=n("f2b3"),o=n("65a8"),a=n("81ea"),s=n("f1ea");e["a"]={name:"App",components:a["a"],mixins:s["default"],props:{keepAliveInclude:{type:Array,default:function(){return[]}}},data:function(){return{transitionName:"fade",hideTabBar:!1,tabBar:__uniConfig.tabBar||{}}},computed:{key:function(){return this.$route.meta.name+"-"+this.$route.params.__id__+"-"+(__uniConfig.reLaunch||1)},hasTabBar:function(){return __uniConfig.tabBar&&__uniConfig.tabBar.list&&__uniConfig.tabBar.list.length},showTabBar:function(){return this.$route.meta.isTabBar&&!this.hideTabBar}},watch:{$route:function(e,n){t.emit("onHidePopup")},hideTabBar:function(t,e){if(uni.canIUse("css.var")){var n=t?"0px":o["b"]+"px";document.documentElement.style.setProperty("--window-bottom",n),i.debug("uni.".concat(n?"showTabBar":"hideTabBar",":--window-bottom=").concat(n))}window.dispatchEvent(new CustomEvent("resize"))}},created:function(){uni.canIUse("css.var")&&document.documentElement.style.setProperty("--status-bar-height","0px")},mounted:function(){window.addEventListener("message",function(e){Object(r["f"])(e.data)&&"WEB_INVOKE_APPSERVICE"===e.data.type&&t.emit("onWebInvokeAppService",e.data.data,e.data.pageId)}),document.addEventListener("visibilitychange",function(){"visible"===document.visibilityState?t.emit("onAppEnterForeground"):t.emit("onAppEnterBackground")})}}}).call(this,n("0dd1"),n("3ad9")["default"])},"0f55":function(t,e,n){"use strict";var i=n("eaa4"),r=n.n(i);r.a},"0f74":function(t,e,n){"use strict";function i(t,e){if(e){if(0===e.indexOf("/"))return e}else{if(e=t,0===e.indexOf("/"))return e;var n=getCurrentPages();t=n.length?n[n.length-1].$page.route:""}if(0===e.indexOf("./"))return i(t,e.substr(2));for(var r=e.split("/"),o=r.length,a=0;a0?t.split("/"):[];return s.splice(s.length-a-1,a+1),"/"+s.concat(r).join("/")}n.d(e,"a",function(){return i})},1047:function(t,e,n){},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",{ref:"content",style:t.modeStyle}),n("img",{attrs:{src:t.realImagePath}}),"widthFix"===t.mode?n("v-uni-resize-sensor",{ref:"sensor",on:{resize:t._resize}}):t._e()],1)},r=[];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 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:"",sizeFixed:!1}},computed:{ratio:function(){return this.originalWidth&&this.originalHeight?this.originalWidth/this.originalHeight:0},realImagePath:function(){return this.src&&this.$getRealPath(this.src)},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-position:".concat(e,";background-size:").concat(t,";background-repeat:").concat(n,";")}},watch:{src:function(t,e){this._loadImage()},mode:function(t,e){"widthFix"===e&&(this.$el.style.height=this.availHeight,this.sizeFixed=!1),"widthFix"===t&&this.ratio&&this._fixSize()}},mounted:function(){this.availHeight=this.$el.style.height||"",this._loadImage()},methods:{_resize:function(){"widthFix"!==this.mode||this.sizeFixed||this._fixSize()},_fixSize:function(){var t=this._getWidth();if(t){var e=t/this.ratio;("undefined"===typeof navigator||o(navigator))&&"Google Inc."===navigator.vendor&&e>10&&(e=2*Math.round(e/2)),this.$el.style.height=e+"px",this.sizeFixed=!0}},_loadImage:function(){this.$refs.content.style.backgroundImage=this.src?"url(".concat(this.realImagePath,")"):"none";var t=this,e=new Image;e.onload=function(e){t.originalWidth=this.width,t.originalHeight=this.height,"widthFix"===t.mode&&t._fixSize(),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.realImagePath},_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}}},s=a,c=(n("db18"),n("0c7c")),u=Object(c["a"])(s,i,r,!1,null,null,null);e["default"]=u.exports},1164:function(t,e,n){"use strict";(function(t){n.d(e,"b",function(){return o}),n.d(e,"c",function(){return a}),n.d(e,"a",function(){return s});var i=n("23e5"),r=!1;function o(){return r}function a(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=[],i=o();if(!i)return t.error("app is not ready"),[];var r=i.$children[0];if(r&&r.$children.length){var a=r.$children.find(function(t){return"TabBar"===t.$options.name});r.$children.forEach(function(t){if(a!==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 o=!0;!e&&a&&r.$page&&r.$page.meta.isTabBar&&(i.$route.meta&&i.$route.meta.isTabBar?i.$route.path!==r.$page.path&&(o=!1):a.__path__!==r.$page.path&&(o=!1)),o&&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"])},"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,Number],validator:function(t,e){"number"===typeof t?e.current=t>0&&t.5&&e._A<=.5?o.forEach(function(t){t.color=a}):s<=.5&&e._A>.5&&o.forEach(function(t){t.color="#fff"}),e._A=s,i&&(i.style.opacity=s),n.backgroundColor="rgba(".concat(e._R,",").concat(e._G,",").concat(e._B,",").concat(s,")"),l.forEach(function(t,e){var n=u[e],i=n.match(/[\d+\.]+/g);i[3]=(1-s)*(4===i.length?i[3]:1),t.backgroundColor="rgba(".concat(i,")")}))})}else if("always"===this.transparentTitle){for(var d=this.$el.querySelectorAll(".uni-btn-icon"),p=[],g=0;g").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'")),t}},render:function(e){var n=this,i=[];return this.$slots.default&&this.$slots.default.forEach(function(r){if(r.text){var o=r.text.replace(/\\n/g,"\n"),a=o.split("\n");a.forEach(function(t,r){i.push(n._decodeHtml(t)),r!==a.length-1&&i.push(e("br"))})}else r.componentOptions&&"v-uni-text"!==r.componentOptions.tag&&t.warn(" 组件内只支持嵌套 ,不支持其它组件或自定义组件,否则会引发在不同平台的渲染差异。"),i.push(r)}),e("uni-text",{on:this.$listeners,attrs:{selectable:!!this.selectable}},[e("span",{},i)])}}}).call(this,n("3ad9")["default"])},"17ac":function(t,e,n){},"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=[],o=n("3033"),a=o["a"],s=(n("f7fd"),n("0c7c")),c=Object(s["a"])(a,i,r,!1,null,null,null);e["default"]=c.exports},"18fd":function(t,e,n){"use strict";n.d(e,"a",function(){return f});var i=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,r=/^<\/([-A-Za-z0-9_]+)[^>]*>/,o=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,a=d("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),s=d("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,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),c=d("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=d("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),l=d("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),h=d("script,style");function f(t,e){var n,f,d,p=[],g=t;p.last=function(){return this[this.length-1]};while(t){if(f=!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),f=!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 d(t){for(var e={},n=t.split(","),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;e.animation={duration:t.duration||0,timingFunc:t.timingFunc||"linear"}}}},o={title:{type:String,required:!0}}},1955:function(t,e,n){"use strict";n.r(e);var i=n("ba15"),r=n("8aec"),o=n("5363"),a=n("72b3");function s(t,e){var n=20,i=navigator.maxTouchPoints,r=0,o=0;t.addEventListener(i?"touchstart":"mousedown",function(t){var e=i?t.changedTouches[0]:t;r=e.clientX,o=e.clientY}),t.addEventListener(i?"touchend":"mouseup",function(t){var a=i?t.changedTouches[0]:t;Math.abs(a.clientX-r)*{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){var e=t.clientY;if(!this._scroller.isScrolling()){var n=this.$el.getBoundingClientRect(),i=e-n.top-this.height/2,r=this.indicatorHeight/2;if(!(Math.abs(i)<=r)){var o=Math.ceil((Math.abs(i)-r)/this.indicatorHeight),a=i<0?-o:o,s=Math.min(this.current+a,this.length-1);this.current=s=Math.max(s,0),this._scroller.scrollTo(s*this.indicatorHeight)}}},_handleWheel:function(t){var e=this.deltaY+t.deltaY;if(Math.abs(e)>10){this.deltaY=0;var n=Math.min(this.current+(e<0?-1:1),this.length-1);this.current=n=Math.max(n,0),this._scroller.scrollTo(n*this.indicatorHeight)}else this.deltaY=e;t.preventDefault()},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,friction:new o["a"](1e-4),spring:new a["a"](2,90,20),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.min(t.current,t.length-1);e=Math.max(e,0),t._scroller.update(e*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",{on:{wheel:this._handleWheel}},[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])])])}},h=l,f=(n("edfa"),n("0c7c")),d=Object(f["a"])(h,c,u,!1,null,null,null);e["default"]=d.exports},"19c4":function(t,e,n){var i={"./base/base64.js":"6481","./base/can-i-use.js":"957a","./base/event-bus.js":"b0ef","./base/interceptor.js":"a954","./base/upx2px.js":"2289","./context/canvas.js":"82b9","./context/context.js":"3bfb","./device/make-phone-call.js":"f102","./file/open-document.js":"2604","./location/choose-location.js":"e5bb","./location/get-location.js":"19d9","./location/open-location.js":"70bb","./media/choose-image.js":"f1b2","./media/choose-video.js":"ed9f","./media/get-image-info.js":"b866","./media/preview-image.js":"11fb","./network/download-file.js":"439a","./network/request.js":"a201","./network/socket.js":"abb2","./network/upload-file.js":"9a3e","./plugin/get-provider.js":"4e7c","./route/route.js":"332a","./storage/storage.js":"ec33","./ui/navigation-bar.js":"1934","./ui/page-scroll-to.js":"232e","./ui/popup.js":"2246","./ui/tab-bar.js":"5621"};function r(t){var e=o(t);return n(e)}function o(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=o,t.exports=r,r.id="19c4"},"19d9":function(t,e,n){"use strict";n.r(e),n.d(e,"getLocation",function(){return r});var i={WGS84:"WGS84",GCJ02:"GCJ02"},r={type:{type:String,validator:function(t,e){t=(t||"").toUpperCase(),e.type=Object.values(i).indexOf(t)<0?i.WGS84:t},default:i.WGS84},altitude:{altitude:Boolean,default:!1}}},"1a12":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&&void 0!==arguments[1]?arguments[1]:{},n=e.url,r=e.delta,o=e.animationType,a=e.animationDuration,s=e.from,c=void 0===s?"navigateBack":s,u=e.detail,l=getApp().$router;switch(t){case"redirectTo":l.replace({type:t,path:n});break;case"navigateTo":l.push({type:t,path:n,animationType:o,animationDuration:a});break;case"navigateBack":var h=!0,f=getCurrentPages();if(f.length){var d=f[f.length-1];Object(i["a"])(d.$options,"onBackPress")&&!0===d.__call_hook("onBackPress",{from:c})&&(h=!1)}h&&(r>1&&(l._$delta=r),l.go(-r,{animationType:o,animationDuration:a}));break;case"reLaunch":l.replace({type:t,path:n});break;case"switchTab":l.replace({type:t,path:n,params:{detail:u}});break}return{errMsg:t+":ok"}}function o(t){return r("redirectTo",t)}function a(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)}},"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"))},"1c64":function(t,e,n){"use strict";var i=n("9613"),r=n.n(i);r.a},"1ca3":function(t,e,n){"use strict";n.r(e),n.d(e,"base64ToArrayBuffer",function(){return r}),n.d(e,"arrayBufferToBase64",function(){return o});var i=n("8390");function r(t){return Object(i["decode"])(t)}function o(t){return Object(i["encode"])(t)}},"1e4d":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;n=0&&this._callbacks.splice(e,1)}},{key:"offHeadersReceived",value:function(){}}]),t}(),u=Object.create(null);function l(t,e){var n=Object(r["b"])("createUploadTask",t),i=n.uploadTaskId,o=new c(i,e);return u[i]=o,o}Object(r["c"])("onUploadTaskStateChange",function(t){var e=t.uploadTaskId,n=t.state,r=t.data,o=t.statusCode,a=t.progress,s=t.totalBytesSent,c=t.totalBytesExpectedToSend,l=t.errMsg,h=u[e],f=h._callbackId;switch(n){case"progressUpdate":h._callbacks.forEach(function(t){t({progress:a,totalBytesSent:s,totalBytesExpectedToSend:c})});break;case"success":Object(i["a"])(f,{data:r,statusCode:o,errMsg:"request:ok"});case"fail":Object(i["a"])(f,{errMsg:"request:fail "+l});default:setTimeout(function(){delete u[e]},100);break}})},2246:function(t,e,n){"use strict";n.r(e),n.d(e,"showModal",function(){return r}),n.d(e,"showToast",function(){return o}),n.d(e,"showLoading",function(){return a}),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}},o={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}},a={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}}},2289:function(t,e,n){"use strict";n.r(e),n.d(e,"upx2px",function(){return i});var i=[{name:"upx",type:[Number,String],required:!0}]},"232e":function(t,e,n){"use strict";n.r(e),n.d(e,"pageScrollTo",function(){return i});var i={scrollTop:{type:Number,required:!0},duration:{type:Number,default:300,validator:function(t,e){e.duration=Math.max(0,t)}}}},"23af":function(t,e,n){},"23e5":function(t,e,n){"use strict";n.d(e,"b",function(){return c}),n.d(e,"a",function(){return g});var i=n("a741");function r(t){-1===this.keepAliveInclude.indexOf(t)&&this.keepAliveInclude.push(t)}var o=[];function a(t){if("number"===typeof t)o=this.keepAliveInclude.splice(-(t-1)).map(function(t){return parseInt(t.split("-").pop())});else{var e=this.keepAliveInclude.indexOf(t);-1!==e&&this.keepAliveInclude.splice(e,1)}}var s=Object.create(null);function c(t){return s[t]}function u(t){s[t]={x:window.pageXOffset,y:window.pageYOffset}}function l(t,e,n){e&&n&&e.meta.isTabBar&&n.meta.isTabBar&&u(n.params.__id__);for(var r=getCurrentPages(),o=r.length-1;o>=0;o--){var s=r[o],c=s.$page.meta;c.isTabBar||(a.call(this,c.name+"-"+s.$page.id),Object(i["b"])(s,"onUnload"))}}function h(t){__uniConfig.reLaunch=(__uniConfig.reLaunch||1)+1;for(var e=getCurrentPages(!0),n=e.length-1;n>=0;n--)Object(i["b"])(e[n],"onUnload"),e[n].$destroy();this.keepAliveInclude=[],s=Object.create(null)}var f=[];function d(t,e,n,i){f=getCurrentPages(!0);var o=e.params.__id__,s=t.params.__id__,c=t.meta.name+"-"+s;if(s===o)t.fullPath!==e.fullPath?(a.call(this,c),n()):n(!1);else if(t.meta.id&&t.meta.id!==s)n({path:t.path,replace:!0});else{var u=e.meta.name+"-"+o;switch(t.type){case"navigateTo":break;case"redirectTo":if(a.call(this,u),e.meta&&(e.meta.isQuit&&(t.meta.isQuit=!0,t.meta.isEntry=!!e.meta.isEntry),e.meta.isTabBar)){t.meta.isTabBar=!0,t.meta.tabBarIndex=e.meta.tabBarIndex;var d=getApp().$children[0];d.$set(d.tabBar.list[t.meta.tabBarIndex],"pagePath",t.meta.pagePath)}break;case"switchTab":l.call(this,i,t,e);break;case"reLaunch":h.call(this,c),t.meta.isQuit=!0;break;default:o&&o>s&&(a.call(this,u),this.$router._$delta>1&&a.call(this,this.$router._$delta));break}if("reLaunch"!==t.type&&e.meta.id&&r.call(this,u),r.call(this,c),t.meta&&t.meta.name){document.body.className="uni-body "+t.meta.name;var p="nvue-dir-"+__uniConfig.nvue["flex-direction"];t.meta.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(p,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(p))}n()}}function p(t,e){var n=e.params.__id__,r=t.params.__id__,a=f.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"),this.$router._$delta>1&&o.reverse().forEach(function(t){var e=f.find(function(e){return e.$page.id===t});e&&Object(i["b"])(e,"onUnload")}));break}if(delete this.$router._$delta,o.length=0,"reLaunch"!==t.type){var s=getCurrentPages(!0).find(function(t){return t.$page.id===r});s&&(setTimeout(function(){Object(i["b"])(s,"onShow")},0),document.title=s.$parent.$parent.navigationBar.titleText)}}function g(t,e){t.$router.beforeEach(function(n,i,r){d.call(t,n,i,r,e)}),t.$router.afterEach(function(e,n){p.call(t,e,n)})}},"24aa":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},"24d9":function(t,e,n){"use strict";n.d(e,"b",function(){return o}),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 o(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),Object(i["c"])(e,"searchInput")&&"object"===r(e.searchInput)&&(t.searchInput=Object.assign({autoFocus:!1,align:"center",color:"#000000",backgroundColor:"rgba(255,255,255,0.5)",borderRadius:"0px",placeholder:"",placeholderColor:"#CCCCCC",disabled:!1},e.searchInput))),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({on:{change:function(t){t.stopPropagation()}}},t.$listeners),[n("div",{ref:"wrapper",staticClass:"uni-input-wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!(t.composing||t.inputValue.length),expression:"!(composing || inputValue.length)"}],ref:"placeholder",staticClass:"uni-input-placeholder",class:t.placeholderClass,style:t.placeholderStyle},[t._v(t._s(t.placeholder))]),"checkbox"===t.inputType?n("input",{directives:[{name:"model",rawName:"v-model",value:t.inputValue,expression:"inputValue"}],ref:"input",staticClass:"uni-input-input",attrs:{disabled:t.disabled,maxlength:t.maxlength,step:t.step,autocomplete:"off",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 o=null,a=t._i(n,o);i.checked?a<0&&(t.inputValue=n.concat([o])):a>-1&&(t.inputValue=n.slice(0,a).concat(n.slice(a+1)))}else t.inputValue=r}}}):"radio"===t.inputType?n("input",{directives:[{name:"model",rawName:"v-model",value:t.inputValue,expression:"inputValue"}],ref:"input",staticClass:"uni-input-input",attrs:{disabled:t.disabled,maxlength:t.maxlength,step:t.step,autocomplete:"off",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",staticClass:"uni-input-input",attrs:{disabled:t.disabled,maxlength:t.maxlength,step:t.step,autocomplete:"off",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)}}})])])},r=[],o=n("8af1"),a=["text","number","idcard","digit","password"],s=["number","digit"],c={name:"Input",mixins:[o["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=~a.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.inputValue.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("search"===this.confirmType){var t=document.createElement("form");t.action="",t.onsubmit=function(){return!1},t.className="uni-input-form",t.appendChild(this.$refs.input),this.$refs.wrapper.appendChild(t)}var e=this;while(e){var n=e.$options._scopeId;n&&this.$refs.placeholder.setAttribute(n,""),e=e.$parent}this.focus&&this._focusInput()},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_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("0c7c")),h=Object(l["a"])(u,i,r,!1,null,null,null);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=[],o=n("8af1"),a={name:"CheckboxGroup",mixins:[o["a"],o["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=a,c=(n("0998"),n("0c7c")),u=Object(c["a"])(s,i,r,!1,null,null,null);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("91ce"),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"),o=n("ed1a"),a=n("cc76"),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=a["a"][t];if(!r&&Object(o["a"])(t)&&(r=u),r){if(Array.isArray(r)&&Array.isArray(e)){var l=Object.create(null),h=Object.create(null),f=e.length;r.forEach(function(t,n){l[t.name]=t,f>n&&(h[t.name]=e[n])}),r=l,e=h}if(Object(i["e"])(r.beforeValidate)){var d=r.beforeValidate(e);if(d)return c(d,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 o={};for(var a in e){var s=e[a];Object(i["e"])(s)&&(o[a]=Object(r["a"])(s),delete e[a])}var c=o.success,u=o.fail,l=o.cancel,d=o.complete,p=Object(i["e"])(c),g=Object(i["e"])(u),v=Object(i["e"])(l),m=Object(i["e"])(d);if(!p&&!g&&!v&&!m)return{params:e};var b={};for(var y in n){var _=n[y];Object(i["e"])(_)&&(b[y]=Object(r["b"])(_),delete n[y])}var w=b.beforeSuccess,k=b.afterSuccess,S=b.beforeFail,T=b.afterFail,x=b.beforeCancel,C=b.afterCancel,O=b.afterAll,M=h++,E="api."+t+"."+M,A=function(e){e.errMsg=e.errMsg||t+":ok",-1!==e.errMsg.indexOf(":ok")?e.errMsg=t+":ok":-1!==e.errMsg.indexOf(":cancel")?e.errMsg=t+":cancel":-1!==e.errMsg.indexOf(":fail")&&(e.errMsg=t+":fail");var n=e.errMsg;0===n.indexOf(t+":ok")?(Object(i["e"])(w)&&w(e),p&&c(e),Object(i["e"])(k)&&k(e)):0===n.indexOf(t+":cancel")?(e.errMsg=e.errMsg.replace(t+":cancel",t+":fail cancel"),g&&u(e),Object(i["e"])(x)&&x(e),v&&l(e),Object(i["e"])(C)&&C(e)):0===n.indexOf(t+":fail")&&(Object(i["e"])(S)&&S(e),g&&u(e),Object(i["e"])(T)&&T(e)),m&&d(e),Object(i["e"])(O)&&O(e)};return f[M]={name:E,callback:A},{params:e,callbackId:M}}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),o=r.params,a=r.callbackId;return Object(i["f"])(o)&&!l(t,o,a)?{params:o,callbackId:!1}:{params:o,callbackId:a}}function v(t,e){if("number"===typeof t){var n=f[t];if(n)return n.keepAlive||delete f[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 Object(i["e"])(e)?function(){for(var r=arguments.length,a=new Array(r),s=0;s=0&&n.splice(i,1)}}),Object(i["c"])("onAudioStateChange",function(t){var e=t.state,n=t.audioId,i=t.errMsg,r=t.errCode,o=l[n];o&&o._callbacks[e].forEach(function(t){"function"===typeof t&&t("error"===e?{errMsg:i,errCode:r}:{})})});var l=Object.create(null);function h(){var t=Object(i["b"])("createAudioInstance"),e=t.audioId,n=new u(e);return l[e]=n,n}},"2d89":function(t,e,n){"use strict";var i=n("42d0"),r=n.n(i);r.a},"2eae":function(t,e,n){"use strict";n.r(e),n.d(e,"interceptors",function(){return r});var i=n("8542");n.d(e,"addInterceptor",function(){return i["a"]}),n.d(e,"removeInterceptor",function(){return i["d"]});var r={promiseInterceptor:i["c"]}},"2ef3":function(t,e,n){"use strict";(function(t,e,i){var r=n("8bbf"),o=n.n(r),a=(n("7f16"),n("442e"));e.UniViewJSBridge={subscribeHandler:t.subscribeHandler},e.UniServiceJSBridge={subscribeHandler:i.subscribeHandler};var s=n("0138"),c=s.default,u=s.getApp,l=s.getCurrentPages;e.uni=c,e.wx=e.uni,e.getApp=u,e.getCurrentPages=l,o.a.use(n("4ca9").default,{routes:__uniRoutes}),o.a.use(n("8c15").default,{routes:__uniRoutes}),o.a.config.errorHandler=function(t,e,n){i.emit("onError",t)},Object(a["a"])(o.a),n("8f7e"),n("1efd")}).call(this,n("501c"),n("24aa"),n("0dd1"))},"2fb0":function(t,e,n){},3033: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("navigateBack"===this.openType||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({delta:this.delta});break;default:break}else t.error(" should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab")}}}}).call(this,n("3ad9")["default"])},"31e2":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-video",t._g({attrs:{id:t.id,src:t.src,"initial-time":t.initialTime,duration:t.duration,controls:t.controls,"danmu-list":t.danmuList,"danmu-btn":t.danmuBtn,"enable-danmu":t.enableDanmu,autoplay:t.autoplay,loop:t.loop,muted:t.muted,"page-gesture":t.pageGesture,direction:t.direction,"show-progress":t.showProgress,"show-fullscreen-btn":t.showFullscreenBtn,"show-play-btn":t.showPlayBtn,"show-center-play-btn":t.showCenterPlayBtn,"enable-progress-gesture":t.enableProgressGesture,"object-fit":t.objectFit,poster:t.poster,"x5-video-player-type":t.x5VideoPlayerType,"x5-video-player-fullscreen":t.x5VideoPlayerFullscren,"x5-video-orientation":t.x5VideoOrientation,"x5-playsinline":t.x5Playsinline}},t.$listeners),[n("div",{ref:"container",staticClass:"uni-video-container",class:{"uni-video-type-fullscreen":t.fullscreen,"uni-video-type-rotate-left":"left"===t.rotateType,"uni-video-type-rotate-right":"right"===t.rotateType},style:{width:t.fullscreen?t.width:"100%",height:t.fullscreen?t.height:"100%"},on:{click:t.triggerControls,touchstart:function(e){return t.touchstart(e)},touchend:function(e){return t.touchend(e)},touchmove:function(e){return t.touchmove(e)}}},[n("video",{ref:"video",staticClass:"uni-video-video",style:{opacity:t.start?1:.8,objectFit:t.objectFit},attrs:{loop:t.loop,src:t.srcSync,poster:t.poster,"x5-video-player-type":t.x5VideoPlayerType,"x5-video-player-fullscreen":t.x5VideoPlayerFullscren,"x5-video-orientation":t.x5VideoOrientation,"x5-playsinline":t.x5Playsinline,"webkit-playsinline":"",playsinline:""},domProps:{muted:t.muted}}),n("div",{directives:[{name:"show",rawName:"v-show",value:t.controlsShow,expression:"controlsShow"}],staticClass:"uni-video-bar uni-video-bar-full",on:{click:function(t){t.stopPropagation()}}},[n("div",{staticClass:"uni-video-controls"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showPlayBtn,expression:"showPlayBtn"}],staticClass:"uni-video-control-button",class:{"uni-video-control-button-play":!t.playing,"uni-video-control-button-pause":t.playing},on:{click:function(e){return e.stopPropagation(),t.trigger(e)}}}),n("div",{staticClass:"uni-video-current-time"},[t._v(t._s(t._f("getTime")(t.currentTime)))]),n("div",{ref:"progress",staticClass:"uni-video-progress-container",on:{click:function(e){return e.stopPropagation(),t.clickProgress(e)}}},[n("div",{staticClass:"uni-video-progress"},[n("div",{staticClass:"uni-video-progress-buffered",style:{width:100*t.buffered+"%"}}),n("div",{ref:"ball",staticClass:"uni-video-ball",style:{left:t.progress+"%"}},[n("div",{staticClass:"uni-video-inner"})])])]),n("div",{staticClass:"uni-video-duration"},[t._v(t._s(t._f("getTime")(t.duration||t.durationTime)))])]),t.danmuBtn?n("div",{staticClass:"uni-video-danmu-button",class:{"uni-video-danmu-button-active":t.enableDanmuSync},on:{click:function(e){return e.stopPropagation(),t.triggerDanmu(e)}}},[t._v("弹幕")]):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showFullscreenBtn,expression:"showFullscreenBtn"}],staticClass:"uni-video-fullscreen",class:{"uni-video-type-fullscreen":t.fullscreen},on:{click:function(e){return e.stopPropagation(),t.triggerFullscreen(e)}}})]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.start&&t.enableDanmuSync,expression:"start&&enableDanmuSync"}],ref:"danmu",staticClass:"uni-video-danmu",staticStyle:{"z-index":"0"}}),t.start?t._e():n("div",{staticClass:"uni-video-cover",on:{click:function(t){t.stopPropagation()}}},[n("div",{staticClass:"uni-video-cover-play-button",on:{click:function(e){return e.stopPropagation(),t.play(e)}}}),n("p",{staticClass:"uni-video-cover-duration"},[t._v(t._s(t._f("getTime")(t.duration||t.durationTime)))])]),n("div",{staticClass:"uni-video-toast",class:{"uni-video-toast-volume":"volume"===t.gestureType}},[n("div",{staticClass:"uni-video-toast-title"},[t._v("音量")]),n("svg",{staticClass:"uni-video-toast-icon",attrs:{width:"200px",height:"200px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M475.400704 201.19552l0 621.674496q0 14.856192-10.856448 25.71264t-25.71264 10.856448-25.71264-10.856448l-190.273536-190.273536-149.704704 0q-14.856192 0-25.71264-10.856448t-10.856448-25.71264l0-219.414528q0-14.856192 10.856448-25.71264t25.71264-10.856448l149.704704 0 190.273536-190.273536q10.856448-10.856448 25.71264-10.856448t25.71264 10.856448 10.856448 25.71264zm219.414528 310.837248q0 43.425792-24.28416 80.851968t-64.2816 53.425152q-5.71392 2.85696-14.2848 2.85696-14.856192 0-25.71264-10.570752t-10.856448-25.998336q0-11.999232 6.856704-20.284416t16.570368-14.2848 19.427328-13.142016 16.570368-20.284416 6.856704-32.569344-6.856704-32.569344-16.570368-20.284416-19.427328-13.142016-16.570368-14.2848-6.856704-20.284416q0-15.427584 10.856448-25.998336t25.71264-10.570752q8.57088 0 14.2848 2.85696 39.99744 15.427584 64.2816 53.139456t24.28416 81.137664zm146.276352 0q0 87.422976-48.56832 161.41824t-128.5632 107.707392q-7.428096 2.85696-14.2848 2.85696-15.427584 0-26.284032-10.856448t-10.856448-25.71264q0-22.284288 22.284288-33.712128 31.997952-16.570368 43.425792-25.141248 42.283008-30.855168 65.995776-77.423616t23.712768-99.136512-23.712768-99.136512-65.995776-77.423616q-11.42784-8.57088-43.425792-25.141248-22.284288-11.42784-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 79.99488 33.712128 128.5632 107.707392t48.56832 161.41824zm146.276352 0q0 131.42016-72.566784 241.41312t-193.130496 161.989632q-7.428096 2.85696-14.856192 2.85696-14.856192 0-25.71264-10.856448t-10.856448-25.71264q0-20.570112 22.284288-33.712128 3.999744-2.285568 12.85632-5.999616t12.85632-5.999616q26.284032-14.2848 46.854144-29.140992 70.281216-51.996672 109.707264-129.705984t39.426048-165.132288-39.426048-165.132288-109.707264-129.705984q-20.570112-14.856192-46.854144-29.140992-3.999744-2.285568-12.85632-5.999616t-12.85632-5.999616q-22.284288-13.142016-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 120.563712 51.996672 193.130496 161.989632t72.566784 241.41312z"}})]),n("div",{staticClass:"uni-video-toast-value"},[n("div",{staticClass:"uni-video-toast-value-content",style:{width:100*t.volumeNew+"%"}},[n("div",{staticClass:"uni-video-toast-volume-grids"},t._l(10,function(t,e){return n("div",{key:e,staticClass:"uni-video-toast-volume-grids-item"})}),0)])])]),n("div",{staticClass:"uni-video-toast",class:{"uni-video-toast-progress":"progress"==t.gestureType}},[n("div",{staticClass:"uni-video-toast-title"},[t._v(t._s(t._f("getTime")(t.currentTimeNew))+" / "+t._s(t._f("getTime")(t.durationTime)))])])]),n("div",{staticStyle:{position:"absolute",top:"0",width:"100%",height:"100%",overflow:"hidden","pointer-events":"none"}},[t._t("default")],2)])},r=[],o=n("8af1"),a=n("f2b3"),s=!!a["h"]&&{passive:!1},c={NONE:"none",STOP:"stop",VOLUME:"volume",PROGRESS:"progress"},u={name:"Video",filters:{getTime:function(t){var e=Math.floor(t/3600),n=Math.floor(t%3600/60),i=Math.floor(t%3600%60);e=(e<10?"0":"")+e,n=(n<10?"0":"")+n,i=(i<10?"0":"")+i;var r=n+":"+i;return"00"!==e&&(r=e+":"+r),r}},mixins:[o["d"]],props:{id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default:function(){return[]}},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:360},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},x5VideoPlayerType:{type:[Boolean,String],default:!1},x5VideoPlayerFullscren:{type:[Boolean,String],default:!1},x5VideoOrientation:{type:[Boolean,String],default:!1},x5Playsinline:{type:[Boolean,String],default:!1}},data:function(){return{start:!1,playing:!1,currentTime:0,durationTime:0,progress:0,touching:!1,enableDanmuSync:Boolean(this.enableDanmu),controlsVisible:!0,fullscreen:!1,width:"0",height:"0",fullscreenTriggering:!1,controlsTouching:!1,directionSync:Number(this.direction),touchStartOrigin:{x:0,y:0},gestureType:c.NONE,currentTimeOld:0,currentTimeNew:0,volumeOld:null,volumeNew:null,isIOS:!1,buffered:0,rotateType:""}},computed:{controlsShow:function(){return this.start&&this.controls&&this.controlsVisible},autoHideContorls:function(){return this.controlsShow&&this.playing&&!this.controlsTouching},srcSync:function(){return this.$getRealPath(this.src)}},watch:{enableDanmuSync:function(t){this.$emit("update:enableDanmu",t)},autoHideContorls:function(t){t?this.autoHideStart():this.autoHideEnd()},fullscreen:function(t){var e=this,n=this.$refs.container,i=this.playing;this.fullscreenTriggering=!0,n.remove(),t?(this.resize(),document.body.appendChild(n)):this.$el.appendChild(n),this.$trigger("fullscreenchange",{},{fullScreen:t}),i&&this.play(),setTimeout(function(){e.fullscreenTriggering=!1},0)},direction:function(t){this.directionSync=Number(t)},srcSync:function(t){var e=this;this.playing=!1,this.currentTime=0,t&&this.autoplay&&this.$nextTick(function(){e.$refs.video.play()})},currentTime:function(){this.updateProgress()},duration:function(){this.updateProgress()}},created:function(){this.otherData={danmuList:[],danmuIndex:{time:0,index:-1},hideTiming:null};var t=this.otherData.danmuList=JSON.parse(JSON.stringify(this.danmuList||[]));t.sort(function(t,e){return(t.time||0)-(t.time||0)}),this.width=window.innerWidth+"px",this.height=window.innerHeight+"px"},mounted:function(){var t,e,n=this,i=this.otherData,r=this.$refs.video,o=this.$refs.ball;r.addEventListener("durationchange",function(t){n.durationTime=r.duration}),r.addEventListener("loadedmetadata",function(t){var e=Number(n.initialTime)||0;e>0&&(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,o=r.duration,a=i.danmuIndex,s={time:e,index:a.index},c=i.danmuList;if(e>a.time)for(var u=a.index+1;u=(l.time||0)))break;s.index=u,n.playing&&n.enableDanmuSync&&n.playDanmu(l)}else if(e-1;h--){var f=c[h];if(!(e<=(f.time||0)))break;s.index=h-1}i.danmuIndex=s,n.$trigger("timeupdate",t,{currentTime:e,duration:o})}),r.addEventListener("x5videoenterfullscreen",function(t){n.$trigger("fullscreenchange",t,{fullScreen:!0})}),r.addEventListener("x5videoexitfullscreen",function(t){n.$trigger("fullscreenchange",t,{fullScreen:!1})});var a,c=!0;function u(i){var r=n.getScreenXY(i.targetTouches[0]),o=r.pageX,s=r.pageY;if(c&&Math.abs(o-t)100&&(h=100),n.progress=h,i.preventDefault(),i.stopPropagation()}}function l(t){n.controlsTouching=!1,n.touching&&(o.removeEventListener("touchmove",u,s),c||(t.preventDefault(),t.stopPropagation(),n.seek(n.$refs.video.duration*n.progress/100)),n.touching=!1)}o.addEventListener("touchstart",function(i){n.controlsTouching=!0;var r=n.getScreenXY(i.targetTouches[0]);t=r.pageX,e=r.pageY,a=n.progress,c=!0,n.touching=!0,o.addEventListener("touchmove",u,s)}),o.addEventListener("touchend",l),o.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,o=0;e>=0&&e<=r&&(o=e/r,this.seek(this.$refs.video.duration*o))},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,o=i.pageY,a=this.touchStartOrigin;if(n===c.PROGRESS?this.changeProgress(r-a.x):n===c.VOLUME&&this.changeVolume(o-a.y),n===c.NONE)if(Math.abs(r-a.x)>Math.abs(o-a.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,o=screen.height,a=t.pageX,s=t.pageY;return"left"===e?(n=o-s,i=a):(n=s,i=r-a),{pageX:n,pageY:i}},updateProgress:function(){this.touching||(this.progress=this.currentTime/this.durationTime*100)}}},l=u,h=(n("856e"),n("0c7c")),f=Object(h["a"])(l,i,r,!1,null,null,null);e["default"]=f.exports},"332a":function(t,e,n){"use strict";n.r(e),n.d(e,"redirectTo",function(){return c}),n.d(e,"reLaunch",function(){return u}),n.d(e,"navigateTo",function(){return l}),n.d(e,"switchTab",function(){return h}),n.d(e,"navigateBack",function(){return f});var i=n("0f74");function r(t){if("string"!==typeof t)return t;var e=t.indexOf("?");if(-1===e)return t;var n=t.substr(e+1).trim().replace(/^(\?|#|&)/,"");if(!n)return t;t=t.substr(0,e);var i=[];return n.split("&").forEach(function(t){var e=t.replace(/\+/g," ").split("="),n=e.shift(),r=e.length>0?e.join("="):"";i.push(n+"="+encodeURIComponent(r))}),i.length?t+"?"+i.join("&"):t}function o(t){return function(e,n){e=Object(i["a"])(e);var o=e.split("?")[0],a=__uniRoutes.find(function(t){var e=t.path,n=t.alias;return e===o||n===o});if(!a)return"page `"+e+"` is not found";if("navigateTo"===t||"redirectTo"===t){if(a.meta.isTabBar)return"can not ".concat(t," a tabbar page")}else if("switchTab"===t&&!a.meta.isTabBar)return"can not switch to no-tabBar page";a.meta.isTabBar&&(e=o),a.meta.isEntry&&(e=e.replace(a.alias,"/")),n.url=r(e)}}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({url:{type:String,required:!0,validator:o(t)}},e)}function s(t){return{animationType:{type:String,validator:function(e){if(e&&-1===t.indexOf(e))return"`"+e+"` is not supported for `animationType` (supported values are: `"+t.join("`|`")+"`)"}},animationDuration:{type:Number}}}var c=a("redirectTo"),u=a("reLaunch"),l=a("navigateTo",s(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"])),h=a("switchTab"),f=Object.assign({delta:{type:Number,validator:function(t,e){t=parseInt(t)||1,e.delta=Math.min(getCurrentPages().length-1,t)}}},s(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]))},"33ab":function(t,e,n){},"33ed":function(t,e,n){"use strict";(function(t){n.d(e,"b",function(){return r}),n.d(e,"c",function(){return o}),n.d(e,"a",function(){return a});var i=n("4a59");function r(t){t.preventDefault()}function o(t){var e=t.scrollTop,n=t.duration,i=document.documentElement,r=i.clientHeight,o=i.scrollHeight;function a(t){if(t<=0)window.scrollTo(0,e);else{var n=e-window.scrollY;requestAnimationFrame(function(){window.scrollTo(0,window.scrollY+n/t*10),a(t-10)})}}e=Math.min(e,o-r),0!==n?window.scrollY!==e&&a(n):i.scrollTop=document.body.scrollTop=e}function a(e,n){var r=n.enablePageScroll,o=n.enablePageReachBottom,a=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+a>=n;return r&&!u?(u=!0,!0):(!r&&u&&(u=!1),!1)}function f(){var n=getCurrentPages();if(n.length&&n[n.length-1].$page.id===e){var a=window.pageYOffset;r&&Object(i["a"])("onPageScroll",{scrollTop:a},e),s&&t.emit("onPageScroll",{scrollTop:a}),o&&l&&h()&&(Object(i["a"])("onReachBottom",{},e),l=!1,setTimeout(function(){l=!0},350)),c=!1}}return function(){c||requestAnimationFrame(f),c=!0}}}).call(this,n("501c"))},"34b2":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"getImageInfo",function(){return o});var i=n("cb0f");function r(){return window.location.protocol+"//"+window.location.host}function o(e,n){var o=e.src,a=t,s=a.invokeCallbackHandler,c=new Image,u=Object(i["a"])(o);c.onload=function(){s(n,{errMsg:"getImageInfo:ok",width:c.naturalWidth,height:c.naturalHeight,path:0===u.indexOf("/")?r()+u:u})},c.onerror=function(t){s(n,{errMsg:"getImageInfo:fail"})},c.src=o}}.call(this,n("0dd1"))},3648:function(t,e,n){"use strict";n.r(e);var i=n("f2b3"),r={"css.var":window.CSS&&window.CSS.supports&&window.CSS.supports("--a",0)};function o(t){return!Object(i["c"])(r,t)||r[t]}n.d(e,"canIUse",function(){return o})},3676:function(t,e,n){"use strict";n.r(e),n.d(e,"getRecorderManager",function(){return l});var i=n("db70");function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n0&&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 o=localStorage.getItem("uni-storage-keys");if(o){var a=JSON.parse(o);a.indexOf(e)<0&&(a.push(e),localStorage.setItem("uni-storage-keys",JSON.stringify(a)))}else localStorage.setItem("uni-storage-keys",JSON.stringify([e]));return{errMsg:"setStorage:ok"}}function o(t,e){r({key:t,data:e})}function a(){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=a({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 f(){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 d(){var t=f();return delete t.errMsg,t}n.r(e),n.d(e,"setStorage",function(){return r}),n.d(e,"setStorageSync",function(){return o}),n.d(e,"getStorage",function(){return a}),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 f}),n.d(e,"getStorageInfoSync",function(){return d})},4871:function(t,e,n){},"488c":function(t,e,n){},"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("24aa"))},"4ca9":function(t,e,n){"use strict";n.r(e),function(t){var i=n("6389"),r=n.n(i),o=n("85b6"),a=n("abbf"),s=n("0784"),c=n("aa92"),u=n("23e5");function l(t){var e=0;return t.forEach(function(t){t.meta.id&&e++}),e}function h(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":decodeURI(t.slice(e+1))}function f(){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;Object(c["a"])(e);var d=l(i),p=new r.a({id:d,mode:__uniConfig.router.mode,base:__uniConfig.router.base,routes:i,scrollBehavior:function(t,e,n){if(n)return n;if(t&&e&&t.meta.isTabBar&&e.meta.isTabBar){var i=Object(u["b"])(t.params.__id__);if(i)return i}return{x:0,y:0}}}),g=[],v=p.match("history"===__uniConfig.router.mode?f(__uniConfig.router.base):h());if(v.meta.name&&(v.meta.id?g.push(v.meta.name+"-"+v.meta.id):g.push(v.meta.name+"-"+(d+1))),v.meta&&v.meta.name&&(document.body.className="uni-body "+v.meta.name,v.meta.isNVue)){var m="nvue-dir-"+__uniConfig.nvue["flex-direction"];document.body.setAttribute("nvue",""),document.body.setAttribute(m,"")}e.mixin({beforeCreate:function(){var e=this.$options;if("app"===e.mpType){e.data=function(){return{keepAliveInclude:g}};var n=Object(a["a"])(i,v);Object.keys(n).forEach(function(t){e[t]=e[t]?[].concat(n[t],e[t]):[n[t]]}),e.router=p,Array.isArray(e.onError)&&0!==e.onError.length||(e.onError=[function(e){t.error(e)}])}else if(Object(o["b"])(this)){var r=Object(s["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.prototype.createSelectorQuery=function(){return uni.createSelectorQuery().in(this)},e.prototype.createIntersectionObserver=function(t){return uni.createIntersectionObserver(this,t)},e.use(r.a)}}}.call(this,n("3ad9")["default"])},"4da7":function(t,e,n){"use strict";n.r(e);var i,r,o=n("1712"),a=o["a"],s=(n("c8ed"),n("0c7c")),c=Object(s["a"])(a,i,r,!1,null,null,null);e["default"]=c.exports},"4e7c":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"}}}},"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=[],o=n("8af1"),a={name:"Switch",mixins:[o["a"],o["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=a,c=(n("a5ec"),n("0c7c")),u=Object(c["a"])(s,i,r,!1,null,null,null);e["default"]=u.exports},"4f43":function(t,e,n){"use strict";n.r(e),function(t){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 o(t,e){for(var n=0;n=0&&this._callbacks.splice(e,1)}},{key:"abort",value:function(){this._xhr&&(this._xhr.abort(),delete this._xhr)}}]),t}();function u(e,n){var r,o=e.url,a=e.header,s=__uniConfig.networkTimeout&&__uniConfig.networkTimeout.downloadFile||6e4,u=t,l=u.invokeCallbackHandler,h=new XMLHttpRequest,f=new c(h);return h.open("GET",o,!0),Object.keys(a).forEach(function(t){h.setRequestHeader(t,a[t])}),h.responseType="blob",h.onload=function(){clearTimeout(r);var t=h.status,e=this.response;l(n,{errMsg:"downloadFile:ok",statusCode:t,tempFilePath:Object(i["a"])(e)})},h.onabort=function(){clearTimeout(r),l(n,{errMsg:"downloadFile:fail abort"})},h.onerror=function(){clearTimeout(r),l(n,{errMsg:"downloadFile:fail"})},h.onprogress=function(t){f._callbacks.forEach(function(e){var n=t.loaded,i=t.total,r=Math.round(n/i*100);e({progress:r,totalBytesWritten:n,totalBytesExpectedToWrite:i})})},h.send(),r=setTimeout(function(){h.onprogress=h.onload=h.onabort=h.onerror=null,f.abort(),l(n,{errMsg:"downloadFile:fail timeout"})},s),f}}.call(this,n("0dd1"))},"4fef":function(t,e,n){"use strict";var i=n("2fb0"),r=n.n(i);r.a},"500a":function(t,e,n){},"501c":function(t,e,n){"use strict";n.r(e);var i=n("8bbf"),r=n.n(i),o=n("6bdf"),a=n("5dc1"),s={requestComponentInfo:o["a"],requestComponentObserver:a["b"],destroyComponentObserver:a["a"]},c=n("33ed"),u=n("764a");function l(t){Object.keys(s).forEach(function(e){t(e,s[e])}),t("pageScrollTo",c["c"]),Object(u["a"])(t)}var h=n("4a59");n.d(e,"on",function(){return d}),n.d(e,"off",function(){return p}),n.d(e,"once",function(){return g}),n.d(e,"emit",function(){return v}),n.d(e,"subscribe",function(){return m}),n.d(e,"unsubscribe",function(){return b}),n.d(e,"subscribeHandler",function(){return y}),n.d(e,"publishHandler",function(){return h["a"]});var f=new r.a,d=f.$on.bind(f),p=f.$off.bind(f),g=f.$once.bind(f),v=f.$emit.bind(f);function m(t,e){return d("service."+t,e)}function b(t,e){return p("service."+t,e)}function y(t,e,n){v("service."+t,e,n)}l(m)},5129:function(t,e){t.exports=["uni-app","uni-tabbar","uni-page","uni-page-head","uni-page-wrapper","uni-page-body","uni-page-refresh","uni-actionsheet","uni-modal","uni-toast","uni-resize-sensor","uni-ad","uni-audio","uni-button","uni-camera","uni-canvas","uni-checkbox","uni-checkbox-group","uni-cover-image","uni-cover-view","uni-form","uni-functional-page-navigator","uni-icon","uni-image","uni-input","uni-label","uni-live-player","uni-live-pusher","uni-map","uni-movable-area","uni-movable-view","uni-navigator","uni-official-account","uni-open-data","uni-picker","uni-picker-view","uni-picker-view-column","uni-progress","uni-radio","uni-radio-group","uni-rich-text","uni-scroll-view","uni-slider","uni-swiper","uni-swiper-item","uni-switch","uni-text","uni-textarea","uni-video","uni-view","uni-web-view"]},5363: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}n.d(e,"a",function(){return i}),i.prototype.set=function(t,e){this._x=t,this._v=e,this._startTime=(new Date).getTime()},i.prototype.setVelocityByEnd=function(t){this._v=(t-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)},i.prototype.x=function(t){var e;return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),e=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t),this._dt=t,this._x+this._v*e/this._dragLog-this._v/this._dragLog},i.prototype.dx=function(t){var e;return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),e=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t),this._dt=t,this._v*e},i.prototype.done=function(){return Math.abs(this.dx())<3},i.prototype.reconfigure=function(t){var e=this.x(),n=this.dx();this._drag=t,this._dragLog=Math.log(t),this.set(e,n)},i.prototype.configuration=function(){var t=this;return[{label:"Friction",read:function(){return t._drag},write:function(e){t.reconfigure(e)},min:.001,max:.1,step:.001}]}},"53f0":function(t,e,n){},5408:function(t,e,n){var i={"./button/index.vue":"d3bd","./canvas/index.vue":"bacd","./checkbox-group/index.vue":"25ce","./checkbox/index.vue":"7bb3","./form/index.vue":"b34d","./icon/index.vue":"9a8b","./image/index.vue":"1082","./input/index.vue":"250d","./label/index.vue":"70f4","./movable-area/index.vue":"c61c","./movable-view/index.vue":"8842","./navigator/index.vue":"17fd","./picker-view-column/index.vue":"1955","./picker-view/index.vue":"27ab","./progress/index.vue":"9b1f","./radio-group/index.vue":"d5ec","./radio/index.vue":"6491","./resize-sensor/index.vue":"3e8c","./rich-text/index.vue":"b705","./scroll-view/index.vue":"f1ef","./slider/index.vue":"9f96","./swiper-item/index.vue":"9213","./swiper/index.vue":"5513","./switch/index.vue":"4f1c","./text/index.vue":"4da7","./textarea/index.vue":"5768","./view/index.vue":"2bbe"};function r(t){var e=o(t);return n(e)}function o(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=o,t.exports=r,r.id="5408"},5513:function(t,e,n){"use strict";n.r(e);var i,r,o=n("ba15"),a={name:"Swiper",mixins:[o["a"]],props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1}},data:function(){return{currentSync:Math.round(this.current)||0,currentItemIdSync:this.currentItemId||"",userTracking:!1,currentChangeSource:"",items:[]}},computed:{intervalNumber:function(){var t=Number(this.interval);return isNaN(t)?5e3:t},durationNumber:function(){var t=Number(this.duration);return isNaN(t)?500:t},displayMultipleItemsNumber:function(){var t=Math.round(this.displayMultipleItems);return isNaN(t)?1:t},slidesStyle:function(){var t={};return(this.nextMargin||this.previousMargin)&&(t=this.vertical?{left:0,right:0,top:this._upx2px(this.previousMargin),bottom:this._upx2px(this.nextMargin)}:{top:0,bottom:0,left:this._upx2px(this.previousMargin),right:this._upx2px(this.nextMargin)}),t},slideFrameStyle:function(){var t=Math.abs(100/this.displayMultipleItemsNumber)+"%";return{width:this.vertical?"100%":t,height:this.vertical?t:"100%"}},circularEnabled:function(){return this.circular&&this.items.length>this.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:{_inintAutoplay:function(t){t?this._scheduleAutoplay():this._cancelSchedule()},_currentCheck:function(){var t=-1;if(this.currentItemId)for(var e=0,n=this.items;ee-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 o=this.currentSync;o>=0?(this._invalid=!1,this.userTracking?(this._updateViewport(r+o-this._contentTrackViewport),this._contentTrackViewport=o):(this._updateViewport(o),this.autoplay&&this._scheduleAutoplay())):(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;r=this.items.length&&(t-=this.items.length),t=this._transitionStart%1>.5||this._transitionStart<0?t-1:t,this.$trigger("transition",{},{dx:this.vertical?0:t*r.offsetWidth,dy:this.vertical?t*r.offsetHeight:0})},_animateFrameFuncProto:function(){var t=this;if(this._animating){var e=this._animating,n=e.toPos,i=e.acc,r=e.endTime,o=e.source,a=r-Date.now();if(a<=0){this._updateViewport(n),this._animating=null,this._requestedAnimation=!1,this._transitionStart=null;var s=this.items[this.currentSync];s&&this._itemReady(s,function(){var e=s.componentInstance.itemId||"";t.$trigger("animationfinish",{},{current:t.currentSync,currentItemId:e,source:o})})}else{var c=i*a*a/2,u=n+c;this._updateViewport(u),requestAnimationFrame(this._animateFrameFuncProto.bind(this))}}else this._requestedAnimation=!1},_animateViewport:function(t,e,n){this._cancelViewportAnimation();var i=this.durationNumber,r=this.items.length,o=this._viewportPosition;if(this.circularEnabled)if(n<0){for(;ot;)o-=r}else if(n>0){for(;o>t;)o-=r;for(;o+rt;)o-=r;o+r-tr)&&(i<0?i=-o(-i):i>r&&(i=r+o(i-r)),e._contentTrackSpeed=0),e._updateViewport(i)}var s=this._contentTrackT-n||1;this.vertical?a(-t.dy/this.$refs.slideFrame.offsetHeight,-t.ddy/s):a(-t.dx/this.$refs.slideFrame.offsetWidth,-t.ddx/s)},_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 void(this.autoplay&&this._scheduleAutoplay())}return this._handleTrackMove(t.detail),!1}}}},render:function(t){var e=[],n=[];this.$slots.default&&this.$slots.default.forEach(function(t){t.componentOptions&&"v-uni-swiper-item"===t.componentOptions.tag&&n.push(t)});for(var i=0,r=n.length;i=o||i=4&&(e.text="...")}}}},5676:function(t,e,n){"use strict";var i=n("0950"),r=n.n(i);r.a},"56e9":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 f});var r=t,o=r.emit,a=r.invokeCallbackHandler;function s(t,e){o("onShowModal",t,function(t){a(e,i({},t,!0))})}function c(t){return o("onShowToast",t),{}}function u(){return o("onHideToast"),{}}function l(t){return o("onShowLoading",t),{}}function h(){return o("onHideLoading"),{}}function f(t,e){o("onShowActionSheet",t,function(t){a(e,-1===t?{errMsg:"showActionSheet:fail cancel"}:{tapIndex:t})})}}.call(this,n("0dd1"))},5727:function(t,e,n){"use strict";var i=n("d60d"),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({attrs:{value:t._checkEmpty(t.value),maxlength:t.maxlengthNumber,placeholder:t._checkEmpty(t.placeholder),disabled:t.disabled,focus:t.focus,"auto-focus":t.autoFocus,"placeholder-class":t._checkEmpty(t.placeholderClass),"placeholder-style":t._checkEmpty(t.placeholderStyle),"auto-height":t.autoHeight,cursor:t.cursorNumber,"selection-start":t.selectionStartNumber,"selection-end":t.selectionEndNumber},on:{change:function(t){t.stopPropagation()}}},t.$listeners),[n("div",{staticClass:"uni-textarea-wrapper"},[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("div",{staticClass:"uni-textarea-compute"},[t._l(t.valueCompute,function(e,i){return n("div",{key:i},[t._v(t._s(e.trim()?e:"."))])}),n("v-uni-resize-sensor",{ref:"sensor",on:{resize:t._resize}})],2),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.valueSync,expression:"valueSync"}],ref:"textarea",staticClass:"uni-textarea-textarea",class:{"uni-textarea-textarea-ios":t.isIOS},attrs:{disabled:t.disabled,maxlength:t.maxlengthNumber,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(e){return e.stopPropagation(),t._input(e)}],focus:t._focus,blur:t._blur,"&touchstart":function(e){return t._touchstart(e)}}})])])},r=[],o=n("8af1"),a={name:"Textarea",mixins:[o["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},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),valueComposition:"",composition:!1,focusSync:this.focus,height:0,focusChangeSource:"",isIOS:0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")}},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},valueCompute:function(){return(this.composition?this.valueComposition:this.valueSync).split("\n")}},watch:{value:function(t){this.valueSync=String(t)},valueSync:function(t){t!==this._oldValue&&(this._oldValue=t,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._oldValue=this.$refs.textarea.value=this.valueSync,this._resize({height:this.$refs.sensor.$el.offsetHeight})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_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"},_resize:function(t){var e=t.height;this.height=e},_input:function(t){this.composition&&(this.valueComposition=t.target.value)},_getFormData:function(){return{value:this.valueSync,key:this.name}},_resetFormData:function(){this.valueSync=""},_checkEmpty:function(t){return t||!1}}},s=a,c=(n("9400"),n("0c7c")),u=Object(c["a"])(s,i,r,!1,null,null,null);e["default"]=u.exports},"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",{attrs:{id:t.id}},[n("div",{ref:"map",staticStyle:{width:"100%",height:"100%",position:"relative",overflow:"hidden"}}),n("div",{staticStyle:{position:"absolute",top:"0",width:"100%",height:"100%",overflow:"hidden","pointer-events":"none"}},[t._t("default")],2)])},r=[],o=n("8c4b"),a=o["a"],s=(n("3f7e"),n("0c7c")),c=Object(s["a"])(a,i,r,!1,null,null,null);e["default"]=c.exports},5964:function(t,e,n){"use strict";function i(t,e){var n=getCurrentPages();if(n.length){var i=n[n.length-1].$holder;switch(t){case"setNavigationBarColor":var r=e.frontColor,o=e.backgroundColor,a=e.animation,s=a.duration,c=a.timingFunc;r&&(i.navigationBar.textColor="#000000"===r?"black":"white"),o&&(i.navigationBar.backgroundColor=o),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,document.title=u;break}}return{}}function r(t){return i("setNavigationBarColor",t)}function o(){return i("showNavigationBarLoading")}function a(){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 o}),n.d(e,"hideNavigationBarLoading",function(){return a}),n.d(e,"setNavigationBarTitle",function(){return s})},"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("fcd8"),r=n.n(i);r.a},"5abe":function(t,e){(function(){"use strict";if("object"===typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=window.document,e=[];i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i.prototype.observe=function(t){var e=this._observationTargets.some(function(e){return e.element==t});if(!e){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},i.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},i.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]})},i.prototype._parseRootMargin=function(t){var e=t||"0px",n=e.split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return n[1]=n[1]||n[0],n[2]=n[2]||n[0],n[3]=n[3]||n[1],n},i.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(a(window,"resize",this._checkForIntersections,!0),a(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},i.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(window,"resize",this._checkForIntersections,!0),s(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},i.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),e=t?this._getRootRect():l();this._observationTargets.forEach(function(i){var o=i.element,a=u(o),s=this._rootContainsTarget(o),c=i.entry,l=t&&s&&this._computeTargetAndRootIntersection(o,e),h=i.entry=new n({time:r(),target:o,boundingClientRect:a,rootBounds:e,intersectionRect:l});c?t&&s?this._hasCrossedThreshold(c,h)&&this._queuedEntries.push(h):c&&c.isIntersecting&&this._queuedEntries.push(h):this._queuedEntries.push(h)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},i.prototype._computeTargetAndRootIntersection=function(e,n){if("none"!=window.getComputedStyle(e).display){var i=u(e),r=i,o=f(e),a=!1;while(!a){var s=null,l=1==o.nodeType?window.getComputedStyle(o):{};if("none"==l.display)return;if(o==this.root||o==t?(a=!0,s=n):o!=t.body&&o!=t.documentElement&&"visible"!=l.overflow&&(s=u(o)),s&&(r=c(s,r),!r))break;o=f(o)}return r}},i.prototype._getRootRect=function(){var e;if(this.root)e=u(this.root);else{var n=t.documentElement,i=t.body;e={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},i.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100}),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},i.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,i=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==i)for(var r=0;r=0&&s>=0&&{top:n,bottom:i,left:r,right:o,width:a,height:s}}function u(t){var e;try{e=t.getBoundingClientRect()}catch(n){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):l()}function l(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function h(t,e){var n=e;while(n){if(n==t)return!0;n=f(n)}return!1}function f(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e&&e.assignedSlot?e.assignedSlot.parentNode:e}})()},"5d1d":function(t,e,n){"use strict";var i=n("91b0"),r=n.n(i);r.a},"5dc1":function(t,e,n){"use strict";(function(t){n.d(e,"b",function(){return s}),n.d(e,"a",function(){return c});n("5abe");var i=n("85b6"),r=n("db8e");function o(t){return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}var a={};function s(e,n){var s=e.reqId,c=e.component,u=e.options,l=getCurrentPages(),h=l.find(function(t){return t.$page.id===n});if(!h)throw new Error("Not Found:Page[".concat(n,"]"));var f=h.$vm,d=Object(r["a"])(c,f),p=u.relativeToSelector?d.querySelector(u.relativeToSelector):null,g=a[s]=new IntersectionObserver(function(e,n){e.forEach(function(e){t.publishHandler("onRequestComponentObserver",{reqId:s,res:{intersectionRatio:e.intersectionRatio,intersectionRect:o(e.intersectionRect),boundingClientRect:o(e.boundingClientRect),relativeRect:o(e.rootBounds),time:Date.now(),dataset:Object(i["c"])(e.target.dataset||{}),id:e.target.id}},f.$page.id)})},{root:p,rootMargin:u.rootMargin,threshold:u.thresholds});u.observeAll?(g.USE_MUTATION_OBSERVER=!0,Array.prototype.map.call(d.querySelectorAll(u.selector),function(t){g.observe(t)})):(g.USE_MUTATION_OBSERVER=!1,g.observe(d.querySelector(u.selector)))}function c(e){var n=e.reqId,i=a[n];i&&(i.disconnect(),t.publishHandler("onRequestComponentObserver",{reqId:n,reqEnd:!0}))}}).call(this,n("501c"))},6062:function(t,e,n){"use strict";var i=n("748c"),r=n.n(i);r.a},6144:function(t,e,n){},"61c2":function(t,e,n){"use strict";var i=n("f2b3"),r=n("8af1");function o(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})}function a(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})}var s={name:"uni://form-field",init:function(t,e){e.constructor.options.props&&e.constructor.options.props.name&&e.constructor.options.props.value||(e.constructor.options.props||(e.constructor.options.props={}),e.constructor.options.props.name||(e.constructor.options.props.name=t.props.name={type:String}),e.constructor.options.props.value||(e.constructor.options.props.value=t.props.value={type:null})),t.propsData||(t.propsData={});var n=e.$vnode;if(n&&n.data&&n.data.attrs&&(Object(i["c"])(n.data.attrs,"name")&&(t.propsData.name=n.data.attrs.name),Object(i["c"])(n.data.attrs,"value")&&(t.propsData.value=n.data.attrs.value)),!e.constructor.options.methods||!e.constructor.options.methods._getFormData){e.constructor.options.methods||(e.constructor.options.methods={}),t.methods||(t.methods={});var s={_getFormData:function(){return this.name?{key:this.name,value:this.value}:{}},_resetFormData:function(){this.value=""}};Object.assign(e.constructor.options.methods,s),Object.assign(t.methods,s),Object.assign(e.constructor.options.methods,r["a"].methods),Object.assign(t.methods,r["a"].methods);var c=t["created"];e.constructor.options["created"]=t["created"]=c?[].concat(o,c):[o];var u=t["beforeDestroy"];e.constructor.options["beforeDestroy"]=t["beforeDestroy"]=u?[].concat(a,u):[a]}}};function c(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,"a",function(){return l});var u=c({},s.name,s);function l(t,e){t.behaviors.forEach(function(n){var i=u[n];i&&i.init(t,e)})}},6226:function(t,e,n){"use strict";var i=n("e670"),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("c99c"),r=n.n(i);r.a},6481:function(t,e,n){"use strict";n.r(e),n.d(e,"base64ToArrayBuffer",function(){return i}),n.d(e,"arrayBufferToBase64",function(){return r});var i=[{name:"base64",type:String,required:!0}],r=[{name:"arrayBuffer",type:[ArrayBuffer,Uint8Array],required:!0}]},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=[],o=n("8af1"),a={name:"Radio",mixins:[o["a"],o["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=a,c=(n("c96e"),n("0c7c")),u=Object(c["a"])(s,i,r,!1,null,null,null);e["default"]=u.exports},"64d0":function(t,e,n){"use strict";var i=n("1047"),r=n.n(i);r.a},6575:function(t,e,n){"use strict";n.r(e),function(t){function i(e,n){var i=e.latitude,r=e.longitude,o=e.scale,a=e.name,s=e.address,c=t,u=c.invokeCallbackHandler;getApp().$router.push({type:"navigateTo",path:"/open-location",query:{latitude:i,longitude:r,scale:o,name:a,address:s}},function(){u(n,{errMsg:"openLocation:ok"})},function(){u(n,{errMsg:"openLocation:fail"})})}n.d(e,"openLocation",function(){return i})}.call(this,n("0dd1"))},"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},"6a87":function(t,e,n){},"6bdf":function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return u});var i=n("85b6"),r=n("a470"),o=n("db8e");function a(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 s(t,e){var n={},o=Object(r["a"])(),a=o.top;if(e.id&&(n.id=t.id),e.dataset&&(n.dataset=Object(i["c"])(t.dataset||{})),e.rect||e.size){var s=t.getBoundingClientRect();e.rect&&(n.left=s.left,n.right=s.right,n.top=s.top-a,n.bottom=s.bottom),e.size&&(n.width=s.width,n.height=s.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 c(t,e,n,i,r){var a=Object(o["a"])(e,t);if(i){var c=a&&(a.matches(n)?a:a.querySelector(n));return c?s(c,r):null}if(a){var u=[],l=a.querySelectorAll(n);return l&&l.length&&(u=[].map.call(l,function(t){return s(t,r)})),a.matches(n)&&u.unshift(a),u}return[]}function u(e,n){var i=e.reqId,r=e.reqs,o=getCurrentPages(),s=o.find(function(t){return t.$page.id===n});if(!s)throw new Error("Not Found:Page[".concat(n,"]"));var u=s.$vm,l=[];r.forEach(function(t){var e=t.component,n=t.selector,i=t.single,r=t.fields;0===e?l.push(a(r)):l.push(c(u,e,n,i,r))}),t.publishHandler("onRequestComponentInfo",{reqId:i,res:l},u.$page.id)}}).call(this,n("501c"))},"6e0c":function(t,e,n){"use strict";n.r(e),n.d(e,"$on",function(){return s}),n.d(e,"$off",function(){return c}),n.d(e,"$once",function(){return u}),n.d(e,"$emit",function(){return l});var i=n("8bbf"),r=n.n(i),o=new r.a;function a(t,e,n){return t[e].apply(t,n)}function s(){return a(o,"$on",Array.prototype.slice.call(arguments))}function c(){return a(o,"$off",Array.prototype.slice.call(arguments))}function u(){return a(o,"$once",Array.prototype.slice.call(arguments))}function l(){return a(o,"$emit",Array.prototype.slice.call(arguments))}},"6f45":function(t,e,n){},"6fa7":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._show(e)}}},[n("div",{ref:"picker",staticClass:"uni-picker-container",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),n("div",[t._t("default")],2)])},r=[],o=n("8af1"),a=n("f2b3");function s(t){return l(t)||u(t)||c()}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function u(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function l(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e=0}},fields:{type:String,default:"day",validator:function(t){return Object.values(d).indexOf(t)>=0}},start:{type:String,default:function(){if(this.mode===f.TIME)return"00:00";if(this.mode===f.DATE){var t=(new Date).getFullYear()-100;switch(this.fields){case d.YEAR:return t;case d.MONTH:return t+"-01";case d.DAY:return t+"-01-01"}}return""}},end:{type:String,default:function(){if(this.mode===f.TIME)return"23:59";if(this.mode===f.DATE){var t=(new Date).getFullYear()+100;switch(this.fields){case d.YEAR:return t;case d.MONTH:return t+"-12";case d.DAY:return t+"-12-31"}}return""}},disabled:{type:[Boolean,String],default:!1}},data:function(){return{valueSync:this.value||0,visible:!1,valueChangeSource:"",timeArray:[],dateArray:[],valueArray:[],oldValueArray:[]}},computed:{rangeArray:function(){var t=this.range;switch(this.mode){case f.SELECTOR:return[t];case f.MULTISELECTOR:return t;case f.TIME:return this.timeArray;case f.DATE:var e=this.dateArray;switch(this.fields){case d.YEAR:return[e[0]];case d.MONTH:return[e[0],e[1]];case d.DAY:return[e[0],e[1],e[2]]}}},startArray:function(){var t=this.mode===f.DATE?"-":":",e=this.mode===f.DATE?this.dateArray:this.timeArray,n=this.start.split(t).map(function(t,n){return e[n].indexOf(t)});return n.indexOf(-1)>=0&&(n=e.map(function(){return 0})),n},endArray:function(){var t=this.mode===f.DATE?"-":":",e=this.mode===f.DATE?this.dateArray:this.timeArray,n=this.end.split(t).map(function(t,n){return e[n].indexOf(t)});return n.indexOf(-1)>=0&&(n=e.map(function(t){return t.length-1})),n},units:function(){switch(this.mode){case f.DATE:return["年","月","日"];case f.TIME:return["时","分"];default:return[]}}},watch:{value:function(t){var e=this;Array.isArray(t)?(Array.isArray(this.valueSync)||(this.valueSync=[]),this.valueSync.length=t.length,t.forEach(function(t,n){t!==e.valueSync[n]&&e.$set(e.valueSync,n,t)})):"object"!==h(t)&&(this.valueSync=t)},valueArray:function(t){var e=this;if(this.mode===f.TIME||this.mode===f.DATE){var n=this.mode===f.TIME?this._getTimeValue:this._getDateValue,i=this.valueArray,r=this.startArray,o=this.endArray;if(this.mode===f.DATE){var a=this.dateArray,s=a[2].length,c=a[2][i[2]],u=new Date("".concat(a[0][i[0]],"/").concat(a[1][i[1]],"/").concat(c)).getDate();c=Number(c),un(o)&&this._cloneArray(i,o)}t.forEach(function(t,n){t!==e.oldValueArray[n]&&(e.oldValueArray[n]=t,e.mode===f.MULTISELECTOR&&e.$trigger("columnchange",{},{column:n,value:t}))})}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this}),this._createTime(),this._createDate(),this.$watch("valueSync",this._setValue),this.$watch("mode",this._setValue)},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_show:function(){var t=this;if(!this.disabled){this.valueChangeSource="",this._setValue();var e=this.$refs.picker;e.remove(),(document.querySelector("uni-app")||document.body).append(e),e.style.display="block",setTimeout(function(){t.visible=!0},20)}},_getFormData:function(){return{value:this.valueSync,key:this.name}},_resetFormData:function(){this.valueSync=0},_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=[],o=1;o<=12;o++)r.push((o<10?"0":"")+o);for(var a=[],s=1;s<=31;s++)a.push((s<10?"0":"")+s);this.dateArray.push(t,r,a)},_getTimeValue:function(t){return 60*t[0]+t[1]},_getDateValue:function(t){return 366*t[0]+31*(t[1]||0)+(t[2]||0)},_cloneArray:function(t,e){for(var n=0;n=5&&t<=18?t:18},default:18},name:{type:String},address:{type:String}}},"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=[],o=n("9ad5"),a=o["a"],s=n("0c7c"),c=Object(s["a"])(a,i,r,!1,null,null,null);e["default"]=c.exports},"72b3":function(t,e,n){"use strict";function i(t,e,n){return t>e-n&&t0){var u=(-n-Math.sqrt(o))/(2*i),l=(-n+Math.sqrt(o))/(2*i),h=(e-u*t)/(l-u),f=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)),f*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)),f*u*e+h*l*n}}}var d=Math.sqrt(4*i*r-n*n)/(2*i),p=-n/2*i,g=t,v=(e-p*t)/d;return{x:function(t){return Math.pow(Math.E,p*t)*(g*Math.cos(d*t)+v*Math.sin(d*t))},dx:function(t){var e=Math.pow(Math.E,p*t),n=Math.cos(d*t),i=Math.sin(d*t);return e*(v*d*n-g*d*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||!r(e,.4)){e=e||0;var i=this._endPosition;this._solution&&(r(e,.4)&&(e=this._solution.dx((n-this._startTime)/1e3)),i=this._solution.x((n-this._startTime)/1e3),r(e,.4)&&(e=0),r(i,.4)&&(i=0),i+=this._endPosition),this._solution&&r(i-t,.4)&&r(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()),i(this.x(),this._endPosition,.4)&&r(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}]}},"748c":function(t,e,n){},"74ce":function(t,e,n){},"764a":function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return u});var i=n("f2b3"),r=n("85b6"),o=n("65a8"),a=n("33ed"),s=!!i["h"]&&{passive:!1};function c(e){if(uni.canIUse("css.var")){var n=e.$parent.$parent,i=n.showNavigationBar&&"transparent"!==n.navigationBar.type&&"float"!==n.navigationBar.type?o["a"]+"px":"0px",r=getApp().$children[0].showTabBar?o["b"]+"px":"0px",a=document.documentElement.style;a.setProperty("--window-top",i),a.setProperty("--window-bottom",r),t.debug("".concat(e.$page.route,"[").concat(e.$page.id,"]:--window-top=").concat(i)),t.debug("".concat(e.$page.route,"[").concat(e.$page.id,"]:--window-bottom=").concat(r))}}function u(t){var e=!1,n=!1;t("onPageLoad",function(t){c(t)}),t("onPageShow",function(t){var o=t.$parent.$parent;t._isMounted&&c(t),n&&document.removeEventListener("touchmove",n,s),o.disableScroll&&(n=a["b"],document.addEventListener("touchmove",n,s));var u=Object(r["a"])(t.$options,"onPageScroll"),l=Object(r["a"])(t.$options,"onReachBottom"),h=o.onReachBottomDistance,f=Object(i["f"])(o.titleNView)&&"transparent"===o.titleNView.type||Object(i["f"])(o.navigationBar)&&"transparent"===o.navigationBar.type;e&&document.removeEventListener("scroll",e),(f||u||l)&&(e=Object(a["a"])(t.$page.id,{enablePageScroll:u,enablePageReachBottom:l,onReachBottomDistance:h,enableTransparentTitleNView:f}),requestAnimationFrame(function(){document.addEventListener("scroll",e)}))})}}).call(this,n("3ad9")["default"])},"77e0":function(t,e,n){"use strict";n.r(e),function(t,n){e["default"]={data:function(){return{showToast:{visible:!1}}},created:function(){var e=this,i="",r=function(t){return function(n){i=t,setTimeout(function(){e.showToast=n},10)}};t.on("onShowToast",r("onShowToast")),t.on("onShowLoading",r("onShowLoading"));var o=function(t){return function(){var r="";if("onHideToast"===t&&"onShowToast"!==i?r="请注意 showToast 与 hideToast 必须配对使用":"onHideLoading"===t&&"onShowLoading"!==i&&(r="请注意 showLoading 与 hideLoading 必须配对使用"),r)return n.warn(r);i="",setTimeout(function(){e.showToast.visible=!1},10)}};t.on("onHidePopup",o("onHidePopup")),t.on("onHideToast",o("onHideToast")),t.on("onHideLoading",o("onHideLoading"))}}}.call(this,n("0dd1"),n("3ad9")["default"])},"78a1":function(t,e,n){"use strict";n.r(e),n.d(e,"onKeyboardHeightChange",function(){return a});var i=n("a118"),r=n("db70"),o=[];function a(t){o.push(t)}Object(r["c"])("onKeyboardHeightChange",function(t){o.forEach(function(e){Object(i["a"])(e,t)})})},"78c8":function(t,e,n){"use strict";n.r(e),n.d(e,"getSystemInfoSync",function(){return u}),n.d(e,"getSystemInfo",function(){return l});var i=n("a470"),r=n("d8c8"),o=n.n(r),a=navigator.userAgent,s=/android/i.test(a),c=/iphone|ipad|ipod/i.test(a);function u(){var t,e,n,r=window.innerWidth,u=window.innerHeight,l=window.screen,h=window.devicePixelRatio,f=l.width,d=l.height,p=navigator.language,g=0;if(c){t="iOS";var v=a.match(/OS\s([\w_]+)\slike/);v&&(e=v[1].replace(/_/g,"."));var m=a.match(/\(([a-zA-Z]+);/);m&&(n=m[1])}else if(s){t="Android";var b=a.match(/Android[\s\/]([\w\.]+)[;\s]/);b&&(e=b[1]);for(var y=a.match(/\((.+?)\)/),_=y?y[1].split(";"):a.split(" "),w=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i],k=0;k<_.length;k++){var S=_[k];if(S.indexOf("Build")>0){n=S.split("Build")[0].trim();break}for(var T=void 0,x=0;x0&&void 0!==arguments[0]?arguments[0]:{};t.interval;if(!a)return a=!0,Object(r["b"])("enableAccelerometer",{enable:!0})}function u(){return a=!1,Object(r["b"])("enableAccelerometer",{enable:!1})}},"7d18":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"uploadFile",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 o(t,e){for(var n=0;n=0&&this._callbacks.splice(e,1)}},{key:"abort",value:function(){this._isAbort=!0,this._xhr&&(this._xhr.abort(),delete this._xhr)}}]),t}();function u(e,n){var r=e.url,o=e.filePath,a=e.name,s=e.header,u=e.formData,l=__uniConfig.networkTimeout&&__uniConfig.networkTimeout.uploadFile||6e4,h=t,f=h.invokeCallbackHandler,d=new c(null,n);function p(t){var e,i=new XMLHttpRequest,o=new FormData;Object.keys(u).forEach(function(t){o.append(t,u[t])}),o.append(a,t,t.name||"file-".concat(Date.now())),i.open("POST",r),Object.keys(s).forEach(function(t){i.setRequestHeader(t,s[t])}),i.upload.onprogress=function(t){d._callbacks.forEach(function(e){var n=t.loaded,i=t.total,r=Math.round(n/i*100);e({progress:r,totalBytesSent:n,totalBytesExpectedToSend:i})})},i.onerror=function(){clearTimeout(e),f(n,{errMsg:"uploadFile:fail"})},i.onabort=function(){clearTimeout(e),f(n,{errMsg:"uploadFile:fail abort"})},i.onload=function(){clearTimeout(e);var t=i.status;f(n,{errMsg:"uploadFile:ok",statusCode:t,data:i.responseText||i.response})},d._isAbort?f(n,{errMsg:"uploadFile:fail abort"}):(e=setTimeout(function(){i.upload.onprogress=i.onload=i.onabort=i.onerror=null,d.abort(),f(n,{errMsg:"uploadFile:fail timeout"})},l),i.send(o),d._xhr=i)}return Object(i["b"])(o).then(p).catch(function(){setTimeout(function(){f(n,{errMsg:"uploadFile:fail file error"})},0)}),d}}.call(this,n("0dd1"))},"7e6a":function(t,e,n){"use strict";var i=n("e47d"),r=n.n(i);r.a},"7f16":function(t,e,n){},"7f4e":function(t,e,n){"use strict";function i(t){var e=t.phoneNumber;return window.location.href="tel:".concat(e),{errMsg:"makePhoneCall:ok"}}n.r(e),n.d(e,"makePhoneCall",function(){return i})},"811a":function(t,e,n){"use strict";n.r(e),n.d(e,"connectSocket",function(){return f}),n.d(e,"sendSocketMessage",function(){return d}),n.d(e,"closeSocket",function(){return p}),n.d(e,"onSocketOpen",function(){return g}),n.d(e,"onSocketError",function(){return v}),n.d(e,"onSocketMessage",function(){return m}),n.d(e,"onSocketClose",function(){return b});var i=n("a118"),r=n("db70");function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n=0&&l.splice(a,1)}})},"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){return t._switchTab(e,i)}}},[n("div",{staticClass:"uni-tabbar__bd"},[e.iconPath?n("div",{staticClass:"uni-tabbar__icon",class:{"uni-tabbar__icon__diff":!e.text}},[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=[],o=n("a579"),a=o["a"],s=(n("f4e0"),n("0c7c")),c=Object(s["a"])(a,i,r,!1,null,null,null),u=c.exports,l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"uni-fade"}},[t.visible?n("uni-toast",{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"},[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"},[n("p",{staticClass:"uni-simple-toast__text"},[t._v(t._s(t.title))])])]):t._e()],1)},h=[],f=n("c719"),d=f["a"],p=(n("ff28"),Object(s["a"])(d,l,h,!1,null,null,null)),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"}),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){return 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){return t._close("confirm")}}},[t._v(t._s(t.confirmText))])])])])],1)},m=[],b=n("5a56"),y={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"])(_,v,m,!1,null,null,null)),k=w.exports,S=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){return t._close(-1)}}})]),n("div",{staticClass:"uni-actionsheet",class:{"uni-actionsheet_toggle":t.visible}},[n("div",{staticClass:"uni-actionsheet__menu"},[t.title?n("div",{staticClass:"uni-actionsheet__title"},[t._v(t._s(t.title))]):t._e(),t._l(t.itemList,function(e,i){return n("div",{key:i,staticClass:"uni-actionsheet__cell",style:{color:t.itemColor},on:{click:function(e){return t._close(i)}}},[t._v(t._s(e))])})],2),n("div",{staticClass:"uni-actionsheet__action"},[n("div",{staticClass:"uni-actionsheet__cell",style:{color:t.itemColor},on:{click:function(e){return t._close(-1)}}},[t._v("取消")])])])],1)},T=[],x={name:"ActionSheet",props:{title:{type:String,default:""},itemList:{type:Array,default:function(){return[]}},itemColor:{type:String,default:"#000000"},visible:{type:Boolean,default:!1}},methods:{_close:function(t){this.$emit("close",t)}}},C=x,O=(n("4fef"),Object(s["a"])(C,S,T,!1,null,null,null)),M=O.exports,E={Toast:g,Modal:k,ActionSheet:M};function A(t,e){var n=Object.keys(t);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(t)),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n}function j(t){for(var e=1;e0&&t<1?t:1}}},c={canvasId:{type:String,require:!0},actions:{type:Array,require:!0},reserve:{type:Boolean,default:!1}}},"82c2":function(t,e,n){"use strict";n.r(e),n.d(e,"request",function(){return f});var i=n("f2b3"),r=n("a118"),o=n("db70");function a(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>2],o+=t[(3&i[n])<<4|i[n+1]>>4],o+=t[(15&i[n+1])<<2|i[n+2]>>6],o+=t[63&i[n+2]];return r%3===2?o=o.substring(0,o.length-1)+"=":r%3===1&&(o=o.substring(0,o.length-2)+"=="),o},e.decode=function(t){var e,i,r,o,a,s=.75*t.length,c=t.length,u=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var l=new ArrayBuffer(s),h=new Uint8Array(l);for(e=0;e>4,h[u++]=(15&r)<<4|o>>2,h[u++]=(3&o)<<6|63&a;return l}})()},"83a6":function(t,e,n){"use strict";e["a"]={data:function(){return{hovering:!1}},props:{hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:Number,default:50},hoverStayTime:{type:Number,default:400}},methods:{_hoverTouchStart:function(t){var e=this;t._hoverPropagationStopped||this.hoverClass&&"none"!==this.hoverClass&&!this.disabled&&(t.touches.length>1||(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)}}}},"84e0":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),{}}n.d(e,"pageScrollTo",function(){return i})}.call(this,n("0dd1"))},8542:function(t,e,n){"use strict";n.d(e,"a",function(){return m}),n.d(e,"d",function(){return b}),n.d(e,"e",function(){return S}),n.d(e,"b",function(){return x}),n.d(e,"c",function(){return C});var i=n("f2b3");function r(t){return s(t)||a(t)||o()}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function a(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);e1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach(function(n){if(Array.isArray(t[n])){var r=e[n];e[n]=function(e){w(t[n],e).then(function(t){return Object(i["e"])(r)&&r(t)||t})}}}),e}function S(t,e){var n=[];Array.isArray(l.returnValue)&&n.push.apply(n,r(l.returnValue));var i=h[t];return i&&Array.isArray(i.returnValue)&&n.push.apply(n,r(i.returnValue)),n.forEach(function(t){e=t(e)||e}),e}function T(t){var e=Object.create(null);Object.keys(l).forEach(function(t){"returnValue"!==t&&(e[t]=l[t].slice())});var n=h[t];return n&&Object.keys(n).forEach(function(t){"returnValue"!==t&&(e[t]=(e[t]||[]).concat(n[t]))}),e}function x(t,e,n){for(var i=arguments.length,r=new Array(i>3?i-3:0),o=3;o0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return Array.isArray(t[e])&&t[e].length}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=JSON.parse(JSON.stringify(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=a(this.s().x,this._endPositionX)||a(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,o=n*n-4*i*r;if(0===o){var a=-n/(2*i),s=t,c=e/(a*t);return{x:function(t){return(s+c*t)*Math.pow(Math.E,a*t)},dx:function(t){var e=Math.pow(Math.E,a*t);return a*(s+c*t)*e+c*e}}}if(o>0){var u=(-n-Math.sqrt(o))/(2*i),l=(-n+Math.sqrt(o))/(2*i),h=(e-u*t)/(l-u),f=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)),f*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)),f*u*e+h*l*n}}}var d=Math.sqrt(4*i*r-n*n)/(2*i),p=-n/2*i,g=t,v=(e-p*t)/d;return{x:function(t){return Math.pow(Math.E,p*t)*(g*Math.cos(d*t)+v*Math.sin(d*t))},dx:function(t){var e=Math.pow(Math.E,p*t),n=Math.cos(d*t),i=Math.sin(d*t);return e*(v*d*n-g*d*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()),a(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 f=!1;function d(t){f||(f=!0,requestAnimationFrame(function(){t(),f=!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 o(e,n,i,r){if(!e||!e.cancelled){i(n);var a=t.done();a||e.cancelled||(e.id=requestAnimationFrame(o.bind(null,e,n,i,r))),a&&r&&r(n)}}return o(r,t,e,n),{cancel:i.bind(null,r),model:t}}var b={name:"MovableView",mixins:[o["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},animation:{type:[Boolean,String],default:!0}},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.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),d(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,o=i+this._translateX,a=r+this._translateY;othis.maxX&&(o=this.maxX,a=this._translateY+(this.maxX-this._translateX)*r/i),athis.maxY&&(a=this.maxY,o=this._translateX+(this.maxY-this._translateY)*i/r),this._friction.setEnd(o,a),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,o=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),o&&n!==this._scale&&this.$trigger("scale",{},{x:t,y:e,scale:n});var a="translateX("+t+"px) translateY("+e+"px) translateZ(0px) scale("+n+")";this.$el.style.transform=a,this.$el.style.webkitTransform=a,this._translateX=t,this._translateY=e,this._scale=n}}},y=b,_=(n("7c2b"),n("0c7c")),w=Object(_["a"])(y,i,r,!1,null,null,null);e["default"]=w.exports},"893e":function(t,e,n){"use strict";n.r(e),function(t,i){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n=0&&f.splice(r,1)}})});var p=["CLOSED","CLOSING","CONNECTING","OPEN","readyState"];p.forEach(function(t){Object.defineProperty(c,t,{get:function(){return d[t]}})})}catch(g){a=g}o(a,this)}return a(t,[{key:"send",value:function(){var t=arguments.length>0&&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=this._webSocket,n=[];n.push(t.code||1e3),"string"===typeof t.reason&&n.push(t.reason);try{e.close.apply(e,n),this._callback(t,"sendSocketMessage:ok")}catch(i){this._callback(t,"sendSocketMessage:fail ".concat(i))}}},{key:"_callback",value:function(t,e){var n=t.success,i=t.fail,r=t.complete,o={errMsg:e};/:ok$/.test(e)?"function"===typeof n&&n(o):"function"===typeof i&&i(o),"function"===typeof r&&r(o)}}]),t}();function p(t,e){var n=t.url,i=t.protocols;return new d(n,i,function(t,n){t||f.push(n),u(e,{errMsg:"connectSocket:"+(t?"fail ".concat(t):"ok")})})}function g(t,e){var n=f[0];n&&n.readyState===n.OPEN?n.send(Object.assign({},t,{complete:function(t){u(e,t)}})):u(e,{errMsg:"sendSocketMessage:fail WebSocket is not connected "})}function v(t,e){var n=f[0];n?n.close(Object.assign({},t,{complete:function(t){u(e,t)}})):u(e,{errMsg:"closeSocket:fail WebSocket is not connected"})}function m(t){return function(e){h[t]=e}}l.forEach(function(t){var e=t[0].toUpperCase()+t.substr(1);d.prototype["on".concat(e)]=function(e){this._callbacks[t].push(e)}});var b=m("open"),y=m("error"),_=m("message"),w=m("close")}.call(this,n("0dd1"),n("3ad9")["default"])},"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 o=this.$options.listeners;Object(i["f"])(o)&&Object.keys(o).forEach(function(i){n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&t.on("uni-".concat(i,"-").concat(r.$page.id,"-").concat(e),r[o[i]]):0===i.indexOf("@")?r.$on("uni-".concat(i.substr(1)),r[o[i]]):0===i.indexOf("uni-")?t.on(i,r[o[i]]):e&&t.on("uni-".concat(i,"-").concat(r.$page.id,"-").concat(e),r[o[i]])})}},_removeListeners:function(e,n){var r=this;if(!n||e){var o=this.$options.listeners;Object(i["f"])(o)&&Object.keys(o).forEach(function(i){n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&t.off("uni-".concat(i,"-").concat(r.$page.id,"-").concat(e),r[o[i]]):0===i.indexOf("@")?r.$off("uni-".concat(i.substr(1)),r[o[i]]):0===i.indexOf("uni-")?t.off(i,r[o[i]]):e&&t.off("uni-".concat(i,"-").concat(r.$page.id,"-").concat(e),r[o[i]])})}}}}}).call(this,n("501c"))},"8aec":function(t,e,n){"use strict";var i=n("5363"),r=n("72b3");function o(t,e,n){this._extent=t,this._friction=e||new i["a"](.01),this._spring=n||new r["a"](1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}function a(t,e,n){function i(t,e,n,r){if(!t||!t.cancelled){n(e);var o=e.done();o||t.cancelled||(t.id=requestAnimationFrame(i.bind(null,t,e,n,r))),o&&r&&r(e)}}function r(t){t&&t.id&&cancelAnimationFrame(t.id),t&&(t.cancelled=!0)}var o={id:0,cancelled:!1};return i(o,t,e,n),{cancel:r.bind(null,o),model:t}}function s(t,e){e=e||{},this._element=t,this._options=e,this._enableSnap=e.enableSnap||!1,this._itemSize=e.itemSize||0,this._enableX=e.enableX||!1,this._enableY=e.enableY||!1,this._shouldDispatchScrollEvent=!!e.onScroll,this._enableX?(this._extent=(e.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=e.scrollWidth):(this._extent=(e.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=e.scrollHeight),this._position=0,this._scroll=new o(this._extent,e.friction,e.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}o.prototype.snap=function(t,e){this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(e)},o.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()},o.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},o.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},o.prototype.done=function(){return this._springing?this._spring.done():this._friction.done()},o.prototype.setVelocityByEnd=function(t){this._friction.setVelocityByEnd(t)},o.prototype.configuration=function(){var t=this._friction.configuration();return t.push.apply(t,this._spring.configuration()),t},s.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()},s.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()},s.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(o)):r-o;s<=0&&s>=-this._extent&&this._scroll.setVelocityByEnd(s)}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=a(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&&(s<=0&&s>=-i._extent&&(i._position=s,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})},s.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()},s.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)))},s.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)},s.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)}},s.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},s.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},s.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 s(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(),event.preventDefault())},_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,o={x:0,y:0};if(r>2)for(var a=e.historyTime.length-1,s=e.historyTime[a],c=e.historyX[a],u=e.historyY[a];a>0;){a--;var l=e.historyTime[a],h=s-l;if(h>30&&h<50){o.x=(c-e.historyX[a])/(h/1e3),o.y=(u-e.historyY[a])/(h/1e3);break}}e.historyTime=[],e.historyX=[],e.historyY=[],i&&i.onTouchEnd&&i.onTouchEnd(n.x,n.y,o)}}}}}},"8af1":function(t,e,n){"use strict";function i(t,e){for(var n=this.$children,r=n.length,o=arguments.length,a=new Array(o>2?o-2:0),s=2;s2?r-2:0),a=2;a2?n-2:0),o=2;o1&&void 0!==arguments[1]?arguments[1]:{};e.routes;Object(r["a"])();var n=function(t,e){for(var n=t.target;n&&n!==e;n=n.parentNode)if(n.tagName&&0===n.tagName.indexOf("UNI-"))break;return n};t.prototype.$handleEvent=function(t){if(t instanceof Event){var e=n(t,this.$el);t=r["b"].call(this,t.type,t,{},e||t.target,t.currentTarget)}return t},t.prototype.$getComponentDescriptor=function(t){return Object(a["a"])(t||this)},t.prototype.$handleWxsEvent=function(t){if(t instanceof Event){var e=t.currentTarget,i=e&&e.__vue__&&e.__vue__.$getComponentDescriptor();t=r["b"].call(this,t.type,t,{},n(t,this.$el)||t.target,t.currentTarget),t.instance=i}return t},t.mixin({beforeCreate:function(){var t=this,e=this.$options,n=e.wxs;n&&Object.keys(n).forEach(function(e){t[e]=n[e]}),e.behaviors&&e.behaviors.length&&Object(o["a"])(e,this),Object(i["b"])(this)&&(e.mounted=e.mounted?[].concat(s,e.mounted):[s])}})}}}.call(this,n("501c"))},"8c4b":function(t,e,n){"use strict";(function(t){var i,r=n("8af1"),o=n("f2b3");e["a"]={name:"Map",mixins:[r["d"]],props:{id:{type:String,default:""},latitude:{type:[String,Number],default:39.92},longitude:{type:[String,Number],default:116.46},scale:{type:[String,Number],default:16},markers:{type:Array,default:function(){return[]}},covers:{type:Array,default:function(){return[]}},includePoints:{type:Array,default:function(){return[]}},polyline:{type:Array,default:function(){return[]}},circles:{type:Array,default:function(){return[]}},controls:{type:Array,default:function(){return[]}},showLocation:{type:[Boolean,String],default:!1}},data:function(){return{center:{latitude:116.46,longitude:116.46},isMapReady:!1,isBoundsReady:!1,markersSync:[],polylineSync:[],circlesSync:[],controlsSync:[]}},watch:{latitude:function(){this.centerChange()},longitude:function(){this.centerChange()},scale:function(t){var e=this;this.mapReady(function(){e._map.setZoom(Number(t)||16)})},markers:function(t,e){var n=this;this.mapReady(function(){var i=[],r=[],o=[],a=[],s=[];t.forEach(function(t){if("id"in t){for(var n=!1,s=0;s=0?(e=o.indexOf(i))>=0&&n.changeMarker(t,a[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.init()})},beforeDestroy:function(){this.removeMarkers(this.markersSync),this.removePolyline(),this.removeCircles(),this.removeControls(),this.removeLocation()},methods:{_handleSubscribe:function(t){var e=this,n=t.type,r=t.data,o=void 0===r?{}:r;function a(t,e){t=t||{},t.errMsg="".concat(n,":").concat(e?"fail"+e:"ok");var i=e?o.fail:o.success;"function"===typeof i&&i(t),"function"===typeof o.complete&&o.complete(t)}switch(n){case"getCenterLocation":this.mapReady(function(){var t,n,i=e._map.getCenter();t=i.getLat(),n=i.getLng(),a({latitude:t,longitude:n})});break;case"moveToLocation":var s=this._locationPosition;s&&this._map.setCenter(s);break;case"translateMarker":this.mapReady(function(){try{var t=e.getMarker(o.markerId),n=o.destination,r=o.duration,s=!!o.autoRotate,c=Number(o.rotate)?o.rotate:0,u=t.getRotation(),l=t.getPosition(),h=new i.LatLng(n.latitude,n.longitude),f=i.geometry.spherical.computeDistanceBetween(l,h)/1e3,d=("number"===typeof r?r:1e3)/36e5,p=f/d,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=o.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){a(null,b)}});break;case"includePoints":this.fitBounds(o.points);break;case"getRegion":this.boundsReady(function(){var t=e._map.getBounds(),n=t.getSouthWest(),i=t.getNorthEast();a({southwest:{latitude:n.getLat(),longitude:n.getLng()},northeast:{latitude:i.getLat(),longitude:i.getLng()}})});break;case"getScale":this.mapReady(function(){a({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.$refs.map,{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("click",{},{})}),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")},centerChange:function(){var t=this,e=Number(this.latitude),n=Number(this.longitude);e===this.center.latitude&&n===this.center.longitude||(this.center.latitude=e,this.center.longitude=n,this._map&&this.mapReady(function(){t._map.setCenter(new i.LatLng(e,n))}))},createMarkers:function(t){var e=this,n=this._map,r=this.markersSync;t.forEach(function(t){var a=new i.Marker({map:n,flat:!0,autoRotation:!1});a.id=t.id,e.changeMarker(a,t),i.event.addListener(a,"click",function(n){var i=a.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))}Object(o["c"])(t,"id")&&e.$trigger("markertap",{},{markerId:t.id})}),r.push(a)})},changeMarker:function(t,e){var n=this,r=this._map,a=e.title||e.name,s=new i.LatLng(e.latitude,e.longitude),c=new Image;c.onload=function(){var u,l,h,f,d=e.anchor||{},p=d.x,g=d.y;e.iconPath&&(e.width||e.height)?(l=e.width||c.width/c.height*e.height,h=e.height||c.height/c.width*e.width):(l=c.width/2,h=c.height/2),p=("number"===typeof p?p:.5)*l,g=("number"===typeof g?g:1)*h,f=h-(h-g),u=new i.MarkerImage(c.src,null,null,new i.Point(p,g),new i.Size(l,h)),t.setPosition(s),t.setIcon(u),t.setRotation(e.rotate||0);var v,m=e.label||{};t.label&&(t.label.setMap(null),delete t.label),m.content&&(v=new i.Label({position:s,map:r,clickable:!1,content:m.content,style:{border:"none",padding:"8px",background:"none",color:m.color,fontSize:(m.fontSize||14)+"px",lineHeight:(m.fontSize||14)+"px",marginLeft:m.x,marginTop:m.y}}),t.label=v);var b,y=e.callout||{},_=t.callout;y.content?b={id:e.id,position:s,map:r,top:f,content:y.content,color:y.color,fontSize:y.fontSize,borderRadius:y.borderRadius,bgColor:y.bgColor,padding:y.padding,boxShadow:y.boxShadow,display:y.display}:a&&(b={id:e.id,position:s,map:r,top:f,content:a,boxShadow:"0px 0px 3px 1px rgba(0,0,0,0.5)"}),b?_?_.setOption(b):(_=t.callout=new i.Callout(b),_.div.onclick=function(t){Object(o["c"])(e,"id")&&n.$trigger("callouttap",t,{markerId:e.id}),t.stopPropagation(),t.preventDefault()}):_&&(_.setMap(null),delete t.callout)},c.src=e.iconPath?this.$getRealPath(e.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]:{};this.option=t;var e=t.map;this.position=t.position,this.index=1,this.visible=this.alwaysVisible="ALWAYS"===t.display,this.init(),Object.defineProperty(this,"onclick",{setter:function(t){this.div.onclick=t},getter:function(){return this.div.onclick}}),e&&this.setMap(e)};e.prototype=new i.Overlay,e.prototype.init=function(){var t=this.option,e=this.div=document.createElement("div"),n=e.style;n.position="absolute",n.whiteSpace="nowrap",n.transform="translateX(-50%) translateY(-100%)",n.zIndex=1,n.boxShadow=t.boxShadow||"none",n.display=this.visible?"block":"none";var i=this.triangle=document.createElement("div");i.setAttribute("style","position: absolute;white-space: nowrap;border-width: 4px;border-style: solid;border-color: #fff transparent transparent;border-image: initial;font-size: 12px;padding: 0px;background-color: transparent;width: 0px;height: 0px;transform: translate(-50%, 100%);left: 50%;bottom: 0;"),this.setStyle(t),this.changed=function(t){n.display=this.visible?"block":"none"},e.appendChild(i)},e.prototype.construct=function(){var t=this.div,e=this.getPanes();e.floatPane.appendChild(t)},e.prototype.draw=function(){var t=this.getProjection();if(this.position&&this.div&&t){var e=t.fromLatLngToDivPixel(this.position),n=this.div.style;n.left=e.x+"px",n.top=e.y+"px"}},e.prototype.destroy=function(){this.div.parentNode.removeChild(this.div),this.div=null,this.triangle=null},e.prototype.setOption=function(t){this.option=t,this.setPosition(t.position),"ALWAYS"===t.display?this.alwaysVisible=this.visible=!0:this.alwaysVisible=!1,this.setStyle(t)},e.prototype.setStyle=function(t){var e=this.div,n=e.style;e.innerText=t.content,n.lineHeight=(t.fontSize||14)+"px",n.fontSize=(t.fontSize||14)+"px",n.padding=(t.padding||8)+"px",n.color=t.color||"#000",n.borderRadius=(t.borderRadius||0)+"px",n.backgroundColor=t.bgColor||"#fff",n.marginTop="-"+(t.top+5)+"px",this.triangle.style.borderColor="".concat(t.bgColor||"#fff"," transparent transparent")},e.prototype.setPosition=function(t){this.position=t,this.draw()},t()};var r=document.createElement("script");r.src="https://map.qq.com/api/js?v=2.exp&key=".concat(e,"&callback=").concat(n,"&libraries=geometry"),document.body.appendChild(r)}}}}}).call(this,n("3ad9")["default"])},"8ce3":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"chooseVideo",function(){return u});var i=n("e2e2"),r=n("f2b3"),o=t,a=o.invokeCallbackHandler,s=null,c=function(t){var e=document.createElement("input");return e.type="file",Object(r["j"])(e,{position:"absolute",visibility:"hidden","z-index":-999,width:0,height:0,top:0,left:0}),e.accept="video/*",1===t.sourceType.length&&"camera"===t.sourceType[0]&&(e.capture="camera"),e};function u(t,e){var n=t.sourceType;s&&(document.body.removeChild(s),s=null),s=c({sourceType:n}),document.body.appendChild(s),s.addEventListener("change",function(t){var n=t.target.files[0],r=Object(i["a"])(n),o={errMsg:"chooseVideo:ok",tempFilePath:r,size:n.size,duration:0,width:0,height:0},s=document.createElement("video");s.onloadedmetadata?(s.onloadedmetadata=function(){o.duration=s.duration||0,o.width=s.videoWidth||0,o.height=s.videoHeight||0,a(e,o)},s.src=r):a(e,o)}),s.click()}}.call(this,n("0dd1"))},"8e16":function(t,e,n){"use strict";var i=n("a1e3"),r=n.n(i);r.a},"8f7e":function(t,e,n){"use strict";n.r(e);var i=n("8bbf"),r=n.n(i),o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-app",{class:{"uni-app--showtabbar":t.showTabBar}},[n("keep-alive",{attrs:{include:t.keepAliveInclude}},[n("router-view",{key:t.key})],1),t.hasTabBar?n("tab-bar",t._b({directives:[{name:"show",rawName:"v-show",value:t.showTabBar,expression:"showTabBar"}]},"tab-bar",t.tabBar,!1)):t._e(),t.$options.components.Toast?n("toast",t._b({},"toast",t.showToast,!1)):t._e(),t.$options.components.ActionSheet?n("action-sheet",t._b({on:{close:t._onActionSheetClose}},"action-sheet",t.showActionSheet,!1)):t._e(),t.$options.components.Modal?n("modal",t._b({on:{close:t._onModalClose}},"modal",t.showModal,!1)):t._e()],1)},a=[],s=n("0f11"),c=s["a"],u=(n("854d"),n("0c7c")),l=Object(u["a"])(c,o,a,!1,null,null,null),h=l.exports,f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-page",{attrs:{"data-page":t.$route.meta.pagePath}},[t.showNavigationBar?n("page-head",t._b({},"page-head",t.navigationBar,!1)):t._e(),t.enablePullDownRefresh?n("page-refresh",{ref:"refresh",attrs:{color:t.refreshOptions.color,offset:t.refreshOptions.offset}}):t._e(),t.enablePullDownRefresh?n("page-body",{nativeOn:{touchstart:function(e){return t._touchstart(e)},touchmove:function(e){return t._touchmove(e)},touchend:function(e){return t._touchend(e)},touchcancel:function(e){return t._touchend(e)}}},[t._t("page")],2):n("page-body",[t._t("page")],2)],1)},d=[],p=n("85b6"),g=n("65a8"),v=n("24d9"),m=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-page-head",{attrs:{"uni-page-head-type":t.type}},[n("div",{staticClass:"uni-page-head",class:{"uni-page-head-transparent":"transparent"===t.type,"uni-page-head-titlePenetrate":t.titlePenetrate},style:{transitionDuration:t.duration,transitionTimingFunction:t.timingFunc,backgroundColor:t.bgColor,color:t.textColor}},[n("div",{staticClass:"uni-page-head-hd"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.backButton,expression:"backButton"}],staticClass:"uni-page-head-btn",on:{click:t._back}},[n("i",{staticClass:"uni-btn-icon",style:{color:t.color,fontSize:"27px"}},[t._v("")])]),t._l(t.btns,function(e,i){return["left"===e.float?n("div",{key:i,staticClass:"uni-page-head-btn",class:{"uni-page-head-btn-red-dot":e.redDot||e.badgeText,"uni-page-head-btn-select":e.select},style:{backgroundColor:"transparent"===t.type?e.background:"transparent",width:e.width},attrs:{"badge-text":e.badgeText}},[n("i",{staticClass:"uni-btn-icon",style:t._formatBtnStyle(e),domProps:{innerHTML:t._s(t._formatBtnFontText(e))},on:{click:function(e){return t._onBtnClick(i)}}})]):t._e()]})],2),t.searchInput?t._e():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.titleImage?n("img",{staticClass:"uni-page-head__title_image",attrs:{src:t.titleImage}}):[t._v("\n "+t._s(t.titleText)+"\n ")]],2)]),t.searchInput?n("div",{staticClass:"uni-page-head-search",style:{"border-radius":t.searchInput.borderRadius,"background-color":t.searchInput.backgroundColor}},[n("div",{staticClass:"uni-page-head-search-placeholder",class:["uni-page-head-search-placeholder-"+(t.focus||t.text?"left":t.searchInput.align)],style:{color:t.searchInput.placeholderColor}},[t._v(t._s(t.text||t.composing?"":t.searchInput.placeholder))]),n("v-uni-input",{ref:"input",staticClass:"uni-page-head-search-input",style:{color:t.searchInput.color},attrs:{focus:t.searchInput.autoFocus,disabled:t.searchInput.disabled,"placeholder-style":"color:"+t.searchInput.placeholderColor,"confirm-type":"search"},on:{focus:t._focus,blur:t._blur,"update:value":t._input},model:{value:t.text,callback:function(e){t.text=e},expression:"text"}})],1):t._e(),n("div",{staticClass:"uni-page-head-ft"},[t._l(t.btns,function(e,i){return["left"!==e.float?n("div",{key:i,staticClass:"uni-page-head-btn",class:{"uni-page-head-btn-red-dot":e.redDot||e.badgeText,"uni-page-head-btn-select":e.select},style:{backgroundColor:"transparent"===t.type?e.background:"transparent",width:e.width},attrs:{"badge-text":e.badgeText}},[n("i",{staticClass:"uni-btn-icon",style:t._formatBtnStyle(e),domProps:{innerHTML:t._s(t._formatBtnFontText(e))},on:{click:function(e){return t._onBtnClick(i)}}})]):t._e()]})],2)]),"transparent"!==t.type&&"float"!==t.type?n("div",{staticClass:"uni-placeholder",class:{"uni-placeholder-titlePenetrate":t.titlePenetrate}}):t._e()])},b=[],y=n("d161"),_=y["a"],w=(n("8e16"),Object(u["a"])(_,m,b,!1,null,null,null)),k=w.exports,S=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)},T=[],x={name:"PageBody"},C=x,O=(n("167a"),Object(u["a"])(C,S,T,!1,null,null,null)),M=O.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=[],j={name:"PageRefresh",props:{color:{type:String,default:"#2BD009"},offset:{type:Number,default:0}}},$=j,P=(n("9b5b"),Object(u["a"])($,E,A,!1,null,null,null)),I=P.exports,B=n("be12"),L={name:"Page",mpType:"page",components:{PageHead:k,PageBody:M,PageRefresh:I},mixins:[B["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{}}},titleImage:{type:String,default:""},transparentTitle:{type:String,default:"none"},titlePenetrate:{type:String,default:"NO"}},data:function(){var t={none:"default",auto:"transparent",always:"float"},e={YES:!0,NO:!1},n=Object(v["a"])({loading:!1,backButton:!this.isQuit&&!this.$route.meta.isQuit,backgroundColor:this.navigationBarBackgroundColor,textColor:"black"===this.navigationBarTextStyle?"#000":"#fff",titleText:this.navigationBarTitleText,titleImage:this.titleImage,duration:"0",timingFunc:"",type:t[this.transparentTitle],transparentTitle:this.transparentTitle,titlePenetrate:e[this.titlePenetrate]},this.titleNView),i="default"===this.navigationStyle&&this.titleNView,r=Object.assign({support:!0,color:"#2BD009",style:"circle",height:70,range:150,offset:0},this.pullToRefresh),o=Object(p["d"])(r.offset);return i&&(this.titleNView&&"transparent"===this.titleNView.type||(o+=g["a"])),r.offset=o,r.height=Object(p["d"])(r.height),r.range=Object(p["d"])(r.range),{showNavigationBar:i,navigationBar:n,refreshOptions:r}},created:function(){document.title=this.navigationBar.titleText}},N=L,D=(n("6226"),Object(u["a"])(N,f,d,!1,null,null,null)),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=[],q={name:"AsyncError",methods:{_onClick:function(){window.location.reload()}}},V=q,H=(n("b628"),Object(u["a"])(V,R,F,!1,null,null,null)),Y=H.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)),Q=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)},J=[],tt=n("92de"),et=tt["a"],nt=(n("9470"),Object(u["a"])(et,Z,J,!1,null,null,null)),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 allow-top-navigation allow-modals allow-popups",frameborder:"0"},on:{load:t._load}}),t.isPoimarkerSrc?n("div",{staticClass:"actTonav",on:{click:t._nav}}):t._e()])],1)},ot=[],at=n("bab8"),st=__uniConfig.qqMapKey,ct="uniapp",ut="https://apis.map.qq.com/tools/poimarker",lt={name:"SystemOpenLocation",components:{SystemHeader:at["a"]},data:function(){var t=this.$route.query,e=t.latitude,n=t.longitude,i=t.scale,r=void 0===i?18:i,o=t.name,a=void 0===o?"":o,s=t.address,c=void 0===s?"":s;return{latitude:e,longitude:n,scale:r,name:a,address:c,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,ft=(n("3da9"),Object(u["a"])(ht,rt,ot,!1,null,null,null)),dt=ft.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="number"===typeof this.current?this.current: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)),yt=bt.exports,_t={ChooseLocation:it,OpenLocation:dt,PreviewImage:yt};r.a.component(h.name,h),r.a.component(z.name,z),r.a.component(Y.name,Y),r.a.component(Q.name,Q),Object.keys(_t).forEach(function(t){var e=_t[t];r.a.component(e.name,e)})},"8ffa":function(t,e,n){},"90c9":function(t,e,n){},"91b0":function(t,e,n){},"91ce":function(t,e,n){},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=[],o={name:"SwiperItem",props:{itemId:{type:String,default:""}},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()})}},a=o,s=(n("bfea"),n("0c7c")),c=Object(s["a"])(a,i,r,!1,null,null,null);e["default"]=c.exports},"924c":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;nMath.abs(o-e.y))if(t.scrollX){if(0===a.scrollLeft&&r>e.x)return void(n=!1);if(a.scrollWidth===a.offsetWidth+a.scrollLeft&&re.y)return void(n=!1);if(a.scrollHeight===a.offsetHeight+a.scrollTop&&on.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 o=r.left-i.left,a=this.$refs.main.scrollLeft,s=a+o;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"])},9613:function(t,e,n){},"98be":function(t,e,n){"use strict";var i=n("9250"),r=n.n(i),o=n("27a7"),a=n("ed1a"),s=Object.create(null),c=n("bdb1");c.keys().forEach(function(t){Object.assign(s,c(t))});var u=s,l=n("3b67"),h=Object.assign(Object.create(null),u,l["a"]);n.d(e,"a",function(){return f});var f=Object.create(null);r.a.forEach(function(t){h[t]?f[t]=Object(a["d"])(t,Object(o["b"])(t,h[t])):f[t]=Object(o["c"])(t)})},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")},r=[],o={name:"WebView",props:{src:{type:String,default:""}},watch:{src:function(t,e){this.iframe&&(this.iframe.src=this.$getRealPath(this.src))}},mounted:function(){var t=this.$el.getBoundingClientRect(),e=t.top,n=t.bottom,i=t.width,r=t.height;this.iframe=document.createElement("iframe"),this.iframe.style.position="absolute",this.iframe.style.display="block",this.iframe.style.border=0,this.iframe.style.top=e+"px",this.iframe.style.bottom=n+"px",this.iframe.style.width=i+"px",this.iframe.style.height=r+"px",this.iframe.src=this.$getRealPath(this.src),document.body.appendChild(this.iframe)},activated:function(){this.iframe.style.display="block"},deactivated:function(){this.iframe.style.display="none"},beforeDestroy:function(){document.body.removeChild(this.iframe)}},a=o,s=(n("c33f"),n("0c7c")),c=Object(s["a"])(a,i,r,!1,null,null,null);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||{}}}}},"9a72":function(t,e,n){},"9a8b":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-icon",[n("i",{class:"uni-icon-"+t.type,style:{"font-size":t._converPx(t.size),color:t.color},attrs:{role:"img"}})])},r=[],o={name:"Icon",props:{type:{type:String,required:!0,default:""},size:{type:[String,Number],default:23},color:{type:String,default:""}},methods:{_converPx:function(t){if(/\d+[ur]px$/i.test(t))t.replace(/\d+[ur]px$/i,function(t){return"".concat(uni.upx2px(parseFloat(t)),"px")});else if(/^-?[\d\.]+$/.test(t))return"".concat(t,"px");return t||""}}},a=o,s=(n("7e6a"),n("0c7c")),c=Object(s["a"])(a,i,r,!1,null,null,null);e["default"]=c.exports},"9ad5":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"))},"9b1b":function(t,e,n){"use strict";n.r(e),n.d(e,"onWindowResize",function(){return a}),n.d(e,"offWindowResize",function(){return s});var i=n("a118"),r=n("db70"),o=[];function a(t){o.push(t)}function s(t){o.splice(o.indexOf(t),1)}Object(r["c"])("onViewDidResize",function(t){o.forEach(function(e){Object(i["a"])(e,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=[],o={activeColor:"#007AFF",backgroundColor:"#EBEBEB",activeMode:"backwards"},a={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:o.activeColor},activeColor:{type:String,default:o.activeColor},backgroundColor:{type:String,default:o.backgroundColor},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:o.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!==o.activeColor&&this.activeColor===o.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===o.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=a,c=(n("944e"),n("0c7c")),u=Object(c["a"])(s,i,r,!1,null,null,null);e["default"]=u.exports},"9b5b":function(t,e,n){"use strict";var i=n("f8d2"),r=n.n(i);r.a},"9e56":function(t,e,n){"use strict";n.r(e),function(t){function i(e,n){var i=e.urls,r=e.current,o=t,a=o.invokeCallbackHandler;getApp().$router.push({type:"navigateTo",path:"/preview-image",params:{urls:i,current:r}},function(){a(n,{errMsg:"previewImage:ok"})},function(){a(n,{errMsg:"previewImage:fail"})})}n.d(e,"previewImage",function(){return i})}.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=[],o=n("8af1"),a=n("ba15"),s={name:"Slider",mixins:[o["a"],o["c"],a["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("0c7c")),l=Object(u["a"])(c,i,r,!1,null,null,null);e["default"]=l.exports},a118:function(t,e,n){"use strict";(function(t){function i(){var e;return(e=t).invokeCallbackHandler.apply(e,arguments)}n.d(e,"a",function(){return i})}).call(this,n("0dd1"))},a1e3:function(t,e,n){},a201:function(t,e,n){"use strict";n.r(e),n.d(e,"request",function(){return u});var i=n("f2b3"),r={OPTIONS:"OPTIONS",GET:"GET",HEAD:"HEAD",POST:"POST",PUT:"PUT",DELETE:"DELETE",TRACE:"TRACE",CONNECT:"CONNECT"},o={JSON:"json"},a={TEXT:"text",ARRAYBUFFER:"arraybuffer"},s=encodeURIComponent;function c(t,e){var n=t.split("#"),r=n[1]||"";n=n[0].split("?");var o=n[1]||"";t=n[0];var a=o.split("&").filter(function(t){return t});for(var c in o={},a.forEach(function(t){t=t.split("="),o[t[0]]=t[1]}),e)e.hasOwnProperty(c)&&(Object(i["f"])(e[c])?o[s(c)]=s(JSON.stringify(e[c])):o[s(c)]=s(e[c]));return o=Object.keys(o).map(function(t){return"".concat(t,"=").concat(o[t])}).join("&"),t+(o?"?"+o:"")+(r?"#"+r:"")}var u={method:{type:String,validator:function(t,e){t=(t||"").toUpperCase(),e.method=Object.values(r).indexOf(t)<0?r.GET:t}},data:{type:[Object,String,ArrayBuffer],validator:function(t,e){e.data=t||""}},url:{type:String,required:!0,validator:function(t,e){e.method===r.GET&&Object(i["f"])(e.data)&&Object.keys(e.data).length&&(e.url=c(t,e.data))}},header:{type:Object,validator:function(t,e){var n=e.header=t||{};e.method!==r.GET&&(Object.keys(n).find(function(t){return"content-type"===t.toLowerCase()})||(n["Content-Type"]="application/json"))}},dataType:{type:String,validator:function(t,e){e.dataType=(t||o.JSON).toLowerCase()}},responseType:{type:String,validator:function(t,e){t=(t||"").toLowerCase(),e.responseType=Object.values(a).indexOf(t)<0?a.TEXT:t}}}},a20f:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return s});var i=function(){var t=document.createElement("canvas"),e=t.getContext("2d"),n=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/n}(),r=function(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},o={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",setTransform:[4,5]};if(1!==i){var a=CanvasRenderingContext2D.prototype;r(o,function(t,e){a[e]=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);var n=Array.prototype.slice.call(arguments);if("all"===t)n=n.map(function(t){return t*i});else if(Array.isArray(t))for(var r=0;r\n/,"").replace(/\n/,"").replace(/\n/,"")}function o(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 a(e){e=r(e);var n=[],a={node:"root",children:[]};return Object(i["a"])(e,{start:function(t,e,i){var r={name:t};if(0!==e.length&&(r.attrs=o(e)),i){var s=n[0]||a;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)a.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)a.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)}}),a.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=[],o=n("8af1"),a={name:"Form",mixins:[o["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=a,c=n("0c7c"),u=Object(c["a"])(s,i,r,!1,null,null,null);e["default"]=u.exports},b628:function(t,e,n){"use strict";var i=n("bde3"),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=[],o=n("b10a"),a=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(a["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(a["f"])(t))if(Object(a["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(a["c"])(s,n))return;var i=document.createElement(n);if(!i)return;var r=t.attrs;if(Object(a["f"])(r)){var o=s[n]||[];Object.keys(r).forEach(function(t){var e=r[t];switch(t){case"class":Array.isArray(e)&&(e=e.join(" "));case"style":i.setAttribute(t,e);break;default:-1!==o.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(o["a"])(t));var e=l(t,document.createDocumentFragment());this.$el.firstChild.innerHTML="",this.$el.firstChild.appendChild(e)}}},f=h,d=n("0c7c"),p=Object(d["a"])(f,i,r,!1,null,null,null);e["default"]=p.exports},b865:function(t,e,n){"use strict";(function(t,i){function r(e,n){return t.emit("api."+e,n)}function o(t,e,n){i.UniViewJSBridge.subscribeHandler(t,e,n)}n.d(e,"a",function(){return r}),n.d(e,"b",function(){return o})}).call(this,n("0dd1"),n("24aa"))},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)}}}},ba15:function(t,e,n){"use strict";var i=function(t,e,n,i){t.addEventListener(e,function(t){"function"===typeof n&&!1===n(t)&&(t.preventDefault(),t.stopPropagation())},{passive:!1})};e["a"]={methods:{touchtrack:function(t,e,n){var r=this,o=0,a=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-o,dy:u-a,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,o=s=t.touches[0].pageX,a=c=t.touches[0].pageY,u(t,"start",o,a)}),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,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 uni-btn-icon header-btn-icon",on:{click:t._back}},[t._v("")]),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=[],o={name:"SystemHeader",props:{confirm:{type:Boolean,default:!1}},created:function(){document.title=this.$slots.default[0].text},methods:{_back:function(){this.$emit("back")},_confirm:function(){this.$emit("confirm")}}},a=o,s=(n("0a32"),n("0c7c")),c=Object(s["a"])(a,i,r,!1,null,null,null);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",t._g({attrs:{"canvas-id":t.canvasId,"disable-scroll":t.disableScroll}},t._listeners),[n("canvas",{ref:"canvas",attrs:{width:"300",height:"150"}}),n("div",{staticStyle:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",overflow:"hidden"}},[t._t("default")],2),n("v-uni-resize-sensor",{ref:"sensor",on:{resize:t._resize}})],1)},r=[],o=n("147b"),a=o["a"],s=(n("0741"),n("0c7c")),c=Object(s["a"])(a,i,r,!1,null,null,null);e["default"]=c.exports},bdb1:function(t,e,n){var i={"./base/base64.js":"1ca3","./base/can-i-use.js":"3648","./base/interceptor.js":"2eae","./base/upx2px.js":"45d2","./context/audio.js":"2c67","./context/background-audio.js":"c3f2","./context/create-map-context.js":"bfa6","./context/create-video-context.js":"ee03","./device/accelerometer.js":"7d13","./device/bluetooth.js":"9481","./device/compass.js":"e4ee","./device/network.js":"8b3f","./media/recorder.js":"3676","./network/download-file.js":"f0c3","./network/request.js":"82c2","./network/socket.js":"811a","./network/upload-file.js":"1ff3","./storage/storage.js":"484e","./ui/create-animation.js":"1e4d","./ui/create-intersection-observer.js":"091a","./ui/create-selector-query.js":"af33","./ui/keyboard.js":"78a1","./ui/page-scroll-to.js":"84e0","./ui/tab-bar.js":"454d","./ui/window.js":"9b1b"};function r(t){var e=o(t);return n(e)}function o(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=o,t.exports=r,r.id="bdb1"},bde3:function(t,e,n){},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",o="aborting",a="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=a,e._addClass(),setTimeout(function(){e._refreshing()},50))}),t.on(this.$route.params.__id__+".stopPullDownRefresh",function(){e.state===a&&(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,[o,a,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 o=e>=this.refreshOptions.range&&this.state!==r,a=e1?i=1:i*=i*i;var r=Math.round(t/(this.refreshOptions.range/this.refreshOptions.height)),o=r?"translate3d(-50%, "+r+"px, 0)":0;n.webkitTransform=o,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"))},be14:function(t,e,n){"use strict";n.r(e),function(t){function i(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,"chooseLocation",function(){return i})}.call(this,n("0dd1"))},bfa6:function(t,e,n){"use strict";n.r(e),n.d(e,"createMapContext",function(){return u});var i=n("db70");function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n1&&(e[n[0].trim()]=n[1].trim())}}),e}var h=function(){function e(t){r(this,e),this.$vm=t,this.$el=t.$el}return a(e,[{key:"selectComponent",value:function(t){if(this.$el&&t){var e=this.$el.querySelector(t);return e&&e.__vue__&&f(e.__vue__)}}},{key:"selectAllComponents",value:function(t){if(!this.$el||!t)return[];var e=[];return this.$el.querySelectorAll(t).forEach(function(t){t.__vue__&&e.push(f(t.__vue__))}),e}},{key:"setStyle",value:function(t){return this.$el&&t?("string"===typeof t&&(t=l(t)),Object(i["f"])(t)&&(this.$el.__wxsStyle=t,this.$vm.$forceUpdate()),this):this}},{key:"addClass",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return this.$vm[t]&&this.$vm[t](JSON.parse(JSON.stringify(e))),this}},{key:"requestAnimationFrame",value:function(e){return t.requestAnimationFrame(e),this}},{key:"getState",value:function(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}},{key:"triggerEvent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.$vm.$emit(t,e),this}}]),e}();function f(t){if(t&&t.$options.name&&0===t.$options.name.indexOf("VUni")&&(t=t.$parent),t&&t.$el)return t.$el.__wxsComponentDescriptor||(t.$el.__wxsComponentDescriptor=new h(t)),t.$el.__wxsComponentDescriptor}}).call(this,n("24aa"))},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,o,a={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._resize()},methods:{_resize:function(){this._getWH(),this.items.forEach(function(t,e){t.componentInstance.setParent()})},_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),o=this._find(e[1].target);this._scaleMovableView=r&&r===o?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},[t("v-uni-resize-sensor",{on:{resize:this._resize}})].concat(n))}},s=a,c=(n("a3e5"),n("0c7c")),u=Object(c["a"])(s,r,o,!1,null,null,null);e["default"]=u.exports},c719: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"))},c8ed:function(t,e,n){"use strict";var i=n("0dba"),r=n.n(i);r.a},c96e:function(t,e,n){"use strict";var i=n("c312"),r=n.n(i);r.a},c99c:function(t,e,n){},cb0f:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("0f74"),r=/^([a-z-]+:)?\/\//i,o=/^data:.*,.*/;function a(t){return __uniConfig.router.base?__uniConfig.router.base+t:t}function s(t){if(0===t.indexOf("/")){if(0!==t.indexOf("//"))return a(t.substr(1));t="https:"+t}if(r.test(t)||o.test(t)||0===t.indexOf("blob:"))return t;var e=getCurrentPages();return e.length?a(Object(i["a"])(e[e.length-1].$page.route,t).substr(1)):t}},cc5f:function(t,e,n){"use strict";var i=n("6f45"),r=n.n(i);r.a},cc76:function(t,e,n){"use strict";var i=Object.create(null),r=n("19c4");r.keys().forEach(function(t){Object.assign(i,r(t))}),e["a"]=i},cee1:function(t,e,n){},d161:function(t,e,n){"use strict";(function(t){var i=n("e949"),r=n("cb0f"),o=n("15bb"),a={forward:"",back:"",share:"",favorite:"",home:"",menu:"",close:""};e["a"]={name:"PageHead",mixins:[o["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","float"].indexOf(t)}},coverage:{type:String,default:"132px"},buttons:{type:Array,default:function(){return[]}},searchInput:{type:[Object,Boolean],default:function(){return!1}},titleImage:{type:String,default:""},transparentTitle:{default:"none",validator:function(t){return-1!==["none","auto","always"].indexOf(t)}},titlePenetrate:{type:Boolean,default:!1}},data:function(){return{focus:!1,text:"",composing:!1}},computed:{btns:function(){var t=this,e=[],n={};return this.buttons.length&&this.buttons.forEach(function(o){var a=Object.assign({},o);if(a.fontSrc&&!a.fontFamily){var s,c=a.fontSrc=Object(r["a"])(a.fontSrc);if(c in n)s=n[c];else{s="font".concat(Date.now()),n[c]=s;var u='@font-face{font-family: "'.concat(s,'";src: url("').concat(c,'") format("truetype")}');Object(i["a"])(u,"uni-btn-font-"+s)}a.fontFamily=s}a.color="transparent"===t.type?"#fff":a.color||t.textColor;var l=a.fontSize||("transparent"===t.type||/\\u/.test(a.text)?"22px":"27px");/\d$/.test(l)&&(l+="px"),a.fontSize=l,a.fontWeight=a.fontWeight||"normal",e.push(a)}),e}},mounted:function(){var e=this;if(this.searchInput){var n=this.$refs.input;n.$watch("composing",function(t){e.composing=t}),this.searchInput.disabled?n.$el.addEventListener("click",function(){t.emit("onNavigationBarSearchInputClicked","")}):n.$refs.input.addEventListener("keyup",function(n){"ENTER"===n.key.toUpperCase()&&t.emit("onNavigationBarSearchInputConfirmed",{text:e.text})})}},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){return t.fontSrc&&t.fontFamily?t.text.replace("\\u","&#x"):a[t.type]?a[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},_focus:function(){this.focus=!0},_blur:function(){this.focus=!1},_input:function(e){t.emit("onNavigationBarSearchInputChanged",{text:e})}}}}).call(this,n("0dd1"))},d3bd:function(t,e,n){"use strict";n.r(e);var i,r,o=n("8af1"),a={name:"Button",mixins:[o["b"],o["a"],o["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=a,c=(n("5676"),n("0c7c")),u=Object(c["a"])(s,i,r,!1,null,null,null);e["default"]=u.exports},d4b6:function(t,e,n){"use strict";n.d(e,"b",function(){return d}),n.d(e,"a",function(){return S});var i=n("f2b3"),r=n("85b6"),o=n("24d9"),a=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,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(c){r=!0,o=c}finally{try{i||null==s["return"]||s["return"]()}finally{if(r)throw o}}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["c"])(t.dataset)};return e&&Object.assign(n,e),n}function f(t){if(t){for(var e=[],n=Object(a["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]:{};if(e._processed)return e.type=n.type||t,e;if("click"===t){var s=Object(a["a"])(),c=s.top;n={x:e.x,y:e.y-c},e.touches=e.changedTouches=[{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY}]}var u=Object(o["b"])({type:n.type||t,timeStamp:e.timeStamp||0,detail:n,target:h(i,n),currentTarget:h(r),touches:e instanceof Event||e instanceof CustomEvent?f(e.touches):e.touches,changedTouches:e instanceof Event||e instanceof CustomEvent?f(e.changedTouches):e.changedTouches,preventDefault:function(){},stopPropagation:function(){}});return u}var p=350,g=10,v=!!i["h"]&&{passive:!0},m=!1;function b(){m&&(clearTimeout(m),m=!1)}var y=0,_=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;y=i,_=r,m=setTimeout(function(){var e=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:t.target,currentTarget:t.currentTarget});e.touches=t.touches,e.changedTouches=t.changedTouches,t.target.dispatchEvent(e)},p)}}function k(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-y)>g||Math.abs(r-_)>g?b():void 0}}function S(){window.addEventListener("touchstart",w,v),window.addEventListener("touchmove",k,v),window.addEventListener("touchend",b,v),window.addEventListener("touchcancel",b,v)}},d5bc:function(t,e,n){},d5be:function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"chooseImage",function(){return u});var i=n("e2e2"),r=n("f2b3"),o=t,a=o.invokeCallbackHandler,s=null,c=function(t){var e=document.createElement("input");return e.type="file",Object(r["j"])(e,{position:"absolute",visibility:"hidden","z-index":-999,width:0,height:0,top:0,left:0}),e.accept="image/*",t.count>1&&(e.multiple="multiple"),1===t.sourceType.length&&"camera"===t.sourceType[0]&&(e.capture="camera"),e};function u(t,e){var n=t.count,r=t.sourceType;s&&(document.body.removeChild(s),s=null),s=c({count:n,sourceType:r}),document.body.appendChild(s),s.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=a,c=(n("fb61"),n("0c7c")),u=Object(c["a"])(s,i,r,!1,null,null,null);e["default"]=u.exports},d60d:function(t,e,n){},d677: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-image",t._g({attrs:{src:t.src}},t.$listeners),[n("div",{staticClass:"uni-cover-image"},[t.src?n("img",{attrs:{src:t.$getRealPath(t.src)},on:{load:t._load,error:t._error}}):t._e()])])},r=[],o={name:"CoverImage",props:{src:{type:String,default:""}},methods:{_load:function(t){this.$trigger("load",t)},_error:function(t){this.$trigger("error",t)}}},a=o,s=(n("5d1d"),n("0c7c")),c=Object(s["a"])(a,i,r,!1,null,null,null);e["default"]=c.exports},d8c8:function(t,e,n){"use strict";var i,r,o=["top","left","right","bottom"],a={};function s(){return r="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":"",r}function c(){if(r="string"===typeof r?r:s(),r){var t=[],e=!1;try{var n=Object.defineProperty({},"passive",{get:function(){e={passive:!0}}});window.addEventListener("test",null,n)}catch(d){}var c=document.createElement("div");u(c,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),o.forEach(function(t){f(c,t)}),document.body.appendChild(c),l(),i=!0}else o.forEach(function(t){a[t]=0});function u(t,e){var n=t.style;Object.keys(e).forEach(function(t){var i=e[t];n[t]=i})}function l(e){e?t.push(e):t.forEach(function(t){t()})}function f(t,n){var i=document.createElement("div"),o=document.createElement("div"),s=document.createElement("div"),c=document.createElement("div"),f=100,d=1e4,p={position:"absolute",width:f+"px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:r+"(safe-area-inset-"+n+")"};u(i,p),u(o,p),u(s,{transition:"0s",animation:"none",width:"400px",height:"400px"}),u(c,{transition:"0s",animation:"none",width:"250%",height:"250%"}),i.appendChild(s),o.appendChild(c),t.appendChild(i),t.appendChild(o),l(function(){i.scrollTop=o.scrollTop=d;var t=i.scrollTop,r=o.scrollTop;function a(){this.scrollTop!==(this===i?t:r)&&(i.scrollTop=o.scrollTop=d,t=i.scrollTop,r=o.scrollTop,h(n))}i.addEventListener("scroll",a,e),o.addEventListener("scroll",a,e)});var g=getComputedStyle(i);Object.defineProperty(a,n,{configurable:!0,get:function(){return parseFloat(g.paddingBottom)}})}}function u(t){return i||c(),a[t]}var l=[];function h(t){l.length||setTimeout(function(){var t={};l.forEach(function(e){t[e]=a[e]}),l.length=0,f.forEach(function(e){e(t)})},0),l.push(t)}var f=[];function d(t){s()&&(i||c(),"function"===typeof t&&f.push(t))}function p(t){var e=f.indexOf(t);e>=0&&f.splice(e,1)}var g={get support(){return 0!=("string"===typeof r?r:s()).length},get top(){return u("top")},get left(){return u("left")},get right(){return u("right")},get bottom(){return u("bottom")},onChange:d,offChange:p};t.exports=g},db18:function(t,e,n){"use strict";var i=n("08c9"),r=n.n(i);r.a},db70:function(t,e,n){"use strict";(function(t){n.d(e,"b",function(){return r}),n.d(e,"c",function(){return o}),n.d(e,"a",function(){return a});var i=n("3b67");function r(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r-1&&o&&!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 a(r,t,s,o,n)}function a(t,e,n,i,r){if(t.required&&i)return"Missing required parameter `".concat(e,"`");if(null==n&&!t.required){var o=t.validator;return o?o(n,r):void 0}var a=t.type,s=!a||!0===a,u=[];if(a){Array.isArray(a)||(a=[a]);for(var l=0;l=0?d:255,[l,h,f,d]}return i.group("非法颜色: "+t),i.error("不支持颜色:"+t),i.groupEnd(),[0,0,0,255]}function m(t){this.width=t}function b(t,e){this.image=t,this.repetition=e}var y,_=function(){function t(e,n){l(this,t),this.type=e,this.data=n,this.colorStop=[]}return f(t,[{key:"addColorStop",value:function(t,e){this.colorStop.push([t,v(e)])}}]),t}(),w=["scale","rotate","translate","setTransform","transform"],k=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],S=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];function T(){return y||(y=document.createElement("canvas")),y}var x=function(){function t(e,n){l(this,t),this.id=e,this.pageId=n,this.actions=[],this.path=[],this.subpath=[],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 f(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)),p(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 b(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=T().getContext("2d");return e.font=this.state.font,new m(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,o){this.path.push({method:"bezierCurveTo",data:[t,e,n,i,r,o]}),this.subpath.push([r,o])}},{key:"arc",value:function(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.path.push({method:"arc",data:[t,e,n,i,r,o]}),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}},{key:"lineDashOffset",set:function(t){this.actions.push({method:"setLineDashOffset",data:[t]})}},{key:"globalCompositeOperation",set:function(t){this.actions.push({method:"setGlobalCompositeOperation",data:[t]})}},{key:"shadowBlur",set:function(t){this.actions.push({method:"setShadowBlur",data:[t]})}},{key:"shadowColor",set:function(t){this.actions.push({method:"setShadowColor",data:[t]})}},{key:"shadowOffsetX",set:function(t){this.actions.push({method:"setShadowOffsetX",data:[t]})}},{key:"shadowOffsetY",set:function(t){this.actions.push({method:"setShadowOffsetY",data:[t]})}},{key:"font",set:function(t){var e=this;this.state.font=t;var n=t.match(/^(([\w\-]+\s)*)(\d+r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(n){var r=n[1].trim().split(/\s/),o=parseFloat(n[3]),a=n[7],s=[];r.forEach(function(t,n){["italic","oblique","normal"].indexOf(t)>-1?(s.push({method:"setFontStyle",data:[t]}),e.state.fontStyle=t):["bold","normal"].indexOf(t)>-1?(s.push({method:"setFontWeight",data:[t]}),e.state.fontWeight=t):0===n?(s.push({method:"setFontStyle",data:["normal"]}),e.state.fontStyle="normal"):1===n&&c()}),1===r.length&&c(),r=s.map(function(t){return t.data[0]}).join(" "),this.state.fontSize=o,this.state.fontFamily=a,this.actions.push({method:"setFont",data:["".concat(r," ").concat(o,"px ").concat(a)]})}else i.warn("Failed to set 'font' on 'CanvasContext': invalid format.");function c(){s.push({method:"setFontWeight",data:["normal"]}),e.state.fontWeight="normal"}},get:function(){return this.state.font}},{key:"fillStyle",set:function(t){this.setFillStyle(t)}},{key:"strokeStyle",set:function(t){this.setStrokeStyle(t)}},{key:"globalAlpha",set:function(t){t=Math.floor(255*parseFloat(t)),this.actions.push({method:"setGlobalAlpha",data:[t]})}},{key:"textAlign",set:function(t){this.actions.push({method:"setTextAlign",data:[t]})}},{key:"lineCap",set:function(t){this.actions.push({method:"setLineCap",data:[t]})}},{key:"lineJoin",set:function(t){this.actions.push({method:"setLineJoin",data:[t]})}},{key:"lineWidth",set:function(t){this.actions.push({method:"setLineWidth",data:[t]})}},{key:"miterLimit",set:function(t){this.actions.push({method:"setMiterLimit",data:[t]})}},{key:"textBaseline",set:function(t){this.actions.push({method:"setTextBaseline",data:[t]})}}]),t}();function C(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(w,k).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 o=[e.toString(),n,i];"number"===typeof r&&o.push(r),this.actions.push({method:t,data:o})};case"drawImage":return function(e,n,i,r,o,a,s,c,u){var l;function h(t){return"number"===typeof t}void 0===u&&(a=n,s=i,c=r,u=o,n=void 0,i=void 0,r=void 0,o=void 0),l=h(n)&&h(i)&&h(r)&&h(o)?[e,a,s,c,u,n,i,r,o]:h(c)&&h(u)?[e,a,s,c,u]:[e,a,s],this.actions.push({method:t,data:l})};default:return function(){for(var e=arguments.length,n=new Array(e),i=0;i0&&void 0!==arguments[0]?arguments[0]:{};t.interval;if(!a)return a=!0,Object(r["b"])("enableCompass",{enable:!0})}function u(){return a=!1,Object(r["b"])("enableCompass",{enable:!1})}},e5bb:function(t,e,n){"use strict";n.r(e),n.d(e,"chooseLocation",function(){return i});var i={keyword:{type:String}}},e670:function(t,e,n){},e826:function(t,e,n){"use strict";n.r(e),function(t){function i(e,n){var i=e.filePath,r=t,o=r.invokeCallbackHandler;window.open(i),o(n,{errMsg:"openDocument:ok"})}n.d(e,"openDocument",function(){return i})}.call(this,n("0dd1"))},e865:function(t,e,n){"use strict";var i=n("a897"),r=n.n(i);r.a},e8b5:function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"onWindowResize",function(){return a}),n.d(e,"offWindowResize",function(){return s});var i=[],r=[];function o(){r.push(setTimeout(function(){r.forEach(function(t){return clearTimeout(t)}),r.length=0;var e=t,n=e.invokeCallbackHandler,o=uni.getSystemInfoSync(),a=o.windowWidth,s=o.windowHeight,c=o.screenWidth,u=o.screenHeight,l=90===Math.abs(window.orientation),h=l?"landscape":"portrait";i.forEach(function(t){n(t,{deviceOrientation:h,size:{windowWidth:a,windowHeight:s,screenWidth:c,screenHeight:u}})})},20))}function a(t){i.length||window.addEventListener("resize",o),i.push(t)}function s(t){i.splice(i.indexOf(t),1),i.length||window.removeEventListener("resize",o)}}.call(this,n("0dd1"))},e949:function(t,e,n){"use strict";function i(t,e){var n=arguments.length>2&&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})},eaa4:function(t,e,n){},ec33:function(t,e,n){"use strict";n.r(e),n.d(e,"getStorage",function(){return i}),n.d(e,"getStorageSync",function(){return r}),n.d(e,"setStorage",function(){return o}),n.d(e,"setStorageSync",function(){return a}),n.d(e,"removeStorage",function(){return s}),n.d(e,"removeStorageSync",function(){return c});var i={key:{type:String,required:!0}},r=[{name:"key",type:String,required:!0}],o={key:{type:String,required:!0},data:{required:!0}},a=[{name:"key",type:String,required:!0},{name:"data",required:!0}],s=i,c=r},ed1a:function(t,e,n){"use strict";n.d(e,"b",function(){return l}),n.d(e,"a",function(){return h}),n.d(e,"c",function(){return f}),n.d(e,"d",function(){return g});var i=n("f2b3"),r=n("8542"),o=/^\$|restoreGlobal|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64/,a=/^create|Manager$/,s=["request","downloadFile","uploadFile","connectSocket"],c=/^on/;function u(t){return a.test(t)}function l(t){return o.test(t)}function h(t){return c.test(t)}function f(t){return-1!==s.indexOf(t)}function d(t){return t.then(function(t){return[null,t]}).catch(function(t){return[t]})}function p(t){return!(u(t)||l(t)||h(t))}function g(t,e){return p(t)?function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length,a=new Array(o>1?o-1:0),s=1;s=0&&this._callbacks.splice(e,1)}},{key:"offHeadersReceived",value:function(){}}]),t}(),u=Object.create(null);function l(t,e){var n=Object(r["b"])("createDownloadTask",t),i=n.downloadTaskId,o=new c(i,e);return u[i]=o,o}Object(r["c"])("onDownloadTaskStateChange",function(t){var e=t.downloadTaskId,n=t.state,r=t.tempFilePath,o=t.statusCode,a=t.progress,s=t.totalBytesWritten,c=t.totalBytesExpectedToWrite,l=t.errMsg,h=u[e],f=h._callbackId;switch(n){case"progressUpdate":h._callbacks.forEach(function(t){t({progress:a,totalBytesWritten:s,totalBytesExpectedToWrite:c})});break;case"success":Object(i["a"])(f,{tempFilePath:r,statusCode:o,errMsg:"request:ok"});case"fail":Object(i["a"])(f,{errMsg:"request:fail "+l});default:setTimeout(function(){delete u[e]},100);break}})},f102:function(t,e,n){"use strict";n.r(e),n.d(e,"makePhoneCall",function(){return i});var i={phoneNumber:{type:String,required:!0,validator:function(t){if(!t)return"makePhoneCall:fail parameter error: parameter.phoneNumber should not be empty String;"}}}},f10e:function(t,e,n){"use strict";var i=n("53f0"),r=n.n(i);r.a},f1b2:function(t,e,n){"use strict";n.r(e),n.d(e,"chooseImage",function(){return o});var i=["original","compressed"],r=["album","camera"],o={count:{type:Number,required:!1,default:9,validator:function(t,e){t<=0&&(e.count=9)}},sizeType:{type:Array,required:!1,default:i,validator:function(t,e){var n=t.length;if(n){for(var r=0;r9?t:"0"+t};function c(t){return"function"===typeof t}function u(t){return"[object Object]"===o.call(t)}function l(t,e){return a.call(t,e)}function h(t){return o.call(t).slice(8,-1)}function f(t){var e=Object.create(null);return function(n){var i=e[n];return i||(e[n]=t(n))}}var d=/-(\w)/g;f(function(t){return t.replace(d,function(t,e){return e?e.toUpperCase():""})});function p(t,e,n){e.forEach(function(e){l(n,e)&&(t[e]=n[e])})}function g(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(""+t).replace(/[^\x00-\xff]/g,"**").length}function v(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 m(t,e){for(var n in e)t.style[n]=e[n]}function b(t){var e,n,i;if(t=t.replace("#",""),6===t.length)e=t.substring(0,2),n=t.substring(2,4),i=t.substring(4,6);else{if(3!==t.length)return!1;e=t.substring(0,1),n=t.substring(1,2),i=t.substring(2,3)}return 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}}decodeURIComponent;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 p}),n.d(e,"b",function(){return g}),n.d(e,"a",function(){return v}),n.d(e,"j",function(){return m}),n.d(e,"d",function(){return b})},f4e0:function(t,e,n){"use strict";var i=n("ffdb"),r=n.n(i);r.a},f53a:function(t,e,n){"use strict";var i=n("4871"),r=n.n(i);r.a},f6fd:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(i){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(i.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},f7b4:function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"onCompassChange",function(){return o}),n.d(e,"startCompass",function(){return a}),n.d(e,"stopCompass",function(){return s});var i,r=[];function o(t){r.push(t),i||a()}function a(){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"))},f7fd:function(t,e,n){"use strict";var i=n("ac9d"),r=n.n(i);r.a},f8d2:function(t,e,n){},f941:function(t,e,n){"use strict";n.r(e),function(t){function i(e,n,i,r){var o=n.$page.id;t.publishHandler(o+"-video-"+e,{videoId:e,type:i,data:r},o)}n.d(e,"operateVideoPlayer",function(){return i})}.call(this,n("0dd1"))},f9d2:function(t,e,n){"use strict";n.r(e),n.d(e,"createInnerAudioContext",function(){return h});var i=n("cb0f");function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n0&&(n.currentTime=t)});var a=["canplay","play","pause","ended","timeUpdate","error","waiting","seeking","seeked"],u=["pause","seeking","seeked","timeUpdate"];a.forEach(function(t){n.addEventListener(t.toLowerCase(),function(){e._stoping&&u.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 h(){return new l}c.forEach(function(t){l.prototype[t]=function(e){"function"===typeof e&&this._events[t].push(e)}}),u.forEach(function(t){l.prototype[t]=function(e){var n=this._events[t.replace("off","on")],i=n.indexOf(e);i>=0&&n.splice(i,1)}})},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})},fa89:function(t,e,n){},fae3:function(t,e,n){"use strict";var i;(n.r(e),"undefined"!==typeof window)&&(n("f6fd"),(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("90c9"),r=n.n(i);r.a},fcd1: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 f}),n.d(e,"showTabBarRedDot",function(){return d}),n.d(e,"removeTabBarBadge",function(){return p}),n.d(e,"setTabBarBadge",function(){return g});var i=n("f2b3"),r=["text","iconPath","selectedIconPath"],o=["color","selectedColor","backgroundColor","borderStyle"],a=["badge","redDot"];function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=getApp();if(n){var s=!1,c=getCurrentPages();if(c.length?c[c.length-1].$page.meta.isTabBar&&(s=!0):n.$children[0].hasTabBar&&(s=!0),!s)return{errMsg:"".concat(t,":fail not TabBar page")};var u=e.index,l=n.$children[0].tabBar;if(u>=__uniConfig.tabBar.list.length)return{errMsg:"".concat(t,":fail tabbar item not found")};switch(t){case"showTabBar":n.$children[0].hideTabBar=!1;break;case"hideTabBar":n.$children[0].hideTabBar=!0;break;case"setTabBarItem":Object(i["g"])(l.list[u],r,e);break;case"setTabBarStyle":Object(i["g"])(l,o,e);break;case"showTabBarRedDot":Object(i["g"])(l.list[u],a,{badge:"",redDot:!0});break;case"setTabBarBadge":Object(i["g"])(l.list[u],a,{badge:e.text,redDot:!0});break;case"hideTabBarRedDot":case"removeTabBarBadge":Object(i["g"])(l.list[u],a,{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 f(t){return s("hideTabBarRedDot",t)}function d(t){return s("showTabBarRedDot",t)}function p(t){return s("removeTabBarBadge",t)}function g(t){return s("setTabBarBadge",t)}},fcd8:function(t,e,n){},ff28:function(t,e,n){"use strict";var i=n("23af"),r=n.n(i);r.a},ffdb:function(t,e,n){},ffdc:function(t,e,n){"use strict";function i(t,e,n,i){var r,o=document.createElement("script"),a=e.callback||"callback",s="__callback"+Date.now(),c=e.timeout||3e4;function u(){clearTimeout(r),delete window[s],o.remove()}window[s]=function(t){"function"===typeof n&&n(t),u()},o.onerror=function(){"function"===typeof i&&i(),u()},r=setTimeout(function(){"function"===typeof i&&i(),u()},c),o.src=t+(t.indexOf("?")>=0?"&":"?")+a+"="+s,document.body.appendChild(o)}n.d(e,"a",function(){return i})}})}); \ No newline at end of file diff --git a/packages/uni-h5/manifest.json b/packages/uni-h5/manifest.json index 77d4c9459d38062828e28ad7a21950c586f9718a..1885cc11a51f2f74a13fbf3f3634a84ba6627b4a 100644 --- a/packages/uni-h5/manifest.json +++ b/packages/uni-h5/manifest.json @@ -261,8 +261,12 @@ ] ], "createMapContext": [ - "/platforms/h5/service/api/context/map.js", + "/core/service/api/context/create-map-context.js", [ + [ + "/platforms/h5/service/api/context/operate-map-player.js", + "operateMapPlayer" + ], [ "/core/helpers/protocol/context/context.js", "createMapContext" @@ -314,8 +318,12 @@ ] ], "createVideoContext": [ - "/platforms/h5/service/api/context/video.js", + "/core/service/api/context/create-video-context.js", [ + [ + "/platforms/h5/service/api/context/operate-video-player.js", + "operateVideoPlayer" + ], [ "/core/helpers/protocol/context/context.js", "createVideoContext" @@ -661,8 +669,12 @@ [] ], "createSelectorQuery": [ - "/platforms/h5/service/api/ui/create-selector-query.js", + "/core/service/api/ui/create-selector-query.js", [ + [ + "/platforms/h5/service/api/ui/request-component-info.js", + "requestComponentInfo" + ], [ "/core/view/bridge/subscribe/api/request-component-info.js", "requestComponentInfo" @@ -670,7 +682,7 @@ ] ], "createIntersectionObserver": [ - "/platforms/h5/service/api/ui/create-intersection-observer.js", + "/core/service/api/ui/create-intersection-observer.js", [ [ "/core/view/bridge/subscribe/api/request-component-observer.js", diff --git a/packages/uni-h5/package.json b/packages/uni-h5/package.json index 9c342b26ad6e8d345d5058cfaa4de3ac60ca51ff..5ab919a67598183bfff70bc7da296ac85174d04d 100644 --- a/packages/uni-h5/package.json +++ b/packages/uni-h5/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-h5", - "version": "3.0.0-alpha-24020191018006", + "version": "3.0.0-alpha-24020191018012", "description": "uni-app h5", "main": "dist/index.umd.min.js", "repository": { diff --git a/packages/uni-mp-alipay/package.json b/packages/uni-mp-alipay/package.json index f0f292e87a7265a68a966be3316ef7ec021026b6..d1068e9b5de27d1dc875378324db02e8c5200e8f 100644 --- a/packages/uni-mp-alipay/package.json +++ b/packages/uni-mp-alipay/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-alipay", - "version": "3.0.0-alpha-24020191018006", + "version": "3.0.0-alpha-24020191018012", "description": "uni-app mp-alipay", "main": "dist/index.js", "repository": { diff --git a/packages/uni-mp-baidu/dist/index.js b/packages/uni-mp-baidu/dist/index.js index ccc8304478150151ae0048379486b757024ecc4b..7174e4e67d995244817268fd03cca28a42ed1bfb 100644 --- a/packages/uni-mp-baidu/dist/index.js +++ b/packages/uni-mp-baidu/dist/index.js @@ -1499,6 +1499,8 @@ function parseBaseComponent (vueComponentOptions, { return [componentOptions, VueComponent] } +const newLifecycle = swan.canIUse('lifecycle-2-0'); + function parseComponent (vueOptions) { const componentOptions = parseBaseComponent(vueOptions, { isPage, @@ -1513,16 +1515,27 @@ function parseComponent (vueOptions) { // 百度 当组件作为页面时 pageinstancce 不是原来组件的 instance this.pageinstance.$vm = this.$vm; - if (hasOwn(this.pageinstance, '_$args')) { + if (hasOwn(this.pageinstance, '_$args')) { this.$vm.$mp.query = this.pageinstance._$args; - this.$vm.__call_hook('onLoad', this.pageinstance._$args); + this.$vm.__call_hook('onLoad', this.pageinstance._$args); delete this.pageinstance._$args; } - // TODO 目前版本 百度 Component 作为页面时,methods 中的 onShow 不触发 - this.$vm.__call_hook('onShow'); + // TODO 3.105.17以下基础库内百度 Component 作为页面时,methods 中的 onShow 不触发 + !newLifecycle && this.$vm.__call_hook('onShow'); } }; + if (newLifecycle) { + delete componentOptions.lifetimes.ready; + componentOptions.methods.onReady = function () { + if (this.$vm) { + this.$vm._isMounted = true; + this.$vm.__call_hook('mounted'); + this.$vm.__call_hook('onReady'); + } + }; + } + componentOptions.messages = { '__l': componentOptions.methods['__l'] }; diff --git a/packages/uni-mp-baidu/package.json b/packages/uni-mp-baidu/package.json index f33d68c55652654dc0cf71e077e5aa15b88bf350..90c9166504a0e980940eed1b6e8d472086443188 100644 --- a/packages/uni-mp-baidu/package.json +++ b/packages/uni-mp-baidu/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-baidu", - "version": "3.0.0-alpha-24020191018006", + "version": "3.0.0-alpha-24020191018012", "description": "uni-app mp-baidu", "main": "dist/index.js", "repository": { diff --git a/packages/uni-mp-qq/package.json b/packages/uni-mp-qq/package.json index ac62f1f9b706978f7c0608d3b8b5385930a1d3ac..88a8e63ace04d42a20eebd6dbab86fdd3d3d512c 100644 --- a/packages/uni-mp-qq/package.json +++ b/packages/uni-mp-qq/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-qq", - "version": "3.0.0-alpha-24020191018006", + "version": "3.0.0-alpha-24020191018012", "description": "uni-app mp-qq", "main": "dist/index.js", "repository": { diff --git a/packages/uni-mp-toutiao/package.json b/packages/uni-mp-toutiao/package.json index e5c7845db77c8e5ab7daddc039716c79bb1bcad2..5e5aeeecf8413cf371cff9c7f423a3943d6548ae 100644 --- a/packages/uni-mp-toutiao/package.json +++ b/packages/uni-mp-toutiao/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-toutiao", - "version": "3.0.0-alpha-24020191018006", + "version": "3.0.0-alpha-24020191018012", "description": "uni-app mp-toutiao", "main": "dist/index.js", "repository": { diff --git a/packages/uni-mp-weixin/package.json b/packages/uni-mp-weixin/package.json index 4209a0f60ec01013d6cb35b822cdf8e04c0268db..843b950f15ccef508f4348f82130ff24b0aedfa9 100644 --- a/packages/uni-mp-weixin/package.json +++ b/packages/uni-mp-weixin/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-weixin", - "version": "3.0.0-alpha-24020191018006", + "version": "3.0.0-alpha-24020191018012", "description": "uni-app mp-weixin", "main": "dist/index.js", "repository": { diff --git a/packages/uni-stat/package.json b/packages/uni-stat/package.json index 6459194797b52c223db5632b41e9793b4c625775..15de354876095e6070bce25f0c619da1d73fc6fa 100644 --- a/packages/uni-stat/package.json +++ b/packages/uni-stat/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-stat", - "version": "3.0.0-alpha-24020191018006", + "version": "3.0.0-alpha-24020191018012", "description": "", "main": "dist/index.js", "repository": { diff --git a/packages/uni-template-compiler/package.json b/packages/uni-template-compiler/package.json index 9a5bdfef9890a886947d81de9f89f7667f1f3790..14f234bbe8fe427e9f3145380674d4196f026054 100644 --- a/packages/uni-template-compiler/package.json +++ b/packages/uni-template-compiler/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-template-compiler", - "version": "3.0.0-alpha-24020191018006", + "version": "3.0.0-alpha-24020191018012", "description": "uni-template-compiler", "main": "lib/index.js", "repository": { diff --git a/packages/vue-cli-plugin-hbuilderx/package.json b/packages/vue-cli-plugin-hbuilderx/package.json index a5ba8513922ad8c45ce7afd37ba7a934857afd18..10282a0026cf0ab7d4018c41f971481a6242b310 100644 --- a/packages/vue-cli-plugin-hbuilderx/package.json +++ b/packages/vue-cli-plugin-hbuilderx/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/vue-cli-plugin-hbuilderx", - "version": "3.0.0-alpha-24020191018006", + "version": "3.0.0-alpha-24020191018012", "description": "HBuilderX plugin for vue-cli 3", "main": "index.js", "repository": { diff --git a/packages/vue-cli-plugin-uni-optimize/package.json b/packages/vue-cli-plugin-uni-optimize/package.json index 86201ceaa1eb3b48a60101099ea949697a4451b6..f7de1a2ee1e32f5fa2c4a328661910afdd88939b 100644 --- a/packages/vue-cli-plugin-uni-optimize/package.json +++ b/packages/vue-cli-plugin-uni-optimize/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/vue-cli-plugin-uni-optimize", - "version": "3.0.0-alpha-24020191018006", + "version": "3.0.0-alpha-24020191018012", "description": "uni-app optimize plugin for vue-cli 3", "main": "index.js", "repository": { diff --git a/packages/vue-cli-plugin-uni/package.json b/packages/vue-cli-plugin-uni/package.json index 7d7ed1465e07f4ca8aca68e8f4da9ee2e28e4331..4d84df8c63793e199259cca8feca79b35d619866 100644 --- a/packages/vue-cli-plugin-uni/package.json +++ b/packages/vue-cli-plugin-uni/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/vue-cli-plugin-uni", - "version": "3.0.0-alpha-24020191018006", + "version": "3.0.0-alpha-24020191018012", "description": "uni-app plugin for vue-cli 3", "main": "index.js", "repository": { @@ -17,7 +17,7 @@ "author": "fxy060608", "license": "Apache-2.0", "dependencies": { - "@dcloudio/uni-stat": "^3.0.0-alpha-24020191018006", + "@dcloudio/uni-stat": "^3.0.0-alpha-24020191018012", "copy-webpack-plugin": "^4.6.0", "cross-env": "^5.2.0", "envinfo": "^6.0.1", diff --git a/packages/webpack-uni-mp-loader/package.json b/packages/webpack-uni-mp-loader/package.json index d02d6a3782c2843f3c3c4c8a8c666036f69de557..b7c3cd36b964e6bdeba77a3a553c0a38791b308c 100644 --- a/packages/webpack-uni-mp-loader/package.json +++ b/packages/webpack-uni-mp-loader/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/webpack-uni-mp-loader", - "version": "3.0.0-alpha-24020191018006", + "version": "3.0.0-alpha-24020191018012", "description": "webpack-uni-mp-loader", "main": "index.js", "repository": { diff --git a/packages/webpack-uni-pages-loader/package.json b/packages/webpack-uni-pages-loader/package.json index c38295ab8ee665067af29967499dcf00f1caf9b2..02c1eb7e162be35c85a8f98cae9a052b9736d089 100644 --- a/packages/webpack-uni-pages-loader/package.json +++ b/packages/webpack-uni-pages-loader/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/webpack-uni-pages-loader", - "version": "3.0.0-alpha-24020191018006", + "version": "3.0.0-alpha-24020191018012", "description": "uni-app pages.json loader", "main": "lib/index.js", "repository": { @@ -21,7 +21,7 @@ "strip-json-comments": "^2.0.1" }, "uni-app": { - "compilerVersion": "2.3.3" + "compilerVersion": "2.3.4" }, "gitHead": "10184426b19cb76e01c93fb25c982c72887557e8" } diff --git a/src/core/service/api/context/create-map-context.js b/src/core/service/api/context/create-map-context.js new file mode 100644 index 0000000000000000000000000000000000000000..bdfb94a48d5343584742c0a4f298bed1db5ed94b --- /dev/null +++ b/src/core/service/api/context/create-map-context.js @@ -0,0 +1,46 @@ +import { + invokeMethod, + getCurrentPageVm +} from '../../platform' + +function operateMapPlayer (mapId, pageVm, type, data) { + invokeMethod('operateMapPlayer', mapId, pageVm, type, data) +} + +class MapContext { + constructor (id, pageVm) { + this.id = id + this.pageVm = pageVm + } + + getCenterLocation (args) { + operateMapPlayer(this.id, this.pageVm, 'getCenterLocation', args) + } + + moveToLocation () { + operateMapPlayer(this.id, this.pageVm, 'moveToLocation') + } + + translateMarker (args) { + operateMapPlayer(this.id, this.pageVm, 'translateMarker', args) + } + + includePoints (args) { + operateMapPlayer(this.id, this.pageVm, 'includePoints', args) + } + + getRegion (args) { + operateMapPlayer(this.id, this.pageVm, 'getRegion', args) + } + + getScale (args) { + operateMapPlayer(this.id, this.pageVm, 'getScale', args) + } +} + +export function createMapContext (id, context) { + if (context) { + return new MapContext(id, context) + } + return new MapContext(id, getCurrentPageVm('createMapContext')) +} diff --git a/src/core/service/api/context/create-video-context.js b/src/core/service/api/context/create-video-context.js new file mode 100644 index 0000000000000000000000000000000000000000..84d60bf8694c110b203aac015e055ddb8634b779 --- /dev/null +++ b/src/core/service/api/context/create-video-context.js @@ -0,0 +1,62 @@ +import { + invokeMethod, + getCurrentPageVm +} from '../../platform' + +const RATES = [0.5, 0.8, 1.0, 1.25, 1.5] + +function operateVideoPlayer (videoId, pageVm, type, data) { + invokeMethod('operateVideoPlayer', videoId, pageVm, type, data) +} + +class VideoContext { + constructor (id, pageVm) { + this.id = id + this.pageVm = pageVm + } + + play () { + operateVideoPlayer(this.id, this.pageVm, 'play') + } + pause () { + operateVideoPlayer(this.id, this.pageVm, 'pause') + } + stop () { + operateVideoPlayer(this.id, this.pageVm, 'stop') + } + seek (position) { + operateVideoPlayer(this.id, this.pageVm, 'seek', { + position + }) + } + sendDanmu (args) { + operateVideoPlayer(this.id, this.pageVm, 'sendDanmu', args) + } + playbackRate (rate) { + if (!~RATES.indexOf(rate)) { + rate = 1.0 + } + operateVideoPlayer(this.id, this.pageVm, 'playbackRate', { + rate + }) + } + requestFullScreen () { + operateVideoPlayer(this.id, this.pageVm, 'requestFullScreen') + } + exitFullScreen () { + operateVideoPlayer(this.id, this.pageVm, 'exitFullScreen') + } + showStatusBar () { + operateVideoPlayer(this.id, this.pageVm, 'showStatusBar') + } + hideStatusBar () { + operateVideoPlayer(this.id, this.pageVm, 'hideStatusBar') + } +} + +export function createVideoContext (id, context) { + if (context) { + return new VideoContext(id, context) + } + return new VideoContext(id, getCurrentPageVm('createVideoContext')) +} diff --git a/src/platforms/h5/service/api/ui/create-intersection-observer.js b/src/core/service/api/ui/create-intersection-observer.js similarity index 68% rename from src/platforms/h5/service/api/ui/create-intersection-observer.js rename to src/core/service/api/ui/create-intersection-observer.js index c184e113b25dae856b681c55f232bf9caa4db5e8..c0336e5557b445a2657c10d3f492bc940fd7ecac 100644 --- a/src/platforms/h5/service/api/ui/create-intersection-observer.js +++ b/src/core/service/api/ui/create-intersection-observer.js @@ -1,64 +1,65 @@ -import Vue from 'vue' -import createCallbacks from 'uni-helpers/callbacks' - -const createIntersectionObserverCallbacks = createCallbacks('requestComponentObserver') - -const defaultOptions = { - thresholds: [0], - initialRatio: 0, - observeAll: false -} - -class MPIntersectionObserver { - constructor (pageId, options) { - this.pageId = pageId - this.options = Object.assign({}, defaultOptions, options) - } - _makeRootMargin (margins = {}) { - this.options.rootMargin = ['top', 'right', 'bottom', 'left'].map(name => `${Number(margins[name]) || 0}px`).join(' ') - } - relativeTo (selector, margins) { - this.options.relativeToSelector = selector - this._makeRootMargin(margins) - return this - } - relativeToViewport (margins) { - this.options.relativeToSelector = null - this._makeRootMargin(margins) - return this - } - observe (selector, callback) { - if (typeof callback !== 'function') { - return - } - this.options.selector = selector - - this.reqId = createIntersectionObserverCallbacks.push(callback) - - UniServiceJSBridge.publishHandler('requestComponentObserver', { - reqId: this.reqId, - options: this.options - }, this.pageId) - } - disconnect () { - UniServiceJSBridge.publishHandler('destroyComponentObserver', { - reqId: this.reqId - }, this.pageId) - } -} - -export function createIntersectionObserver (context, options) { - if (!(context instanceof Vue)) { - options = context - context = null - } - if (context) { - return new MPIntersectionObserver(context.$page.id, options) - } - const app = getApp() - if (app.$route && app.$route.params.__id__) { - return new MPIntersectionObserver(app.$route.params.__id__, options) - } else { - UniServiceJSBridge.emit('onError', 'createIntersectionObserver:fail') - } +import createCallbacks from 'uni-helpers/callbacks' + +import { + getCurrentPageVm +} from '../../platform' + +const createIntersectionObserverCallbacks = createCallbacks('requestComponentObserver') + +const defaultOptions = { + thresholds: [0], + initialRatio: 0, + observeAll: false +} + +class ServiceIntersectionObserver { + constructor (component, options) { + this.pageId = component.$page.id + this.component = component._$id || component // app-plus 平台传输_$id + this.options = Object.assign({}, defaultOptions, options) + } + _makeRootMargin (margins = {}) { + this.options.rootMargin = ['top', 'right', 'bottom', 'left'].map(name => `${Number(margins[name]) || 0}px`).join( + ' ') + } + relativeTo (selector, margins) { + this.options.relativeToSelector = selector + this._makeRootMargin(margins) + return this + } + relativeToViewport (margins) { + this.options.relativeToSelector = null + this._makeRootMargin(margins) + return this + } + observe (selector, callback) { + if (typeof callback !== 'function') { + return + } + this.options.selector = selector + + this.reqId = createIntersectionObserverCallbacks.push(callback) + + UniServiceJSBridge.publishHandler('requestComponentObserver', { + reqId: this.reqId, + component: this.component, + options: this.options + }, this.pageId) + } + disconnect () { + UniServiceJSBridge.publishHandler('destroyComponentObserver', { + reqId: this.reqId + }, this.pageId) + } +} + +export function createIntersectionObserver (context, options) { + if (!context._isVue) { + options = context + context = null + } + if (context) { + return new ServiceIntersectionObserver(context, options) + } + return new ServiceIntersectionObserver(getCurrentPageVm('createIntersectionObserver'), options) } diff --git a/src/platforms/h5/service/api/ui/create-selector-query.js b/src/core/service/api/ui/create-selector-query.js similarity index 66% rename from src/platforms/h5/service/api/ui/create-selector-query.js rename to src/core/service/api/ui/create-selector-query.js index 2860a2b765d49f1880ffd484a8c2a3a93a305b8a..917bb4f3e73232f3a6d5775e7f1ef65e805b1209 100644 --- a/src/platforms/h5/service/api/ui/create-selector-query.js +++ b/src/core/service/api/ui/create-selector-query.js @@ -2,9 +2,10 @@ import { isFn } from 'uni-shared' -import createCallbacks from 'uni-helpers/callbacks' - -const requestComponentInfoCallbacks = createCallbacks('requestComponentInfo') +import { + invokeMethod, + getCurrentPageVm +} from '../../platform' class NodesRef { constructor (selectorQuery, component, selector, single) { @@ -54,24 +55,15 @@ class NodesRef { } } -function requestComponentInfo (pageId, queue, callback) { - const reqId = requestComponentInfoCallbacks.push(callback) - - UniServiceJSBridge.publishHandler('requestComponentInfo', { - reqId, - reqs: queue - }, pageId) -} - class SelectorQuery { - constructor (pageId) { - this.pageId = pageId + constructor (page) { + this._page = page this._queue = [] this._queueCb = [] } exec (callback) { - requestComponentInfo(this.pageId, this._queue, res => { + invokeMethod('requestComponentInfo', this._page, this._queue, res => { const queueCbs = this._queueCb res.forEach((result, index) => { const queueCb = queueCbs[index] @@ -83,9 +75,9 @@ class SelectorQuery { }) } - ['in'] (component) { - // TODO 跨平台,非 h5 平台传递 component._$id - this._component = component + ['in'] (component) { + // app-plus 平台传递 id + this._component = component._$id || component return this } @@ -114,12 +106,7 @@ class SelectorQuery { export function createSelectorQuery (context) { if (context) { - return new SelectorQuery(context.$page.id) - } - const app = getApp() - if (app.$route && app.$route.params.__id__) { - return new SelectorQuery(app.$route.params.__id__) - } else { - UniServiceJSBridge.emit('onError', 'createSelectorQuery:fail') + return new SelectorQuery(context) } + return new SelectorQuery(getCurrentPageVm('createSelectorQuery')) } diff --git a/src/core/service/platform.js b/src/core/service/platform.js index d5b2d2e55b1a79fdb58e69d101b341721d2ae45b..556a59266dca9530c1a99dfdda38dd5d1d0a2e02 100644 --- a/src/core/service/platform.js +++ b/src/core/service/platform.js @@ -13,4 +13,14 @@ export function invokeMethod (name, ...args) { */ export function onMethod (name, callback) { return UniServiceJSBridge.on('api.' + name, callback) +} + +export function getCurrentPageVm (method) { + const pages = getCurrentPages() + const len = pages.length + if (!len) { + UniServiceJSBridge.emit('onError', `${method}:fail`) + } + const page = pages[len - 1] + return page.$vm } diff --git a/src/core/view/bridge/subscribe/api/request-component-info.js b/src/core/view/bridge/subscribe/api/request-component-info.js index 0f5a0b40e3b47e533828cb298e856ccacaf81b3c..c528c5283d72684833144ab7ddbb7ef3b735468f 100644 --- a/src/core/view/bridge/subscribe/api/request-component-info.js +++ b/src/core/view/bridge/subscribe/api/request-component-info.js @@ -4,6 +4,10 @@ import { import getWindowOffset from 'uni-platform/helpers/get-window-offset' +import { + findElm +} from './util' + function getRootInfo (fields) { const info = {} if (fields.id) { @@ -74,9 +78,7 @@ function getNodeInfo (el, fields) { } function getNodesInfo (pageVm, component, selector, single, fields) { - /* eslint-disable no-mixed-operators */ - // TODO 判断 component 是否是 _$id,如果是,从 pageVm 中递归查找该组件实例 - const $el = component && component.$el || pageVm.$el + const $el = findElm(component, pageVm) if (single) { const node = $el && ($el.matches(selector) ? $el : $el.querySelector(selector)) if (node) { @@ -106,13 +108,14 @@ export function requestComponentInfo ({ }, pageId) { const pages = getCurrentPages() // 跨平台时,View 层也应该实现该方法,举例 App 上,View 层的 getCurrentPages 返回长度为1的当前页面数组 - const pageVm = pages.find(page => page.$page.id === pageId) + const page = pages.find(page => page.$page.id === pageId) - if (!pageVm) { - // TODO 是否需要 defer + if (!page) { throw new Error(`Not Found:Page[${pageId}]`) } + const pageVm = page.$vm + const result = [] reqs.forEach(function ({ component, diff --git a/src/core/view/bridge/subscribe/api/request-component-observer.js b/src/core/view/bridge/subscribe/api/request-component-observer.js index 0d92c5df1c8df2e0ff72014b40bd4a84c341d373..dac80dc11b9f84505dd35bf19aec0f832ca42d28 100644 --- a/src/core/view/bridge/subscribe/api/request-component-observer.js +++ b/src/core/view/bridge/subscribe/api/request-component-observer.js @@ -1,76 +1,85 @@ -import 'intersection-observer' - -import { - normalizeDataset -} from 'uni-helpers/index' - -function getRect (rect) { - return { - bottom: rect.bottom, - height: rect.height, - left: rect.left, - right: rect.right, - top: rect.top, - width: rect.width - } -} - -const intersectionObservers = {} - -export function requestComponentObserver ({ - reqId, - options -}, pageId) { - const pages = getCurrentPages() - - const pageVm = pages.find(page => page.$page.id === pageId) - - if (!pageVm) { - throw new Error(`Not Found:Page[${pageId}]`) +import 'intersection-observer' + +import { + normalizeDataset +} from 'uni-helpers/index' + +import { + findElm +} from './util' + +function getRect (rect) { + return { + bottom: rect.bottom, + height: rect.height, + left: rect.left, + right: rect.right, + top: rect.top, + width: rect.width + } +} + +const intersectionObservers = {} + +export function requestComponentObserver ({ + reqId, + component, + options +}, pageId) { + const pages = getCurrentPages() + + const page = pages.find(page => page.$page.id === pageId) + + if (!page) { + throw new Error(`Not Found:Page[${pageId}]`) } - const $el = pageVm.$el - - const root = options.relativeToSelector ? $el.querySelector(options.relativeToSelector) : null - - let intersectionObserver = intersectionObservers[reqId] = new IntersectionObserver((entries, observer) => { - entries.forEach(entrie => { - UniViewJSBridge.publishHandler('onRequestComponentObserver', { - reqId, - res: { - intersectionRatio: entrie.intersectionRatio, - intersectionRect: getRect(entrie.intersectionRect), - boundingClientRect: getRect(entrie.boundingClientRect), - relativeRect: getRect(entrie.rootBounds), - time: Date.now(), - dataset: normalizeDataset(entrie.target.dataset || {}), - id: entrie.target.id - } - }, pageVm.$page.id) - }) - }, { - root, - rootMargin: options.rootMargin, - threshold: options.thresholds - }) - if (options.observeAll) { - intersectionObserver.USE_MUTATION_OBSERVER = true - Array.prototype.map.call($el.querySelectorAll(options.selector), el => { - intersectionObserver.observe(el) - }) - } else { - intersectionObserver.USE_MUTATION_OBSERVER = false - intersectionObserver.observe($el.querySelector(options.selector)) - } -} - -export function destroyComponentObserver ({ reqId }) { - const intersectionObserver = intersectionObservers[reqId] - if (intersectionObserver) { - intersectionObserver.disconnect() - UniViewJSBridge.publishHandler('onRequestComponentObserver', { - reqId, - reqEnd: true - }) - } + const pageVm = page.$vm + + const $el = findElm(component, pageVm) + + const root = options.relativeToSelector ? $el.querySelector(options.relativeToSelector) : null + + let intersectionObserver = intersectionObservers[reqId] = new IntersectionObserver((entries, observer) => { + entries.forEach(entrie => { + UniViewJSBridge.publishHandler('onRequestComponentObserver', { + reqId, + res: { + intersectionRatio: entrie.intersectionRatio, + intersectionRect: getRect(entrie.intersectionRect), + boundingClientRect: getRect(entrie.boundingClientRect), + relativeRect: getRect(entrie.rootBounds), + time: Date.now(), + dataset: normalizeDataset(entrie.target.dataset || {}), + id: entrie.target.id + } + }, pageVm.$page.id) + }) + }, { + root, + rootMargin: options.rootMargin, + threshold: options.thresholds + }) + if (options.observeAll) { + intersectionObserver.USE_MUTATION_OBSERVER = true + Array.prototype.map.call($el.querySelectorAll(options.selector), el => { + intersectionObserver.observe(el) + }) + } else { + intersectionObserver.USE_MUTATION_OBSERVER = false + intersectionObserver.observe($el.querySelector(options.selector)) + } +} + +export function destroyComponentObserver ({ + reqId +}) { + const intersectionObserver = intersectionObservers[reqId] + if (intersectionObserver) { + intersectionObserver.disconnect() + UniViewJSBridge.publishHandler('onRequestComponentObserver', { + reqId, + reqEnd: true + }) + } } diff --git a/src/core/view/bridge/subscribe/api/util.js b/src/core/view/bridge/subscribe/api/util.js new file mode 100644 index 0000000000000000000000000000000000000000..ea303b47621436ed20f1fc4610292179b3629b47 --- /dev/null +++ b/src/core/view/bridge/subscribe/api/util.js @@ -0,0 +1,29 @@ +function findVmById (id, vm) { + if (id === vm._$id) { + return vm + } + const childVms = vm.$children + const len = childVms.length + for (let i = 0; i < len; i++) { + const childVm = findVmById(id, childVms[i]) + if (childVm) { + return childVm + } + } +} + +export function findElm (component, pageVm) { + if (!component) { + return pageVm.$el + } + if (__PLATFORM__ === 'app-plus') { + if (typeof component === 'string') { + const componentVm = findVmById(component, pageVm) + if (!componentVm) { + throw new Error(`Not Found:Page[${pageVm.$page.id}][${component}]`) + } + return componentVm.$el + } + } + return component.$el +} diff --git a/src/platforms/app-plus-nvue/service/api/context/map.js b/src/platforms/app-plus-nvue/service/api/context/map.js deleted file mode 100644 index 7e13d1e60fddde7c191a0550fe09505dcaa3e5dd..0000000000000000000000000000000000000000 --- a/src/platforms/app-plus-nvue/service/api/context/map.js +++ /dev/null @@ -1,47 +0,0 @@ -import { - findElmById, - invokeVmMethod, - invokeVmMethodWithoutArgs -} from '../util' - -class MapContext { - constructor (id, ctx) { - this.id = id - this.ctx = ctx - } - - getCenterLocation (cbs) { - return invokeVmMethodWithoutArgs(this.ctx, 'getCenterLocation', cbs) - } - - moveToLocation () { - return invokeVmMethodWithoutArgs(this.ctx, 'moveToLocation') - } - - translateMarker (args) { - return invokeVmMethod(this.ctx, 'translateMarker', args, ['animationEnd']) - } - - includePoints (args) { - return invokeVmMethod(this.ctx, 'includePoints', args) - } - - getRegion (cbs) { - return invokeVmMethodWithoutArgs(this.ctx, 'getRegion', cbs) - } - - getScale (cbs) { - return invokeVmMethodWithoutArgs(this.ctx, 'getScale', cbs) - } -} - -export function createMapContext (id, vm) { - if (!vm) { - return console.warn('uni.createMapContext 必须传入第二个参数,即当前 vm 对象(this)') - } - const elm = findElmById(id, vm) - if (!elm) { - return console.warn('Can not find `' + id + '`') - } - return new MapContext(id, elm) -} diff --git a/src/platforms/app-plus-nvue/service/api/context/operate-map-player.js b/src/platforms/app-plus-nvue/service/api/context/operate-map-player.js new file mode 100644 index 0000000000000000000000000000000000000000..6d5a6919baf984c548ec74aec271385159afa817 --- /dev/null +++ b/src/platforms/app-plus-nvue/service/api/context/operate-map-player.js @@ -0,0 +1,30 @@ +import { + findElmById, + invokeVmMethod, + invokeVmMethodWithoutArgs +} from '../util' + +const METHODS = { + getCenterLocation (ctx, cbs) { + return invokeVmMethodWithoutArgs(ctx, 'getCenterLocation', cbs) + }, + moveToLocation (ctx) { + return invokeVmMethodWithoutArgs(ctx, 'moveToLocation') + }, + translateMarker (ctx, args) { + return invokeVmMethod(ctx, 'translateMarker', args, ['animationEnd']) + }, + includePoints (ctx, args) { + return invokeVmMethod(ctx, 'includePoints', args) + }, + getRegion (ctx, cbs) { + return invokeVmMethodWithoutArgs(ctx, 'getRegion', cbs) + }, + getScale (ctx, cbs) { + return invokeVmMethodWithoutArgs(ctx, 'getScale', cbs) + } +} + +export function operateMapPlayer (mapId, pageVm, type, data) { + return METHODS[type](findElmById(mapId, pageVm), data) +} diff --git a/src/platforms/app-plus-nvue/service/api/context/operate-video-player.js b/src/platforms/app-plus-nvue/service/api/context/operate-video-player.js new file mode 100644 index 0000000000000000000000000000000000000000..ad5eb7d6ae3863a4cde7ff434f672c5e087ff274 --- /dev/null +++ b/src/platforms/app-plus-nvue/service/api/context/operate-video-player.js @@ -0,0 +1,42 @@ +import { + findElmById, + invokeVmMethod, + invokeVmMethodWithoutArgs +} from '../util' + +const METHODS = { + play (ctx) { + return invokeVmMethodWithoutArgs(ctx, 'play') + }, + pause (ctx) { + return invokeVmMethodWithoutArgs(ctx, 'pause') + }, + seek (ctx, args) { + return invokeVmMethod(ctx, 'seek', args) + }, + stop (ctx) { + return invokeVmMethodWithoutArgs(ctx, 'stop') + }, + sendDanmu (ctx, args) { + return invokeVmMethod(ctx, 'sendDanmu', args) + }, + playbackRate (ctx, args) { + return invokeVmMethod(ctx, 'playbackRate', args) + }, + requestFullScreen (ctx, args) { + return invokeVmMethod(ctx, 'requestFullScreen', args) + }, + exitFullScreen (ctx) { + return invokeVmMethodWithoutArgs(ctx, 'exitFullScreen') + }, + showStatusBar (ctx) { + return invokeVmMethodWithoutArgs(ctx, 'showStatusBar') + }, + hideStatusBar (ctx) { + return invokeVmMethodWithoutArgs(ctx, 'hideStatusBar') + } +} + +export function operateVideoPlayer (videoId, pageVm, type, data) { + return METHODS[type](findElmById(videoId, pageVm), data) +} diff --git a/src/platforms/app-plus-nvue/service/api/context/video.js b/src/platforms/app-plus-nvue/service/api/context/video.js deleted file mode 100644 index 4e704bb2cd4ee634e9263283c9e98dba933abd45..0000000000000000000000000000000000000000 --- a/src/platforms/app-plus-nvue/service/api/context/video.js +++ /dev/null @@ -1,63 +0,0 @@ -import { - findElmById, - invokeVmMethod, - invokeVmMethodWithoutArgs -} from '../util' - -class VideoContext { - constructor (id, ctx) { - this.id = id - this.ctx = ctx - } - - play () { - return invokeVmMethodWithoutArgs(this.ctx, 'play') - } - - pause () { - return invokeVmMethodWithoutArgs(this.ctx, 'pause') - } - - seek (args) { - return invokeVmMethod(this.ctx, 'seek', args) - } - - stop () { - return invokeVmMethodWithoutArgs(this.ctx, 'stop') - } - - sendDanmu (args) { - return invokeVmMethod(this.ctx, 'sendDanmu', args) - } - - playbackRate (args) { - return invokeVmMethod(this.ctx, 'playbackRate', args) - } - - requestFullScreen (args) { - return invokeVmMethod(this.ctx, 'requestFullScreen', args) - } - - exitFullScreen () { - return invokeVmMethodWithoutArgs(this.ctx, 'exitFullScreen') - } - - showStatusBar () { - return invokeVmMethodWithoutArgs(this.ctx, 'showStatusBar') - } - - hideStatusBar () { - return invokeVmMethodWithoutArgs(this.ctx, 'hideStatusBar') - } -} - -export function createVideoContext (id, vm) { - if (!vm) { - return console.warn('uni.createVideoContext 必须传入第二个参数,即当前 vm 对象(this)') - } - const elm = findElmById(id, vm) - if (!elm) { - return console.warn('Can not find `' + id + '`') - } - return new VideoContext(id, elm) -} diff --git a/src/platforms/app-plus-nvue/service/api/index.js b/src/platforms/app-plus-nvue/service/api/index.js index c0d041b39f3bc6d3343bd2d5d285df6745c7fa86..ef5dbcc5d1e3799882e02de774f0474b3a2bf691 100644 --- a/src/platforms/app-plus-nvue/service/api/index.js +++ b/src/platforms/app-plus-nvue/service/api/index.js @@ -1,5 +1,5 @@ export * from './context/live-pusher' -export * from './context/map' -export * from './context/video' +export * from './context/operate-map-player' +export * from './context/operate-video-player' -export * from './ui/create-selector-query' +export * from './ui/request-component-info' diff --git a/src/platforms/app-plus-nvue/service/api/ui/create-selector-query.js b/src/platforms/app-plus-nvue/service/api/ui/create-selector-query.js deleted file mode 100644 index 4f444460828ddde4bbe8095675a9eb42b62da41c..0000000000000000000000000000000000000000 --- a/src/platforms/app-plus-nvue/service/api/ui/create-selector-query.js +++ /dev/null @@ -1,185 +0,0 @@ -import { - isFn -} from 'uni-shared' - -class NodesRef { - constructor (selectorQuery, component, selector, single) { - this._selectorQuery = selectorQuery - this._component = component - this._selector = selector - this._single = single - } - - boundingClientRect (callback) { - this._selectorQuery._push( - this._selector, - this._component, - this._single, { - id: true, - dataset: true, - rect: true, - size: true - }, - callback) - return this._selectorQuery - } - - fields (fields, callback) { - this._selectorQuery._push( - this._selector, - this._component, - this._single, - fields, - callback - ) - return this._selectorQuery - } - - scrollOffset (callback) { - this._selectorQuery._push( - this._selector, - this._component, - this._single, { - id: true, - dataset: true, - scrollOffset: true - }, - callback - ) - return this._selectorQuery - } -} - -function processDataset (attr) { - const dataset = {} - - Object.keys(attr || {}).forEach(key => { - if (key.indexOf('data') === 0) { - let str = key.replace('data', '') - str = str.charAt(0).toLowerCase() + str.slice(1) - dataset[str] = attr[key] - } - }) - - return dataset -} - -function findAttrs (ids, elm, result) { - let nodes = elm.children - if (!Array.isArray(nodes)) { - return false - } - for (let i = 0; i < nodes.length; i++) { - let node = nodes[i] - if (node.attr) { - let index = ids.indexOf(node.attr.id) - if (index >= 0) { - result[index] = { - id: ids[index], - ref: node.ref, - dataset: processDataset(node.attr) - } - if (ids.length === 1) { - break - } - } - } - if (node.children) { - findAttrs(ids, node, result) - } - } -} - -function getSelectors (queue) { - let ids = [] - for (let i = 0; i < queue.length; i++) { - const selector = queue[i].selector - if (selector.indexOf('#') === 0) { - ids.push(selector.substring(1)) - } - } - return ids -} - -function getComponentRectAll (dom, attrs, index, result, callback) { - const attr = attrs[index] - dom.getComponentRect(attr.ref, option => { - option.size.id = attr.id - option.size.dataset = attr.dataset - result.push(option.size) - index += 1 - if (index < attrs.length) { - getComponentRectAll(dom, attrs, index, result, callback) - } else { - callback(result) - } - }) -} - -function requestComponentInfo (dom, component, queue, callback) { - const selectors = getSelectors(queue) - let outAttrs = new Array(selectors.length) - findAttrs(selectors, component.$el, outAttrs) - getComponentRectAll(dom, outAttrs, 0, [], (result) => { - callback(result) - }) -} - -class SelectorQuery { - constructor (pageId) { - this.pageId = pageId - this._queue = [] - this._queueCb = [] - } - - exec (callback) { - if (!this._component) { - return - } - this._dom = this._component._$weex.requireModule('dom') - requestComponentInfo(this._dom, this._component, this._queue, res => { - const queueCbs = this._queueCb - res.forEach((result, index) => { - const queueCb = queueCbs[index] - if (isFn(queueCb)) { - queueCb.call(this, result) - } - }) - isFn(callback) && callback.call(this, res) - }) - } - - ['in'] (component) { - if (!component) { - return console.warn('uni.createSelectorQuery 必须传入当前 vm 对象(this)') - } - this._component = component - return this - } - - select (selector) { - return new NodesRef(this, this._component, selector, true) - } - - selectAll (selector) { - return new NodesRef(this, this._component, selector, false) - } - - selectViewport () { - return new NodesRef(this, 0, '', true) - } - - _push (selector, component, single, fields, callback) { - this._queue.push({ - component, - selector, - single, - fields - }) - this._queueCb.push(callback) - } -} - -export function createSelectorQuery () { - return new SelectorQuery() -} diff --git a/src/platforms/app-plus-nvue/service/api/ui/request-component-info.js b/src/platforms/app-plus-nvue/service/api/ui/request-component-info.js new file mode 100644 index 0000000000000000000000000000000000000000..c2665d84dff3a55e6a47cc93a07a78447763ba41 --- /dev/null +++ b/src/platforms/app-plus-nvue/service/api/ui/request-component-info.js @@ -0,0 +1,76 @@ +function parseDataset (attr) { + const dataset = {} + + Object.keys(attr || {}).forEach(key => { + if (key.indexOf('data') === 0) { + let str = key.replace('data', '') + str = str.charAt(0).toLowerCase() + str.slice(1) + dataset[str] = attr[key] + } + }) + + return dataset +} + +function findAttrs (ids, elm, result) { + let nodes = elm.children + if (!Array.isArray(nodes)) { + return false + } + for (let i = 0; i < nodes.length; i++) { + let node = nodes[i] + if (node.attr) { + let index = ids.indexOf(node.attr.id) + if (index >= 0) { + result[index] = { + id: ids[index], + ref: node.ref, + dataset: parseDataset(node.attr) + } + if (ids.length === 1) { + break + } + } + } + if (node.children) { + findAttrs(ids, node, result) + } + } +} + +function getSelectors (queue) { + let ids = [] + for (let i = 0; i < queue.length; i++) { + const selector = queue[i].selector + if (selector.indexOf('#') === 0) { + ids.push(selector.substring(1)) + } + } + return ids +} + +function getComponentRectAll (dom, attrs, index, result, callback) { + const attr = attrs[index] + dom.getComponentRect(attr.ref, option => { + option.size.id = attr.id + option.size.dataset = attr.dataset + result.push(option.size) + index += 1 + if (index < attrs.length) { + getComponentRectAll(dom, attrs, index, result, callback) + } else { + callback(result) + } + }) +} + +export function requestComponentInfo (pageVm, queue, callback) { + // TODO 重构,逻辑不对,queue 里的每一项可能有单独的作用域查找(即 component) + const dom = pageVm._$weex.requireModule('dom') + const selectors = getSelectors(queue) + let outAttrs = new Array(selectors.length) + findAttrs(selectors, pageVm.$el, outAttrs) + getComponentRectAll(dom, outAttrs, 0, [], (result) => { + callback(result) + }) +} diff --git a/src/platforms/app-plus-nvue/service/api/util.js b/src/platforms/app-plus-nvue/service/api/util.js index d91873a7fac18cfccc9b4c371829c911c3477f44..8e018f080a8068cda5dd16f26e45de132dd60a1c 100644 --- a/src/platforms/app-plus-nvue/service/api/util.js +++ b/src/platforms/app-plus-nvue/service/api/util.js @@ -46,7 +46,11 @@ export function invokeVmMethod (vm, method, args, extras) { } export function findElmById (id, vm) { - return findRefByElm(id, vm.$el) + const elm = findRefByElm(id, vm.$el) + if (!elm) { + return console.error('Can not find `' + id + '`') + } + return elm } function findRefByElm (id, elm) { @@ -108,4 +112,4 @@ function normalizeCallback (method, callbacks) { isFn(complete) && complete(ret) } } -} +} diff --git a/src/platforms/app-plus/service/api/context/operate-map-player.js b/src/platforms/app-plus/service/api/context/operate-map-player.js new file mode 100644 index 0000000000000000000000000000000000000000..0634c3d5a5fa00064cc79bf6df4ea577c3eb208b --- /dev/null +++ b/src/platforms/app-plus/service/api/context/operate-map-player.js @@ -0,0 +1,12 @@ +import { + operateMapPlayer as operateVueMapPlayer +} from 'uni-platforms/h5/service/api/context/operate-map-player' +import { + operateMapPlayer as operateNVueMapPlayer +} from 'uni-platforms/app-plus-nvue/service/api/context/operate-map-player' + +export function operateMapPlayer (mapId, pageVm, type, data) { + pageVm.$page.meta.isNVue + ? operateNVueMapPlayer(mapId, pageVm, type, data) + : operateVueMapPlayer(mapId, pageVm, type, data) +} diff --git a/src/platforms/app-plus/service/api/context/operate-video-player.js b/src/platforms/app-plus/service/api/context/operate-video-player.js new file mode 100644 index 0000000000000000000000000000000000000000..74999e30eed9cd28a9ba584900a9cf57362d611c --- /dev/null +++ b/src/platforms/app-plus/service/api/context/operate-video-player.js @@ -0,0 +1,12 @@ +import { + operateVideoPlayer as operateVueVideoPlayer +} from 'uni-platforms/h5/service/api/context/operate-video-player' +import { + operateVideoPlayer as operateNVueVideoPlayer +} from 'uni-platforms/app-plus-nvue/service/api/context/operate-video-player' + +export function operateVideoPlayer (videoId, pageVm, type, data) { + pageVm.$page.meta.isNVue + ? operateNVueVideoPlayer(videoId, pageVm, type, data) + : operateVueVideoPlayer(videoId, pageVm, type, data) +} diff --git a/src/platforms/app-plus/service/api/index.js b/src/platforms/app-plus/service/api/index.js index 9b1693b2ea028406da36a4fdef1c48e0bcc5fd5a..b167849663ec7562e5ddb5dd8b2f05758982ea65 100644 --- a/src/platforms/app-plus/service/api/index.js +++ b/src/platforms/app-plus/service/api/index.js @@ -1,5 +1,7 @@ export * from './context/audio' -export * from './context/background-audio' +export * from './context/background-audio' +export * from './context/operate-map-player' +export * from './context/operate-video-player' export * from './device/accelerometer' export * from './device/add-phone-contact' @@ -61,3 +63,5 @@ export { from './ui/pull-down-refresh' export * from './ui/tab-bar' + +export * from './ui/request-component-info' diff --git a/src/platforms/app-plus/service/api/ui/request-component-info.js b/src/platforms/app-plus/service/api/ui/request-component-info.js new file mode 100644 index 0000000000000000000000000000000000000000..7a62d669ad2a2f20e88aacfb3a49a20e5f7712bf --- /dev/null +++ b/src/platforms/app-plus/service/api/ui/request-component-info.js @@ -0,0 +1,13 @@ +import { + requestComponentInfo as requestVueComponentInfo +} from 'uni-platforms/h5/service/api/ui/request-component-info' + +import { + requestComponentInfo as requestNVueComponentInfo +} from 'uni-platforms/app-plus-nvue/service/api/ui/request-component-info' + +export function requestComponentInfo (pageVm, queue, callback) { + pageVm.$page.meta.isNVue + ? requestNVueComponentInfo(pageVm, queue, callback) + : requestVueComponentInfo(pageVm, queue, callback) +} diff --git a/src/platforms/app-plus/service/framework/plugins/index.js b/src/platforms/app-plus/service/framework/plugins/index.js index b7e6abb70590104927e952553b57189f79f1af2a..eae90ba100defb62bc84e40a83e4944bd087fc9d 100644 --- a/src/platforms/app-plus/service/framework/plugins/index.js +++ b/src/platforms/app-plus/service/framework/plugins/index.js @@ -19,6 +19,12 @@ export default { initData(Vue) initLifecycle(Vue) + Object.defineProperty(Vue.prototype, '$page', { + get () { + return this.$root.$scope.$page + } + }) + const oldMount = Vue.prototype.$mount Vue.prototype.$mount = function mount (el, hydrating) { if (this.mpType === 'app') { diff --git a/src/platforms/app-plus/service/publish-handler.js b/src/platforms/app-plus/service/publish-handler.js index 715d46c0227785643ae2216bca02b73c61a22aec..6104cdd387da88dc7a3147cab2ecd20189017735 100644 --- a/src/platforms/app-plus/service/publish-handler.js +++ b/src/platforms/app-plus/service/publish-handler.js @@ -7,9 +7,9 @@ export function publishHandler (eventType, args, pageIds) { pageIds = [pageIds] } const evalJSCode = - `typeof UniViewJSBridge !== 'undefined' && UniViewJSBridge.subscribeHandler("${eventType}",${args})` + `typeof UniViewJSBridge !== 'undefined' && UniViewJSBridge.subscribeHandler("${eventType}",${args},__PAGE_ID__)` pageIds.forEach(id => { const webview = plus.webview.getWebviewById(String(id)) - webview && webview.evalJS(evalJSCode) + webview && webview.evalJS(evalJSCode.replace('__PAGE_ID__', id)) }) } diff --git a/src/platforms/app-plus/view/framework/plugins/data.js b/src/platforms/app-plus/view/framework/plugins/data.js index de3b319fd9aa4a02d6bf3c7b7b8aca9edd49552f..fc51c00c0a0b63284a446a51f3178eae0a46b152 100644 --- a/src/platforms/app-plus/view/framework/plugins/data.js +++ b/src/platforms/app-plus/view/framework/plugins/data.js @@ -50,7 +50,8 @@ const handleData = { }, [PAGE_CREATED]: function onPageCreated (data) { const [pageId, pagePath] = data - new PageVueComponent({ + const page = getCurrentPages()[0] + page.$vm = new PageVueComponent({ mpType: 'page', pageId, pagePath diff --git a/src/platforms/h5/service/api/context/map.js b/src/platforms/h5/service/api/context/map.js deleted file mode 100644 index f1bdffae5d948e4ad5012addad45314e4ba4f418..0000000000000000000000000000000000000000 --- a/src/platforms/h5/service/api/context/map.js +++ /dev/null @@ -1,91 +0,0 @@ -function operateMapPlayer (mapId, pageId, type, data) { - UniServiceJSBridge.publishHandler(pageId + '-map-' + mapId, { - mapId, - type, - data - }, pageId) -} - -class MapContext { - constructor (id, pageId) { - this.id = id - this.pageId = pageId - } - - getCenterLocation ({ - success, - fail, - complete - }) { - operateMapPlayer(this.id, this.pageId, 'getCenterLocation', { - success, - fail, - complete - }) - } - moveToLocation () { - operateMapPlayer(this.id, this.pageId, 'moveToLocation') - } - translateMarker ({ - markerId, - destination, - autoRotate, - rotate, - duration, - animationEnd, - fail - }) { - operateMapPlayer(this.id, this.pageId, 'translateMarker', { - markerId, - destination, - autoRotate, - rotate, - duration, - animationEnd, - fail - }) - } - includePoints ({ - points, - padding - }) { - operateMapPlayer(this.id, this.pageId, 'includePoints', { - points, - padding - }) - } - getRegion ({ - success, - fail, - complete - }) { - operateMapPlayer(this.id, this.pageId, 'getRegion', { - success, - fail, - complete - }) - } - getScale ({ - success, - fail, - complete - }) { - operateMapPlayer(this.id, this.pageId, 'getScale', { - success, - fail, - complete - }) - } -} - -export function createMapContext (id, context) { - if (context) { - return new MapContext(id, context.$page.id) - } - const app = getApp() - if (app.$route && app.$route.params.__id__) { - return new MapContext(id, app.$route.params.__id__) - } else { - UniServiceJSBridge.emit('onError', 'createMapContext:fail') - } -} diff --git a/src/platforms/h5/service/api/context/operate-map-player.js b/src/platforms/h5/service/api/context/operate-map-player.js new file mode 100644 index 0000000000000000000000000000000000000000..abf1d8dd7bed61f7efcad43e19534e969b4cc5fd --- /dev/null +++ b/src/platforms/h5/service/api/context/operate-map-player.js @@ -0,0 +1,8 @@ +export function operateMapPlayer (mapId, pageVm, type, data) { + const pageId = pageVm.$page.id + UniServiceJSBridge.publishHandler(pageId + '-map-' + mapId, { + mapId, + type, + data + }, pageId) +} diff --git a/src/platforms/h5/service/api/context/operate-video-player.js b/src/platforms/h5/service/api/context/operate-video-player.js new file mode 100644 index 0000000000000000000000000000000000000000..2f154abaf2a21c5fc64e4c75e1dc6115b79e438f --- /dev/null +++ b/src/platforms/h5/service/api/context/operate-video-player.js @@ -0,0 +1,8 @@ +export function operateVideoPlayer (videoId, pageVm, type, data) { + const pageId = pageVm.$page.id + UniServiceJSBridge.publishHandler(pageId + '-video-' + videoId, { + videoId, + type, + data + }, pageId) +} diff --git a/src/platforms/h5/service/api/context/video.js b/src/platforms/h5/service/api/context/video.js deleted file mode 100644 index 3b4c101909a054092ac88842ce281860f8123ee7..0000000000000000000000000000000000000000 --- a/src/platforms/h5/service/api/context/video.js +++ /dev/null @@ -1,72 +0,0 @@ -function operateVideoPlayer (videoId, pageId, type, data) { - UniServiceJSBridge.publishHandler(pageId + '-video-' + videoId, { - videoId, - type, - data - }, pageId) -} - -const RATES = [0.5, 0.8, 1.0, 1.25, 1.5] - -class VideoContext { - constructor (id, pageId) { - this.id = id - this.pageId = pageId - } - - play () { - operateVideoPlayer(this.id, this.pageId, 'play') - } - pause () { - operateVideoPlayer(this.id, this.pageId, 'pause') - } - stop () { - operateVideoPlayer(this.id, this.pageId, 'stop') - } - seek (position) { - operateVideoPlayer(this.id, this.pageId, 'seek', { - position - }) - } - sendDanmu ({ - text, - color - } = {}) { - operateVideoPlayer(this.id, this.pageId, 'sendDanmu', { - text, - color - }) - } - playbackRate (rate) { - if (!~RATES.indexOf(rate)) { - rate = 1.0 - } - operateVideoPlayer(this.id, this.pageId, 'playbackRate', { - rate - }) - } - requestFullScreen () { - operateVideoPlayer(this.id, this.pageId, 'requestFullScreen') - } - exitFullScreen () { - operateVideoPlayer(this.id, this.pageId, 'exitFullScreen') - } - showStatusBar () { - operateVideoPlayer(this.id, this.pageId, 'showStatusBar') - } - hideStatusBar () { - operateVideoPlayer(this.id, this.pageId, 'hideStatusBar') - } -} - -export function createVideoContext (id, context) { - if (context) { - return new VideoContext(id, context.$page.id) - } - const app = getApp() - if (app.$route && app.$route.params.__id__) { - return new VideoContext(id, app.$route.params.__id__) - } else { - UniServiceJSBridge.emit('onError', 'createVideoContext:fail') - } -} diff --git a/src/platforms/h5/service/api/ui/request-component-info.js b/src/platforms/h5/service/api/ui/request-component-info.js new file mode 100644 index 0000000000000000000000000000000000000000..f7ca8e30bac89963ff13ddf2cedfc9a849a7765a --- /dev/null +++ b/src/platforms/h5/service/api/ui/request-component-info.js @@ -0,0 +1,10 @@ +import createCallbacks from 'uni-helpers/callbacks' + +const requestComponentInfoCallbacks = createCallbacks('requestComponentInfo') + +export function requestComponentInfo (pageVm, queue, callback) { + UniServiceJSBridge.publishHandler('requestComponentInfo', { + reqId: requestComponentInfoCallbacks.push(callback), + reqs: queue + }, pageVm.$page.id) +} diff --git a/src/platforms/mp-baidu/runtime/wrapper/component-parser.js b/src/platforms/mp-baidu/runtime/wrapper/component-parser.js index 611753682f1b12ac5614d2b0ddec9a2a5a652f67..db7a180b2008fee69222d910dad4499e8832b49a 100644 --- a/src/platforms/mp-baidu/runtime/wrapper/component-parser.js +++ b/src/platforms/mp-baidu/runtime/wrapper/component-parser.js @@ -1,14 +1,16 @@ -import { - hasOwn -} from 'uni-shared' - import { - isPage, + hasOwn +} from 'uni-shared' + +import { + isPage, initRelation } from './util' import parseBaseComponent from '../../../mp-weixin/runtime/wrapper/component-base-parser' +const newLifecycle = swan.canIUse('lifecycle-2-0') + export default function parseComponent (vueOptions) { const componentOptions = parseBaseComponent(vueOptions, { isPage, @@ -23,13 +25,26 @@ export default function parseComponent (vueOptions) { // 百度 当组件作为页面时 pageinstancce 不是原来组件的 instance this.pageinstance.$vm = this.$vm - if (hasOwn(this.pageinstance, '_$args')) { + if (hasOwn(this.pageinstance, '_$args')) { this.$vm.$mp.query = this.pageinstance._$args - this.$vm.__call_hook('onLoad', this.pageinstance._$args) + this.$vm.__call_hook('onLoad', this.pageinstance._$args) delete this.pageinstance._$args } - // TODO 目前版本 百度 Component 作为页面时,methods 中的 onShow 不触发 - this.$vm.__call_hook('onShow') + // TODO 3.105.17以下基础库内百度 Component 作为页面时,methods 中的 onShow 不触发 + !newLifecycle && this.$vm.__call_hook('onShow') + } + } + + if (newLifecycle) { + delete componentOptions.lifetimes.ready + componentOptions.methods.onReady = function () { + if (this.$vm) { + this.$vm._isMounted = true + this.$vm.__call_hook('mounted') + this.$vm.__call_hook('onReady') + } else { + // this.is && console.warn(this.is + ' is not attached') + } } }