1 line
123 KiB
JavaScript
1 line
123 KiB
JavaScript
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=78)}([function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,s,u,c){var l,p="function"==typeof e?e.options:e;if(u){p.components||(p.components={});var d=Object.prototype.hasOwnProperty;for(var f in u)d.call(u,f)&&!d.call(p.components,f)&&(p.components[f]=u[f])}if(c&&((c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(p.mixins||(p.mixins=[])).push(c)),t&&(p.render=t,p.staticRenderFns=n,p._compiled=!0),r&&(p.functional=!0),i&&(p._scopeId="data-v-"+i),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},p._ssrRegister=l):o&&(l=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),l)if(p.functional){p._injectStyles=l;var h=p.render;p.render=function(e,t){return l.call(t),h(e,t)}}else{var g=p.beforeCreate;p.beforeCreate=g?[].concat(g,l):[l]}return{exports:e,options:p}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){var t=Object.prototype.toString.call(e);return t.substring(8,t.length-1)}function o(){return"string"==typeof __channelId__&&__channelId__}function i(e,t){switch(r(t)){case"Function":return"function() { [native code] }";default:return t}}Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];console[e].apply(console,n)},t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=t.shift();if(o())return t.push(t.pop().replace("at ","uni-app:///")),console[a].apply(console,t);var s=t.map((function(e){var t=Object.prototype.toString.call(e).toLowerCase();if("[object object]"===t||"[object array]"===t)try{e="---BEGIN:JSON---"+JSON.stringify(e,i)+"---END:JSON---"}catch(n){e=t}else if(null===e)e="---NULL---";else if(void 0===e)e="---UNDEFINED---";else{var n=r(e).toUpperCase();e="NUMBER"===n||"BOOLEAN"===n?"---BEGIN:"+n+"---"+e+"---END:"+n+"---":String(e)}return e})),u="";if(s.length>1){var c=s.pop();u=s.join("---COMMA---"),0===c.indexOf(" at ")?u+=c:u+="---COMMA---"+c}else u=s[0];console[a](u)}},function(e,t){e.exports={"u-line-1":{lines:1,textOverflow:"ellipsis",overflow:"hidden",flex:1},"u-line-2":{lines:2,textOverflow:"ellipsis",overflow:"hidden",flex:1},"u-line-3":{lines:3,textOverflow:"ellipsis",overflow:"hidden",flex:1},"u-line-4":{lines:4,textOverflow:"ellipsis",overflow:"hidden",flex:1},"u-line-5":{lines:5,textOverflow:"ellipsis",overflow:"hidden",flex:1},"u-border":{borderWidth:"0.5",borderColor:"#dadbde",borderStyle:"solid"},"u-border-top":{borderTopWidth:"0.5",borderColor:"#dadbde",borderTopStyle:"solid"},"u-border-left":{borderLeftWidth:"0.5",borderColor:"#dadbde",borderLeftStyle:"solid"},"u-border-right":{borderRightWidth:"0.5",borderColor:"#dadbde",borderRightStyle:"solid"},"u-border-bottom":{borderBottomWidth:"0.5",borderColor:"#dadbde",borderBottomStyle:"solid"},"u-border-top-bottom":{borderTopWidth:"0.5",borderBottomWidth:"0.5",borderColor:"#dadbde",borderTopStyle:"solid",borderBottomStyle:"solid"},"u-reset-button":{paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0},"u-hover-class":{opacity:.7},"u-primary-light":{color:"#ecf5ff"},"u-warning-light":{color:"#fdf6ec"},"u-success-light":{color:"#f5fff0"},"u-error-light":{color:"#fef0f0"},"u-info-light":{color:"#f4f4f5"},"u-primary-light-bg":{backgroundColor:"#ecf5ff"},"u-warning-light-bg":{backgroundColor:"#fdf6ec"},"u-success-light-bg":{backgroundColor:"#f5fff0"},"u-error-light-bg":{backgroundColor:"#fef0f0"},"u-info-light-bg":{backgroundColor:"#f4f4f5"},"u-primary-dark":{color:"#398ade"},"u-warning-dark":{color:"#f1a532"},"u-success-dark":{color:"#53c21d"},"u-error-dark":{color:"#e45656"},"u-info-dark":{color:"#767a82"},"u-primary-dark-bg":{backgroundColor:"#398ade"},"u-warning-dark-bg":{backgroundColor:"#f1a532"},"u-success-dark-bg":{backgroundColor:"#53c21d"},"u-error-dark-bg":{backgroundColor:"#e45656"},"u-info-dark-bg":{backgroundColor:"#767a82"},"u-primary-disabled":{color:"#9acafc"},"u-warning-disabled":{color:"#f9d39b"},"u-success-disabled":{color:"#a9e08f"},"u-error-disabled":{color:"#f7b2b2"},"u-info-disabled":{color:"#c4c6c9"},"u-primary":{color:"#3c9cff"},"u-warning":{color:"#f9ae3d"},"u-success":{color:"#5ac725"},"u-error":{color:"#f56c6c"},"u-info":{color:"#909399"},"u-primary-bg":{backgroundColor:"#3c9cff"},"u-warning-bg":{backgroundColor:"#f9ae3d"},"u-success-bg":{backgroundColor:"#5ac725"},"u-error-bg":{backgroundColor:"#f56c6c"},"u-info-bg":{backgroundColor:"#909399"},"u-main-color":{color:"#303133"},"u-content-color":{color:"#606266"},"u-tips-color":{color:"#909193"},"u-light-color":{color:"#c0c4cc"},"@VERSION":2}},function(e,t,n){e.exports=n(19)},function(e,t){var n,r,o={};n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=o.util={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=r.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")},stringToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e.charCodeAt(n)<<24-r%32;return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var t,r=[],o=0;o<e.length;o++)switch(o%3){case 0:r.push(n.charAt(e[o]>>>2)),t=(3&e[o])<<4;break;case 1:r.push(n.charAt(t|e[o]>>>4)),t=(15&e[o])<<2;break;case 2:r.push(n.charAt(t|e[o]>>>6)),r.push(n.charAt(63&e[o])),t=-1}for(null!=t&&-1!=t&&r.push(n.charAt(t));r.length%4!=0;)r.push("=");return r.join("")},base64ToBytes:function(e){if("function"==typeof atob)return r.stringToBytes(atob(e));e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],o=0;o<e.length;o++)switch(o%4){case 1:t.push(n.indexOf(e.charAt(o-1))<<2|n.indexOf(e.charAt(o))>>>4);break;case 2:t.push((15&n.indexOf(e.charAt(o-1)))<<4|n.indexOf(e.charAt(o))>>>2);break;case 3:t.push((3&n.indexOf(e.charAt(o-1)))<<6|n.indexOf(e.charAt(o)))}return t}},o.mode={},e.exports=o},,,,,function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(3)),o=u(n(20)),i=u(n(16)),a=u(n(18)),s=n(34);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function l(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var d="";setTimeout((function(){(0,s.getCurrentNo)((function(t){e("log","\u7248\u672c\u53f7",t," at config/requestConfig.js:19"),d=t.versionCode}))}),200);var f=new o.default({baseUrl:a.default.baseUrl,fileUrl:a.default.baseUrl,defaultUploadUrl:"api/common/v1/upload_image",defaultFileName:"file",header:{"Content-Type":"application/x-www-form-urlencoded"}});f.getQnToken=function(e){f.get("api/common/v1/qn_upload").then((function(t){e({visitPrefix:t.visitPrefix,token:t.token,folderPath:t.folderPath})}))},f.getAliToken=function(e){f.get("api/open/v1/ali_oss_upload").then((function(t){e({accessKeyId:t.accessKeyId,accessKeySecret:t.accessKeySecret,visitPrefix:t.visitPrefix,folderPath:t.folderPath,timeout:18e5})}))},f.requestStart=function(e){if(e.load&&i.default.commit("setLoadingShow",!0),"FILE"==e.method){var t,n=e.maxSize||"",r=l(e.files);try{for(r.s();!(t=r.n()).done;){var o=t.value;if("image"==o.fileType){if(n&&o.size>n)return setTimeout((function(){uni.showToast({title:"\u56fe\u7247\u8fc7\u5927\uff0c\u8bf7\u91cd\u65b0\u4e0a\u4f20",icon:"none"})}),500),!1}else if("video"==o.fileType&&o.duration<3)return setTimeout((function(){uni.showToast({title:"\u89c6\u9891\u957f\u5ea6\u4e0d\u8db33\u79d2\uff0c\u8bf7\u91cd\u65b0\u4e0a\u4f20",icon:"none"})}),500),!1}}catch(e){r.e(e)}finally{r.f()}}d&&(e.header.version_code=d);var a=i.default.state.userInfo;return a.token||(a=uni.getStorageSync("userInfo")),a.token&&(e.header.token=a.token),e},f.requestEnd=function(e){e.load&&i.default.commit("setLoadingShow",!1)};var h=0;f.dataFactory=function(){var e,t=(e=r.default.mark((function e(t){var n,o;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.response.statusCode||200!=t.response.statusCode){e.next=29;break}if("string"==typeof(n=t.response.data)&&(n=JSON.parse(n)),!n.success&&0!=n.code){e.next=7;break}return e.abrupt("return",Promise.resolve(n));case 7:if("401"!=n.code){e.next=12;break}uni.showToast({title:"\u767b\u5f55\u5931\u6548\uff0c\u8bf7\u91cd\u65b0\u767b\u5f55",icon:"none"}),setTimeout((function(){uni.navigateTo({url:"/pages/user/login"})}),1e3),e.next=27;break;case 12:if("1000"!=n.code&&"1001"!=n.code&&1100!=n.code&&402!=n.code){e.next=20;break}return i.default.commit("emptyUserInfo"),o="\u6b64\u65f6\u6b64\u523b\u9700\u8981\u60a8\u767b\u5f55\u5594~","1000"==n.code&&(o="\u6b64\u65f6\u6b64\u523b\u9700\u8981\u60a8\u767b\u5f55\u5594"),h<=0&&(h++,uni.showModal({title:"\u6e29\u99a8\u63d0\u793a",content:o,confirmText:"\u53bb\u767b\u5f55",cancelText:"\u518d\u901b\u4f1a",success:function(e){h--,e.confirm&&uni.navigateTo({url:"/pages/user/login"})}})),e.abrupt("return",Promise.reject({statusCode:0,errMsg:"\u3010request\u3011"+(n.info||n.msg),data:t.data}));case 20:if("1004"!=n.code){e.next=25;break}return h<=0&&(h++,uni.showModal({title:"\u63d0\u793a",content:"\u60a8\u8fd8\u672a\u7ed1\u5b9a\u624b\u673a\u53f7\uff0c\u8bf7\u5148\u7ed1\u5b9a~",confirmText:"\u53bb\u7ed1\u5b9a",cancelText:"\u518d\u901b\u4f1a",success:function(e){h--,e.confirm&&uni.navigateTo({url:"/pages/user/bindPhone"})}})),e.abrupt("return",Promise.reject({statusCode:0,errMsg:"\u3010request\u3011"+(n.info||n.msg),data:t.data}));case 25:return t.isPrompt&&uni.showToast({title:n.info||n.msg,icon:"none",duration:3e3}),e.abrupt("return",Promise.reject({statusCode:0,errMsg:"\u3010request\u3011"+(n.info||n.msg),data:t.data}));case 27:e.next=30;break;case 29:return e.abrupt("return",Promise.reject({statusCode:t.response.statusCode,errMsg:"\u3010request\u3011\u6570\u636e\u5de5\u5382\u9a8c\u8bc1\u4e0d\u901a\u8fc7",data:t.data}));case 30:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){c(i,r,o,a,s,"next",e)}function s(e){c(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),f.requestError=function(t){if(0===t.statusCode)throw t;e("log",t," at config/requestConfig.js:325")};var g=f;t.default=g}).call(this,n(1).default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jsonpRequest=t.dispatchRequest=t.mergeConfig=void 0;t.mergeConfig=function(e,t){var n=/^(http|https):\/\//.test(t.url),r=Object.assign({timeout:e.timeout},e.config,t);return"FILE"==t.method?r.url=n?t.url:e.fileUrl+t.url:r.url=n?t.url:e.baseUrl+t.url,t.header?r.header=Object.assign({},e.header,t.header):r.header=Object.assign({},e.header),r};t.dispatchRequest=function(e){return new Promise((function(t,n){var r=!0,o={url:e.url,header:e.header,success:function(e){r=!1,t(e)},fail:function(e){r=!1,"request:fail abort"==e.errMsg?(n({errMsg:"\u8bf7\u6c42\u8d85\u65f6\uff0c\u8bf7\u91cd\u65b0\u5c1d\u8bd5",statusCode:0}),uni.navigateTo({url:"/pages/user/login"})):n(e)}};e.method&&(o.method=e.method),e.data&&(o.data=e.data),e.dataType&&(o.dataType=e.dataType);var i=uni.request(o);setTimeout((function(){r&&i.abort()}),e.timeout)}))};t.jsonpRequest=function(e){return new Promise((function(t,n){var r="";Object.keys(e.data).forEach((function(t){r+=t+"="+e.data[t]+"&"})),""!==r&&(r=r.substr(0,r.lastIndexOf("&"))),e.url=e.url+"?"+r;Math.ceil(1e6*Math.random())}))}},function(e,t,n){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(n(12).default,Vue.prototype.__$appStyle__)},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t.default=o.a},function(e,t){if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){var n=uni.requireGlobal();ArrayBuffer=n.ArrayBuffer,Int8Array=n.Int8Array,Uint8Array=n.Uint8Array,Uint8ClampedArray=n.Uint8ClampedArray,Int16Array=n.Int16Array,Uint16Array=n.Uint16Array,Int32Array=n.Int32Array,Uint32Array=n.Uint32Array,Float32Array=n.Float32Array,Float64Array=n.Float64Array,BigInt64Array=n.BigInt64Array,BigUint64Array=n.BigUint64Array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.install=y,t.mapState=t.mapMutations=t.mapGetters=t.mapActions=t.createNamespacedHelpers=t.Store=t.default=void 0;var r=("undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function i(e){return null!==e&&"object"==typeof e}var a=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},s={namespaced:{configurable:!0}};s.namespaced.get=function(){return!!this._rawModule.namespaced},a.prototype.addChild=function(e,t){this._children[e]=t},a.prototype.removeChild=function(e){delete this._children[e]},a.prototype.getChild=function(e){return this._children[e]},a.prototype.hasChild=function(e){return e in this._children},a.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},a.prototype.forEachChild=function(e){o(this._children,e)},a.prototype.forEachGetter=function(e){this._rawModule.getters&&o(this._rawModule.getters,e)},a.prototype.forEachAction=function(e){this._rawModule.actions&&o(this._rawModule.actions,e)},a.prototype.forEachMutation=function(e){this._rawModule.mutations&&o(this._rawModule.mutations,e)},Object.defineProperties(a.prototype,s);var u=function(e){this.register([],e,!1)};u.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},u.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")}),"")},u.prototype.update=function(e){!function e(t,n,r){0;if(n.update(r),r.modules)for(var o in r.modules){if(!n.getChild(o))return void 0;e(t.concat(o),n.getChild(o),r.modules[o])}}([],this.root,e)},u.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new a(t,n);0===e.length?this.root=i:this.get(e.slice(0,-1)).addChild(e[e.length-1],i);t.modules&&o(t.modules,(function(t,o){r.register(e.concat(o),t,n)}))},u.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];t.getChild(n).runtime&&t.removeChild(n)},u.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return t.hasChild(n)};var c;var l=function(e){var t=this;void 0===e&&(e={}),!c&&"undefined"!=typeof window&&window.Vue&&y(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var o=e.strict;void 0===o&&(o=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new u(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new c,this._makeLocalGettersCache=Object.create(null);var i=this,a=this.dispatch,s=this.commit;this.dispatch=function(e,t){return a.call(i,e,t)},this.commit=function(e,t,n){return s.call(i,e,t,n)},this.strict=o;var l=this._modules.root.state;g(this,l,[],this._modules.root),h(this,l),n.forEach((function(e){return e(t)})),(void 0!==e.devtools?e.devtools:c.config.devtools)&&function(e){r&&(e._devtoolHook=r,r.emit("vuex:init",e),r.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){r.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){r.emit("vuex:action",e,t)}),{prepend:!0}))}(this)};t.Store=l;var p={state:{configurable:!0}};function d(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function f(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;g(e,n,[],e._modules.root,!0),h(e,n,t)}function h(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,a={};o(i,(function(t,n){a[n]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var s=c.config.silent;c.config.silent=!0,e._vm=new c({data:{$$state:t},computed:a}),c.config.silent=s,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),c.nextTick((function(){return r.$destroy()})))}function g(e,t,n,r,o){var i=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!i&&!o){var s=m(t,n.slice(0,-1)),u=n[n.length-1];e._withCommit((function(){c.set(s,u,r.state)}))}var l=r.context=function(e,t,n){var r=""===t,o={dispatch:r?e.dispatch:function(n,r,o){var i=v(n,r,o),a=i.payload,s=i.options,u=i.type;return s&&s.root||(u=t+u),e.dispatch(u,a)},commit:r?e.commit:function(n,r,o){var i=v(n,r,o),a=i.payload,s=i.options,u=i.type;s&&s.root||(u=t+u),e.commit(u,a,s)}};return Object.defineProperties(o,{getters:{get:r?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(o){if(o.slice(0,r)===t){var i=o.slice(r);Object.defineProperty(n,i,{get:function(){return e.getters[o]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return m(e.state,n)}}}),o}(e,a,n);r.forEachMutation((function(t,n){!function(e,t,n,r){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){n.call(e,r.state,t)}))}(e,a+n,t,l)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,o=t.handler||t;!function(e,t,n,r){(e._actions[t]||(e._actions[t]=[])).push((function(t){var o,i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return(o=i)&&"function"==typeof o.then||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}(e,r,o,l)})),r.forEachGetter((function(t,n){!function(e,t,n,r){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}}(e,a+n,t,l)})),r.forEachChild((function(r,i){g(e,t,n.concat(i),r,o)}))}function m(e,t){return t.reduce((function(e,t){return e[t]}),e)}function v(e,t,n){return i(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function y(e){c&&e===c||function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:n});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[n].concat(e.init):n,t.call(this,e)}}function n(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(c=e)}p.state.get=function(){return this._vm._data.$$state},p.state.set=function(e){0},l.prototype.commit=function(e,t,n){var r=this,o=v(e,t,n),i=o.type,a=o.payload,s=(o.options,{type:i,payload:a}),u=this._mutations[i];u&&(this._withCommit((function(){u.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},l.prototype.dispatch=function(e,t){var n=this,r=v(e,t),o=r.type,i=r.payload,a={type:o,payload:i},s=this._actions[o];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(e){0}var u=s.length>1?Promise.all(s.map((function(e){return e(i)}))):s[0](i);return new Promise((function(e,t){u.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(e){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(e){0}t(e)}))}))}},l.prototype.subscribe=function(e,t){return d(e,this._subscribers,t)},l.prototype.subscribeAction=function(e,t){return d("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},l.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},l.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},l.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),g(this,this.state,e,this._modules.get(e),n.preserveState),h(this,this.state)},l.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=m(t.state,e.slice(0,-1));c.delete(n,e[e.length-1])})),f(this)},l.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},l.prototype.hotUpdate=function(e){this._modules.update(e),f(this,!0)},l.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(l.prototype,p);var b=j((function(e,t){var n={};return k(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=C(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"==typeof o?o.call(this,t,n):t[o]},n[r].vuex=!0})),n}));t.mapState=b;var x=j((function(e,t){var n={};return k(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.commit;if(e){var i=C(this.$store,"mapMutations",e);if(!i)return;r=i.context.commit}return"function"==typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}})),n}));t.mapMutations=x;var _=j((function(e,t){var n={};return k(t).forEach((function(t){var r=t.key,o=t.val;o=e+o,n[r]=function(){if(!e||C(this.$store,"mapGetters",e))return this.$store.getters[o]},n[r].vuex=!0})),n}));t.mapGetters=_;var w=j((function(e,t){var n={};return k(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var i=C(this.$store,"mapActions",e);if(!i)return;r=i.context.dispatch}return"function"==typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}})),n}));t.mapActions=w;var S=function(e){return{mapState:b.bind(null,e),mapGetters:_.bind(null,e),mapMutations:x.bind(null,e),mapActions:w.bind(null,e)}};function k(e){return function(e){return Array.isArray(e)||i(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function j(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function C(e,t,n){return e._modulesNamespaceMap[n]}t.createNamespacedHelpers=S;var T={Store:l,install:y,version:"3.4.0",mapState:b,mapMutations:x,mapGetters:_,mapActions:w,createNamespacedHelpers:S};t.default=T},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(9))&&r.__esModule?r:{default:r};var i=uni.getSystemInfoSync().platform,a={mainPagePath:["pages/home/home","pages/my/my","pages/demo/common","pages/template/common","pages/apiDemo/common","pages/template/addTemplate"],homePath:"/pages/peanut/home",getServerNo:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r={version:e.versionCode,versionName:e.versionName,setupPage:t};r.type="android"==i?1101:1102,o.default.get("api/common/v1/app_version",r,{isPrompt:t}).then((function(e){e&&e.downloadUrl?(t&&(e.updateType="solicit"),e.updateType||(e.forceUpdate?e.updateType="forcibly":e.updateType="solicit"),n&&n(e)):t&&uni.showToast({title:"\u6682\u65e0\u65b0\u7248\u672c",icon:"none"})}))},appUpdateColor:"f00",appUpdateIcon:""};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(17)),o=i(n(14));function i(e){return e&&e.__esModule?e:{default:e}}r.default.use(o.default);var a=n(29),s={state:{},mutations:{},actions:{}};a.keys().forEach((function(e){Object.assign(s.state,a(e).state),Object.assign(s.mutations,a(e).mutations),Object.assign(s.actions,a(e).actions)}));var u=new o.default.Store(s);t.default=u},function(e,t){e.exports=Vue},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={publicAppId:"",baseUrl:"ws://twin-ui.com:6001/",socketUrl:"",platformName:"uniApp-\u6848\u4f8b",logoUrl:"https://qn.kemean.cn/upload/201906/19/3f3b4751f3ed4a97be804450c3ec4c79",share:{title:"uniApp-\u6848\u4f8b",desc:"uniApp-\u6848\u4f8b",link:"https://www.kemean.com/sameCity/18031201/index.html",imgUrl:"http://qn.kemean.cn/upload/201901/28/23bedfc34597482292ecd6dc107f6342"}},o=Object.assign({phoneRegular:/^1\d{10}$/,mailRegular:/^\w+@\w+(\.[a-zA-Z]{2,3}){1,2}$/,passwordRegular:/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$/},r);t.default=o},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new S(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var l={};function p(){}function d(){}function f(){}var h={};h[o]=function(){return this};var g=Object.getPrototypeOf,m=g&&g(g(k([])));m&&m!==t&&n.call(m,o)&&(h=m);var v=f.prototype=p.prototype=Object.create(h);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,s){var u=c(e[o],e,i);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==typeof p&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(p).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function x(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function k(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:j}}function j(){return{value:void 0,done:!0}}return d.prototype=v.constructor=f,f.constructor=d,d.displayName=s(f,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),b.prototype[i]=function(){return this},e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),v[o]=function(){return this},v.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=k,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;w(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(21))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(3)),o=a(n(22)),i=n(10);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){l(i,r,o,a,s,"next",e)}function s(e){l(i,r,o,a,s,"throw",e)}a(void 0)}))}}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=n(23),y=v.chooseImage,b=v.chooseVideo,x=v.qiniuUpload,_=v.aliUpload,w=v.urlUpload,S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(C,e);var t,n,o,a,s,c,l,g,m,v,S,k,j=h(C);function C(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,C),j.call(this,e)}return t=C,(n=[{key:"qnImgUpload",value:(k=p(r.default.mark((function e(){var t,n,o=arguments;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},e.prev=1,e.next=4,y(t);case 4:n=e.sent,t.onSelectComplete&&t.onSelectComplete(n),e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(1),this.requestError&&this.requestError(e.t0),e.abrupt("return",Promise.reject(e.t0));case 12:if(!n){e.next=14;break}return e.abrupt("return",this.qnFileUpload(u(u({},t),{},{files:n})));case 14:case"end":return e.stop()}}),e,this,[[1,8]])}))),function(){return k.apply(this,arguments)})},{key:"qnVideoUpload",value:(S=p(r.default.mark((function e(){var t,n,o=arguments;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},e.prev=1,e.next=4,b(t);case 4:n=e.sent,t.onSelectComplete&&t.onSelectComplete(n),e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(1),this.requestError&&this.requestError(e.t0),e.abrupt("return",Promise.reject(e.t0));case 12:if(!n){e.next=14;break}return e.abrupt("return",this.qnFileUpload(u(u({},t),{},{files:n})));case 14:case"end":return e.stop()}}),e,this,[[1,8]])}))),function(){return S.apply(this,arguments)})},{key:"qnFileUpload",value:(v=p(r.default.mark((function e(){var t,n,o,i,a=arguments;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=a.length>0&&void 0!==a[0]?a[0]:{},e.prev=1,n=u(u(u({},this.config),t),{},{header:{},method:"FILE"}),!this.requestStart){e.next=11;break}if("object"!=typeof(o=this.requestStart(n))){e.next=10;break}["load","files"].forEach((function(e){n[e]=o[e]})),e.next=11;break;case 10:throw{errMsg:"\u3010request\u3011\u8bf7\u6c42\u5f00\u59cb\u62e6\u622a\u5668\u672a\u901a\u8fc7",statusCode:0,data:n.data,method:n.method,header:n.header,url:n.url};case 11:return e.next=13,x(n,this.getQnToken);case 13:return i=e.sent,e.abrupt("return",Promise.resolve(i));case 17:return e.prev=17,e.t0=e.catch(1),this.requestError&&this.requestError(e.t0),e.abrupt("return",Promise.reject(e.t0));case 21:return e.prev=21,this.requestEnd&&this.requestEnd(n),e.finish(21);case 24:case"end":return e.stop()}}),e,this,[[1,17,21,24]])}))),function(){return v.apply(this,arguments)})},{key:"aliImgUpload",value:(m=p(r.default.mark((function e(){var t,n,o=arguments;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},e.prev=1,e.next=4,y(t);case 4:n=e.sent,t.onSelectComplete&&t.onSelectComplete(n),e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(1),this.requestError&&this.requestError(e.t0),e.abrupt("return",Promise.reject(e.t0));case 12:if(!n){e.next=14;break}return e.abrupt("return",this.aliFileUpload(u(u({},t),{},{files:n})));case 14:case"end":return e.stop()}}),e,this,[[1,8]])}))),function(){return m.apply(this,arguments)})},{key:"aliVideoUpload",value:(g=p(r.default.mark((function e(){var t,n,o=arguments;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},e.prev=1,e.next=4,b(t);case 4:n=e.sent,t.onSelectComplete&&t.onSelectComplete(n),e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(1),this.requestError&&this.requestError(e.t0),e.abrupt("return",Promise.reject(e.t0));case 12:if(!n){e.next=14;break}return e.abrupt("return",this.aliFileUpload(u(u({},t),{},{files:n})));case 14:case"end":return e.stop()}}),e,this,[[1,8]])}))),function(){return g.apply(this,arguments)})},{key:"aliFileUpload",value:(l=p(r.default.mark((function e(){var t,n,o,i,a=arguments;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=a.length>0&&void 0!==a[0]?a[0]:{},e.prev=1,n=u(u(u({},this.config),t),{},{header:{},method:"FILE"}),!this.requestStart){e.next=11;break}if("object"!=typeof(o=this.requestStart(n))){e.next=10;break}["load","files"].forEach((function(e){n[e]=o[e]})),e.next=11;break;case 10:throw{errMsg:"\u3010request\u3011\u8bf7\u6c42\u5f00\u59cb\u62e6\u622a\u5668\u672a\u901a\u8fc7",statusCode:0,data:n.data,method:n.method,header:n.header,url:n.url};case 11:return e.next=13,_(n,this.getAliToken);case 13:return i=e.sent,e.abrupt("return",Promise.resolve(i));case 17:return e.prev=17,e.t0=e.catch(1),this.requestError&&this.requestError(e.t0),e.abrupt("return",Promise.reject(e.t0));case 21:return e.prev=21,this.requestEnd&&this.requestEnd(n),e.finish(21);case 24:case"end":return e.stop()}}),e,this,[[1,17,21,24]])}))),function(){return l.apply(this,arguments)})},{key:"urlImgUpload",value:(c=p(r.default.mark((function e(){var t,n=arguments;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={},n[0]&&("string"==typeof n[0]?t.url=n[0]:"object"==typeof n[0]&&(t=Object.assign(t,n[0]))),n[1]&&"object"==typeof n[1]&&(t=Object.assign(t,n[1])),e.prev=3,e.next=6,y(t);case 6:t.files=e.sent,t.onSelectComplete&&t.onSelectComplete(t.files),e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(3),this.requestError&&this.requestError(e.t0),e.abrupt("return",Promise.reject(e.t0));case 14:if(!t.files){e.next=16;break}return e.abrupt("return",this.urlFileUpload(t));case 16:case"end":return e.stop()}}),e,this,[[3,10]])}))),function(){return c.apply(this,arguments)})},{key:"urlVideoUpload",value:(s=p(r.default.mark((function e(){var t,n=arguments;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={},n[0]&&("string"==typeof n[0]?t.url=n[0]:"object"==typeof n[0]&&(t=Object.assign(t,n[0]))),n[1]&&"object"==typeof n[1]&&(t=Object.assign(t,n[1])),e.prev=3,e.next=6,b(t);case 6:t.files=e.sent,t.onSelectComplete&&t.onSelectComplete(t.files),e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(3),this.requestError&&this.requestError(e.t0),e.abrupt("return",Promise.reject(e.t0));case 14:if(!t.files){e.next=16;break}return e.abrupt("return",this.urlFileUpload(t));case 16:case"end":return e.stop()}}),e,this,[[3,10]])}))),function(){return s.apply(this,arguments)})},{key:"urlFileUpload",value:(a=p(r.default.mark((function e(){var t,n,o,a,s=arguments;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t={method:"FILE"},s[0]&&("string"==typeof s[0]?t.url=s[0]:"object"==typeof s[0]&&(t=Object.assign(t,s[0]))),s[1]&&"object"==typeof s[1]&&(t=Object.assign(t,s[1])),!t.url&&this.defaultUploadUrl&&(t.url=this.defaultUploadUrl),!t.name&&this.defaultFileName&&(t.name=this.defaultFileName),n=!1,e.prev=6,t.url){e.next=9;break}throw{errMsg:"\u3010request\u3011\u6587\u4ef6\u4e0a\u4f20\u7f3a\u5931\u6570\u636eurl",statusCode:0,data:t.data,method:t.method,header:t.header,url:t.url};case 9:if(t=(0,i.mergeConfig)(this,t),n=!0,!this.requestStart){e.next=19;break}if("object"!=typeof(o=this.requestStart(t))){e.next=18;break}["data","header","isPrompt","load","isFactory","files"].forEach((function(e){t[e]=o[e]})),e.next=19;break;case 18:throw{errMsg:"\u3010request\u3011\u8bf7\u6c42\u5f00\u59cb\u62e6\u622a\u5668\u672a\u901a\u8fc7",statusCode:0,data:t.data,method:t.method,header:t.header,url:t.url};case 19:return e.next=21,w(t,this.dataFactory);case 21:return a=e.sent,e.abrupt("return",Promise.resolve(a));case 25:return e.prev=25,e.t0=e.catch(6),this.requestError&&this.requestError(e.t0),e.abrupt("return",Promise.reject(e.t0));case 29:return e.prev=29,n&&this.requestEnd&&this.requestEnd(t),e.finish(29);case 32:case"end":return e.stop()}}),e,this,[[6,25,29,32]])}))),function(){return a.apply(this,arguments)})}])&&d(t.prototype,n),o&&d(t,o),C}(o.default);t.default=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(3))&&r.__esModule?r:{default:r},i=n(10);function a(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var p=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.baseUrl=t.baseUrl||"",this.fileUrl=t.fileUrl||"",this.timeout=t.timeout||6e3,this.defaultUploadUrl=t.defaultUploadUrl||"",this.defaultFileName=t.defaultFileName||"",this.header=t.header||{},this.config=t.config||{isPrompt:!0,load:!0,isFactory:!0,resend:0}}var t,n,r,s,c;return t=e,(n=[{key:"post",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request(u({method:"POST",data:t,url:e},n))}},{key:"get",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request(u({method:"GET",data:t,url:e},n))}},{key:"put",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request(u({method:"PUT",data:t,url:e},n))}},{key:"delete",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request(u({method:"DELETE",data:t,url:e},n))}},{key:"jsonp",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request(u({method:"JSONP",data:t,url:e},n))}},{key:"request",value:(s=o.default.mark((function e(t){var n,r,a,s,c;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=!1,e.prev=1,t.url){e.next=4;break}throw{errMsg:"\u3010request\u3011\u7f3a\u5931\u6570\u636eurl",statusCode:0};case 4:if(n=(0,i.mergeConfig)(this,t),r=!0,!this.requestStart){e.next=14;break}if("object"!=typeof(a=this.requestStart(n))){e.next=13;break}["data","header","isPrompt","load","isFactory"].forEach((function(e){n[e]=a[e]})),e.next=14;break;case 13:throw{errMsg:"\u3010request\u3011\u8bf7\u6c42\u5f00\u59cb\u62e6\u622a\u5668\u672a\u901a\u8fc7",statusCode:0,data:n.data,method:n.method,header:n.header,url:n.url};case 14:if(s={},"JSONP"!=n.method){e.next=21;break}return e.next=18,(0,i.jsonpRequest)(n);case 18:s=e.sent,e.next=24;break;case 21:return e.next=23,(0,i.dispatchRequest)(n);case 23:s=e.sent;case 24:if(!n.isFactory||!this.dataFactory){e.next=31;break}return e.next=27,this.dataFactory(u(u({},n),{},{response:s}));case 27:return c=e.sent,e.abrupt("return",Promise.resolve(c));case 31:return e.abrupt("return",Promise.resolve(s));case 32:e.next=38;break;case 34:return e.prev=34,e.t0=e.catch(1),this.requestError&&this.requestError(e.t0),e.abrupt("return",Promise.reject(e.t0));case 38:return e.prev=38,r&&this.requestEnd&&this.requestEnd(n),e.finish(38);case 41:case"end":return e.stop()}}),e,this,[[1,34,38,41]])})),c=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=s.apply(e,t);function i(e){a(o,n,r,i,u,"next",e)}function u(e){a(o,n,r,i,u,"throw",e)}i(void 0)}))},function(e){return c.apply(this,arguments)})}])&&l(t.prototype,n),r&&l(t,r),e}();t.default=p},function(e,t,n){"use strict";(function(e){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.urlUpload=t.aliUpload=t.qiniuUpload=t.chooseVideo=t.chooseImage=t.randomChar=void 0;var a=n(24),s=n(25),u=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="0123456789qwertyuioplkjhgfdsazxcvbnm",r="",o=new Date,i=0;i<e;i++)r+=n.charAt(Math.ceil(1e8*Math.random())%n.length);return"file/"+t+o.getTime()+r};t.randomChar=u;t.chooseImage=function(e){return new Promise((function(t,n){uni.chooseImage({count:e.count||9,sizeType:e.sizeType||["original","compressed"],sourceType:e.sourceType||["album","camera"],success:function(e){for(var n=0;n<e.tempFiles.length;n++)e.tempFiles[n].fileType="image";t(e.tempFiles)},fail:function(e){n({errMsg:e.errMsg,errCode:e.errCode,statusCode:0})}})}))};t.chooseVideo=function(e){return new Promise((function(t,n){uni.chooseVideo({sourceType:e.sourceType||["album","camera"],compressed:e.compressed||!1,maxDuration:e.maxDuration||60,camera:e.camera||"back",success:function(e){var n=[{path:e.tempFilePath,fileType:"video"}];n[0].duration=e.duration,n[0].size=e.size,n[0].height=e.height,n[0].width=e.width,t(n)},fail:function(e){n({errMsg:e.errMsg,errCode:e.errCode,statusCode:0})}})}))};t.qiniuUpload=function(t,n){return new Promise((function(r,i){if(Array.isArray(t.files)){var s=t.files.length,c=new Array;n?n((function(n){var l=n.visitPrefix.length;"/"==n.visitPrefix.charAt(l-1)&&(n.visitPrefix=n.visitPrefix.substring(0,l-1)),function l(p){var d=t.files[p],f=u(10,n.folderPath),h=o({fileIndex:p,files:t.files},d);if(d.name){h.name=d.name;var g=d.name.split(".");f+="."+g[g.length-1]}a.upload(d.path||d,(function(e){h.url=e.imageURL,t.onEachUpdate&&t.onEachUpdate(o({url:e.imageURL},h)),c.push(e.imageURL),s-1>p?l(p+1):r(c)}),(function(e){i(e)}),{region:n.region||"SCN",domain:n.visitPrefix,key:f,uptoken:n.token,uptokenURL:"UpTokenURL.com/uptoken"},(function(n){e("log",t," at uni_modules/zhouWei-request/js_sdk/request/upload/utils.js:131"),t.onProgressUpdate&&t.onProgressUpdate(Object.assign({},h,n))}))}(0)})):i({errMsg:"\u8bf7\u6dfb\u52a0\u4e03\u725b\u4e91\u56de\u8c03\u65b9\u6cd5\uff1agetQnToken",statusCode:0})}else i({errMsg:"files \u5fc5\u987b\u662f\u6570\u7ec4\u7c7b\u578b",statusCode:0})}))};t.aliUpload=function(e,t){return new Promise((function(n,r){if(Array.isArray(e.files)){var i=e.files.length,a=new Array;t?t((function(t){var c=s({accessKeyId:t.accessKeyId,accessKeySecret:t.accessKeySecret,timeout:t.timeout}),l=t.visitPrefix.length;"/"==t.visitPrefix.charAt(l-1)&&(t.visitPrefix=t.visitPrefix.substring(0,l-1)),function s(l){var p=e.files[l],d=u(10,t.folderPath),f=o({fileIndex:l,files:e.files},p);if(p.name){f.name=p.name;var h=p.name.split(".");d+="."+h[h.length-1]}if(p.path){var g=p.path.split(".");d+="."+g[g.length-1]}uni.uploadFile({url:t.visitPrefix,filePath:p.path,name:"file",formData:{key:d,policy:c.policy,OSSAccessKeyId:c.accessKeyId,signature:c.signature},success:function(u){204===u.statusCode?(f.url=t.visitPrefix+"/"+d,e.onEachUpdate&&e.onEachUpdate(o({url:f.url},f)),a.push(f.url),i-1>l?s(l+1):n(a)):r(u)},fail:function(e){r(e)}})}(0)})):r({errMsg:"\u8bf7\u6dfb\u52a0\u963f\u91cc\u4e91\u56de\u8c03\u65b9\u6cd5\uff1agetAliToken",statusCode:0})}else r({errMsg:"files \u5fc5\u987b\u662f\u6570\u7ec4\u7c7b\u578b",statusCode:0})}))};t.urlUpload=function(e,t){return new Promise((function(n,r){if(e.header["Content-Type"]&&delete e.header["Content-Type"],e.header["content-type"]&&delete e.header["content-type"],Array.isArray(e.files)){var i=[],a={files:e.files,name:e.name||"file"};e.files.forEach((function(t){var n={name:e.name||"file"};t.path?n.uri=t.path:n.file=t,i.push(n)}));var s={url:e.url,files:i,header:e.header,success:function(i){e.isFactory&&t?t(o(o({},e),{},{response:i})).then((function(t){e.onEachUpdate&&e.onEachUpdate(o({data:t},a)),n(t)}),(function(e){r(e)})):(e.onEachUpdate&&e.onEachUpdate(o({data:i},a)),n(i))},fail:function(e){r(e)}};e.data&&(s.formData=e.data),uni.uploadFile(s).onProgressUpdate((function(t){e.onProgressUpdate&&e.onProgressUpdate(Object.assign({},a,t))}))}else r({errMsg:"files \u5fc5\u987b\u662f\u6570\u7ec4\u7c7b\u578b",statusCode:0})}))}}).call(this,n(1).default)},function(e,t,n){(function(t){!function(){var n={qiniuRegion:"",qiniuImageURLPrefix:"",qiniuUploadToken:"",qiniuUploadTokenURL:"",qiniuUploadTokenFunction:null,qiniuShouldUseQiniuFileName:!1};function r(e){e.region?n.qiniuRegion=e.region:t("error","qiniu uploader need your bucket region"," at uni_modules/zhouWei-request/js_sdk/request/upload/qiniuUploader.js:36"),e.uptoken?n.qiniuUploadToken=e.uptoken:e.uptokenURL?n.qiniuUploadTokenURL=e.uptokenURL:e.uptokenFunc&&(n.qiniuUploadTokenFunction=e.uptokenFunc),e.domain&&(n.qiniuImageURLPrefix=e.domain),n.qiniuShouldUseQiniuFileName=e.shouldUseQiniuFileName}function o(e,r,o,i,a,s){if(null==n.qiniuUploadToken&&n.qiniuUploadToken.length>0)t("error","qiniu UploadToken is null, please check the init config or networking"," at uni_modules/zhouWei-request/js_sdk/request/upload/qiniuUploader.js:80");else{var u=function(e){var n=null;switch(e){case"ECN":n="https://up.qbox.me";break;case"NCN":n="https://up-z1.qbox.me";break;case"SCN":n="https://up-z2.qbox.me";break;case"NA":n="https://up-na0.qbox.me";break;case"ASG":n="https://up-as0.qbox.me";break;default:t("error","please make the region is with one of [ECN, SCN, NCN, NA, ASG]"," at uni_modules/zhouWei-request/js_sdk/request/upload/qiniuUploader.js:164")}return n}(n.qiniuRegion),c=e.split("//")[1];i&&i.key&&(c=i.key);var l={token:n.qiniuUploadToken};n.qiniuShouldUseQiniuFileName||(l.key=c);var p=wx.uploadFile({url:u,filePath:e,name:"file",formData:l,success:function(e){var i=e.data;e.data.hasOwnProperty("type")&&"Buffer"===e.data.type&&(i=String.fromCharCode.apply(null,e.data.data));try{var a=JSON.parse(i),s=n.qiniuImageURLPrefix+"/"+a.key;a.imageURL=s,r&&r(a)}catch(e){t("log","parse JSON failed, origin String is: "+i," at uni_modules/zhouWei-request/js_sdk/request/upload/qiniuUploader.js:113"),o&&o(e)}},fail:function(e){t("error",e," at uni_modules/zhouWei-request/js_sdk/request/upload/qiniuUploader.js:120"),o&&o(e)}});p.onProgressUpdate((function(e){a&&a(e)})),s&&s((function(){p.abort()}))}}e.exports={init:function(e){n={qiniuRegion:"",qiniuImageURLPrefix:"",qiniuUploadToken:"",qiniuUploadTokenURL:"",qiniuUploadTokenFunction:null,qiniuShouldUseQiniuFileName:!1},r(e)},upload:function(e,i,a,s,u,c){if(null==e)return void t("error","qiniu uploader need filePath to upload"," at uni_modules/zhouWei-request/js_sdk/request/upload/qiniuUploader.js:53");s&&r(s);if(n.qiniuUploadToken)o(e,i,a,s,u,c);else if(n.qiniuUploadTokenURL)l=function(){o(e,i,a,s,u,c)},wx.request({url:n.qiniuUploadTokenURL,success:function(e){var r=e.data.uptoken;r&&r.length>0?(n.qiniuUploadToken=r,l&&l()):t("error","qiniuUploader cannot get your token, please check the uptokenURL or server"," at uni_modules/zhouWei-request/js_sdk/request/upload/qiniuUploader.js:147")},fail:function(e){t("error","qiniu UploadToken is null, please check the init config or networking: "+e," at uni_modules/zhouWei-request/js_sdk/request/upload/qiniuUploader.js:151")}});else{if(!n.qiniuUploadTokenFunction)return void t("error","qiniu uploader need one of [uptoken, uptokenURL, uptokenFunc]"," at uni_modules/zhouWei-request/js_sdk/request/upload/qiniuUploader.js:73");if(n.qiniuUploadToken=n.qiniuUploadTokenFunction(),null==n.qiniuUploadToken&&n.qiniuUploadToken.length>0)return void t("error","qiniu UploadTokenFunction result is null, please check the return value"," at uni_modules/zhouWei-request/js_sdk/request/upload/qiniuUploader.js:68");o(e,i,a,s,u,c)}var l}}}()}).call(this,n(1).default)},function(e,t,n){var r=n(26);n(27),n(28);var o=n(4);e.exports=function(e){var t,n,i,a=(t=e.timeout,n=(new Date).getTime(),i={expiration:new Date(n+(t||18e5)).toISOString(),conditions:[["content-length-range",0,104857600]]},r.encode(JSON.stringify(i))),s=function(e,t){var n=o.HMAC(o.SHA1,e,t,{asBytes:!0});return o.util.bytesToBase64(n)}(a,e.accessKeySecret);return{policy:a,accessKeyId:e.accessKeyId,accessKeySecret:e.accessKeySecret,signature:s,success_action_status:"200"}}},function(e,t){var n={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t,r,o,i,a,s,u,c="",l=0;for(e=n._utf8_encode(e);l<e.length;)i=(t=e.charCodeAt(l++))>>2,a=(3&t)<<4|(r=e.charCodeAt(l++))>>4,s=(15&r)<<2|(o=e.charCodeAt(l++))>>6,u=63&o,isNaN(r)?s=u=64:isNaN(o)&&(u=64),c=c+this._keyStr.charAt(i)+this._keyStr.charAt(a)+this._keyStr.charAt(s)+this._keyStr.charAt(u);return c},decode:function(e){var t,r,o,i,a,s,u="",c=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");c<e.length;)t=this._keyStr.indexOf(e.charAt(c++))<<2|(i=this._keyStr.indexOf(e.charAt(c++)))>>4,r=(15&i)<<4|(a=this._keyStr.indexOf(e.charAt(c++)))>>2,o=(3&a)<<6|(s=this._keyStr.indexOf(e.charAt(c++))),u+=String.fromCharCode(t),64!=a&&(u+=String.fromCharCode(r)),64!=s&&(u+=String.fromCharCode(o));return u=n._utf8_decode(u)},_utf8_encode:function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r>127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(63&r|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(63&r|128))}return t},_utf8_decode:function(e){for(var t="",n=0,r=c1=c2=0;n<e.length;)(r=e.charCodeAt(n))<128?(t+=String.fromCharCode(r),n++):r>191&&r<224?(c2=e.charCodeAt(n+1),t+=String.fromCharCode((31&r)<<6|63&c2),n+=2):(c2=e.charCodeAt(n+1),c3=e.charCodeAt(n+2),t+=String.fromCharCode((15&r)<<12|(63&c2)<<6|63&c3),n+=3);return t}};e.exports=n},function(e,t,n){var r,o=n(4);r=o.util,o.HMAC=function(e,t,n,o){for(var i=n=n.length>4*e._blocksize?e(n,{asBytes:!0}):r.stringToBytes(n),a=n.slice(0),s=0;s<4*e._blocksize;s++)i[s]^=92,a[s]^=54;var u=e(r.bytesToString(i)+e(r.bytesToString(a)+t,{asString:!0}),{asBytes:!0});return o&&o.asBytes?u:o&&o.asString?r.bytesToString(u):r.bytesToHex(u)},e.exports=o},function(e,t,n){var r,o,i=n(4);r=i.util,(o=i.SHA1=function(e,t){var n=r.wordsToBytes(o._sha1(e));return t&&t.asBytes?n:t&&t.asString?r.bytesToString(n):r.bytesToHex(n)})._sha1=function(e){var t=r.stringToWords(e),n=8*e.length,o=[],i=1732584193,a=-271733879,s=-1732584194,u=271733878,c=-1009589776;t[n>>5]|=128<<24-n%32,t[15+(n+64>>>9<<4)]=n;for(var l=0;l<t.length;l+=16){for(var p=i,d=a,f=s,h=u,g=c,m=0;m<80;m++){if(m<16)o[m]=t[l+m];else{var v=o[m-3]^o[m-8]^o[m-14]^o[m-16];o[m]=v<<1|v>>>31}var y=(i<<5|i>>>27)+c+(o[m]>>>0)+(m<20?1518500249+(a&s|~a&u):m<40?1859775393+(a^s^u):m<60?(a&s|a&u|s&u)-1894007588:(a^s^u)-899497514);c=u,u=s,s=a<<30|a>>>2,a=i,i=y}i+=p,a+=d,s+=f,u+=h,c+=g}return[i,a,s,u,c]},o._blocksize=16,e.exports=i},function(e,t,n){var r={"./common.js":30,"./order.js":31,"./user.js":32,"./video.js":33};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=29},function(e,t,n){"use strict";function r(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0}),t.actions=t.mutations=t.state=void 0;t.state={webViewUrl:"",loadingShow:!1,chatScenesInfo:{},bindUserInfoShow:!1,currentAddress:{areaName:"\u8bf7\u9009\u62e9",areaId:""}};var i,a=["userInfo","HealthMes","webViewUrl","hisRecords"],s={setCacheData:function(e){var t,n=r(a);try{for(n.s();!(t=n.n()).done;){var o,i=t.value;(o=uni.getStorageSync(i))&&(e[i]=o)}}catch(e){n.e(e)}finally{n.f()}},setWebViewUrl:function(e,t){t&&(e.webViewUrl=t)},setLoadingShow:function(e,t){e.loadingShow?t?(i&&clearTimeout(i),i=setTimeout((function(){e.loadingShow=!1}),5e3)):(i&&clearTimeout(i),i=setTimeout((function(){e.loadingShow=!1}),50)):e.loadingShow=t},setChatScenesInfo:function(e,t){t&&(e.chatScenesInfo=Object.assign({},e.chatScenesInfo,t))},setBindUserInfoShow:function(e,t){e.bindUserInfoShow=t},setCurrentAddress:function(e,t){if(t){e.currentAddress=Object.assign(e.currentAddress,t);var n={provinceId:e.currentAddress.provinceId,provinceName:e.currentAddress.provinceName,cityId:e.currentAddress.cityId,cityName:e.currentAddress.cityName,areaId:e.currentAddress.areaId,areaName:e.currentAddress.areaName};uni.setStorageSync("currentAddress",n)}}};t.mutations=s;t.actions={}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.actions=t.mutations=t.state=void 0;t.state={};t.mutations={};t.actions={}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.actions=t.mutations=t.state=void 0;t.state={userInfo:{}};var n={setUserInfo:function(t,n){e("log",t," at store/modules/user.js:8"),e("log",n," at store/modules/user.js:9"),n&&(t.userInfo=Object.assign({},t.userInfo,n),uni.setStorageSync("userInfo",t.userInfo))},setHealthMes:function(t,n){e("log",n," at store/modules/user.js:22"),n&&(t.HealthMes=Object.assign({},t.HealthMes,n),uni.setStorageSync("HealthMes",t.HealthMes))},emptyUserInfo:function(e){e.userInfo={},uni.removeStorageSync("userInfo")}};t.mutations=n;t.actions={}}).call(this,n(1).default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.actions=t.mutations=t.state=void 0;t.state={videoPlayId:""};t.mutations={setVideoPlayId:function(e,t){e.videoPlayId=t}};t.actions={}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];u((function(t){o.default.getServerNo(t,e,(function(e){"forcibly"==e.updateType||"silent"==e.updateType?/\.wgt$/i.test(e.downloadUrl)?c(e):/\.html$/i.test(e.downloadUrl)?plus.runtime.openURL(e.downloadUrl):"android"==i?c(e):plus.runtime.openURL(e.downloadUrl):"solicit"==e.updateType&&l(e,(function(){/\.wgt$/i.test(e.downloadUrl)?c(e):/\.html$/i.test(e.downloadUrl)?plus.runtime.openURL(e.downloadUrl):"android"==i?c(e):plus.runtime.openURL(e.downloadUrl)}))}))}))},t.getCurrentNo=void 0;var r,o=(r=n(15))&&r.__esModule?r:{default:r};var i=uni.getSystemInfoSync().platform,a=o.default.appUpdateColor?o.default.appUpdateColor:"FF5B78",s=o.default.appUpdateIcon?o.default.appUpdateIcon:"/uni_modules/zhouWei-APPUpdate/static/ic_ar.png",u=function(e){plus.runtime.getProperty(plus.runtime.appid,(function(t){e&&e({versionCode:t.versionCode,versionName:t.version})}))};t.getCurrentNo=u;var c=function(t){var n;if("forcibly"==t.updateType||"solicit"==t.updateType){var r={progress:!0,buttonNum:2};"forcibly"==t.updateType&&(r.buttonNum=0);var o=0,i=function(e){var t=new plus.nativeObj.View("maskLayer",{top:"0px",left:"0px",height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0.5)"}),n=p(e),r=new plus.nativeObj.View("popupView",{tag:"rect",top:(n.screenHeight-n.popupViewHeight)/2+"px",left:"15%",height:n.popupViewHeight+"px",width:"70%"}),o=0,i=0,s=0,u=2;e.buttonNum>=0&&(u=e.buttonNum);r.draw(n.elementList);var c={change:function(e){var t=[];if(e.progressValue&&(o=e.progressValue,t.push({tag:"rect",id:"progressValueBg",rectStyles:{radius:"4px",color:a},position:{top:4*n.viewContentPadding+60+"px",left:n.viewContentPadding+"px",width:n.viewContentWidth*(e.progressValue/100)+"px",height:"8px"}})),e.progressTip&&(i=e.progressTip,t.push({tag:"font",id:"progressValue",text:e.progressTip,textStyles:{size:"14px",color:a,whiteSpace:"normal"},position:{top:4*n.viewContentPadding+20+"px",height:"30px"}})),e.contentText&&(s=e.contentText,t.push({tag:"font",id:"content",text:e.contentText,textStyles:{size:"16px",color:"#333",whiteSpace:"normal"},position:{top:2*n.viewContentPadding+30+"px",height:"30px"}})),e.buttonNum>=0&&u!=e.buttonNum){u=e.buttonNum,r.reset(),n=p(Object.assign({progressValue:o,progressTip:i,contentText:s},e));var c=[];n.elementList.map((function(e,n){var r=!1;t.forEach((function(t,n){e.id==t.id&&(r=!0)})),r||c.push(e)})),t=c.concat(t),r.setStyle({tag:"rect",top:(n.screenHeight-n.popupViewHeight)/2+"px",left:"15%",height:n.popupViewHeight+"px",width:"70%"}),r.draw(t)}else r.draw(t)},cancel:function(){t.hide(),r.hide()}};return r.addEventListener("click",(function(e){var o=n.popupViewHeight-n.viewContentPadding,i=n.popupViewWidth-n.viewContentPadding;if(e.clientY>o-40&&e.clientY<o)if(1==u)e.clientX>n.viewContentPadding&&e.clientX<i&&(t.hide(),r.hide(),c.reboot());else if(2==u){var a=(n.viewContentWidth-n.viewContentPadding)/2;e.clientX>n.viewContentPadding&&e.clientX<i-a-n.viewContentPadding?(t.hide(),r.hide(),c.cancelDownload()):e.clientX>i-a&&e.clientX<i&&(t.hide(),r.hide())}})),t.show(),r.show(),c}(r);(n=plus.downloader.createDownload(t.downloadUrl,{filename:"_doc/update/"},(function(e,t){200==t?(i.change({progressValue:100,progressTip:"\u6b63\u5728\u5b89\u88c5\u6587\u4ef6...",progress:!0,buttonNum:0}),plus.runtime.install(e.filename,{},(function(){i.change({contentText:"\u5e94\u7528\u8d44\u6e90\u66f4\u65b0\u5b8c\u6210\uff01",buttonNum:1,progress:!1})}),(function(e){i.cancel(),plus.nativeUI.alert("\u5b89\u88c5\u6587\u4ef6\u5931\u8d25["+e.code+"]\uff1a"+e.message)}))):i.change({contentText:"\u6587\u4ef6\u4e0b\u8f7d\u5931\u8d25...",buttonNum:1,progress:!1})}))).start(),n.addEventListener("statechanged",(function(e,t){switch(e.state){case 1:i.change({progressValue:0,progressTip:"\u51c6\u5907\u4e0b\u8f7d...",progress:!0});break;case 2:i.change({progressValue:0,progressTip:"\u5f00\u59cb\u4e0b\u8f7d...",progress:!0});break;case 3:var n=parseInt(e.downloadedSize/e.totalSize*100);n-o>=2&&(o=n,i.change({progressValue:n,progressTip:"\u5df2\u4e0b\u8f7d"+n+"%",progress:!0}))}})),i.cancelDownload=function(){n&&n.abort(),uni.showToast({title:"\u5df2\u53d6\u6d88\u4e0b\u8f7d",icon:"none"})},i.reboot=function(){plus.runtime.restart()}}else"silent"==t.updateType&&(n=plus.downloader.createDownload(t.downloadUrl,{filename:"_doc/update/"},(function(t,n){200==n?plus.runtime.install(t.filename,{},(function(){e("log","\u5e94\u7528\u8d44\u6e90\u66f4\u65b0\u5b8c\u6210"," at uni_modules/zhouWei-APPUpdate/js_sdk/appUpdate.js:108")}),(function(e){plus.nativeUI.alert("\u5b89\u88c5\u6587\u4ef6\u5931\u8d25["+e.code+"]\uff1a"+e.message)})):plus.nativeUI.alert("\u6587\u4ef6\u4e0b\u8f7d\u5931\u8d25...")}))).start()};function l(e,t){var n=new plus.nativeObj.View("maskLayer",{top:"0px",left:"0px",height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0.5)"}),r=plus.screen.resolutionWidth,o=plus.screen.resolutionHeight,i=.7*r,u=parseInt(i-40),c=function(e,t){for(var n=e.split(""),r=n.length,o=0,i=0,a=[],s=0,u=0;u<r;u++)/[\u4e00-\u9fa5]|[\uFE30-\uFFA0]/g.test(n[u])?s>0?i+14+7*s>t?(a.push({type:"text",content:e.substring(o,u)}),o=u,i=14,s=0):(i+=14+7*s,s=0):i+14>t?(a.push({type:"text",content:e.substring(o,u)}),o=u,i=14):i+=14:/\n/g.test(n[u])?(a.push({type:"break",content:e.substring(o,u)}),o=u+1,i=0,s=0):"\\"==n[u]&&"n"==n[u+1]?(a.push({type:"break",content:e.substring(o,u)}),o=u+2,i=0,s=0):/[a-zA-Z0-9]/g.test(n[u])?i+7*(s+=1)>t&&(a.push({type:"text",content:e.substring(o,u+1-s)}),o=u+1-s,i=7*s,s=0):i+7>t?(a.push({type:"text",content:e.substring(o,u)}),o=u,i=7):i+=7;return o<r&&a.push({type:"text",content:e.substring(o,r)}),a}(e.versionInfo,u),l=220,p=[{src:s,id:"logo",tag:"img",position:{top:"0px",left:(i-124)/2+"px",width:"124px",height:"80px"}},{tag:"font",id:"title",text:"\u53d1\u73b0\u65b0\u7248\u672c"+e.versionName,textStyles:{size:"18px",color:"#333",weight:"bold",whiteSpace:"normal"},position:{top:"90px",left:"20px",width:u+"px",height:"30px"}}],d=130;c.forEach((function(e,t){t>0&&(l+=18,d+=18),p.push({tag:"font",id:"content"+t+1,text:e.content,textStyles:{size:"14px",color:"#666",lineSpacing:"50%",align:"left"},position:{top:d+"px",left:"20px",width:u+"px",height:"18px"}}),"break"==e.type&&(d+=10,l+=10)})),"forcibly"==e.updateType?(p.push({tag:"rect",rectStyles:{radius:"6px",color:a},position:{bottom:"20px",left:"20px",width:u+"px",height:"30px"}}),p.push({tag:"font",id:"confirmText",text:"\u7acb\u5373\u5347\u7ea7",textStyles:{size:"14px",color:"#FFF",lineSpacing:"0%"},position:{bottom:"20px",left:"20px",width:u+"px",height:"30px"}})):(p.push({tag:"rect",id:"cancelBox",rectStyles:{radius:"3px",borderColor:"#f1f1f1",borderWidth:"1px"},position:{bottom:"20px",left:"20px",width:(u-20)/2+"px",height:"30px"}}),p.push({tag:"rect",id:"confirmBox",rectStyles:{radius:"3px",color:a},position:{bottom:"20px",left:(u-20)/2+40+"px",width:(u-20)/2+"px",height:"30px"}}),p.push({tag:"font",id:"cancelText",text:"\u6682\u4e0d\u5347\u7ea7",textStyles:{size:"14px",color:"#666",lineSpacing:"0%",whiteSpace:"normal"},position:{bottom:"20px",left:"20px",width:(u-20)/2+"px",height:"30px"}}),p.push({tag:"font",id:"confirmText",text:"\u7acb\u5373\u5347\u7ea7",textStyles:{size:"14px",color:"#FFF",lineSpacing:"0%",whiteSpace:"normal"},position:{bottom:"20px",left:(u-20)/2+40+"px",width:(u-20)/2+"px",height:"30px"}}));var f=new plus.nativeObj.View("popupView",{tag:"rect",top:(o-l)/2+"px",left:"15%",height:l+"px",width:"70%"});f.drawRect({color:"#FFFFFF",radius:"8px"},{top:"40px",height:l-40+"px"}),f.draw(p),f.addEventListener("click",(function(r){var o=l-20,a=i-20,s=(u-20)/2;r.clientY>o-30&&r.clientY<o&&("forcibly"==e.updateType?r.clientX>20&&r.clientX<a&&(n.hide(),f.hide(),t&&t()):r.clientX>20&&r.clientX<a-s-20?(n.hide(),f.hide()):r.clientX>a-s&&r.clientX<a&&(n.hide(),f.hide(),t&&t()))})),"solicit"==e.updateType&&n.addEventListener("click",(function(){n.hide(),f.hide()}))}function p(e){var t=plus.screen.resolutionWidth,n=plus.screen.resolutionHeight,r=.7*t,o=r-40,i=120,s=e.progressTip||"\u51c6\u5907\u4e0b\u8f7d...",u=[{tag:"rect",color:"#FFFFFF",rectStyles:{radius:"8px"}},{tag:"font",id:"title",text:"\u5347\u7ea7APP",textStyles:{size:"16px",color:"#333",weight:"bold",verticalAlign:"middle",whiteSpace:"normal"},position:{top:"20px",height:"30px"}},{tag:"font",id:"content",text:e.contentText||"\u6b63\u5728\u4e3a\u60a8\u66f4\u65b0\uff0c\u8bf7\u8010\u5fc3\u7b49\u5f85",textStyles:{size:"14px",color:"#333",verticalAlign:"middle",whiteSpace:"normal"},position:{top:"70px",height:"20px"}}];return e.progress&&(i+=60,u=u.concat([{tag:"font",id:"progressValue",text:s,textStyles:{size:"14px",color:a,whiteSpace:"normal"},position:{top:"100px",height:"30px"}},{tag:"rect",id:"progressBg",rectStyles:{radius:"4px",borderColor:"#f1f1f1",borderWidth:"1px"},position:{top:"140px",left:"20px",width:o+"px",height:"8px"}}])),2==e.buttonNum&&(i+=50,u=u.concat([{tag:"rect",rectStyles:{radius:"3px",borderColor:"#f1f1f1",borderWidth:"1px"},position:{bottom:"20px",left:"20px",width:(o-20)/2+"px",height:"30px"}},{tag:"rect",rectStyles:{radius:"3px",color:a},position:{bottom:"20px",left:(o-20)/2+40+"px",width:(o-20)/2+"px",height:"30px"}},{tag:"font",id:"cancelText",text:"\u53d6\u6d88\u4e0b\u8f7d",textStyles:{size:"14px",color:"#666",lineSpacing:"0%",whiteSpace:"normal"},position:{bottom:"20px",left:"20px",width:(o-20)/2+"px",height:"30px"}},{tag:"font",id:"confirmText",text:"\u540e\u53f0\u4e0b\u8f7d",textStyles:{size:"14px",color:"#FFF",lineSpacing:"0%",whiteSpace:"normal"},position:{bottom:"20px",left:(o-20)/2+40+"px",width:(o-20)/2+"px",height:"30px"}}])),1==e.buttonNum&&(i+=60,u=u.concat([{tag:"rect",rectStyles:{radius:"6px",color:a},position:{bottom:"20px",left:"20px",width:o+"px",height:"40px"}},{tag:"font",id:"confirmText",text:"\u5173\u95ed",textStyles:{size:"14px",color:"#FFF",lineSpacing:"0%"},position:{bottom:"20px",left:"20px",width:o+"px",height:"40px"}}])),{popupViewHeight:i,popupViewWidth:r,screenHeight:n,viewContentWidth:o,viewContentPadding:20,elementList:u}}}).call(this,n(1).default)},,,function(e,t,n){"use strict";var r=n(62),o=n(52),i=n(0);var a=Object(i.a)(o.default,r.b,r.c,!1,null,"1d74c469","0ca5fbfe",!1,r.a,void 0);(function(e){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(n(74).default,this.options.style):Object.assign(this.options.style,n(74).default)}).call(a),t.default=a.exports},,,,,,function(e,t,n){"use strict";n.r(t);var r=n(44),o=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t.default=o.a},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=weex.requireModule("animation"),s=weex.requireModule("dom"),u={props:{list:{type:Array,default:function(){return[]}},current:{type:Number,default:function(){return 0}}},data:function(){return{startTime:0,touchStartY:0,touchStartX:0,currentY:0,currentX:0,contentTranslateX:0,tabData:[],swiperData:[],animationTime:0,animationDirection:"Y",screenHeight:0,screenWidth:0,canSlide:!0,fingersNumber:0,swiperIndex:0,translateX:0}},created:function(){var e=this,t=uni.getSystemInfoSync();this.screenWidth=t.screenWidth,this.screenHeight=t.screenHeight,this.$nextTick((function(){e.getContainerWidthHeight()}));var n=[];this.list&&this.list.length>0&&this.list.forEach((function(t){if(t.key&&t.list){var r=Object.assign({list:[]},t);e.tabData.push(r),n.push({translateY:0,swiperItemIndex:0,length:t.list.length||0,key:t.key})}else uni.showToast({title:"\u53c2\u6570\u6ca1\u6709key\u6216list",icon:"none"})})),this.swiperData=n},watch:{list:function(e){var t=this,n=[];e&&e.length>0&&e.forEach((function(e,r){e.key?(n.push(e),t.swiperData[r].length=e.list.length||0):uni.showToast({title:"\u3010list\u3011\u53c2\u6570\u6ca1\u6709key",icon:"none"})})),this.tabData=n,this.$forceUpdate()},current:function(e){this.onType(e)}},methods:{getContainerWidthHeight:function(){var e=this;s.getComponentRect(this.$refs.directionSwiper,(function(t){e.screenWidth=t.size.width,e.screenHeight=t.size.height}))},onType:function(e){this.swiperIndex=e,this.onChangeY(),this.contentTranslateX=-e*this.screenWidth;var t=this.$refs.swiperContent;t&&(Array.isArray(t)&&(t=t[0]),a.transition(this.$refs.swiperContent,{styles:{transform:"translate("+this.contentTranslateX+"px, 0px)",transformOrigin:"center center"},duration:360,timingFunction:"ease",delay:0},(function(){})))},onChangeY:function(){this.$emit("changeY",o(o({},this.tabData[this.swiperIndex]),this.swiperData[this.swiperIndex]))},setAnimationY:function(e,t,n){var r=this;this.animationTime=t;var o=this.swiperData[this.swiperIndex];o.translateY=e,n&&("less"==n&&o.swiperItemIndex>0?o.swiperItemIndex-=1:"plus"==n&&o.swiperItemIndex<o.length-1&&(o.swiperItemIndex+=1)),this.$set(this.swiperData,this.swiperIndex,o);var i=this.$refs["swiperContainer"+o.key];i&&(Array.isArray(i)&&(i=i[0]),a.transition(i,{styles:{transform:"translate(0px, "+e+"px)",transformOrigin:"center center"},duration:t,timingFunction:"ease",delay:0},(function(){}))),setTimeout((function(){r.canSlide=!0}),t)},setAnimationX:function(e,t,n){var r=this;n&&("less"==n&&this.swiperIndex>0?(this.swiperIndex-=1,this.contentTranslateX=e,this.$emit("changeX",o({swiperIndex:this.swiperIndex},this.swiperData[this.swiperIndex])),this.onChangeY()):"plus"==n&&this.swiperIndex<this.swiperData.length-1&&(this.swiperIndex+=1,this.contentTranslateX=e,this.$emit("changeX",o({swiperIndex:this.swiperIndex},this.swiperData[this.swiperIndex])),this.onChangeY()));var i=this.$refs.swiperContent;i&&(Array.isArray(i)&&(i=i[0]),a.transition(i,{styles:{transform:"translate("+e+"px, 0px)",transformOrigin:"center center"},duration:t,timingFunction:"ease",delay:0},(function(){}))),setTimeout((function(){r.canSlide=!0}),t)},onSwiperTouchstart:function(e){if(this.fingersNumber+=1,this.canSlide&&1==this.fingersNumber){this.touchStartY=e.changedTouches[0].screenY,this.touchStartX=e.changedTouches[0].screenX;var t=(new Date).getTime();this.startTime=t,t,this.swiperData[this.swiperIndex]?this.currentY=this.swiperData[this.swiperIndex].translateY:this.currentY=0,this.currentX=this.contentTranslateX,this.animationDirection=""}},onSwiperTouchmove:function(e){if(this.canSlide&&1==this.fingersNumber){var t=e.changedTouches[0].screenY,n=e.changedTouches[0].screenX,r=this.touchStartY-t,o=this.touchStartX-n,i=(new Date).getTime();if(Math.abs(r)>Math.abs(o)){var a=this.swiperData[this.swiperIndex];r<0?a.swiperItemIndex>0&&(this.animationDirection="Y",this.setAnimationY(this.currentY+Math.abs(r),0)):a.swiperItemIndex<a.length-1&&(this.animationDirection="Y",this.setAnimationY(this.currentY-r,0))}else o<0?this.swiperIndex>0&&(this.animationDirection="X",this.setAnimationX(this.currentX+Math.abs(o),0)):this.swiperIndex<this.swiperData.length-1&&(this.animationDirection="X",this.setAnimationX(this.currentX-Math.abs(o),0));i}},onSwiperTouchcancel:function(e){this.finallySlide(e.changedTouches[0].screenX,e.changedTouches[0].screenY),this.fingersNumber=0},onSwiperTouchend:function(e){this.finallySlide(e.changedTouches[0].screenX,e.changedTouches[0].screenY),this.fingersNumber-=1},finallySlide:function(e,t){if(this.canSlide&&1==this.fingersNumber){var n=(new Date).getTime()-this.startTime;this.canSlide=!1;var r=this.touchStartY-t;if("X"==this.animationDirection){var o=this.touchStartX-e;if(Math.abs(o)>this.screenWidth/3||n<500&&Math.abs(o)>this.screenWidth/5){var i=360;n>400&&n>200&&(i=n),o<0?this.setAnimationX(0,i,"less"):this.setAnimationX(-this.screenWidth,i,"plus")}else this.setAnimationX(this.currentX,360)}else if("Y"==this.animationDirection)if(Math.abs(r)>this.screenHeight/5||n<500&&Math.abs(r)>this.screenHeight/10){var a=360;if(n<500&&n>200&&(a=n),Math.abs(r)<this.screenHeight)(a*=(this.screenHeight-Math.abs(r))/this.screenHeight)<150&&(a=150);r<0?this.setAnimationY(this.currentY+this.screenHeight,a,"less"):this.setAnimationY(this.currentY-this.screenHeight,a,"plus"),this.onChangeY()}else{var s=360;(s*=Math.abs(r)/this.screenHeight)<150&&(s=150),this.setAnimationY(this.currentY,s)}else this.canSlide=!0}}}};t.default=u},function(e,t){e.exports={direction_swiper:{width:"750rpx",overflow:"hidden"},swiper_content_box:{flexDirection:"row"},swiper_container:{position:"relative"},swiper_item:{width:"750rpx",position:"absolute",top:"1504rpx",left:"0rpx"},swiper_empty:{flexDirection:"column",alignItems:"center",justifyContent:"center",width:"750rpx",position:"absolute",top:"0rpx",left:"0rpx"},swiper_empty_image:{width:"360rpx",height:"360rpx"},swiper_empty_text:{fontSize:"28rpx",color:"#FFFFFF"},"@VERSION":2}},function(e,t,n){"use strict";n.r(t);var r=n(47),o=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t.default=o.a},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(14);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a={props:{src:{type:String,default:""},objId:{default:""},poster:{type:String,default:""},screenHeight:{type:Number,default:function(){return 1334}},progressBottom:{type:Number,default:function(){return 88}}},data:function(){return{schedule:0,playState:1e3,progressDrag:!1,duration:0,videoCtx:null}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(0,r.mapState)(["videoPlayId"])),watch:{videoPlayId:function(e){var t=this;e==this.objId?setTimeout((function(){t.videoCtx.play(),t.playState=2e3}),200):setTimeout((function(){t.videoCtx.pause(),t.videoCtx.seek(0),t.playState=1e3,t.schedule=0}),100)}},mounted:function(){var e=this;this.videoCtx=uni.createVideoContext("video_".concat(this.objId),this),this.videoPlayId==this.objId&&setTimeout((function(){e.videoCtx.play(),e.playState=2e3}),200);var t=!0;uni.$on("videoProgress",(function(n){t&&(t=!1,setTimeout((function(){t=!0,1==n.progress?e.progressDrag=!0:e.progressDrag=!1,e.videoPlayId==e.objId&&n.progressValue&&(e.schedule=750*n.progressValue,e.videoCtx.seek(e.duration*n.progressValue))}),100))}))},methods:{onScheduleChange:function(e){this.duration=e.detail.duration,this.progressDrag||(this.schedule=parseFloat(e.detail.currentTime)/e.detail.duration*750)},onPlay:function(){2e3==this.playState?(this.videoCtx.pause(),this.playState=1e3):(1e3==this.playState||3e3==this.playState)&&(this.videoCtx.play(),this.playState=2e3)},onWaiting:function(){this.playState=3e3},onError:function(t){e("log","\u89c6\u9891\u64ad\u653e\u51fa\u9519",t," at components/short-video/short-video.vue:148")}}};t.default=a}).call(this,n(1).default)},function(e,t){e.exports={video_box:{position:"relative",width:"750rpx"},bottom_mask:{position:"absolute",left:"0rpx",bottom:"0rpx",right:"0rpx",height:"300rpx",width:"750rpx",backgroundImage:"linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7))"},video_file:{width:"750rpx"},play_schedule:{position:"absolute",bottom:"6rpx",left:0,height:"16rpx",width:"750rpx",flexDirection:"row",alignItems:"center",justifyContent:"flex-start"},schedule_bg:{position:"absolute",top:"7rpx",left:0,right:0,height:"2rpx",backgroundColor:"rgba(255,255,255,0.3)"},schedule:{backgroundColor:"#ffffff",height:"2rpx",position:"relative"},progress_drag_dot:{width:"16rpx",height:"16rpx",borderRadius:50,backgroundColor:"#ffffff"},play_btn:{position:"absolute",top:0,left:0,right:0,bottom:0,justifyContent:"center",alignItems:"center"},icon_play:{width:"90rpx",height:"90rpx"},"@VERSION":2}},function(e,t,n){"use strict";n.r(t);var r=n(50),o=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t.default=o.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r;(r=n(9))&&r.__esModule,n(72);var o={props:{bg:{type:Boolean,default:!0},bottomBlackLineHeight:{type:Number,default:function(){return 0}}},data:function(){return{path:"",navigationList:[{text:"\u9996\u9875",pagePath:"pages/peanut/home",tab:!0},{text:"\u8d2d\u7269\u8f66",pagePath:"pages/peanut/shopping",tab:!0},{text:"\u6211\u7684\u4e66\u67b6",pagePath:"pages/peanut/bookshelf",tab:!0},{text:"\u6211\u7684",pagePath:"pages/peanut/mine",tab:!0}]}},created:function(){var e=getCurrentPages(),t=e[e.length-1];this.path=t.route},methods:{onPageJump:function(e){e.tab?uni.switchTab({url:"/"+e.pagePath}):uni.reLaunch({url:"/"+e.pagePath})}}};t.default=o},function(e,t){e.exports={footer_station:{height:"100rpx"},footer_box:{position:"fixed",bottom:0,left:0,width:"750rpx",flexDirection:"row",zIndex:10},footer_item:{flex:1,flexDirection:"column",alignItems:"center",justifyContent:"center",height:"98rpx","backgroundColor:active":"rgba(255,255,255,0.1)"},footer_item_text:{fontSize:"28rpx",color:"#ffffff",marginTop:"6rpx"},footer_item_text_active:{color:"#ffffff"},"@VERSION":2}},function(e,t,n){"use strict";var r=n(53),o=n.n(r);t.default=o.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n(82);var r,o=n(14);(r=n(9))&&r.__esModule,n(72);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u={data:function(){return{tabData:[{title:"\u63a8\u8350",key:"1006",translateY:0,swiperIndex:0,playIndex:0,list:[],pageNo:1,pages:1,pageSize:10},{title:"\u5173\u6ce8",key:"1005",translateY:0,swiperIndex:0,playIndex:0,list:[],pageNo:1,pages:1,pageSize:10,emptyText:"\u60a8\u8fd8\u6ca1\u6709\u5173\u6ce8\uff0c\u5148\u53bb\u5173\u6ce8\u5427"}],screenHeight:1334,screenWidth:0,statusBarHeight:0,progress:1e4,progressValue:0,objId:"",bottomBlackLineHeight:0,progressBottom:98,swiperIndex:0,currentVideoId:""}},computed:a({},(0,o.mapState)(["userInfo"])),watch:{},onLoad:function(e){var t=uni.getSystemInfoSync();this.screenWidth=t.screenWidth,this.screenHeight=t.windowHeight,this.statusBarHeight=t.statusBarHeight;["iPhone X","iPhone 11","iPhone 11 Pro Max"].includes(t.model)&&(this.bottomBlackLineHeight=40,this.progressBottom=138)},onShow:function(){var e=this;this.$nextTick((function(){e.$refs.directionSwiper.onChangeY()}))},methods:a(a({},(0,o.mapMutations)(["setVideoPlayId"])),{},{onPageJump:function(e){uni.navigateTo({url:e})},onCommentShow:function(e){uni.getSubNVueById("comment").show("slide-in-bottom",300,(function(){uni.$emit("showComment",e)}))},onTypeSelect:function(e){this.swiperIndex=e},onChangeX:function(e){this.swiperIndex=e.swiperIndex,this.tabData[e.swiperIndex].list&&this.tabData[e.swiperIndex].list.length>0?(this.currentVideoId=this.tabData[e.swiperIndex].list[e.swiperItemIndex].objId,this.setVideoPlayId(this.currentVideoId)):(this.currentVideoId="",this.setVideoPlayId(""))},onChangeY:function(e){var t=this;e.list.length-e.swiperItemIndex<3&&e.pages>=e.pageNo&&"1006"==e.key?setTimeout((function(){e.pages=200;var n=[{title:"\u6e05\u6670\u5ea6\u8c03\u6574\u52301080p \u7684",img:"https://qn.kemean.cn/file/3jiayun/202104/12/16182202059950nw0dcury8.jpg",url:"https://qn.kemean.cn/file/3jiayun/202104/12/1618220203901l91g4gc0v8.mp4",anchorId:5,anchorName:"\u5b50\u4e0d\u8bed-\u7528\u6237",anchorHeadImg:"http://qn.kemean.cn/file/3jiayun/202104/06/16176886958768klxd4j4hz.png",liked:!0,likedCountStr:"2",collected:!1,followed:!1,goodsTitle:null,goodsId:0,goodsPrice:null,goodsPriceShop:null,goodsHeadImg:null,objId:16},{title:"\u6d4b\u8bd5\uff0c\u521a\u62cd\u7684\u89c6\u9891",img:"http://qn.kemean.cn/file/3jiayun/202104/12/1618220019493x9q27w3gvt.jpg",url:"https://qn.kemean.cn/file/3jiayun/202104/12/1618220017480qng3bkdzc9.mp4",anchorId:5,anchorName:"\u5b50\u4e0d\u8bed-\u7528\u6237",anchorHeadImg:"http://qn.kemean.cn/file/3jiayun/202104/06/16176886958768klxd4j4hz.png",liked:!1,likedCountStr:"0",collected:!1,followed:!1,goodsTitle:null,goodsId:0,goodsPrice:null,goodsPriceShop:null,goodsHeadImg:null,objId:15},{title:"\u6ca1\u7ecf\u8fc7\u4efb\u4f55\u5904\u7406\u7684",img:"http://qn.kemean.cn/file/3jiayun/202104/12/1618219915251i9bubs6vbj.jpg",url:"https://qn.kemean.cn/file/3jiayun/202104/12/16182199135044j9tts4a87.mp4",anchorId:5,anchorName:"\u5b50\u4e0d\u8bed-\u7528\u6237",anchorHeadImg:"http://qn.kemean.cn/file/3jiayun/202104/06/16176886958768klxd4j4hz.png",liked:!0,likedCountStr:"1",collected:!1,followed:!1,goodsTitle:null,goodsId:0,goodsPrice:null,goodsPriceShop:null,goodsHeadImg:null,objId:14},{title:"\u54c8\u54c8",img:"http://qn.kemean.cn/file/3jiayun/202104/12/1618219819968zhisc51of5.jpg",url:"https://qn.kemean.cn/file/3jiayun/202104/12/1618219815750fwqrrfkxx3.mp4",anchorId:5,anchorName:"\u5b50\u4e0d\u8bed-\u7528\u6237",anchorHeadImg:"http://qn.kemean.cn/file/3jiayun/202104/06/16176886958768klxd4j4hz.png",liked:!1,likedCountStr:"0",collected:!1,followed:!1,goodsTitle:null,goodsId:0,goodsPrice:null,goodsPriceShop:null,goodsHeadImg:null,objId:13},{title:"\u9b54\u5bab",img:"http://qn.kemean.cn/file/3jiayun/202104/12/16182195765791c14tlml8f.jpg",url:"https://qn.kemean.cn/file/3jiayun/202104/12/1618219576194g3iyoocjd4.mp4",anchorId:5,anchorName:"\u5b50\u4e0d\u8bed-\u7528\u6237",anchorHeadImg:"http://qn.kemean.cn/file/3jiayun/202104/06/16176886958768klxd4j4hz.png",liked:!1,likedCountStr:"0",collected:!1,followed:!1,goodsTitle:null,goodsId:0,goodsPrice:null,goodsPriceShop:null,goodsHeadImg:null,objId:12},{title:"\u7406\u89e3\u7406\u89e3",img:"http://qn.kemean.cn/file/3jiayun/202104/12/1618219320610bw2k74jtqk.jpg",url:"https://qn.kemean.cn/file/3jiayun/202104/12/1618219319469l0qzt37bc1.mp4",anchorId:5,anchorName:"\u5b50\u4e0d\u8bed-\u7528\u6237",anchorHeadImg:"http://qn.kemean.cn/file/3jiayun/202104/06/16176886958768klxd4j4hz.png",liked:!1,likedCountStr:"0",collected:!1,followed:!1,goodsTitle:null,goodsId:0,goodsPrice:null,goodsPriceShop:null,goodsHeadImg:null,objId:11},{title:"\u5927\u9b54\u9b3c",img:"http://qn.kemean.cn/file/3jiayun/202104/12/16182121164950abz23eww8.jpg",url:"https://qn.kemean.cn/file/3jiayun/202104/12/1618212114296iwexj2z9tp.mp4",anchorId:5,anchorName:"\u5b50\u4e0d\u8bed-\u7528\u6237",anchorHeadImg:"http://qn.kemean.cn/file/3jiayun/202104/06/16176886958768klxd4j4hz.png",liked:!0,likedCountStr:"2",collected:!1,followed:!1,goodsTitle:"\u3010\u6f14\u793a\u6570\u636e\u3011\u6b27\u83b1\u96c5\u6e05\u6da6\u8461\u8404\u7c7d\u6c34\u5ae9\u6d01\u9762\u4e73125ml",goodsId:1346,goodsPrice:"\xa578.0",goodsPriceShop:"",goodsHeadImg:"http://qn.kemean.cn/upload/201912/16/d2cead460a8847a3a9b63ac42757e37c?imageView2/0/w/800",objId:10},{title:"\u54e6\u54e6\u54e6\u54e6\u54e6\u54e6\u54e6\u54e6\u54e6",img:"http://qn.kemean.cn/file/3jiayun/202104/08/1617862092886k7ydaszsme.jpg",url:"https://qn.kemean.cn/upload/202104/09/1617948610327ex57uewe.mp4",anchorId:5,anchorName:"\u5b50\u4e0d\u8bed-\u7528\u6237",anchorHeadImg:"http://qn.kemean.cn/file/3jiayun/202104/06/16176886958768klxd4j4hz.png",liked:!0,likedCountStr:"1",collected:!0,followed:!1,goodsTitle:null,goodsId:0,goodsPrice:null,goodsPriceShop:null,goodsHeadImg:null,objId:9},{title:"testTitle",img:"http://qn.kemean.cn/upload/202012/08/16074302835453y3lip8n.jpg",url:"https://qn.kemean.cn/upload/202104/09/1617948610327ex57uewe.mp4",anchorId:4,anchorName:"188****5679",anchorHeadImg:"http://qn.kemean.cn/upload/202007/08/default_head_img.png",liked:!0,likedCountStr:"1",collected:!1,followed:!1,goodsTitle:"\u6d4b\u8bd5\u4e00\u4e0b\u5546\u54c1\u7269\u6d41\u7c7b\u578b",goodsId:1773,goodsPrice:"\xa5500.0",goodsPriceShop:"",goodsHeadImg:"http://qn.kemean.cn/3jiayun/202103/25/1616655654105zsdgp1o1.jpg?imageView2/0/w/800",objId:8},{title:"testTitle",img:"http://qn.kemean.cn/upload/202012/08/16074302835453y3lip8n.jpg",url:"https://qn.kemean.cn/upload/202104/09/1617948610327ex57uewe.mp4",anchorId:4,anchorName:"188****5679",anchorHeadImg:"http://qn.kemean.cn/upload/202007/08/default_head_img.png",liked:!1,likedCountStr:"0",collected:!1,followed:!1,goodsTitle:null,goodsId:0,goodsPrice:null,goodsPriceShop:null,goodsHeadImg:null,objId:7}];n.map((function(e){return e.goodClose=!0,e.progressBottom=t.progressBottom,e.screenHeight=t.screenHeight,e})),1==e.pageNo?(t.currentVideoId=n[0].objId,t.setVideoPlayId(t.currentVideoId),e.list=n):e.list=n.concat(n),n.length>0&&(e.pageNo+=1),t.$set(t.tabData,t.swiperIndex,e)}),300):e.list.length>0&&(this.currentVideoId=e.list[e.swiperItemIndex].objId,this.setVideoPlayId(this.currentVideoId))},onCollect:function(e,t){var n=this,r=this.tabData[e],o=r.list[t];setTimeout((function(){o.collected?(uni.showToast({title:"\u5df2\u53d6\u6d88\u6536\u85cf",icon:"none"}),r.list[t].collected=!1,n.$set(n.tabData,e,r)):(uni.showToast({title:"\u6536\u85cf\u6210\u529f"}),r.list[t].collected=!0,n.$set(n.tabData,e,r))}),100)},onLike:function(e,t){var n=this,r=this.tabData[e],o=r.list[t];setTimeout((function(){o.liked?(uni.showToast({title:"\u5df2\u53d6\u6d88\u70b9\u8d5e",icon:"none"}),r.list[t].liked=!1,r.list[t].likedCountStr=parseInt(o.likedCountStr)-1,n.$set(n.tabData,e,r)):(uni.showToast({title:"\u70b9\u8d5e\u6210\u529f"}),r.list[t].liked=!0,r.list[t].likedCountStr=parseInt(o.likedCountStr)+1,n.$set(n.tabData,e,r))}),100)},onAttention:function(e,t){var n=this,r=this.tabData[e];r.list[t];setTimeout((function(){uni.showToast({title:"\u5173\u6ce8\u6210\u529f"}),r.list[t].followed=!0,n.$set(n.tabData,e,r)}),100)},onTouchstart:function(e){uni.$emit("videoProgress",{progress:1})},onTouchmove:function(e){var t=e.changedTouches[0].screenX;uni.$emit("videoProgress",{progress:1,progressValue:t/this.screenWidth})},onTouchcancel:function(e){this.progressValue=e.changedTouches[0].screenX/this.screenWidth,uni.$emit("videoProgress",{progress:0})},onTouchend:function(e){this.progressValue=e.changedTouches[0].screenX/this.screenWidth,uni.$emit("videoProgress",{progress:0})},onCloseGood:function(e,t){var n=this.tabData[e];n.list[t].goodClose=!1,this.$set(this.tabData,e,n)}}),onHide:function(){this.setVideoPlayId("")},onUnload:function(){},onPullDownRefresh:function(){},onReachBottom:function(){}};t.default=u},function(e,t){e.exports={top_mask:{position:"fixed",left:"0rpx",top:"0rpx",right:"0rpx",height:"300rpx",width:"750rpx",backgroundImage:"linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0))"},nav_operating_box:{position:"fixed",left:0,right:0,height:"88rpx",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingTop:0,paddingRight:"30rpx",paddingBottom:0,paddingLeft:"30rpx"},icon_live:{width:"48rpx",height:"48rpx"},icon_search:{width:"36rpx",height:"36rpx"},nav_tab_box:{flexDirection:"row"},nav_tab_item:{paddingTop:0,paddingRight:"30rpx",paddingBottom:0,paddingLeft:"30rpx",alignItems:"center"},nav_tab_item_text:{color:"#FFFFFF",opacity:.6,fontSize:"34rpx"},nav_tab_item_text_line:{width:"40rpx",height:"6rpx",backgroundColor:"#ffffff",borderRadius:"3rpx",marginTop:"10rpx"},nav_tab_active:{opacity:1},page:{backgroundColor:"#1a1b20",width:"750rpx",position:"relative"},progress_drag:{position:"fixed",bottom:"0rpx",left:0,width:"750rpx",paddingTop:"15rpx",paddingRight:0,paddingBottom:"15rpx",paddingLeft:0,zIndex:50},swiper_box:{width:"750rpx",overflow:"hidden"},swiper_content_box:{width:"1500rpx",flexDirection:"row"},swiper_container:{width:"750rpx",position:"relative"},swiper_item:{position:"absolute",top:"1504rpx",left:0,width:"750rpx",height:100},video_file:{width:"750rpx",height:100},content_bottom_box:{position:"absolute",bottom:"0rpx",width:"750rpx",paddingTop:0,paddingRight:"0rpx",paddingBottom:"160rpx",paddingLeft:"0rpx",backgroundImage:"linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7))",alignItems:"flex-start",zIndex:1},content_goods_info_box:{paddingTop:"12rpx",paddingRight:"32rpx",paddingBottom:"12rpx",paddingLeft:"12rpx",position:"relative",backgroundColor:"rgba(0,0,0,0.4)",borderRadius:"8rpx",flexDirection:"row",marginLeft:"20rpx"},content_goods_info_image:{width:"120rpx",height:"120rpx"},content_goods_info:{flexDirection:"column",justifyContent:"space-between",marginLeft:"12rpx",width:"250rpx"},content_goods_close:{position:"absolute",width:"16rpx",height:"16rpx",top:"12rpx",right:"12rpx"},content_goods_info_name:{fontSize:"24rpx",color:"#ffffff",marginLeft:"12rpx",lines:2,overflow:"hidden",textOverflow:"ellipsis"},content_goods_info_price_box:{flexDirection:"row"},content_goods_info_price:{fontSize:"24rpx",color:"#ff403f"},content_goods_info_market_price:{fontSize:"24rpx",color:"#ffffff",opacity:.6,marginLeft:"12rpx"},content_user_name:{fontSize:"36rpx",color:"#ffffff",fontWeight:"bold",marginTop:"32rpx",marginRight:"182rpx",marginBottom:0,marginLeft:"32rpx"},content_description:{fontSize:"28rpx",color:"#ffffff",marginTop:"12rpx",marginRight:"182rpx",marginBottom:0,marginLeft:"32rpx"},content_music_box:{marginTop:"12rpx",marginRight:"182rpx",marginBottom:0,marginLeft:"32rpx",alignItems:"center",flexDirection:"row"},icon_music:{width:"22rpx",height:"23rpx"},content_music_name:{marginLeft:"12rpx",fontSize:"28rpx",color:"#ffffff"},right_suspended:{position:"absolute",right:"30rpx",bottom:"200rpx",alignItems:"center",zIndex:5},suspended_user_info:{position:"relative",paddingBottom:"20rpx"},suspended_user_info_image:{width:"80rpx",height:"80rpx",borderWidth:"2rpx",borderStyle:"solid",borderColor:"#ffffff",borderRadius:50},suspended_user_info_icon:{width:"40rpx",height:"40rpx",position:"absolute",bottom:"0rpx",left:"20rpx"},suspended_features_item:{position:"relative",marginTop:"60rpx",backgroundColor:"rgba(0,0,0,0)",flexDirection:"column",alignItems:"center"},suspended_features_icon:{width:"48rpx",height:"48rpx"},suspended_features_text:{marginTop:"12rpx",fontSize:"28rpx",color:"#ffffff",lineHeight:"30rpx"},suspended_features_dot:{fontSize:"20rpx",color:"#ffffff",position:"absolute",top:"0rpx",left:50,transform:"translateX(-50%)",height:"24rpx",backgroundColor:"#FF0000",borderRadius:"12rpx",lineHeight:"24rpx",paddingTop:0,paddingRight:"9rpx",paddingBottom:0,paddingLeft:"9rpx"},"@VERSION":2}},,,,,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return r}));var r={directionSwiper:n(79).default,shortVideo:n(80).default,navigationVideo:n(81).default},o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true"}},[n("view",{staticClass:["page"]},[n("direction-swiper",{ref:"directionSwiper",style:{height:e.screenHeight+"px"},attrs:{list:e.tabData,current:e.swiperIndex},on:{changeX:e.onChangeX,changeY:e.onChangeY},scopedSlots:e._u([{key:"default",fn:function(t){t.item;var r=t.childItem,o=t.index,i=t.childIndex;return[n("short-video",{attrs:{objId:r.objId,src:r.url,poster:r.img,progressBottom:r.progressBottom,screenHeight:r.screenHeight,index:i}}),n("view",{staticClass:["content_bottom_box"]},[r.goodsId&&r.goodClose?n("view",{staticClass:["content_goods_info_box"]},[n("u-image",{staticClass:["content_goods_info_image"],attrs:{src:r.goodsHeadImg,mode:"aspectFill"}}),n("view",{staticClass:["content_goods_info"]},[n("u-text",{staticClass:["content_goods_info_name"],appendAsTree:!0,attrs:{append:"tree"}},[e._v(e._s(r.goodsTitle))]),n("view",{staticClass:["content_goods_info_price_box"]},[n("u-text",{staticClass:["content_goods_info_price"],appendAsTree:!0,attrs:{append:"tree"}},[e._v(e._s(r.goodsPrice))]),r.goodsPriceShop?n("u-text",{staticClass:["content_goods_info_market_price"],appendAsTree:!0,attrs:{append:"tree"}},[e._v(e._s(r.goodsPriceShop))]):e._e()])]),n("u-image",{staticClass:["content_goods_close"],attrs:{src:"../static/demo/ic_close_white.png",mode:"aspectFit"},on:{click:function(t){e.onCloseGood(o,i)}}})],1):e._e(),n("u-text",{staticClass:["content_user_name"],appendAsTree:!0,attrs:{append:"tree"}},[e._v(e._s(r.anchorName))]),n("u-text",{staticClass:["content_description"],appendAsTree:!0,attrs:{append:"tree"}},[e._v(e._s(r.title))]),n("view",{style:{height:e.bottomBlackLineHeight+"rpx"}})]),n("view",{staticClass:["right_suspended"]},[n("view",{staticClass:["suspended_user_info"]},[n("u-image",{staticClass:["suspended_user_info_image"],attrs:{src:r.anchorHeadImg,mode:"aspectFill"},on:{click:function(t){e.onPageJump("/pagesVideo/mainPage?objId="+r.anchorId)}}}),r.followed?e._e():n("u-image",{staticClass:["suspended_user_info_icon"],attrs:{src:"../static/demo/ic_attention.png",mode:"aspectFit"},on:{click:function(t){e.onAttention(o,i)}}})],1),n("view",{staticClass:["suspended_features_item"],on:{click:function(t){e.onLike(o,i)}}},[r.liked?n("u-image",{staticClass:["suspended_features_icon"],attrs:{src:"../static/demo/ic_video_liked.png",mode:"aspectFit"}}):n("u-image",{staticClass:["suspended_features_icon"],attrs:{src:"../static/demo/ic_video_like.png",mode:"aspectFit"}}),r.likedCountStr&&"0"!=r.likedCountStr?n("u-text",{staticClass:["suspended_features_text"],appendAsTree:!0,attrs:{append:"tree"}},[e._v(e._s(r.likedCountStr))]):e._e(),n("u-text",{staticClass:["suspended_features_text"],appendAsTree:!0,attrs:{append:"tree"}},[e._v("\u70b9\u8d5e")])],1),n("view",{staticClass:["suspended_features_item"],on:{click:function(t){e.onCommentShow(r)}}},[n("u-image",{staticClass:["suspended_features_icon"],attrs:{src:"../static/demo/ic_video_comment.png",mode:"aspectFit"}}),n("u-text",{staticClass:["suspended_features_text"],appendAsTree:!0,attrs:{append:"tree"}},[e._v("\u8bc4\u8bba")])],1),n("view",{staticClass:["suspended_features_item"],on:{click:function(t){e.onCollect(o,i)}}},[r.collected?n("u-image",{staticClass:["suspended_features_icon"],attrs:{src:"../static/demo/ic_video_collected.png",mode:"aspectFit"}}):n("u-image",{staticClass:["suspended_features_icon"],attrs:{src:"../static/demo/ic_video_collection.png",mode:"aspectFit"}}),n("u-text",{staticClass:["suspended_features_text"],appendAsTree:!0,attrs:{append:"tree"}},[e._v("\u6536\u85cf")])],1),n("view",{staticClass:["suspended_features_item"]},[n("u-image",{staticClass:["suspended_features_icon"],attrs:{src:"../static/demo/ic_video_share.png",mode:"aspectFit"}}),n("u-text",{staticClass:["suspended_features_text"],appendAsTree:!0,attrs:{append:"tree"}},[e._v("\u8f6c\u53d1")])],1)])]}}])}),n("view",{staticClass:["top_mask"]}),n("view",{staticClass:["nav_operating_box"],style:{top:e.statusBarHeight+10+"px"}},[n("view",{staticClass:["nav_tab_box"]},e._l(e.tabData,(function(t,r){return n("view",{key:r,staticClass:["nav_tab_item"]},[n("u-text",{staticClass:["nav_tab_item_text"],class:[r==e.swiperIndex?"nav_tab_active":""],appendAsTree:!0,attrs:{append:"tree"},on:{click:function(t){e.onTypeSelect(r)}}},[e._v(e._s(t.title))]),r==e.swiperIndex?n("view",{staticClass:["nav_tab_item_text_line"]}):e._e()])})),0),n("u-image",{staticClass:["icon_search"],attrs:{src:"../static/demo/ic_search_white.png",mode:"aspectFit"}})],1),n("navigation-video",{attrs:{bottomBlackLineHeight:e.bottomBlackLineHeight}}),n("view",{staticClass:["progress_drag"],style:{bottom:e.progressBottom-6+"rpx"},on:{touchstart:e.onTouchstart,touchmove:e.onTouchmove,touchcancel:e.onTouchcancel,touchend:e.onTouchend}})],1)])},i=[]},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("view",{ref:"directionSwiper",staticClass:["direction_swiper"],on:{touchstart:e.onSwiperTouchstart,touchmove:e.onSwiperTouchmove,touchcancel:e.onSwiperTouchcancel,touchend:e.onSwiperTouchend}},[n("view",{ref:"swiperContent",staticClass:["swiper_content_box"],style:{width:e.screenWidth*e.tabData.length+"px",height:e.screenHeight+"px",transform:"translateX("+e.translateX+"px)",transition:"transform "+e.animationTime+"ms ease"}},e._l(e.tabData,(function(t,r){return n("view",{key:r,ref:"swiperContainer"+t.key,refInFor:!0,staticClass:["swiper_container"],style:{width:e.screenWidth+"px",height:e.screenHeight*(t.list.length||1)+"px",transform:"translateY("+e.swiperData[r].translateY+"px)",transition:"transform "+e.animationTime+"ms ease"}},[t.list&&t.list.length>0?n("view",{style:{width:e.screenWidth+"px",height:e.screenHeight*(t.list.length||1)+"px"}},e._l(t.list,(function(o,i){return Math.abs(e.swiperData[e.swiperIndex].swiperItemIndex-i)<3?n("view",{key:i,staticClass:["swiper_item"],style:{top:i*e.screenHeight+"px",width:e.screenWidth+"px",height:e.screenHeight+"px"}},[e._t("default",null,{item:t,childItem:o,index:r,childIndex:i})],2):e._e()})),0):n("view",{staticClass:["swiper_empty"],style:{width:e.screenWidth+"px",height:e.screenHeight+"px"}},[n("u-image",{staticClass:["swiper_empty_image"],attrs:{src:"http://qn.kemean.cn/upload/202104/12/1618198729835lgteuvym.png",mode:"aspectFit"}}),n("u-text",{staticClass:["swiper_empty_text"],appendAsTree:!0,attrs:{append:"tree"}},[e._v(e._s(t.emptyText||"\u6682\u65e0\u6570\u636e"))])],1)])})),0)])},o=[]},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("view",{staticClass:["video_box"],style:{height:e.screenHeight+"px"}},[n("u-video",{ref:"video_"+e.objId,staticClass:["video_file"],style:"height: "+e.screenHeight+"px",attrs:{id:"video_"+e.objId,src:e.src,poster:e.poster,loop:!0,objectFit:"contain",showPlayBtn:!1,showCenterPlayBtn:!1,controls:!1,enableProgressGesture:!1,autoplay:e.videoPlayId==e.objId},on:{timeupdate:e.onScheduleChange,waiting:e.onWaiting,error:e.onError}}),n("view",{staticClass:["play_btn"],on:{click:e.onPlay}},[1e3==e.playState?n("u-image",{staticClass:["icon_play"],attrs:{src:"http://qn.kemean.cn/upload/202103/08/1615183536616rn7yfe5g.png",mode:"aspectFit"}}):e._e()],1),n("view",{staticClass:["play_schedule"],style:{bottom:e.progressBottom+"rpx"}},[n("view",{staticClass:["schedule_bg"]}),n("view",{staticClass:["schedule"],style:{width:e.schedule+"rpx"}}),e.progressDrag?n("view",{staticClass:["progress_drag_dot"]}):e._e()])],1)},o=[]},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("view",{staticClass:["footer_box"],class:{footer_bg:e.bg},style:{paddingBottom:e.bottomBlackLineHeight+"rpx"}},e._l(e.navigationList,(function(t,r){return n("view",{key:r,staticClass:["footer_item"],on:{click:function(n){e.onPageJump(t)}}},[n("u-text",{staticClass:["footer_item_text"],class:[t.pagePath==e.path?"footer_item_text_active":""],appendAsTree:!0,attrs:{append:"tree"}},[e._v(e._s(t.text))])])})),0)},o=[]},,,function(e,t,n){"use strict";n.r(t);var r=n(45),o=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t.default=o.a},function(e,t,n){"use strict";n.r(t);var r=n(48),o=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t.default=o.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onLogin=function(){var e=arguments.length>1?arguments[1]:void 0;if(a){a=!1;var t;uni.login({provider:t,success:function(n){"login:ok"==n.errMsg&&uni.getUserInfo({provider:t,success:function(t){var i={wxSmallCode:n.code,iv:t.iv,encryptedData:t.encryptedData};r.default.state.chatScenesInfo.invite&&(i.invite=r.default.state.chatScenesInfo.invite),o.default.post("api/open/v1/login",i).then((function(t){a=!0,r.default.commit("setUserInfo",t),e&&e(),t.nullUserInfo?r.default.commit("setBindUserInfoShow",!0):uni.showToast({title:"\u767b\u5f55\u6210\u529f"})}),(function(e){a=!0}))}})}})}},t.judgeLogin=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"judge";if(1154==r.default.state.chatScenesInfo.scene)uni.showToast({title:"\u8bf7\u524d\u5f80\u5c0f\u7a0b\u5e8f\u4f7f\u7528\u5b8c\u6574\u670d\u52a1",icon:"none"});else{var n=r.default.state.userInfo;n.token||(n=uni.getStorageSync("userInfo")),"force"!=t&&n.token?e():n.token&&!n.phone?"force"==t?uni.navigateTo({url:"/pages/user/bindPhone"}):uni.showModal({title:"\u63d0\u793a",content:"\u60a8\u8fd8\u672a\u7ed1\u5b9a\u624b\u673a\u53f7\uff0c\u8bf7\u5148\u7ed1\u5b9a~",confirmText:"\u53bb\u7ed1\u5b9a",cancelText:"\u518d\u901b\u4f1a",success:function(e){e.confirm&&uni.navigateTo({url:"/pages/user/bindPhone"})}}):uni.showModal({title:"\u767b\u5f55\u63d0\u793a",content:"\u6b64\u65f6\u6b64\u523b\u9700\u8981\u60a8\u767b\u5f55\u5594~",confirmText:"\u53bb\u767b\u5f55",cancelText:"\u518d\u901b\u4f1a",success:function(e){e.confirm&&uni.navigateTo({url:"/pages/user/login"})}})}};var r=i(n(16)),o=i(n(9));i(n(18));function i(e){return e&&e.__esModule?e:{default:e}}var a=!0},function(e,t,n){"use strict";n.r(t);var r=n(51),o=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t.default=o.a},function(e,t,n){"use strict";n.r(t);var r=n(54),o=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t.default=o.a},,,,function(e,t,n){"use strict";n.r(t);n(11),n(13);var r=n(37);r.default.mpType="page",r.default.route="pages/shortVideo",r.default.el="#root",new Vue(r.default)},function(e,t,n){"use strict";n.r(t);var r=n(65),o=n(43);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);var a=n(0);var s=Object(a.a)(o.default,r.b,r.c,!1,null,"c0a7fc06","0e25dfcf",!1,r.a,void 0);(function(e){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(n(70).default,this.options.style):Object.assign(this.options.style,n(70).default)}).call(s),t.default=s.exports},function(e,t,n){"use strict";n.r(t);var r=n(66),o=n(46);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);var a=n(0);var s=Object(a.a)(o.default,r.b,r.c,!1,null,"7a5431d4","29bfbd2a",!1,r.a,void 0);(function(e){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(n(71).default,this.options.style):Object.assign(this.options.style,n(71).default)}).call(s),t.default=s.exports},function(e,t,n){"use strict";n.r(t);var r=n(67),o=n(49);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);var a=n(0);var s=Object(a.a)(o.default,r.b,r.c,!1,null,"24b7c504","bc259162",!1,r.a,void 0);(function(e){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(n(73).default,this.options.style):Object.assign(this.options.style,n(73).default)}).call(s),t.default=s.exports},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.getAppWxLatLon=t.saveVideo=t.saveImg=t.clickDateDiff=t.checkIdCard=void 0;var r,o=n(83),i=(r=n(17))&&r.__esModule?r:{default:r};t.checkIdCard=function(e){var t=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2],n=[11,12,13,14,15,21,22,23,31,32,33,34,35,36,37,41,42,43,44,45,46,50,51,52,53,54,61,62,63,64,65,71,81,82,91],r=0;if(18==e.length&&(r+=1),r>=1)for(var o=e.substr(0,2),i=0;i<n.length;i++)n[i]==o&&(r+=1);if(r>=2){var a=parseFloat(e.substr(6,4)),s=parseFloat(e.substr(10,2)),u=parseFloat(e.substr(12,2)),c=new Date(a,s-1,u),l=new Date;1900<=a&&a<=l.getFullYear()&&s==c.getMonth()+1&&u==c.getDate()&&(r+=1)}if(r>=3){for(var p=e.split(""),d=0,f=0;f<t.length;f++)d+=t[f]*p[f];[1,0,"X",9,8,7,6,5,4,3,2][d%11]==p[17].toUpperCase()&&(r+=1)}return 4==r};var a=function(e){var t=e;"string"==typeof e&&(t=new Date(e.replace(/-/g,"/")).getTime());var n=864e5,r=(new Date).getTime(),o=parseInt(r)-parseInt(t);if(!(o<0)){var i=o/2592e6,a=o/(7*n),s=o/n,u=o/36e5,c=o/6e4;return i>=1?parseInt(i)+"\u6708\u524d":a>=1?parseInt(a)+"\u5468\u524d":s>=1?parseInt(s)+"\u5929\u524d":u>=1?parseInt(u)+"\u5c0f\u65f6\u524d":c>=1?parseInt(c)+"\u5206\u949f\u524d":"\u521a\u521a"}};t.clickDateDiff=a,Date.prototype.format=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"yyyy-MM-dd hh:mm:ss",t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var n in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[n]:("00"+t[n]).substr((""+t[n]).length)));return e};function s(e){setTimeout((function(){uni.showToast(e)}),500)}t.saveImg=function(e,t){e?(uni.showLoading({title:"\u6b63\u5728\u4e0b\u8f7d"}),uni.saveImageToPhotosAlbum({filePath:e,success:function(){uni.hideLoading(),t&&t(),uni.showToast({title:"\u4fdd\u5b58\u6210\u529f"})},fail:function(e){uni.hideLoading(),uni.showToast({title:"\u4e0b\u8f7d\u5931\u8d25\uff0c\u9519\u8bef\u539f\u56e0\uff1a"+e.errMsg,icon:"none"})}})):uni.showToast({title:"\u672a\u627e\u5230\u56fe\u7247",icon:"none"})};t.saveVideo=function(e,t){e?(uni.showLoading({title:"\u6b63\u5728\u4e0b\u8f7d"}),uni.saveVideoToPhotosAlbum({filePath:e,success:function(){uni.hideLoading(),t&&t(),s({title:"\u4fdd\u5b58\u6210\u529f"})},fail:function(e){uni.hideLoading(),s({title:"\u4e0b\u8f7d\u5931\u8d25\uff0c\u9519\u8bef\u539f\u56e0\uff1a"+e.errMsg,icon:"none"})}})):s({title:"\u672a\u627e\u5230\u89c6\u9891",icon:"none"})};t.getAppWxLatLon=function(t,n){(0,o.judgePermission)("location",(function(r){1==r&&uni.getLocation({type:"gcj02",success:function(e){t(e)},fail:function(t){e("log","\u4f4d\u7f6e\u4fe1\u606f\u9519\u8bef",t," at plugins/utils.js:537"),n("\u4f4d\u7f6e\u4fe1\u606f\u83b7\u53d6\u5931\u8d25")}})}))},i.default.filter("money",(function(t){if(e("log",t," at plugins/utils.js:548"),t){var n=Math.round(100*parseFloat(t))/100,r=n.toString().split(".");return 1==r.length?n=n.toString()+".00":r.length>1?(r[1].length<2&&(n=n.toString()+"0"),n):n}return"0.00"})),i.default.filter("dateDiff",(function(e){return e?a(e):""})),i.default.filter("timeFormat",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd hh:mm:ss";if(!e)return"";if("string"==typeof e){var n=e.replace(/-/g,"/");return new Date(n).format(t)}return"number"==typeof e?new Date(e).format(t):void 0})),uni.showModal=function(e){var t=Object.assign({title:"\u63d0\u793a",content:"\u81ea\u5b9a\u4e49\u5185\u5bb9",align:"center",cancelText:"\u53d6\u6d88",cancelColor:"#8F8F8F",confirmText:"\u786e\u5b9a",confirmColor:"#1C79D6",showCancel:!0},e),n=plus.screen.resolutionWidth,r=plus.screen.resolutionHeight,o=.8*n,i=parseInt(o-40),a=function(e,t){for(var n=e.split(""),r=n.length,o=0,i=0,a=[],s=0,u=0;u<r;u++)/[\u4e00-\u9fa5]|[\uFE30-\uFFA0]/g.test(n[u])?s>0?i+16+8*s>t?(a.push({type:"text",content:e.substring(o,u)}),o=u,i=16,s=0):(i+=16+8*s,s=0):i+16>t?(a.push({type:"text",content:e.substring(o,u)}),o=u,i=16):i+=16:/\n/g.test(n[u])?(a.push({type:"break",content:e.substring(o,u)}),o=u+1,i=0,s=0):"\\"==n[u]&&"n"==n[u+1]?(a.push({type:"break",content:e.substring(o,u)}),o=u+2,i=0,s=0):/[a-zA-Z0-9]/g.test(n[u])?i+8*(s+=1)>t&&(a.push({type:"text",content:e.substring(o,u+1-s)}),o=u+1-s,i=8*s,s=0):i+8>t?(a.push({type:"text",content:e.substring(o,u)}),o=u,i=8):i+=8;return o<r&&a.push({type:"text",content:e.substring(o,r)}),a}(t.content,i),s=168,u=new plus.nativeObj.View("maskLayer",{top:"0px",left:"0px",height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0.5)"}),c=[{tag:"font",id:"title",text:t.title,textStyles:{size:"18px",color:"#333",weight:"bold",whiteSpace:"normal"},position:{top:"20px",left:"20px",width:i+"px",height:"30px"}}],l=65;a.forEach((function(e,n){n>0&&(s+=22,l+=22),c.push({tag:"font",id:"content"+n+1,text:e.content,textStyles:{size:"16px",color:"#333",lineSpacing:"50%",align:t.align},position:{top:l+"px",left:"20px",width:i+"px",height:"22px"}}),"break"==e.type&&(l+=10,s+=10)})),c.push({tag:"rect",id:"lineTop",rectStyles:{color:"#f1f1f1"},position:{top:l+50+"px",left:"0px",width:"100%",height:"1px"}}),t.showCancel?(c.push({tag:"rect",id:"line",rectStyles:{color:"#f1f1f1"},position:{top:l+50+"px",left:o/2+"px",width:"1px",height:"50px"}}),c.push({tag:"font",id:"cancelText",text:t.cancelText,textStyles:{size:"16px",color:t.cancelColor},position:{top:l+50+"px",left:"0px",width:o/2+"px",height:"50px"}}),c.push({tag:"font",id:"confirmText",text:t.confirmText,textStyles:{size:"16px",color:t.confirmColor},position:{top:l+50+"px",left:o/2+"px",width:o/2+"px",height:"50px"}})):c.push({tag:"font",id:"confirmText",text:t.confirmText,textStyles:{size:"16px",color:t.confirmColor},position:{top:l+50+"px",left:"0px",width:"100%",height:"50px"}});var p=new plus.nativeObj.View("popupView",{tag:"rect",top:(r-s)/2+"px",left:"10%",height:s+"px",width:"80%"});p.drawRect({color:"#FFFFFF",radius:"8px"},{top:"0px",height:s+"px"}),p.draw(c),p.addEventListener("click",(function(n){t.showCancel?n.clientY>s-50&&n.clientX<o/2?(u.close(),p.close(),e.success&&e.success({confirm:!1,cancel:!0})):n.clientY>s-50&&n.clientX>o/2&&(u.close(),p.close(),e.success&&e.success({confirm:!0,cancel:!1})):n.clientY>s-50&&(u.close(),p.close(),e.success&&e.success({confirm:!0,cancel:!1}))})),u.show(),p.show(),e.complete&&e.complete()}}).call(this,n(1).default)},function(e,t,n){(function(t){var n;function r(e,n){return new Promise((function(r,o){plus.android.requestPermissions([e],(function(e){for(var o=0,i=0;i<e.granted.length;i++){var a=e.granted[i];t("log","\u5df2\u83b7\u53d6\u7684\u6743\u9650\uff1a"+a," at plugins/permission.js:187"),o=1}for(i=0;i<e.deniedPresent.length;i++){var s=e.deniedPresent[i];t("log","\u62d2\u7edd\u672c\u6b21\u7533\u8bf7\u7684\u6743\u9650\uff1a"+s," at plugins/permission.js:192"),o=0}for(i=0;i<e.deniedAlways.length;i++){var u=e.deniedAlways[i];t("log","\u6c38\u4e45\u62d2\u7edd\u7533\u8bf7\u7684\u6743\u9650\uff1a"+u," at plugins/permission.js:197"),o=-1}r({result:o,permissionName:n})}),(function(e){t("log","\u7533\u8bf7\u6743\u9650\u9519\u8bef\uff1a"+e.code+" = "+e.message," at plugins/permission.js:210"),r({code:e.code,message:e.message})}))}))}function o(){if(n){var e=plus.ios.import("UIApplication").sharedApplication(),t=plus.ios.import("NSURL"),r=t.URLWithString("app-settings:");e.openURL(r),plus.ios.deleteObject(r),plus.ios.deleteObject(t),plus.ios.deleteObject(e)}else{var o=plus.android.importClass("android.content.Intent"),i=plus.android.importClass("android.provider.Settings"),a=plus.android.importClass("android.net.Uri"),s=plus.android.runtimeMainActivity(),u=new o;u.setAction(i.ACTION_APPLICATION_DETAILS_SETTINGS);var c=a.fromParts("package",s.getPackageName(),null);u.setData(c),s.startActivity(u)}}n="iOS"==plus.os.name,e.exports={judgePermission:function(e,i){function a(e){i&&i(e.result),-1===e.result&&uni.showModal({title:"\u63d0\u793a",content:"\u60a8\u8fd8\u672a\u5f00\u901a"+e.permissionName+"\u6743\u9650,\u662f\u5426\u53bb\u5e94\u7528\u8bbe\u7f6e\u91cc\u5f00\u901a~",confirmText:"\u53bb\u5f00\u901a",cancelText:"\u518d\u901b\u4f1a",success:function(e){e.confirm&&o()}})}var s,u,c;"location"==e?n?a((u=plus.ios.import("CLLocationManager"),c=u.authorizationStatus(),t("log","\u5b9a\u4f4d\u6743\u9650\u5f00\u542f\uff1a"+(s=2!=c?1:0)," at plugins/permission.js:47"),plus.ios.deleteObject(u),{result:s,permissionName:"\u5b9a\u4f4d"})):r("android.permission.ACCESS_FINE_LOCATION","\u4f4d\u7f6e").then(a):"camera"==e?n?a(function(){var e=0,n=plus.ios.import("AVCaptureDevice"),r=n.authorizationStatusForMediaType("vide");return t("log","authStatus:"+r," at plugins/permission.js:91"),3==r?(e=1,t("log","\u76f8\u673a\u6743\u9650\u5df2\u7ecf\u5f00\u542f"," at plugins/permission.js:94")):t("log","\u76f8\u673a\u6743\u9650\u6ca1\u6709\u5f00\u542f"," at plugins/permission.js:96"),plus.ios.deleteObject(n),{result:e,permissionName:"\u76f8\u673a"}}()):r("android.permission.CAMERA","\u6444\u50cf\u5934").then(a):"photoLibrary"==e?n?a(function(){var e=0,n=plus.ios.import("PHPhotoLibrary"),r=n.authorizationStatus();return t("log","authStatus:"+r," at plugins/permission.js:110"),3==r?(e=1,t("log","\u76f8\u518c\u6743\u9650\u5df2\u7ecf\u5f00\u542f"," at plugins/permission.js:113")):t("log","\u76f8\u518c\u6743\u9650\u6ca1\u6709\u5f00\u542f"," at plugins/permission.js:115"),plus.ios.deleteObject(n),{result:e,permissionName:"\u76f8\u518c"}}()):r("android.permission.READ_EXTERNAL_STORAGE","\u76f8\u518c\u8bfb\u53d6").then(a):"record"==e?n?a(function(){var e=0,n=plus.ios.import("AVAudioSession"),r=n.sharedInstance().recordPermission();return t("log","permissionStatus:"+r," at plugins/permission.js:72"),1684369017==r||1970168948==r?t("log","\u9ea6\u514b\u98ce\u6743\u9650\u6ca1\u6709\u5f00\u542f"," at plugins/permission.js:74"):(e=1,t("log","\u9ea6\u514b\u98ce\u6743\u9650\u5df2\u7ecf\u5f00\u542f"," at plugins/permission.js:77")),plus.ios.deleteObject(n),{result:e,permissionName:"\u9ea6\u514b\u98ce"}}()):r("android.permission.RECORD_AUDIO","\u9ea6\u514b\u98ce").then(a):"push"==e?a(n?function(){var e=0,n=plus.ios.import("UIApplication"),r=n.sharedApplication(),o=0;if(r.currentUserNotificationSettings){var i=r.currentUserNotificationSettings();0==(o=i.plusGetAttribute("types"))?t("log","\u63a8\u9001\u6743\u9650\u6ca1\u6709\u5f00\u542f"," at plugins/permission.js:20"):(e=1,t("log","\u5df2\u7ecf\u5f00\u542f\u63a8\u9001\u529f\u80fd!"," at plugins/permission.js:23")),plus.ios.deleteObject(i)}else 0==(o=r.enabledRemoteNotificationTypes())?t("log","\u63a8\u9001\u6743\u9650\u6ca1\u6709\u5f00\u542f!"," at plugins/permission.js:29"):(e=1,t("log","\u5df2\u7ecf\u5f00\u542f\u63a8\u9001\u529f\u80fd!"," at plugins/permission.js:32")),t("log","enabledTypes2:"+o," at plugins/permission.js:34");return plus.ios.deleteObject(r),plus.ios.deleteObject(n),e}():1):"contact"==e?n?a(function(){var e=0,n=plus.ios.import("CNContactStore");return 3==n.authorizationStatusForEntityType(0)?(e=1,t("log","\u901a\u8baf\u5f55\u6743\u9650\u5df2\u7ecf\u5f00\u542f"," at plugins/permission.js:131")):t("log","\u901a\u8baf\u5f55\u6743\u9650\u6ca1\u6709\u5f00\u542f"," at plugins/permission.js:133"),plus.ios.deleteObject(n),{result:e,permissionName:"\u901a\u8baf\u5f55"}}()):r("android.permission.READ_CONTACTS","\u901a\u8baf\u5f55\u8bfb\u53d6").then(a):"calendar"==e?n?a(function(){var e=0,n=plus.ios.import("EKEventStore");return 3==n.authorizationStatusForEntityType(0)?(e=1,t("log","\u65e5\u5386\u6743\u9650\u5df2\u7ecf\u5f00\u542f"," at plugins/permission.js:149")):t("log","\u65e5\u5386\u6743\u9650\u6ca1\u6709\u5f00\u542f"," at plugins/permission.js:151"),plus.ios.deleteObject(n),{result:e,permissionName:"\u65e5\u5386"}}()):r("android.permission.READ_CALENDAR","\u65e5\u5386\u8bfb\u53d6").then(a):"memo"==e?a(n?function(){var e=0,n=plus.ios.import("EKEventStore");return 3==n.authorizationStatusForEntityType(1)?(e=1,t("log","\u5907\u5fd8\u5f55\u6743\u9650\u5df2\u7ecf\u5f00\u542f"," at plugins/permission.js:167")):t("log","\u5907\u5fd8\u5f55\u6743\u9650\u6ca1\u6709\u5f00\u542f"," at plugins/permission.js:169"),plus.ios.deleteObject(n),{result:e,permissionName:"\u5907\u5fd8\u5f55"}}():1):"call_phone"==e&&(n?a(1):r("android.permission.CALL_PHONE","\u62e8\u6253\u7535\u8bdd").then(a))},requestAndroidPermission:r,checkSystemEnableLocation:function(){if(n){var e=!1,r=plus.ios.import("CLLocationManager");e=r.locationServicesEnabled();return t("log","\u7cfb\u7edf\u5b9a\u4f4d\u5f00\u542f:"+e," at plugins/permission.js:329"),plus.ios.deleteObject(r),e}var o=plus.android.importClass("android.content.Context"),i=plus.android.importClass("android.location.LocationManager");return e=plus.android.runtimeMainActivity().getSystemService(o.LOCATION_SERVICE).isProviderEnabled(i.GPS_PROVIDER),t("log","\u7cfb\u7edf\u5b9a\u4f4d\u5f00\u542f:"+e," at plugins/permission.js:338"),e},gotoAppPermissionSetting:o}}).call(this,n(1).default)}]); |