(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{"0371":function(e,n){},"0510":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.cancelOrderHandle=l,n.takeOrderHandle=m,n.delOrderHandle=f,n.payOrderHandle=h,n.handleOrderPayResults=g,n.subscribeMessage=v,n.goOrderDetails=y;var i=c(t("a34a")),o=t("2559"),d=c(t("89cc")),a=t("183b"),r=t("8c38");function c(e){return e&&e.__esModule?e:{default:e}}function s(e,n,t,i,o,d,a){try{var r=e[d](a),c=r.value}catch(s){return void t(s)}r.done?n(c):Promise.resolve(c).then(i,o)}function u(e){return function(){var n=this,t=arguments;return new Promise((function(i,o){var d=e.apply(n,t);function a(e){s(d,i,o,a,r,"next",e)}function r(e){s(d,i,o,a,r,"throw",e)}a(void 0)}))}}function l(n){return new Promise((function(t,i){e.showModal({title:"提示",content:"确认取消该订单?",success:function(d){d.confirm?(0,o.cancelOrder)(n).then((function(n){e.showToast({title:"取消成功",icon:"success",duration:2e3}),t(n)})).catch((function(n){e.showToast({title:"取消失败",icon:"none",duration:2e3}),i(n)})):d.cancel}})}))}function m(n){return new Promise((function(t,i){(0,o.takeOrder)(n).then((function(n){e.showToast({title:"收货成功",icon:"success",duration:2e3}),t(n)})).catch((function(n){e.showToast({title:"收货失败",icon:"none",duration:2e3}),i(n)}))}))}function f(n){return new Promise((function(t,i){d.default.confirm({mes:"确认删除该订单?",opts:function(){(0,o.delOrder)(n).then((function(n){e.showToast({title:"删除成功",icon:"success",duration:2e3}),t(n)})).catch((function(n){e.showToast({title:"删除失败",icon:"none",duration:2e3}),i(n)}))}})}))}function h(e,n,t){return p.apply(this,arguments)}function p(){return p=u(i.default.mark((function n(t,d,a){return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.abrupt("return",new Promise((function(n,r){e.showLoading({title:"支付中",mask:!0}),(0,o.payOrder)(t,d,a).then(function(){var e=u(i.default.mark((function e(t){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log(t),e.next=3,g(t.data,d);case 3:n();case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()).catch((function(n){r(),e.hideLoading(),e.showToast({title:n.msg||n.response.data.msg||n.response.data.message||"订单支付失败",icon:"none",duration:2e3})}))})));case 1:case"end":return n.stop()}}),n)}))),p.apply(this,arguments)}function g(n,t,i){return new Promise((function(i,o){switch(e.hideLoading(),n.status){case"ORDER_EXIST":i();break;case"EXTEND_ORDER":e.showToast({title:n.msg,icon:"none",duration:2e3}),i(),y(n.result.orderId,t);break;case"PAY_DEFICIENCY":break;case"PAY_ERROR":e.showToast({title:n.msg,icon:"none",duration:2e3}),o(),y(n.result.orderId,t);break;case"SUCCESS":e.showToast({title:n.msg||n.payMsg,icon:"none",duration:2e3}),i(),y(n.result.orderId,t);break;case"WECHAT_H5_PAY":y(n.result.orderId,t),console.log(n),setTimeout((function(){i()}),100);break;case"WECHAT_PAY":(0,a.weappPay)(n.result.jsConfig).finally((function(){i(),y(n.result.orderId,t)})).then((function(e){v()}));break;case"WECHAT_APP_PAY":(0,a.weappPay)(n.result.jsConfig).finally((function(){i(),y(n.result.orderId,t)}));break}}))}function v(){console.log("调用订阅"),(0,o.getSubscribeTemplate)().then((function(n){e.requestSubscribeMessage({tmplIds:n.data,success:function(e){console.log(e)},fail:function(e){console.log(e)}})})).catch((function(e){}))}function y(e,n){"create"==n&&(console.log(r._router),r._router.replace({path:"/pages/order/OrderDetails/index",query:{id:e}}))}}).call(this,t("543d")["default"])},"0518":function(e,n,t){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=this.$parent;while(n){if(!n.$options||n.$options.name===e)return n;n=n.$parent}return!1}Object.defineProperty(n,"__esModule",{value:!0}),n.default=i},"11c7":function(e,n,t){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];-1==["primary","info","error","warning","success"].indexOf(e)&&(e="success");var t="";switch(e){case"primary":t="info-circle";break;case"info":t="info-circle";break;case"error":t="close-circle";break;case"warning":t="error-circle";break;case"success":t="checkmark-circle";break;default:t="checkmark-circle"}return n&&(t+="-fill"),t}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i;n.default=o},"183b":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.wechat=A,n.clearAuthStatus=$,n.oAuth=S,n.auth=j,n.toAuth=T,n.pay=I,n.openAddress=L,n.openShareAll=R,n.openShareAppMessage=F,n.openShareTimeline=N,n.wechatEvevt=q,n.ready=U,n.wxShowLocation=z,n.weappPay=void 0;var i=u(t("a34a")),o=t("0510"),d=t("8c38"),a=t("63e5"),r=u(t("93d0")),c=u(t("1aa7")),s=u(t("bac4"));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,n,t,i,o,d,a){try{var r=e[d](a),c=r.value}catch(s){return void t(s)}r.done?n(c):Promise.resolve(c).then(i,o)}function m(e){return function(){var n=this,t=arguments;return new Promise((function(i,o){var d=e.apply(n,t);function a(e){l(d,i,o,a,r,"next",e)}function r(e){l(d,i,o,a,r,"throw",e)}a(void 0)}))}}function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function h(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(t,i){e(h(h({},n),{},{success:function(e){t(e)},fail:function(e){i(e)},complete:function(e){i(e)},cancel:function(e){i(e)}}))}))}function I(e){return console.log(v),D(v.chooseWXPay,e)}function L(){return new Promise((function(e,n){q("openAddress",{}).then((function(n){e(n)})).catch((function(t){t.is_ready?t.wx.openAddress({fail:function(e){n(e)},success:function(n){e(n)}}):n(t)}))}))}function R(e){return e.type=void 0==e.type?"link":e.type,new Promise((function(n){(0,a.getWechatConfig)().then((function(t){y.signSignature({nonceStr:t.data.nonceStr,signature:t.data.signature,timestamp:t.data.timestamp}),v=y.getOriginalWx(),v.ready((function(){v.updateAppMessageShareData(e),v.updateTimelineShareData(e),n()}))}))}))}function F(e){v.updateAppMessageShareData(e),v.onMenuShareAppMessage&&v.onMenuShareAppMessage(e)}function N(e){v.updateTimelineShareData(e),v.onMenuShareTimeline&&v.onMenuShareTimeline(e)}function q(e,n){return new Promise((function(t,i){var o,d={fail:function(e){if(o)return i({is_ready:!0,wx:o});(0,a.getWechatConfig)().then((function(e){y.signSignature({nonceStr:e.data.nonceStr,signature:e.data.signature,timestamp:e.data.timestamp}),o=y.getOriginalWx(),i({is_ready:!0,wx:o})}))},success:function(e){t(e)}};Object.assign(d,n),"undefined"!==typeof v?v.ready((function(){"object"===typeof e?e.forEach((function(e){v[e]&&v[e](d)})):v[e]&&v[e](d)})):(0,a.getWechatConfig)().then((function(n){var t=WechatJSSDK(n.data);t.initialize().then((function(){v=t.getOriginalWx(),v.ready((function(){"object"===typeof e?e.forEach((function(e){v[e]&&v[e](d)})):v[e]&&v[e](d)}))}))}))}))}function U(){return new Promise((function(e){"undefined"!==typeof v?v.ready((function(){e(v)})):(0,a.getWechatConfig)().then((function(n){var t=WechatJSSDK(n.data);t.initialize().then((function(){v=t.wx,v.ready((function(){e(v)}))}))}))}))}function z(){return new Promise((function(){q("getLocation",{type:"wgs84"}).then((function(e){var n=e.latitude,t=e.longitude;r.default.set(LATITUDE,n),r.default.set(LONGITUDE,t)})).catch((function(n){n.is_ready&&n.wx.getLocation({success:function(e){var n=e.latitude,t=e.longitude;r.default.set(LATITUDE,n),r.default.set(LONGITUDE,t)},cancel:function(){r.default.remove(LATITUDE),r.default.remove(LONGITUDE),e.showToast({title:"取消获取位置",icon:"none",duration:2e3})},fail:function(){r.default.remove(LATITUDE),r.default.remove(LONGITUDE),e.showToast({title:"授权失败",icon:"none",duration:2e3})}})}))}))}}).call(this,t("543d")["default"])},"1aa7":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("66fd")),o=r(t("2f62")),d=r(t("93d0")),a=t("6e63");r(t("89cc"));function r(e){return e&&e.__esModule?e:{default:e}}i.default.use(o.default);var c=!1,s="login_status",u=new o.default.Store({state:{isAuthorizationPage:!1,isAuthorization:!1,token:d.default.get(s)||null,userInfo:d.default.get("userInfo"),$deviceType:null,location:{latitude:"",longitude:""},storeItems:d.default.get("storeItems")||null,goName:d.default.get("goName")||""},mutations:{login:function(e,n,t){e.token=n,d.default.set(s,n,t)},logout:function(e){console.log("清除数据"),e.token=null,e.userInfo=null,d.default.clearAll()},backgroundColor:function(e,n){e.color=n},updateUserInfo:function(e,n){e.userInfo=n,n?d.default.set("userInfo",n):d.default.set("userInfo",null)},updateAuthorizationPage:function(e,n){e.isAuthorizationPage=n},updateAuthorization:function(e,n){e.isAuthorization=n},updateDevicetype:function(e,n){e.$deviceType=n},setLocation:function(e,n){e.location=n},get_store:function(e,n){e.storeItems=n,d.default.set("storeItems",n)},get_to:function(e,n){e.goName=n,d.default.set("goName",n)}},actions:{getLocation:function(n,t){n.state;var i=n.commit;e.getLocation({type:"gcj02",success:function(e){console.log(e),i("setLocation",{longitude:e.longitude,latitude:e.latitude})}})},userInfo:function(n,t){var i=n.state,o=n.commit;return null===i.userInfo||t?new Promise((function(e){(0,a.getUserInfo)().then((function(n){o("updateUserInfo",n.data),e(n.data)}))})).catch((function(){e.showToast({title:"获取信息失败!",icon:"none",duration:2e3})})):Promise.resolve(i.userInfo)},getUser:function(n){var t=n.state,i=n.commit;return t.token?new Promise((function(e){(0,a.getUserInfo)().then((function(n){console.log(n),i("updateUserInfo",n.data),e(n.data)}))})).catch((function(n){console.log(n),e.showToast({title:"获取信息失败!",icon:"none",duration:2e3})})):Promise.reject("未获取到token")},changeLogin:function(e,n,t){e.state;var i=e.commit;i("login",n,t)},setUserInfo:function(e,n){e.state;var t=e.commit;t("updateUserInfo",n)},changeAuthorizationPage:function(e,n){e.state;var t=e.commit;t("updateAuthorizationPage",n)},changeAuthorization:function(e,n){e.state;var t=e.commit;t("updateAuthorization",n)}},getters:{isAuthorizationPage:function(e){return e.isAuthorizationPage},isAuthorization:function(e){return e.isAuthorization},token:function(e){return e.token},isLogin:function(e){return!!e.token},userInfo:function(e){return e.userInfo||{}},location:function(e){return e.location},storeItems:function(e){return e.storeItems},goName:function(e){return e.goName},$deviceType:function(e){return e.$deviceType}},strict:c}),l=u;n.default=l}).call(this,t("543d")["default"])},"1b89":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i={primary:"#2979ff",primaryDark:"#2b85e4",primaryDisabled:"#a0cfff",primaryLight:"#ecf5ff",bgColor:"#f3f4f6",info:"#909399",infoDark:"#82848a",infoDisabled:"#c8c9cc",infoLight:"#f4f4f5",warning:"#ff9900",warningDark:"#f29100",warningDisabled:"#fcbd71",warningLight:"#fdf6ec",error:"#fa3534",errorDark:"#dd6161",errorDisabled:"#fab6b6",errorLight:"#fef0f0",success:"#19be6b",successDark:"#18b566",successDisabled:"#71d5a1",successLight:"#dbf1e1",mainColor:"#303133",contentColor:"#606266",tipsColor:"#909399",lightColor:"#c0c4cc",borderColor:"#e4e7ed"},o=i;n.default=o},2559:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.postOrderConfirm=d,n.postOrderComputed=a,n.getOrderCoupon=r,n.createOrder=c,n.getOrderData=s,n.getOrderList=u,n.cancelOrder=l,n.orderDetail=m,n.getRefundReason=f,n.postOrderRefund=h,n.takeOrder=p,n.delOrder=g,n.express=v,n.payOrder=y,n.orderVerific=b,n.getSubscribeTemplate=_;var i=o(t("abf6"));function o(e){return e&&e.__esModule?e:{default:e}}function d(e){return i.default.post("/order/confirm",{cartId:e})}function a(e,n){return i.default.post("/order/computed/"+e,n)}function r(e){return i.default.get("/coupons/order/"+e)}function c(e,n){return i.default.post("/order/create/"+e,n||{})}function s(){return i.default.get("/order/data")}function u(e){return i.default.get("/order/list",e)}function l(e){return i.default.post("/order/cancel",{id:e})}function m(e){return i.default.get("/order/detail/"+e)}function f(){return i.default.get("/order/refund/reason")}function h(e){return i.default.post("/order/refund/verify",e)}function p(e){return i.default.post("/order/take",{uni:e})}function g(e){return i.default.post("/order/del",{uni:e})}function v(e){return i.default.post("order/express",e)}function y(e,n,t){return i.default.post("order/pay",{uni:e,paytype:n,from:t})}function b(e,n){return i.default.post("order/order_verific",{verifyCode:e,isConfirm:n})}function _(){return i.default.get("/order/getSubscribeTemplate")}},"29fa":function(e,n,t){"use strict";function i(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function o(e,n){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),Object.assign(this,{data:{},rules:n,messages:t}),this.__init()}return d(e,[{key:"__init",value:function(){this.__initMethods(),this.__initDefaults(),this.__initData()}},{key:"__initData",value:function(){this.form={},this.errorList=[]}},{key:"__initDefaults",value:function(){this.defaults={messages:{required:"这是必填字段。",email:"请输入有效的电子邮件地址。",tel:"请输入11位的手机号码。",url:"请输入有效的网址。",date:"请输入有效的日期。",dateISO:"请输入有效的日期(ISO),例如:2009-06-23,1998/01/22。",number:"请输入有效的数字。",digits:"只能输入数字。",idcard:"请输入18位的有效身份证。",equalTo:this.formatTpl("输入值必须和 {0} 相同。"),contains:this.formatTpl("输入值必须包含 {0}。"),minlength:this.formatTpl("最少要输入 {0} 个字符。"),maxlength:this.formatTpl("最多可以输入 {0} 个字符。"),rangelength:this.formatTpl("请输入长度在 {0} 到 {1} 之间的字符。"),min:this.formatTpl("请输入不小于 {0} 的数值。"),max:this.formatTpl("请输入不大于 {0} 的数值。"),range:this.formatTpl("请输入范围在 {0} 到 {1} 之间的数值。")}}}},{key:"__initMethods",value:function(){var e=this;e.methods={required:function(n,t){if(!e.depend(t))return"dependency-mismatch";if("number"===typeof n)n=n.toString();else if("boolean"===typeof n)return!0;return n.length>0},email:function(n){return e.optional(n)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(n)},tel:function(n){return e.optional(n)||/^1[34578]\d{9}$/.test(n)},url:function(n){return e.optional(n)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(n)},date:function(n){return e.optional(n)||!/Invalid|NaN/.test(new Date(n).toString())},dateISO:function(n){return e.optional(n)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(n)},number:function(n){return e.optional(n)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(n)},digits:function(n){return e.optional(n)||/^\d+$/.test(n)},idcard:function(n){return e.optional(n)||/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(n)},equalTo:function(n,t){return e.optional(n)||n===e.data[t]},contains:function(n,t){return e.optional(n)||n.indexOf(t)>=0},minlength:function(n,t){return e.optional(n)||n.length>=t},maxlength:function(n,t){return e.optional(n)||n.length<=t},rangelength:function(n,t){return e.optional(n)||n.length>=t[0]&&n.length<=t[1]},min:function(n,t){return e.optional(n)||n>=t},max:function(n,t){return e.optional(n)||n<=t},range:function(n,t){return e.optional(n)||n>=t[0]&&n<=t[1]}}}},{key:"addMethod",value:function(e,n,t){this.methods[e]=n,this.defaults.messages[e]=void 0!==t?t:this.defaults.messages[e]}},{key:"isValidMethod",value:function(e){var n=[];for(var t in this.methods)t&&"function"===typeof this.methods[t]&&n.push(t);return-1!==n.indexOf(e)}},{key:"formatTpl",value:function(e,n){var t=this;return 1===arguments.length?function(){var n=Array.from(arguments);return n.unshift(e),t.formatTpl.apply(this,n)}:(void 0===n||(arguments.length>2&&n.constructor!==Array&&(n=Array.from(arguments).slice(1)),n.constructor!==Array&&(n=[n]),n.forEach((function(n,t){e=e.replace(new RegExp("\\{"+t+"\\}","g"),(function(){return n}))}))),e)}},{key:"depend",value:function(e){switch(typeof e){case"boolean":e=e;break;case"string":e=!!e.length;break;case"function":e=e();default:e=!0}return e}},{key:"optional",value:function(e){return!this.methods.required(e)&&"dependency-mismatch"}},{key:"customMessage",value:function(e,n){var t=this.messages[e],i="object"===typeof t;if(t&&i)return t[n.method]}},{key:"defaultMessage",value:function(e,n){var t=this.customMessage(e,n)||this.defaults.messages[n.method],i=typeof t;return"undefined"===i?t="Warning: No message defined for ".concat(n.method,"."):"function"===i&&(t=t.call(this,n.parameters)),t}},{key:"formatTplAndAdd",value:function(e,n,t){var i=this.defaultMessage(e,n);this.errorList.push({param:e,msg:i,value:t})}},{key:"checkParam",value:function(e,n,t){this.data=t;var i=null!==t[e]&&void 0!==t[e]?t[e]:"";for(var o in n)if(this.isValidMethod(o)){var d={method:o,parameters:n[o]},a=this.methods[o](i,d.parameters);if("dependency-mismatch"===a)continue;if(this.setValue(e,o,a,i),!a){this.formatTplAndAdd(e,d,i);break}}}},{key:"setView",value:function(e){this.form[e]={$name:e,$valid:!0,$invalid:!1,$error:{},$success:{},$viewValue:""}}},{key:"setValue",value:function(e,n,t,i){var o=this.form[e];o.$valid=t,o.$invalid=!t,o.$error[n]=!t,o.$success[n]=t,o.$viewValue=i}},{key:"checkForm",value:function(e){for(var n in this.__initData(),this.rules)this.setView(n),this.checkParam(n,this.rules[n],e);return this.valid()}},{key:"valid",value:function(){return 0===this.size()}},{key:"size",value:function(){return this.errorList.length}},{key:"validationErrors",value:function(){return this.errorList}}]),e}(),r=a;n.default=r},"2f62":function(e,n,t){"use strict";t.r(n),function(e){ /*! * vuex v3.4.0 * (c) 2020 Evan You * @license MIT */ function i(e){var n=Number(e.version.split(".")[0]);if(n>=2)e.mixin({beforeCreate:i});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,t.call(this,e)}}function i(){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)}}t.d(n,"Store",(function(){return g})),t.d(n,"createNamespacedHelpers",(function(){return I})),t.d(n,"install",(function(){return E})),t.d(n,"mapActions",(function(){return D})),t.d(n,"mapGetters",(function(){return M})),t.d(n,"mapMutations",(function(){return C})),t.d(n,"mapState",(function(){return T}));var o="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},d=o.__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(e){d&&(e._devtoolHook=d,d.emit("vuex:init",e),d.on("vuex:travel-to-state",(function(n){e.replaceState(n)})),e.subscribe((function(e,n){d.emit("vuex:mutation",e,n)}),{prepend:!0}),e.subscribeAction((function(e,n){d.emit("vuex:action",e,n)}),{prepend:!0}))}function r(e,n){Object.keys(e).forEach((function(t){return n(e[t],t)}))}function c(e){return null!==e&&"object"===typeof e}function s(e){return e&&"function"===typeof e.then}function u(e,n){return function(){return e(n)}}var l=function(e,n){this.runtime=n,this._children=Object.create(null),this._rawModule=e;var t=e.state;this.state=("function"===typeof t?t():t)||{}},m={namespaced:{configurable:!0}};m.namespaced.get=function(){return!!this._rawModule.namespaced},l.prototype.addChild=function(e,n){this._children[e]=n},l.prototype.removeChild=function(e){delete this._children[e]},l.prototype.getChild=function(e){return this._children[e]},l.prototype.hasChild=function(e){return e in this._children},l.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)},l.prototype.forEachChild=function(e){r(this._children,e)},l.prototype.forEachGetter=function(e){this._rawModule.getters&&r(this._rawModule.getters,e)},l.prototype.forEachAction=function(e){this._rawModule.actions&&r(this._rawModule.actions,e)},l.prototype.forEachMutation=function(e){this._rawModule.mutations&&r(this._rawModule.mutations,e)},Object.defineProperties(l.prototype,m);var f=function(e){this.register([],e,!1)};function h(e,n,t){if(n.update(t),t.modules)for(var i in t.modules){if(!n.getChild(i))return void 0;h(e.concat(i),n.getChild(i),t.modules[i])}}f.prototype.get=function(e){return e.reduce((function(e,n){return e.getChild(n)}),this.root)},f.prototype.getNamespace=function(e){var n=this.root;return e.reduce((function(e,t){return n=n.getChild(t),e+(n.namespaced?t+"/":"")}),"")},f.prototype.update=function(e){h([],this.root,e)},f.prototype.register=function(e,n,t){var i=this;void 0===t&&(t=!0);var o=new l(n,t);if(0===e.length)this.root=o;else{var d=this.get(e.slice(0,-1));d.addChild(e[e.length-1],o)}n.modules&&r(n.modules,(function(n,o){i.register(e.concat(o),n,t)}))},f.prototype.unregister=function(e){var n=this.get(e.slice(0,-1)),t=e[e.length-1];n.getChild(t).runtime&&n.removeChild(t)},f.prototype.isRegistered=function(e){var n=this.get(e.slice(0,-1)),t=e[e.length-1];return n.hasChild(t)};var p;var g=function(e){var n=this;void 0===e&&(e={}),!p&&"undefined"!==typeof window&&window.Vue&&E(window.Vue);var t=e.plugins;void 0===t&&(t=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new f(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new p,this._makeLocalGettersCache=Object.create(null);var o=this,d=this,r=d.dispatch,c=d.commit;this.dispatch=function(e,n){return r.call(o,e,n)},this.commit=function(e,n,t){return c.call(o,e,n,t)},this.strict=i;var s=this._modules.root.state;w(this,s,[],this._modules.root),_(this,s),t.forEach((function(e){return e(n)}));var u=void 0!==e.devtools?e.devtools:p.config.devtools;u&&a(this)},v={state:{configurable:!0}};function y(e,n,t){return n.indexOf(e)<0&&(t&&t.prepend?n.unshift(e):n.push(e)),function(){var t=n.indexOf(e);t>-1&&n.splice(t,1)}}function b(e,n){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var t=e.state;w(e,t,[],e._modules.root,!0),_(e,t,n)}function _(e,n,t){var i=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,d={};r(o,(function(n,t){d[t]=u(n,e),Object.defineProperty(e.getters,t,{get:function(){return e._vm[t]},enumerable:!0})}));var a=p.config.silent;p.config.silent=!0,e._vm=new p({data:{$$state:n},computed:d}),p.config.silent=a,e.strict&&S(e),i&&(t&&e._withCommit((function(){i._data.$$state=null})),p.nextTick((function(){return i.$destroy()})))}function w(e,n,t,i,o){var d=!t.length,a=e._modules.getNamespace(t);if(i.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=i),!d&&!o){var r=P(n,t.slice(0,-1)),c=t[t.length-1];e._withCommit((function(){p.set(r,c,i.state)}))}var s=i.context=O(e,a,t);i.forEachMutation((function(n,t){var i=a+t;k(e,i,n,s)})),i.forEachAction((function(n,t){var i=n.root?t:a+t,o=n.handler||n;A(e,i,o,s)})),i.forEachGetter((function(n,t){var i=a+t;$(e,i,n,s)})),i.forEachChild((function(i,d){w(e,n,t.concat(d),i,o)}))}function O(e,n,t){var i=""===n,o={dispatch:i?e.dispatch:function(t,i,o){var d=j(t,i,o),a=d.payload,r=d.options,c=d.type;return r&&r.root||(c=n+c),e.dispatch(c,a)},commit:i?e.commit:function(t,i,o){var d=j(t,i,o),a=d.payload,r=d.options,c=d.type;r&&r.root||(c=n+c),e.commit(c,a,r)}};return Object.defineProperties(o,{getters:{get:i?function(){return e.getters}:function(){return x(e,n)}},state:{get:function(){return P(e.state,t)}}}),o}function x(e,n){if(!e._makeLocalGettersCache[n]){var t={},i=n.length;Object.keys(e.getters).forEach((function(o){if(o.slice(0,i)===n){var d=o.slice(i);Object.defineProperty(t,d,{get:function(){return e.getters[o]},enumerable:!0})}})),e._makeLocalGettersCache[n]=t}return e._makeLocalGettersCache[n]}function k(e,n,t,i){var o=e._mutations[n]||(e._mutations[n]=[]);o.push((function(n){t.call(e,i.state,n)}))}function A(e,n,t,i){var o=e._actions[n]||(e._actions[n]=[]);o.push((function(n){var o=t.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},n);return s(o)||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(n){throw e._devtoolHook.emit("vuex:error",n),n})):o}))}function $(e,n,t,i){e._wrappedGetters[n]||(e._wrappedGetters[n]=function(e){return t(i.state,i.getters,e.state,e.getters)})}function S(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function P(e,n){return n.reduce((function(e,n){return e[n]}),e)}function j(e,n,t){return c(e)&&e.type&&(t=n,n=e,e=e.type),{type:e,payload:n,options:t}}function E(e){p&&e===p||(p=e,i(p))}v.state.get=function(){return this._vm._data.$$state},v.state.set=function(e){0},g.prototype.commit=function(e,n,t){var i=this,o=j(e,n,t),d=o.type,a=o.payload,r=(o.options,{type:d,payload:a}),c=this._mutations[d];c&&(this._withCommit((function(){c.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(r,i.state)})))},g.prototype.dispatch=function(e,n){var t=this,i=j(e,n),o=i.type,d=i.payload,a={type:o,payload:d},r=this._actions[o];if(r){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,t.state)}))}catch(s){0}var c=r.length>1?Promise.all(r.map((function(e){return e(d)}))):r[0](d);return new Promise((function(e,n){c.then((function(n){try{t._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,t.state)}))}catch(s){0}e(n)}),(function(e){try{t._actionSubscribers.filter((function(e){return e.error})).forEach((function(n){return n.error(a,t.state,e)}))}catch(s){0}n(e)}))}))}},g.prototype.subscribe=function(e,n){return y(e,this._subscribers,n)},g.prototype.subscribeAction=function(e,n){var t="function"===typeof e?{before:e}:e;return y(t,this._actionSubscribers,n)},g.prototype.watch=function(e,n,t){var i=this;return this._watcherVM.$watch((function(){return e(i.state,i.getters)}),n,t)},g.prototype.replaceState=function(e){var n=this;this._withCommit((function(){n._vm._data.$$state=e}))},g.prototype.registerModule=function(e,n,t){void 0===t&&(t={}),"string"===typeof e&&(e=[e]),this._modules.register(e,n),w(this,this.state,e,this._modules.get(e),t.preserveState),_(this,this.state)},g.prototype.unregisterModule=function(e){var n=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var t=P(n.state,e.slice(0,-1));p.delete(t,e[e.length-1])})),b(this)},g.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},g.prototype.hotUpdate=function(e){this._modules.update(e),b(this,!0)},g.prototype._withCommit=function(e){var n=this._committing;this._committing=!0,e(),this._committing=n},Object.defineProperties(g.prototype,v);var T=F((function(e,n){var t={};return L(n).forEach((function(n){var i=n.key,o=n.val;t[i]=function(){var n=this.$store.state,t=this.$store.getters;if(e){var i=N(this.$store,"mapState",e);if(!i)return;n=i.context.state,t=i.context.getters}return"function"===typeof o?o.call(this,n,t):n[o]},t[i].vuex=!0})),t})),C=F((function(e,n){var t={};return L(n).forEach((function(n){var i=n.key,o=n.val;t[i]=function(){var n=[],t=arguments.length;while(t--)n[t]=arguments[t];var i=this.$store.commit;if(e){var d=N(this.$store,"mapMutations",e);if(!d)return;i=d.context.commit}return"function"===typeof o?o.apply(this,[i].concat(n)):i.apply(this.$store,[o].concat(n))}})),t})),M=F((function(e,n){var t={};return L(n).forEach((function(n){var i=n.key,o=n.val;o=e+o,t[i]=function(){if(!e||N(this.$store,"mapGetters",e))return this.$store.getters[o]},t[i].vuex=!0})),t})),D=F((function(e,n){var t={};return L(n).forEach((function(n){var i=n.key,o=n.val;t[i]=function(){var n=[],t=arguments.length;while(t--)n[t]=arguments[t];var i=this.$store.dispatch;if(e){var d=N(this.$store,"mapActions",e);if(!d)return;i=d.context.dispatch}return"function"===typeof o?o.apply(this,[i].concat(n)):i.apply(this.$store,[o].concat(n))}})),t})),I=function(e){return{mapState:T.bind(null,e),mapGetters:M.bind(null,e),mapMutations:C.bind(null,e),mapActions:D.bind(null,e)}};function L(e){return R(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(n){return{key:n,val:e[n]}})):[]}function R(e){return Array.isArray(e)||c(e)}function F(e){return function(n,t){return"string"!==typeof n?(t=n,n=""):"/"!==n.charAt(n.length-1)&&(n+="/"),e(n,t)}}function N(e,n,t){var i=e._modulesNamespaceMap[t];return i}var q={Store:g,install:E,version:"3.4.0",mapState:T,mapMutations:C,mapGetters:M,mapActions:D,createNamespacedHelpers:I};n["default"]=q}.call(this,t("c8ba"))},"33d6":function(e,n,t){(function(n){var t={trustTags:s("a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,ruby,rt,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video"),blockTags:s("address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section"),ignoreTags:s("area,base,canvas,embed,frame,head,iframe,input,link,map,meta,param,rp,script,source,style,textarea,title,track,wbr"),voidTags:s("area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr"),entities:{lt:"<",gt:">",quot:'"',apos:"'",ensp:" ",emsp:" ",nbsp:" ",semi:";",ndash:"–",mdash:"—",middot:"·",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",hellip:"…"},tagStyle:{address:"font-style:italic",big:"display:inline;font-size:1.2em",caption:"display:table-caption;text-align:center",center:"text-align:center",cite:"font-style:italic",dd:"margin-left:40px",mark:"background-color:yellow",pre:"font-family:monospace;white-space:pre",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",strike:"text-decoration:line-through",u:"text-decoration:underline"}},i={},o=n.getSystemInfoSync(),d=o.windowWidth,a=o.system,r=s(" ,\r,\n,\t,\f"),c=0;function s(e){for(var n=Object.create(null),t=e.split(","),i=t.length;i--;)n[t[i]]=!0;return n}function u(e,n){var i=e.indexOf("&");while(-1!==i){var o=e.indexOf(";",i+3),d=void 0;if(-1===o)break;"#"===e[i+1]?(d=parseInt(("x"===e[i+2]?"0":"")+e.substring(i+2,o)),isNaN(d)||(e=e.substr(0,i)+String.fromCharCode(d)+e.substr(o+1))):(d=e.substring(i+1,o),(t.entities[d]||"amp"===d&&n)&&(e=e.substr(0,i)+(t.entities[d]||"&")+e.substr(o+1))),i=e.indexOf("&",i+1)}return e}function l(e){this.options=e||{},this.tagStyle=Object.assign({},t.tagStyle,this.options.tagStyle),this.imgList=e.imgList||[],this.plugins=e.plugins||[],this.attrs=Object.create(null),this.stack=[],this.nodes=[],this.pre=(this.options.containerStyle||"").includes("white-space")&&this.options.containerStyle.includes("pre")?2:0}function m(e){this.handler=e}l.prototype.parse=function(e){for(var n=this.plugins.length;n--;)this.plugins[n].onUpdate&&(e=this.plugins[n].onUpdate(e,t)||e);new m(this).parse(e);while(this.stack.length)this.popNode();return this.nodes},l.prototype.expose=function(){for(var e=this.stack.length;e--;){var n=this.stack[e];if("a"===n.name||n.c)return;n.c=1}},l.prototype.hook=function(e){for(var n=this.plugins.length;n--;)if(this.plugins[n].onParse&&!1===this.plugins[n].onParse(e,this))return!1;return!0},l.prototype.getUrl=function(e){var n=this.options.domain;return"/"===e[0]?"/"===e[1]?e=(n?n.split("://")[0]:"http")+":"+e:n&&(e=n+e):!n||e.includes("data:")||e.includes("://")||(e=n+"/"+e),e},l.prototype.parseStyle=function(e){var n=e.attrs,t=(this.tagStyle[e.name]||"").split(";").concat((n.style||"").split(";")),i={},o="";n.id&&!this.xml&&(this.options.useAnchor?this.expose():"img"!==e.name&&"a"!==e.name&&"video"!==e.name&&"audio"!==e.name&&(n.id=void 0)),n.width&&(i.width=parseFloat(n.width)+(n.width.includes("%")?"%":"px"),n.width=void 0),n.height&&(i.height=parseFloat(n.height)+(n.height.includes("%")?"%":"px"),n.height=void 0);for(var a=0,c=t.length;a0||l.includes("safe"))o+=";".concat(u,":").concat(l);else if(!i[u]||l.includes("import")||!i[u].includes("import")){if(l.includes("url")){var m=l.indexOf("(")+1;if(m){while('"'===l[m]||"'"===l[m]||r[l[m]])m++;l=l.substr(0,m)+this.getUrl(l.substr(m))}}else l.includes("rpx")&&(l=l.replace(/[0-9.]+\s*rpx/g,(function(e){return parseFloat(e)*d/750+"px"})));i[u]=l}}}return e.attrs.style=o,i},l.prototype.onTagName=function(e){this.tagName=this.xml?e:e.toLowerCase(),"svg"===this.tagName&&(this.xml=(this.xml||0)+1)},l.prototype.onAttrName=function(e){e=this.xml?e:e.toLowerCase(),"data-"===e.substr(0,5)?"data-src"!==e||this.attrs.src?"img"===this.tagName||"a"===this.tagName?this.attrName=e:this.attrName=void 0:this.attrName="src":(this.attrName=e,this.attrs[e]="T")},l.prototype.onAttrVal=function(e){var n=this.attrName||"";"style"===n||"href"===n?this.attrs[n]=u(e,!0):n.includes("src")?this.attrs[n]=this.getUrl(u(e,!0)):n&&(this.attrs[n]=e)},l.prototype.onOpenTag=function(e){var n=Object.create(null);n.name=this.tagName,n.attrs=this.attrs,this.options.nodes.length&&(n.type="node"),this.attrs=Object.create(null);var o=n.attrs,a=this.stack[this.stack.length-1],r=a?a.children:this.nodes,s=this.xml?e:t.voidTags[n.name];if(i[n.name]&&(o.class=i[n.name]+(o.class?" "+o.class:"")),"embed"===n.name){var u=o.src||"";u.includes(".mp4")||u.includes(".3gp")||u.includes(".m3u8")||(o.type||"").includes("video")?n.name="video":(u.includes(".mp3")||u.includes(".wav")||u.includes(".aac")||u.includes(".m4a")||(o.type||"").includes("audio"))&&(n.name="audio"),o.autostart&&(o.autoplay="T"),o.controls="T"}if("video"!==n.name&&"audio"!==n.name||("video"!==n.name||o.id||(o.id="v"+c++),o.controls||o.autoplay||(o.controls="T"),n.src=[],o.src&&(n.src.push(o.src),o.src=void 0),this.expose()),s){if(!this.hook(n)||t.ignoreTags[n.name])return void("base"!==n.name||this.options.domain?"source"===n.name&&a&&("video"===a.name||"audio"===a.name)&&o.src&&a.src.push(o.src):this.options.domain=o.href);var l=this.parseStyle(n);if("img"===n.name){if(o.src&&(o.src.includes("webp")&&(n.webp="T"),o.src.includes("data:")&&!o["original-src"]&&(o.ignore="T"),!o.ignore||n.webp||o.src.includes("cloud://"))){for(var m=this.stack.length;m--;){var f=this.stack[m];if("a"===f.name){n.a=f.attrs;break}var h=f.attrs.style||"";if(!h.includes("flex:")||h.includes("flex:0")||h.includes("flex: 0")||l.width&&l.width.includes("%"))if(h.includes("flex")&&"100%"===l.width)for(var p=m+1;p.5?y[b].toUpperCase():y[b]}_+=y.substr(b),y=_}}this.imgList.push(y)}"inline"===l.display&&(l.display=""),o.ignore&&(l["max-width"]=l["max-width"]||"100%",o.style+=";-webkit-touch-callout:none"),parseInt(l.width)>d&&(l.height=void 0),l.width&&(l.width.includes("auto")?l.width="":(n.w="T",l.height&&!l.height.includes("auto")&&(n.h="T")))}else if("svg"===n.name)return r.push(n),this.stack.push(n),void this.popNode();for(var w in l)l[w]&&(o.style+=";".concat(w,":").concat(l[w].replace(" !important","")));o.style=o.style.substr(1)||void 0}else("pre"===n.name||(o.style||"").includes("white-space")&&o.style.includes("pre"))&&2!==this.pre&&(this.pre=n.pre=1),n.children=[],this.stack.push(n);r.push(n)},l.prototype.onCloseTag=function(e){var n;for(e=this.xml?e:e.toLowerCase(),n=this.stack.length;n--;)if(this.stack[n].name===e)break;if(-1!==n)while(this.stack.length>n)this.popNode();else if("p"===e||"br"===e){var t=this.stack.length?this.stack[this.stack.length-1].children:this.nodes;t.push({name:e,attrs:{class:i[e],style:this.tagStyle[e]}})}},l.prototype.popNode=function(){var e=this.stack.pop(),i=e.attrs,o=e.children,a=this.stack[this.stack.length-1],r=a?a.children:this.nodes;if(!this.hook(e)||t.ignoreTags[e.name])return"title"===e.name&&o.length&&"text"===o[0].type&&this.options.setTitle&&n.setNavigationBarTitle({title:o[0].text}),void r.pop();if(e.pre&&2!==this.pre){this.pre=e.pre=void 0;for(var c=this.stack.length;c--;)this.stack[c].pre&&(this.pre=1)}var s={};if("svg"===e.name){if(this.xml>1)return void this.xml--;var u="",l=i.style;return i.style="",i.xmlns="http://www.w3.org/2000/svg",function e(n){if("text"!==n.type){for(var t in u+="<"+n.name,n.attrs){var i=n.attrs[t];i&&("viewbox"===t&&(t="viewBox"),u+=" ".concat(t,'="').concat(i,'"'))}if(n.children){u+=">";for(var o=0;o"}else u+="/>"}else u+=n.text}(e),e.name="img",e.attrs={src:"data:image/svg+xml;utf8,"+u.replace(/#/g,"%23"),style:l,ignore:"T"},e.children=void 0,void(this.xml=!1)}if(i.align&&("table"===e.name?"center"===i.align?s["margin-inline-start"]=s["margin-inline-end"]="auto":s.float=i.align:s["text-align"]=i.align,i.align=void 0),"font"===e.name&&(i.color&&(s.color=i.color,i.color=void 0),i.face&&(s["font-family"]=i.face,i.face=void 0),i.size)){var m=parseInt(i.size);isNaN(m)||(m<1?m=1:m>7&&(m=7),s["font-size"]=["xx-small","x-small","small","medium","large","x-large","xx-large"][m-1]),i.size=void 0}if((i.class||"").includes("align-center")&&(s["text-align"]="center"),Object.assign(s,this.parseStyle(e)),"table"!==e.name&&parseInt(s.width)>d&&(s["max-width"]="100%",s["box-sizing"]="border-box"),t.blockTags[e.name]?e.name="div":t.trustTags[e.name]||this.xml||(e.name="span"),"a"===e.name||"ad"===e.name)this.expose();else if("ul"!==e.name&&"ol"!==e.name||!e.c){if("table"===e.name){var f=parseFloat(i.cellpadding),h=parseFloat(i.cellspacing),p=parseFloat(i.border);if(e.c&&(isNaN(f)&&(f=2),isNaN(h)&&(h=2)),p&&(i.style+=";border:"+p+"px solid gray"),e.flag&&e.c){s.display="grid",h?(s["grid-gap"]=h+"px",s.padding=h+"px"):p&&(i.style+=";border-left:0;border-top:0");var g=[],v=[],y=[],b={};(function e(n){for(var t=0;t"===this.content[this.i]||n&&">"===this.content[this.i+1])&&(e&&this.handler[e](this.content.substring(this.start,this.i)),this.i+=n?2:1,this.start=this.i,this.handler.onOpenTag(n),"script"===this.handler.tagName?(this.i=this.content.indexOf("="a"&&e<="z"||e>="A"&&e<="Z")this.start!==this.i&&this.handler.onText(this.content.substring(this.start,this.i)),this.start=++this.i,this.state=this.tagName;else if("/"===e||"!"===e||"?"===e){this.start!==this.i&&this.handler.onText(this.content.substring(this.start,this.i));var n=this.content[this.i+2];if("/"===e&&(n>="a"&&n<="z"||n>="A"&&n<="Z"))return this.i+=2,this.start=this.i,void(this.state=this.endTag);var t="--\x3e";"!"===e&&"-"===this.content[this.i+2]&&"-"===this.content[this.i+3]||(t=">"),this.i=this.content.indexOf(t,this.i),-1!==this.i&&(this.i+=t.length,this.start=this.i)}else this.i++}else this.start"===e||"/"===e){if(this.handler.onCloseTag(this.content.substring(this.start,this.i)),">"!==e&&(this.i=this.content.indexOf(">",this.i),-1===this.i))return;this.start=++this.i,this.state=this.text}else this.i++},e.exports=l}).call(this,t("543d")["default"])},"35f0":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(t("9716"));function o(e){return e&&e.__esModule?e:{default:e}}var d={top:"top",bottom:"bottom",center:"center",message:"top",dialog:"center",share:"bottom"},a={data:function(){return{config:d}},mixins:[i.default]};n.default=a},"3f75":function(e,n,t){"use strict";function i(e,n){var t=this.$parent;while(t)if(t.$options.name!==e)t=t.$parent;else{var i=function(){var e={};if(Array.isArray(n))n.map((function(n){e[n]=t[n]?t[n]:""}));else for(var i in n)Array.isArray(n[i])?n[i].length?e[i]=n[i]:e[i]=t[i]:n[i].constructor===Object?Object.keys(n[i]).length?e[i]=n[i]:e[i]=t[i]:e[i]=n[i]||!1===n[i]?n[i]:t[i];return{v:e}}();if("object"===typeof i)return i.v}return{}}Object.defineProperty(n,"__esModule",{value:!0}),n.default=i},"415e":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i="1.8.3",o={v:i,version:i,type:["primary","success","info","error","warning"]};n.default=o},4227:function(e,n,t){"use strict";var i;function o(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];t?i||(i=!0,"function"===typeof e&&e(),setTimeout((function(){i=!1}),n)):i||(i=!0,setTimeout((function(){i=!1,"function"===typeof e&&e()}),n))}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var d=o;n.default=d},4362:function(e,n,t){n.nextTick=function(e){var n=Array.prototype.slice.call(arguments);n.shift(),setTimeout((function(){e.apply(null,n)}),0)},n.platform=n.arch=n.execPath=n.title="browser",n.pid=1,n.browser=!0,n.env={},n.argv=[],n.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,i="/";n.cwd=function(){return i},n.chdir=function(n){e||(e=t("df7c")),i=e.resolve(n,i)}}(),n.exit=n.kill=n.umask=n.dlopen=n.uptime=n.memoryUsage=n.uvCounters=function(){},n.features={}},"49b1":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(t("f8d6"));function o(e){return e&&e.__esModule?e:{default:e}}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";e||(e=Number(new Date)),10==e.toString().length&&(e*=1e3);var t=+new Date(Number(e)),o=(Number(new Date)-t)/1e3,d="";switch(!0){case o<300:d="刚刚";break;case o>=300&&o<3600:d=parseInt(o/60)+"分钟前";break;case o>=3600&&o<86400:d=parseInt(o/3600)+"小时前";break;case o>=86400&&o<2592e3:d=parseInt(o/86400)+"天前";break;default:d=!1===n?o>=2592e3&&o<31536e3?parseInt(o/2592e3)+"个月前":parseInt(o/31536e3)+"年前":(0,i.default)(t,n)}return d}var a=d;n.default=a},"4a6f":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i={data:function(){return{disabled:!1,text:"获取验证码"}},methods:{sendCode:function(){var e=this;if(!this.disabled){this.disabled=!0;var n=60;this.text="剩余 "+n+"s";var t=setInterval((function(){n-=1,n<0&&clearInterval(t),e.text="剩余 "+n+"s",e.text<"剩余 0s"&&(e.disabled=!1,e.text="重新获取")}),1e3)}}}};n.default=i},"4fd8":function(e,n,t){"use strict";(function(e){function t(){return t=Object.assign||function(e){for(var n=1;n1?n-1:0),i=1;i=d)return e;switch(e){case"%s":return String(t[o++]);case"%d":return Number(t[o++]);case"%j":try{return JSON.stringify(t[o++])}catch(n){return"[Circular]"}break;default:return e}}));return a}return e}function h(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}function p(e,n){return void 0===e||null===e||(!("array"!==n||!Array.isArray(e)||e.length)||!(!h(n)||"string"!==typeof e||e))}function g(e,n,t){var i=[],o=0,d=e.length;function a(e){i.push.apply(i,e||[]),o++,o===d&&t(i)}e.forEach((function(e){n(e,a)}))}function v(e,n,t){var i=0,o=e.length;function d(a){if(a&&a.length)t(a);else{var r=i;i+=1,r()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},P={integer:function(e){return P.number(e)&&parseInt(e,10)===e},float:function(e){return P.number(e)&&!P.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(n){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===typeof e&&!P.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match(S.email)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(S.url)},hex:function(e){return"string"===typeof e&&!!e.match(S.hex)}},j=function(e,n,t,i,o){if(e.required&&void 0===n)A(e,n,t,i,o);else{var d=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=e.type;d.indexOf(a)>-1?P[a](n)||i.push(f(o.messages.types[a],e.fullField,e.type)):a&&typeof n!==e.type&&i.push(f(o.messages.types[a],e.fullField,e.type))}},E=function(e,n,t,i,o){var d="number"===typeof e.len,a="number"===typeof e.min,r="number"===typeof e.max,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s=n,u=null,l="number"===typeof n,m="string"===typeof n,h=Array.isArray(n);if(l?u="number":m?u="string":h&&(u="array"),!u)return!1;h&&(s=n.length),m&&(s=n.replace(c,"_").length),d?s!==e.len&&i.push(f(o.messages[u].len,e.fullField,e.len)):a&&!r&&se.max?i.push(f(o.messages[u].max,e.fullField,e.max)):a&&r&&(se.max)&&i.push(f(o.messages[u].range,e.fullField,e.min,e.max))},T="enum",C=function(e,n,t,i,o){e[T]=Array.isArray(e[T])?e[T]:[],-1===e[T].indexOf(n)&&i.push(f(o.messages[T],e.fullField,e[T].join(", ")))},M=function(e,n,t,i,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||i.push(f(o.messages.pattern.mismatch,e.fullField,n,e.pattern));else if("string"===typeof e.pattern){var d=new RegExp(e.pattern);d.test(n)||i.push(f(o.messages.pattern.mismatch,e.fullField,n,e.pattern))}},D={required:A,whitespace:$,type:j,range:E,enum:C,pattern:M},I=function(e,n,t,i,o){var d=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(p(n,"string")&&!e.required)return t();D.required(e,n,i,d,o,"string"),p(n,"string")||(D.type(e,n,i,d,o),D.range(e,n,i,d,o),D.pattern(e,n,i,d,o),!0===e.whitespace&&D.whitespace(e,n,i,d,o))}t(d)},L=function(e,n,t,i,o){var d=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(p(n)&&!e.required)return t();D.required(e,n,i,d,o),void 0!==n&&D.type(e,n,i,d,o)}t(d)},R=function(e,n,t,i,o){var d=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(""===n&&(n=void 0),p(n)&&!e.required)return t();D.required(e,n,i,d,o),void 0!==n&&(D.type(e,n,i,d,o),D.range(e,n,i,d,o))}t(d)},F=function(e,n,t,i,o){var d=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(p(n)&&!e.required)return t();D.required(e,n,i,d,o),void 0!==n&&D.type(e,n,i,d,o)}t(d)},N=function(e,n,t,i,o){var d=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(p(n)&&!e.required)return t();D.required(e,n,i,d,o),p(n)||D.type(e,n,i,d,o)}t(d)},q=function(e,n,t,i,o){var d=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(p(n)&&!e.required)return t();D.required(e,n,i,d,o),void 0!==n&&(D.type(e,n,i,d,o),D.range(e,n,i,d,o))}t(d)},U=function(e,n,t,i,o){var d=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(p(n)&&!e.required)return t();D.required(e,n,i,d,o),void 0!==n&&(D.type(e,n,i,d,o),D.range(e,n,i,d,o))}t(d)},z=function(e,n,t,i,o){var d=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if((void 0===n||null===n)&&!e.required)return t();D.required(e,n,i,d,o,"array"),void 0!==n&&null!==n&&(D.type(e,n,i,d,o),D.range(e,n,i,d,o))}t(d)},H=function(e,n,t,i,o){var d=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(p(n)&&!e.required)return t();D.required(e,n,i,d,o),void 0!==n&&D.type(e,n,i,d,o)}t(d)},V="enum",B=function(e,n,t,i,o){var d=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(p(n)&&!e.required)return t();D.required(e,n,i,d,o),void 0!==n&&D[V](e,n,i,d,o)}t(d)},G=function(e,n,t,i,o){var d=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(p(n,"string")&&!e.required)return t();D.required(e,n,i,d,o),p(n,"string")||D.pattern(e,n,i,d,o)}t(d)},W=function(e,n,t,i,o){var d=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(p(n,"date")&&!e.required)return t();var r;if(D.required(e,n,i,d,o),!p(n,"date"))r=n instanceof Date?n:new Date(n),D.type(e,r,i,d,o),r&&D.range(e,r.getTime(),i,d,o)}t(d)},J=function(e,n,t,i,o){var d=[],a=Array.isArray(n)?"array":typeof n;D.required(e,n,i,d,o,a),t(d)},Y=function(e,n,t,i,o){var d=e.type,a=[],r=e.required||!e.required&&i.hasOwnProperty(e.field);if(r){if(p(n,d)&&!e.required)return t();D.required(e,n,i,a,o,d),p(n,d)||D.type(e,n,i,a,o)}t(a)},Z=function(e,n,t,i,o){var d=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(p(n)&&!e.required)return t();D.required(e,n,i,d,o)}t(d)},K={string:I,method:L,number:R,boolean:F,regexp:N,integer:q,float:U,array:z,object:H,enum:B,pattern:G,date:W,url:Y,hex:Y,email:Y,required:J,any:Z};function X(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Q=X(),ee=function(){function e(e){this.rules=null,this._messages=Q,this.define(e)}var n=e.prototype;return n.define=function(e){var n=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(t){var i=e[t];n.rules[t]=Array.isArray(i)?i:[i]}))},n.messages=function(e){return e&&(this._messages=k(X(),e)),this._messages},n.validate=function(n,i,o){var d=this;void 0===i&&(i={}),void 0===o&&(o=function(){});var a=n,r=i,c=o;if("function"===typeof r&&(c=r,r={}),!this.rules||0===Object.keys(this.rules).length)return c&&c(null,a),Promise.resolve(a);function s(e){var n=[],t={};function i(e){var t;Array.isArray(e)?n=(t=n).concat.apply(t,e):n.push(e)}for(var o=0;oe.length)&&(n=e.length);for(var t=0,i=new Array(n);t-1},e.prototype.uniIDHasPermission=function(e){var n=b(),t=n.permission;return this.uniIDHasRole("admin")||t.indexOf(e)>-1},e.prototype.uniIDTokenValid=function(){var e=b(),n=e.tokenExpired;return n>Date.now()}}var w=Object.prototype.toString,O=Object.prototype.hasOwnProperty;function x(e){return"function"===typeof e}function k(e){return"string"===typeof e}function A(e){return"[object Object]"===w.call(e)}function $(e,n){return O.call(e,n)}function S(){}function P(e){var n=Object.create(null);return function(t){var i=n[t];return i||(n[t]=e(t))}}var j=/-(\w)/g,E=P((function(e){return e.replace(j,(function(e,n){return n?n.toUpperCase():""}))})),T=["invoke","success","fail","complete","returnValue"],C={},M={};function D(e,n){var t=n?e?e.concat(n):Array.isArray(n)?n:[n]:e;return t?I(t):t}function I(e){for(var n=[],t=0;t1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(t){if(Array.isArray(e[t])){var i=n[t];n[t]=function(n){H(e[t],n).then((function(e){return x(i)&&i(e)||e}))}}})),n}function B(e,n){var t=[];Array.isArray(C.returnValue)&&t.push.apply(t,m(C.returnValue));var i=M[e];return i&&Array.isArray(i.returnValue)&&t.push.apply(t,m(i.returnValue)),t.forEach((function(e){n=e(n)||n})),n}function G(e){var n=Object.create(null);Object.keys(C).forEach((function(e){"returnValue"!==e&&(n[e]=C[e].slice())}));var t=M[e];return t&&Object.keys(t).forEach((function(e){"returnValue"!==e&&(n[e]=(n[e]||[]).concat(t[e]))})),n}function W(e,n,t){for(var i=arguments.length,o=new Array(i>3?i-3:0),d=3;d0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length,o=new Array(i>1?i-1:0),d=1;d0&&(e.delta=t)}}}},ye={args:function(e){var n=parseInt(e.current);if(!isNaN(n)){var t=e.urls;if(Array.isArray(t)){var i=t.length;if(i)return n<0?n=0:n>=i&&(n=i-1),n>0?(e.current=t[n],e.urls=t.filter((function(e,i){return!(i2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(A(n)){var d=!0===o?n:{};for(var a in x(t)&&(t=t(n,d)||{}),n)if($(t,a)){var r=t[a];x(r)&&(r=r(n[a],n,d)),r?k(r)?d[r]=n[a]:A(r)&&(d[r.name?r.name:a]=r.value):console.warn("The '".concat(e,"' method of platform '微信小程序' does not support option '").concat(a,"'"))}else-1!==$e.indexOf(a)?x(n[a])&&(d[a]=Se(e,n[a],i)):o||(d[a]=n[a]);return d}return x(n)&&(n=Se(e,n,i)),n}function je(e,n,t){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return x(xe.returnValue)&&(n=xe.returnValue(e,n)),Pe(e,n,t,{},i)}function Ee(e,n){if($(xe,e)){var t=xe[e];return t?function(n,i){var o=t;x(t)&&(o=t(n)),n=Pe(e,n,o.args,o.returnValue);var d=[n];"undefined"!==typeof i&&d.push(i),x(o.name)?e=o.name(n):k(o.name)&&(e=o.name);var a=wx[e].apply(wx,d);return ne(e)?je(e,a,o.returnValue,ee(e)):a}:function(){console.error("Platform '微信小程序' does not support '".concat(e,"'."))}}return n}var Te=Object.create(null),Ce=["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"];function Me(e){return function(n){var t=n.fail,i=n.complete,o={errMsg:"".concat(e,":fail method '").concat(e,"' not supported")};x(t)&&t(o),x(i)&&i(o)}}Ce.forEach((function(e){Te[e]=Me(e)}));var De={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};function Ie(e){var n=e.service,t=e.success,i=e.fail,o=e.complete,d=!1;De[n]?(d={errMsg:"getProvider:ok",service:n,provider:De[n]},x(t)&&t(d)):(d={errMsg:"getProvider:fail service not found"},x(i)&&i(d)),x(o)&&o(d)}var Le=Object.freeze({__proto__:null,getProvider:Ie}),Re=function(){var e;return function(){return e||(e=new i.default),e}}();function Fe(e,n,t){return e[n].apply(e,t)}function Ne(){return Fe(Re(),"$on",Array.prototype.slice.call(arguments))}function qe(){return Fe(Re(),"$off",Array.prototype.slice.call(arguments))}function Ue(){return Fe(Re(),"$once",Array.prototype.slice.call(arguments))}function ze(){return Fe(Re(),"$emit",Array.prototype.slice.call(arguments))}var He=Object.freeze({__proto__:null,$on:Ne,$off:qe,$once:Ue,$emit:ze}),Ve=Object.freeze({__proto__:null}),Be=Page,Ge=Component,We=/:/g,Je=P((function(e){return E(e.replace(We,"-"))}));function Ye(e){if(wx.canIUse&&wx.canIUse("nextTick")){var n=e.triggerEvent;e.triggerEvent=function(t){for(var i=arguments.length,o=new Array(i>1?i-1:0),d=1;d0&&void 0!==arguments[0]?arguments[0]:{};return Ze("onLoad",e),Be(e)},Page.after=Be.after,Component=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Ze("created",e),Ge(e)});var Ke=["onPullDownRefresh","onReachBottom","onAddToFavorites","onShareTimeline","onShareAppMessage","onPageScroll","onResize","onTabItemTap"];function Xe(e,n){var t=e.$mp[e.mpType];n.forEach((function(n){$(t,n)&&(e[n]=t[n])}))}function Qe(e,n){if(!n)return!0;if(i.default.options&&Array.isArray(i.default.options[e]))return!0;if(n=n.default||n,x(n))return!!x(n.extendOptions[e])||!!(n.super&&n.super.options&&Array.isArray(n.super.options[e]));if(x(n[e]))return!0;var t=n.mixins;return Array.isArray(t)?!!t.find((function(n){return Qe(e,n)})):void 0}function en(e,n,t){n.forEach((function(n){Qe(n,t)&&(e[n]=function(e){return this.$vm&&this.$vm.__call_hook(n,e)})}))}function nn(e,n){var t;return n=n.default||n,t=x(n)?n:e.extend(n),n=t.options,[t,n]}function tn(e,n){if(Array.isArray(n)&&n.length){var t=Object.create(null);n.forEach((function(e){t[e]=!0})),e.$scopedSlots=e.$slots=t}}function on(e,n){e=(e||"").split(",");var t=e.length;1===t?n._$vueId=e[0]:2===t&&(n._$vueId=e[0],n._$vuePid=e[1])}function dn(e,n){var t=e.data||{},i=e.methods||{};if("function"===typeof t)try{t=t.call(n)}catch(o){Object({NODE_ENV:"production",VUE_APP_NAME:"zhaoshangMiniApp",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG&&console.warn("根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。",t)}else try{t=JSON.parse(JSON.stringify(t))}catch(o){}return A(t)||(t={}),Object.keys(i).forEach((function(e){-1!==n.__lifecycle_hooks__.indexOf(e)||$(t,e)||(t[e]=i[e])})),t}var an=[String,Number,Boolean,Object,Array,null];function rn(e){return function(n,t){this.$vm&&(this.$vm[e]=n)}}function cn(e,n){var t=e.behaviors,i=e.extends,o=e.mixins,d=e.props;d||(e.props=d=[]);var a=[];return Array.isArray(t)&&t.forEach((function(e){a.push(e.replace("uni://","wx".concat("://"))),"uni://form-field"===e&&(Array.isArray(d)?(d.push("name"),d.push("value")):(d.name={type:String,default:""},d.value={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),A(i)&&i.props&&a.push(n({properties:un(i.props,!0)})),Array.isArray(o)&&o.forEach((function(e){A(e)&&e.props&&a.push(n({properties:un(e.props,!0)}))})),a}function sn(e,n,t,i){return Array.isArray(n)&&1===n.length?n[0]:n}function un(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t={};return n||(t.vueId={type:String,value:""},t.generic={type:Object,value:null},t.vueSlots={type:null,value:[],observer:function(e,n){var t=Object.create(null);e.forEach((function(e){t[e]=!0})),this.setData({$slots:t})}}),Array.isArray(e)?e.forEach((function(e){t[e]={type:null,observer:rn(e)}})):A(e)&&Object.keys(e).forEach((function(n){var i=e[n];if(A(i)){var o=i.default;x(o)&&(o=o()),i.type=sn(n,i.type),t[n]={type:-1!==an.indexOf(i.type)?i.type:null,value:o,observer:rn(n)}}else{var d=sn(n,i);t[n]={type:-1!==an.indexOf(d)?d:null,observer:rn(n)}}})),t}function ln(e){try{e.mp=JSON.parse(JSON.stringify(e))}catch(n){}return e.stopPropagation=S,e.preventDefault=S,e.target=e.target||{},$(e,"detail")||(e.detail={}),$(e,"markerId")&&(e.detail="object"===typeof e.detail?e.detail:{},e.detail.markerId=e.markerId),A(e.detail)&&(e.target=Object.assign({},e.target,e.detail)),e}function mn(e,n){var t=e;return n.forEach((function(n){var i=n[0],o=n[2];if(i||"undefined"!==typeof o){var d,a=n[1],r=n[3];Number.isInteger(i)?d=i:i?"string"===typeof i&&i&&(d=0===i.indexOf("#s#")?i.substr(3):e.__get_value(i,t)):d=t,Number.isInteger(d)?t=o:a?Array.isArray(d)?t=d.find((function(n){return e.__get_value(a,n)===o})):A(d)?t=Object.keys(d).find((function(n){return e.__get_value(a,d[n])===o})):console.error("v-for 暂不支持循环数据:",d):t=d[o],r&&(t=e.__get_value(r,t))}})),t}function fn(e,n,t){var i={};return Array.isArray(n)&&n.length&&n.forEach((function(n,o){"string"===typeof n?n?"$event"===n?i["$"+o]=t:"arguments"===n?t.detail&&t.detail.__args__?i["$"+o]=t.detail.__args__:i["$"+o]=[t]:0===n.indexOf("$event.")?i["$"+o]=e.__get_value(n.replace("$event.",""),t):i["$"+o]=e.__get_value(n):i["$"+o]=e:i["$"+o]=mn(e,n)})),i}function hn(e){for(var n={},t=1;t2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,d=arguments.length>5?arguments[5]:void 0,a=!1;if(o&&(a=n.currentTarget&&n.currentTarget.dataset&&"wx"===n.currentTarget.dataset.comType,!t.length))return a?[n]:n.detail.__args__||n.detail;var r=fn(e,i,n),c=[];return t.forEach((function(e){"$event"===e?"__set_model"!==d||o?o&&!a?c.push(n.detail.__args__[0]):c.push(n):c.push(n.target.value):Array.isArray(e)&&"o"===e[0]?c.push(hn(e)):"string"===typeof e&&$(r,e)?c.push(r[e]):c.push(e)})),c}var gn="~",vn="^";function yn(e,n){return e===n||"regionchange"===n&&("begin"===e||"end"===e)}function bn(e){var n=e.$parent;while(n&&n.$parent&&(n.$options.generic||n.$parent.$options.generic||n.$scope._$vuePid))n=n.$parent;return n&&n.$parent}function _n(e){var n=this;e=ln(e);var t=(e.currentTarget||e.target).dataset;if(!t)return console.warn("事件信息不存在");var i=t.eventOpts||t["event-opts"];if(!i)return console.warn("事件信息不存在");var o=e.type,d=[];return i.forEach((function(t){var i=t[0],a=t[1],r=i.charAt(0)===vn;i=r?i.slice(1):i;var c=i.charAt(0)===gn;i=c?i.slice(1):i,a&&yn(o,i)&&a.forEach((function(t){var i=t[0];if(i){var o=n.$vm;if(o.$options.generic&&(o=bn(o)||o),"$emit"===i)return void o.$emit.apply(o,pn(n.$vm,e,t[1],t[2],r,i));var a=o[i];if(!x(a))throw new Error(" _vm.".concat(i," is not a function"));if(c){if(a.once)return;a.once=!0}var s=pn(n.$vm,e,t[1],t[2],r,i);s=Array.isArray(s)?s:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(a.toString())&&(s=s.concat([,,,,,,,,,,e])),d.push(a.apply(o,s))}}))})),"input"===o&&1===d.length&&"undefined"!==typeof d[0]?d[0]:void 0}var wn={},On=[];function xn(e){if(e){var n=wn[e];return delete wn[e],n}return On.shift()}var kn=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function An(){i.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var e=i.default.prototype.__call_hook;i.default.prototype.__call_hook=function(n,t){return"onLoad"===n&&t&&t.__id__&&(this.__eventChannel__=xn(t.__id__),delete t.__id__),e.call(this,n,t)}}function $n(){var e={},n={};i.default.prototype.$hasScopedSlotsParams=function(t){var i=e[t];return i||(n[t]=this,this.$on("hook:destory",(function(){delete n[t]}))),i},i.default.prototype.$getScopedSlotsParams=function(t,i,o){var d=e[t];if(d){var a=d[i]||{};return o?a[o]:a}n[t]=this,this.$on("hook:destory",(function(){delete n[t]}))},i.default.prototype.$setScopedSlotsParams=function(t,i){var o=this.$options.propsData.vueId,d=e[o]=e[o]||{};d[t]=i,n[o]&&n[o].$forceUpdate()},i.default.mixin({destroyed:function(){var t=this.$options.propsData,i=t&&t.vueId;i&&(delete e[i],delete n[i])}})}function Sn(e,n){var t=n.mocks,o=n.initRefs;An(),$n(),e.$options.store&&(i.default.prototype.$store=e.$options.store),_(i.default),i.default.prototype.mpHost="mp-weixin",i.default.mixin({beforeCreate:function(){if(this.$options.mpType){if(this.mpType=this.$options.mpType,this.$mp=l({data:{}},this.mpType,this.$options.mpInstance),this.$scope=this.$options.mpInstance,delete this.$options.mpType,delete this.$options.mpInstance,"page"===this.mpType&&"function"===typeof getApp){var e=getApp();e.$vm&&e.$vm.$i18n&&(this._i18n=e.$vm.$i18n)}"app"!==this.mpType&&(o(this),Xe(this,t))}}});var d={onLaunch:function(n){this.$vm||(wx.canIUse&&!wx.canIUse("nextTick")&&console.error("当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上"),this.$vm=e,this.$vm.$mp={app:this},this.$vm.$scope=this,this.$vm.globalData=this.globalData,this.$vm._isMounted=!0,this.$vm.__call_hook("mounted",n),this.$vm.__call_hook("onLaunch",n))}};d.globalData=e.$options.globalData||{};var a=e.$options.methods;return a&&Object.keys(a).forEach((function(e){d[e]=a[e]})),en(d,kn),d}var Pn=["__route__","__wxExparserNodeId__","__wxWebviewId__"];function jn(e,n){for(var t,i=e.$children,o=i.length-1;o>=0;o--){var d=i[o];if(d.$scope._$vueId===n)return d}for(var a=i.length-1;a>=0;a--)if(t=jn(i[a],n),t)return t}function En(e){return Behavior(e)}function Tn(){return!!this.route}function Cn(e){this.triggerEvent("__l",e)}function Mn(e,n,t){var i=e.selectAllComponents(n);i.forEach((function(e){var i=e.dataset.ref;t[i]=e.$vm||e,"scoped"===e.dataset.vueGeneric&&e.selectAllComponents(".scoped-ref").forEach((function(e){Mn(e,n,t)}))}))}function Dn(e){var n=e.$scope;Object.defineProperty(e,"$refs",{get:function(){var e={};Mn(n,".vue-ref",e);var t=n.selectAllComponents(".vue-ref-in-for");return t.forEach((function(n){var t=n.dataset.ref;e[t]||(e[t]=[]),e[t].push(n.$vm||n)})),e}})}function In(e){var n,t=e.detail||e.value,i=t.vuePid,o=t.vueOptions;i&&(n=jn(this.$vm,i)),n||(n=this.$vm),o.parent=n}function Ln(e){return Sn(e,{mocks:Pn,initRefs:Dn})}function Rn(e){return App(Ln(e)),e}var Fn=/[!'()*]/g,Nn=function(e){return"%"+e.charCodeAt(0).toString(16)},qn=/%2C/g,Un=function(e){return encodeURIComponent(e).replace(Fn,Nn).replace(qn,",")};function zn(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Un,t=e?Object.keys(e).map((function(t){var i=e[t];if(void 0===i)return"";if(null===i)return n(t);if(Array.isArray(i)){var o=[];return i.forEach((function(e){void 0!==e&&(null===e?o.push(n(t)):o.push(n(t)+"="+n(e)))})),o.join("&")}return n(t)+"="+n(i)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?".concat(t):""}function Hn(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.isPage,o=n.initRelation,d=nn(i.default,e),c=r(d,2),s=c[0],u=c[1],l=a({multipleSlots:!0,addGlobalClass:!0},u.options||{});u["mp-weixin"]&&u["mp-weixin"].options&&Object.assign(l,u["mp-weixin"].options);var m={options:l,data:dn(u,i.default.prototype),behaviors:cn(u,En),properties:un(u.props,!1,u.__file),lifetimes:{attached:function(){var e=this.properties,n={mpType:t.call(this)?"page":"component",mpInstance:this,propsData:e};on(e.vueId,this),o.call(this,{vuePid:this._$vuePid,vueOptions:n}),this.$vm=new s(n),tn(this.$vm,e.vueSlots),this.$vm.$mount()},ready:function(){this.$vm&&(this.$vm._isMounted=!0,this.$vm.__call_hook("mounted"),this.$vm.__call_hook("onReady"))},detached:function(){this.$vm&&this.$vm.$destroy()}},pageLifetimes:{show:function(e){this.$vm&&this.$vm.__call_hook("onPageShow",e)},hide:function(){this.$vm&&this.$vm.__call_hook("onPageHide")},resize:function(e){this.$vm&&this.$vm.__call_hook("onPageResize",e)}},methods:{__l:In,__e:_n}};return u.externalClasses&&(m.externalClasses=u.externalClasses),Array.isArray(u.wxsCallMethods)&&u.wxsCallMethods.forEach((function(e){m.methods[e]=function(n){return this.$vm[e](n)}})),t?m:[m,s]}function Vn(e){return Hn(e,{isPage:Tn,initRelation:Cn})}var Bn=["onShow","onHide","onUnload"];function Gn(e,n){n.isPage,n.initRelation;var t=Vn(e);return en(t.methods,Bn,e),t.methods.onLoad=function(e){this.options=e;var n=Object.assign({},e);delete n.__id__,this.$page={fullPath:"/"+(this.route||this.is)+zn(n)},this.$vm.$mp.query=e,this.$vm.__call_hook("onLoad",e)},t}function Wn(e){return Gn(e,{isPage:Tn,initRelation:Cn})}function Jn(e){return Component(Wn(e))}function Yn(e){return Component(Vn(e))}function Zn(e){var n=Ln(e),t=getApp({allowDefault:!0}),i=t.globalData;if(i&&Object.keys(n.globalData).forEach((function(e){$(i,e)||(i[e]=n.globalData[e])})),Object.keys(n).forEach((function(e){$(t,e)||(t[e]=n[e])})),x(n.onShow)&&wx.onAppShow&&wx.onAppShow((function(){for(var e=arguments.length,i=new Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:500,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!==i&&clearTimeout(i),t){var o=!i;i=setTimeout((function(){i=null}),n),o&&"function"===typeof e&&e()}else i=setTimeout((function(){"function"===typeof e&&e()}),n)}var d=o;n.default=d},"63e5":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getHomeData=d,n.getCanvas=a,n.getArticleBanner=r,n.getArticleCategory=c,n.getArticleHotList=s,n.getArticleList=u,n.getShare=l,n.getArticleDetails=m,n.getWechatConfig=f,n.wechatAuth=h,n.getLogistics=p,n.imageBase64=g;var i=o(t("abf6"));function o(e){return e&&e.__esModule?e:{default:e}}function d(){return i.default.get("index",{},{login:!1})}function a(){return i.default.get("/getCanvas?terminal=3",{},{login:!1})}function r(){return i.default.get("/article/banner/list",{},{login:!1})}function c(){return i.default.get("/article/category/list",{},{login:!1})}function s(){return i.default.get("/article/hot/list",{},{login:!1})}function u(e){return i.default.get("/article/list/",e,{login:!1})}function l(){return i.default.get("/share",{},{login:!1})}function m(e){return i.default.get("/article/details/"+e,{},{login:!1})}function f(){return i.default.get("/wechat/config",{url:location.href},{login:!1})}function h(e,n,t){return i.default.get("/wechat/auth",{code:e,spread:n,login_type:t},{login:!1})}function p(){return i.default.get("/logistics",{},{login:!1})}function g(e,n){return i.default.post("/image_base64",{image:e,code:n},{login:!1})}},6515:function(e,n,t){"use strict";function i(e,n){var t,i,d=0,a=0;try{d=e.toString().split(".")[1].length}catch(r){d=0}try{a=n.toString().split(".")[1].length}catch(r){a=0}return t=Number(e.toString().replace(".","")),i=Number(n.toString().replace(".","")),o(t/i,Math.pow(10,a-d))}function o(e,n){var t=0,i=e.toString(),o=n.toString();try{t+=i.split(".")[1].length}catch(d){t=0}try{t+=o.split(".")[1].length}catch(d){t=t||0}return Number(i.replace(".",""))*Number(o.replace(".",""))/Math.pow(10,t)}function d(e,n){var t,i,o,d;try{t=e.toString().split(".")[1].length}catch(a){t=0}try{i=n.toString().split(".")[1].length}catch(a){i=0}return o=Math.pow(10,Math.max(t,i)),d=t>=i?t:i,((e*o+n*o)/o).toFixed(d)}function a(e,n){var t,i,o,d;try{t=e.toString().split(".")[1].length}catch(a){t=0}try{i=n.toString().split(".")[1].length}catch(a){i=0}return o=Math.pow(10,Math.max(t,i)),d=t>=i?t:i,((e*o-n*o)/o).toFixed(d)}function r(e){this.value=e}function c(e){return new r(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.div=i,n.mul=o,n.add=d,n.sub=a,n.default=c,Object.assign(r.prototype,{add:function(e){return this.value=d(this.value,e),this},sub:function(e){return this.value=a(this.value,e),this},div:function(e){return this.value=i(this.value,e),this},mul:function(e){return this.value=o(this.value,e),this}})},"66fd":function(e,n,t){"use strict";t.r(n),function(e){ /*! * Vue.js v2.6.11 * (c) 2014-2021 Evan You * Released under the MIT License. */ var t=Object.freeze({});function i(e){return void 0===e||null===e}function o(e){return void 0!==e&&null!==e}function d(e){return!0===e}function a(e){return!1===e}function r(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function c(e){return null!==e&&"object"===typeof e}var s=Object.prototype.toString;function u(e){return"[object Object]"===s.call(e)}function l(e){return"[object RegExp]"===s.call(e)}function m(e){var n=parseFloat(String(e));return n>=0&&Math.floor(n)===n&&isFinite(e)}function f(e){return o(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function h(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===s?JSON.stringify(e,null,2):String(e)}function p(e){var n=parseFloat(e);return isNaN(n)?e:n}function g(e,n){for(var t=Object.create(null),i=e.split(","),o=0;o-1)return e.splice(t,1)}}var b=Object.prototype.hasOwnProperty;function _(e,n){return b.call(e,n)}function w(e){var n=Object.create(null);return function(t){var i=n[t];return i||(n[t]=e(t))}}var O=/-(\w)/g,x=w((function(e){return e.replace(O,(function(e,n){return n?n.toUpperCase():""}))})),k=w((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),A=/\B([A-Z])/g,$=w((function(e){return e.replace(A,"-$1").toLowerCase()}));function S(e,n){function t(t){var i=arguments.length;return i?i>1?e.apply(n,arguments):e.call(n,t):e.call(n)}return t._length=e.length,t}function P(e,n){return e.bind(n)}var j=Function.prototype.bind?P:S;function E(e,n){n=n||0;var t=e.length-n,i=new Array(t);while(t--)i[t]=e[t+n];return i}function T(e,n){for(var t in n)e[t]=n[t];return e}function C(e){for(var n={},t=0;t0),ne=(X&&X.indexOf("android"),X&&/iphone|ipad|ipod|ios/.test(X)||"ios"===K),te=(X&&/chrome\/\d+/.test(X),X&&/phantomjs/.test(X),X&&X.match(/firefox\/(\d+)/),{}.watch);if(Y)try{var ie={};Object.defineProperty(ie,"passive",{get:function(){}}),window.addEventListener("test-passive",null,ie)}catch(to){}var oe=function(){return void 0===W&&(W=!Y&&!Z&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),W},de=Y&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ae(e){return"function"===typeof e&&/native code/.test(e.toString())}var re,ce="undefined"!==typeof Symbol&&ae(Symbol)&&"undefined"!==typeof Reflect&&ae(Reflect.ownKeys);re="undefined"!==typeof Set&&ae(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var se=M,ue=0,le=function(){this.id=ue++,this.subs=[]};function me(e){le.SharedObject.targetStack.push(e),le.SharedObject.target=e,le.target=e}function fe(){le.SharedObject.targetStack.pop(),le.SharedObject.target=le.SharedObject.targetStack[le.SharedObject.targetStack.length-1],le.target=le.SharedObject.target}le.prototype.addSub=function(e){this.subs.push(e)},le.prototype.removeSub=function(e){y(this.subs,e)},le.prototype.depend=function(){le.SharedObject.target&&le.SharedObject.target.addDep(this)},le.prototype.notify=function(){var e=this.subs.slice();for(var n=0,t=e.length;n-1)if(d&&!_(o,"default"))a=!1;else if(""===a||a===$(e)){var c=Ye(String,o.type);(c<0||r0&&(a=On(a,(n||"")+"_"+t),wn(a[0])&&wn(s)&&(u[c]=ve(s.text+a[0].text),a.shift()),u.push.apply(u,a)):r(a)?wn(s)?u[c]=ve(s.text+a):""!==a&&u.push(ve(a)):wn(a)&&wn(s)?u[c]=ve(s.text+a.text):(d(e._isVList)&&o(a.tag)&&i(a.key)&&o(n)&&(a.key="__vlist"+n+"_"+t+"__"),u.push(a)));return u}function xn(e){var n=e.$options.provide;n&&(e._provided="function"===typeof n?n.call(e):n)}function kn(e){var n=An(e.$options.inject,e);n&&(ke(!1),Object.keys(n).forEach((function(t){je(e,t,n[t])})),ke(!0))}function An(e,n){if(e){for(var t=Object.create(null),i=ce?Reflect.ownKeys(e):Object.keys(e),o=0;o0,a=e?!!e.$stable:!d,r=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&i&&i!==t&&r===i.$key&&!d&&!i.$hasNormal)return i;for(var c in o={},e)e[c]&&"$"!==c[0]&&(o[c]=jn(n,c,e[c]))}else o={};for(var s in n)s in o||(o[s]=En(n,s));return e&&Object.isExtensible(e)&&(e._normalized=o),V(o,"$stable",a),V(o,"$key",r),V(o,"$hasNormal",d),o}function jn(e,n,t){var i=function(){var e=arguments.length?t.apply(null,arguments):t({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:_n(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return t.proxy&&Object.defineProperty(e,n,{get:i,enumerable:!0,configurable:!0}),i}function En(e,n){return function(){return e[n]}}function Tn(e,n){var t,i,d,a,r;if(Array.isArray(e)||"string"===typeof e)for(t=new Array(e.length),i=0,d=e.length;i1?E(t):t;for(var i=E(arguments,1),o='event handler for "'+e+'"',d=0,a=t.length;ddocument.createEvent("Event").timeStamp&&(qt=function(){return Ut.now()})}function zt(){var e,n;for(qt(),Rt=!0,Mt.sort((function(e,n){return e.id-n.id})),Ft=0;FtFt&&Mt[t].id>e.id)t--;Mt.splice(t+1,0,e)}else Mt.push(e);Lt||(Lt=!0,sn(zt))}}var Wt=0,Jt=function(e,n,t,i,o){this.vm=e,o&&(e._watcher=this),e._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=t,this.id=++Wt,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new re,this.newDepIds=new re,this.expression="","function"===typeof n?this.getter=n:(this.getter=G(n),this.getter||(this.getter=M)),this.value=this.lazy?void 0:this.get()};Jt.prototype.get=function(){var e;me(this);var n=this.vm;try{e=this.getter.call(n,n)}catch(to){if(!this.user)throw to;Ze(to,n,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ln(e),fe(),this.cleanupDeps()}return e},Jt.prototype.addDep=function(e){var n=e.id;this.newDepIds.has(n)||(this.newDepIds.add(n),this.newDeps.push(e),this.depIds.has(n)||e.addSub(this))},Jt.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var n=this.deps[e];this.newDepIds.has(n.id)||n.removeSub(this)}var t=this.depIds;this.depIds=this.newDepIds,this.newDepIds=t,this.newDepIds.clear(),t=this.deps,this.deps=this.newDeps,this.newDeps=t,this.newDeps.length=0},Jt.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Gt(this)},Jt.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var n=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,n)}catch(to){Ze(to,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,n)}}},Jt.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Jt.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},Jt.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var Yt={enumerable:!0,configurable:!0,get:M,set:M};function Zt(e,n,t){Yt.get=function(){return this[n][t]},Yt.set=function(e){this[n][t]=e},Object.defineProperty(e,t,Yt)}function Kt(e){e._watchers=[];var n=e.$options;n.props&&Xt(e,n.props),n.methods&&ai(e,n.methods),n.data?Qt(e):Pe(e._data={},!0),n.computed&&ti(e,n.computed),n.watch&&n.watch!==te&&ri(e,n.watch)}function Xt(e,n){var t=e.$options.propsData||{},i=e._props={},o=e.$options._propKeys=[],d=!e.$parent;d||ke(!1);var a=function(d){o.push(d);var a=Be(d,n,t,e);je(i,d,a),d in e||Zt(e,"_props",d)};for(var r in n)a(r);ke(!0)}function Qt(e){var n=e.$options.data;n=e._data="function"===typeof n?ei(n,e):n||{},u(n)||(n={});var t=Object.keys(n),i=e.$options.props,o=(e.$options.methods,t.length);while(o--){var d=t[o];0,i&&_(i,d)||H(d)||Zt(e,"_data",d)}Pe(n,!0)}function ei(e,n){me();try{return e.call(n,n)}catch(to){return Ze(to,n,"data()"),{}}finally{fe()}}var ni={lazy:!0};function ti(e,n){var t=e._computedWatchers=Object.create(null),i=oe();for(var o in n){var d=n[o],a="function"===typeof d?d:d.get;0,i||(t[o]=new Jt(e,a||M,M,ni)),o in e||ii(e,o,d)}}function ii(e,n,t){var i=!oe();"function"===typeof t?(Yt.get=i?oi(n):di(t),Yt.set=M):(Yt.get=t.get?i&&!1!==t.cache?oi(n):di(t.get):M,Yt.set=t.set||M),Object.defineProperty(e,n,Yt)}function oi(e){return function(){var n=this._computedWatchers&&this._computedWatchers[e];if(n)return n.dirty&&n.evaluate(),le.SharedObject.target&&n.depend(),n.value}}function di(e){return function(){return e.call(this,this)}}function ai(e,n){e.$options.props;for(var t in n)e[t]="function"!==typeof n[t]?M:j(n[t],e)}function ri(e,n){for(var t in n){var i=n[t];if(Array.isArray(i))for(var o=0;o-1)return this;var t=E(arguments,1);return t.unshift(this),"function"===typeof e.install?e.install.apply(e,t):"function"===typeof e&&e.apply(null,t),n.push(e),this}}function vi(e){e.mixin=function(e){return this.options=He(this.options,e),this}}function yi(e){e.cid=0;var n=1;e.extend=function(e){e=e||{};var t=this,i=t.cid,o=e._Ctor||(e._Ctor={});if(o[i])return o[i];var d=e.name||t.options.name;var a=function(e){this._init(e)};return a.prototype=Object.create(t.prototype),a.prototype.constructor=a,a.cid=n++,a.options=He(t.options,e),a["super"]=t,a.options.props&&bi(a),a.options.computed&&_i(a),a.extend=t.extend,a.mixin=t.mixin,a.use=t.use,N.forEach((function(e){a[e]=t[e]})),d&&(a.options.components[d]=a),a.superOptions=t.options,a.extendOptions=e,a.sealedOptions=T({},a.options),o[i]=a,a}}function bi(e){var n=e.options.props;for(var t in n)Zt(e.prototype,"_props",t)}function _i(e){var n=e.options.computed;for(var t in n)ii(e.prototype,t,n[t])}function wi(e){N.forEach((function(n){e[n]=function(e,t){return t?("component"===n&&u(t)&&(t.name=t.name||e,t=this.options._base.extend(t)),"directive"===n&&"function"===typeof t&&(t={bind:t,update:t}),this.options[n+"s"][e]=t,t):this.options[n+"s"][e]}}))}function Oi(e){return e&&(e.Ctor.options.name||e.tag)}function xi(e,n){return Array.isArray(e)?e.indexOf(n)>-1:"string"===typeof e?e.split(",").indexOf(n)>-1:!!l(e)&&e.test(n)}function ki(e,n){var t=e.cache,i=e.keys,o=e._vnode;for(var d in t){var a=t[d];if(a){var r=Oi(a.componentOptions);r&&!n(r)&&Ai(t,d,i,o)}}}function Ai(e,n,t,i){var o=e[n];!o||i&&o.tag===i.tag||o.componentInstance.$destroy(),e[n]=null,y(t,n)}li(pi),si(pi),xt(pi),St(pi),mt(pi);var $i=[String,RegExp,Array],Si={name:"keep-alive",abstract:!0,props:{include:$i,exclude:$i,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Ai(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(n){ki(e,(function(e){return xi(n,e)}))})),this.$watch("exclude",(function(n){ki(e,(function(e){return!xi(n,e)}))}))},render:function(){var e=this.$slots.default,n=vt(e),t=n&&n.componentOptions;if(t){var i=Oi(t),o=this,d=o.include,a=o.exclude;if(d&&(!i||!xi(d,i))||a&&i&&xi(a,i))return n;var r=this,c=r.cache,s=r.keys,u=null==n.key?t.Ctor.cid+(t.tag?"::"+t.tag:""):n.key;c[u]?(n.componentInstance=c[u].componentInstance,y(s,u),s.push(u)):(c[u]=n,s.push(u),this.max&&s.length>parseInt(this.max)&&Ai(c,s[0],s,this._vnode)),n.data.keepAlive=!0}return n||e&&e[0]}},Pi={KeepAlive:Si};function ji(e){var n={get:function(){return U}};Object.defineProperty(e,"config",n),e.util={warn:se,extend:T,mergeOptions:He,defineReactive:je},e.set=Ee,e.delete=Te,e.nextTick=sn,e.observable=function(e){return Pe(e),e},e.options=Object.create(null),N.forEach((function(n){e.options[n+"s"]=Object.create(null)})),e.options._base=e,T(e.options.components,Pi),gi(e),vi(e),yi(e),wi(e)}ji(pi),Object.defineProperty(pi.prototype,"$isServer",{get:oe}),Object.defineProperty(pi.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(pi,"FunctionalRenderContext",{value:Gn}),pi.version="2.6.11";var Ei="[object Array]",Ti="[object Object]";function Ci(e,n){var t={};return Mi(e,n),Di(e,n,"",t),t}function Mi(e,n){if(e!==n){var t=Li(e),i=Li(n);if(t==Ti&&i==Ti){if(Object.keys(e).length>=Object.keys(n).length)for(var o in n){var d=e[o];void 0===d?e[o]=null:Mi(d,n[o])}}else t==Ei&&i==Ei&&e.length>=n.length&&n.forEach((function(n,t){Mi(e[t],n)}))}}function Di(e,n,t,i){if(e!==n){var o=Li(e),d=Li(n);if(o==Ti)if(d!=Ti||Object.keys(e).length1&&(n[t[0].trim()]=t[1].trim())}})),n}));function Zi(e){return Array.isArray(e)?C(e):"string"===typeof e?Yi(e):e}var Ki=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];function Xi(e,n){var t=n.split("."),i=t[0];return 0===i.indexOf("__$n")&&(i=parseInt(i.replace("__$n",""))),1===t.length?e[i]:Xi(e[i],t.slice(1).join("."))}function Qi(e){e.config.errorHandler=function(n,t,i){e.util.warn("Error in "+i+': "'+n.toString()+'"',t),console.error(n);var o="function"===typeof getApp&&getApp();o&&o.onError&&o.onError(n)};var n=e.prototype.$emit;e.prototype.$emit=function(e){return this.$scope&&e&&this.$scope["triggerEvent"](e,{__args__:E(arguments,1)}),n.apply(this,arguments)},e.prototype.$nextTick=function(e){return Ni(this,e)},Ki.forEach((function(n){e.prototype[n]=function(e){return this.$scope&&this.$scope[n]?this.$scope[n](e):"undefined"!==typeof my?"createSelectorQuery"===n?my.createSelectorQuery(e):"createIntersectionObserver"===n?my.createIntersectionObserver(e):void 0:void 0}})),e.prototype.__init_provide=xn,e.prototype.__init_injections=kn,e.prototype.__call_hook=function(e,n){var t=this;me();var i,o=t.$options[e],d=e+" hook";if(o)for(var a=0,r=o.length;a>16)+(n>>16)+(t>>16);return i<<16|65535&t},bitRotateLeft:function(e,n){return e<>>32-n},md5cmn:function(e,n,t,i,o,d){return this.safeAdd(this.bitRotateLeft(this.safeAdd(this.safeAdd(n,e),this.safeAdd(i,d)),o),t)},md5ff:function(e,n,t,i,o,d,a){return this.md5cmn(n&t|~n&i,e,n,o,d,a)},md5gg:function(e,n,t,i,o,d,a){return this.md5cmn(n&i|t&~i,e,n,o,d,a)},md5hh:function(e,n,t,i,o,d,a){return this.md5cmn(n^t^i,e,n,o,d,a)},md5ii:function(e,n,t,i,o,d,a){return this.md5cmn(t^(n|~i),e,n,o,d,a)},binlMD5:function(e,n){var t,i,o,d,a;e[n>>5]|=128<>>9<<4)]=n;var r=1732584193,c=-271733879,s=-1732584194,u=271733878;for(t=0;t>5]>>>n%32&255);return t},rstr2binl:function(e){var n,t=[];for(t[(e.length>>2)-1]=void 0,n=0;n>5]|=(255&e.charCodeAt(n/8))<16&&(o=this.binlMD5(o,8*e.length)),t=0;t<16;t+=1)d[t]=909522486^o[t],a[t]=1549556828^o[t];return i=this.binlMD5(d.concat(this.rstr2binl(n)),512+8*n.length),this.binl2rstr(this.binlMD5(a.concat(i),640))},rstr2hex:function(e){var n,t,i="0123456789abcdef",o="";for(t=0;t>>4&15)+i.charAt(15&n);return o},str2rstrUTF8:function(e){return unescape(encodeURIComponent(e))},rawMD5:function(e){return this.rstrMD5(this.str2rstrUTF8(e))},hexMD5:function(e){return this.rstr2hex(this.rawMD5(e))},rawHMACMD5:function(e,n){return this.rstrHMACMD5(this.str2rstrUTF8(e),str2rstrUTF8(n))},hexHMACMD5:function(e,n){return this.rstr2hex(this.rawHMACMD5(e,n))},md5:function(e,n,t){return n?t?this.rawHMACMD5(n,e):this.hexHMACMD5(n,e):t?this.rawMD5(e):this.hexMD5(e)},getSig:function(e,n,t,i){var o=null,d=[];return Object.keys(e).sort().forEach((function(n){d.push(n+"="+e[n])})),"search"==t&&(o="/ws/place/v1/search?"+d.join("&")+n),"suggest"==t&&(o="/ws/place/v1/suggestion?"+d.join("&")+n),"reverseGeocoder"==t&&(o="/ws/geocoder/v1/?"+d.join("&")+n),"geocoder"==t&&(o="/ws/geocoder/v1/?"+d.join("&")+n),"getCityList"==t&&(o="/ws/district/v1/list?"+d.join("&")+n),"getDistrictByCityId"==t&&(o="/ws/district/v1/getchildren?"+d.join("&")+n),"calculateDistance"==t&&(o="/ws/distance/v1/?"+d.join("&")+n),"direction"==t&&(o="/ws/direction/v1/"+i+"?"+d.join("&")+n),o=this.md5(o),o},location2query:function(e){if("string"==typeof e)return e;for(var n="",t=0;t1&&void 0!==arguments[1]?arguments[1]:1500;e.showToast({title:n,icon:"none",duration:t})}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=t;n.default=i}).call(this,t("543d")["default"])},8255:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(t("dbbc"));function o(e){return e&&e.__esModule?e:{default:e}}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e=(0,i.default)(e),"object"!==typeof e||"object"!==typeof n)return!1;for(var t in n)n.hasOwnProperty(t)&&(t in e?"object"!==typeof e[t]||"object"!==typeof n[t]?e[t]=n[t]:e[t].concat&&n[t].concat?e[t]=e[t].concat(n[t]):e[t]=d(e[t],n[t]):e[t]=n[t]);return e}var a=d;n.default=a},8363:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(t("a34a"));function o(e){return e&&e.__esModule?e:{default:e}}function d(e,n,t,i,o,d,a){try{var r=e[d](a),c=r.value}catch(s){return void t(s)}r.done?n(c):Promise.resolve(c).then(i,o)}function a(e){return function(){var n=this,t=arguments;return new Promise((function(i,o){var a=e.apply(n,t);function r(e){d(a,i,o,r,c,"next",e)}function c(e){d(a,i,o,r,c,"throw",e)}r(void 0)}))}}function r(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function c(e,n){for(var t=0;t0&&void 0!==r[0]?r[0]:{},o=r.length>1&&void 0!==r[1]?r[1]:{},d={},"string"===typeof t?(d.url=this.mixinParam(t,o),d.type="navigateTo"):(d=e.$u.deepClone(t,this.config),d.url=this.mixinParam(t.url,t.params)),o.intercept&&(this.config.intercept=o.intercept),d.params=o,d=e.$u.deepMerge(this.config,d),"function"!==typeof e.$u.routeIntercept){n.next=14;break}return n.next=10,new Promise((function(n,t){e.$u.routeIntercept(d,n)}));case 10:a=n.sent,a&&this.openPage(d),n.next=15;break;case 14:this.openPage(d);case 15:case"end":return n.stop()}}),n,this)})));function t(){return n.apply(this,arguments)}return t}()},{key:"openPage",value:function(n){var t=n.url,i=(n.type,n.delta),o=n.animationType,d=n.animationDuration;"navigateTo"!=n.type&&"to"!=n.type||e.navigateTo({url:t,animationType:o,animationDuration:d}),"redirectTo"!=n.type&&"redirect"!=n.type||e.redirectTo({url:t}),"switchTab"!=n.type&&"tab"!=n.type||e.switchTab({url:t}),"reLaunch"!=n.type&&"launch"!=n.type||e.reLaunch({url:t}),"navigateBack"!=n.type&&"back"!=n.type||e.navigateBack({delta:i})}}]),n}(),l=(new u).route;n.default=l}).call(this,t("543d")["default"])},"83b4":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.VUE_APP_RESOURCES_URL=n.VUE_APP_API_URL=void 0;var i="https://cloud.api.cyjyyjy.com/api";n.VUE_APP_API_URL=i;var o="https://h5.yixiang.co/static";n.VUE_APP_RESOURCES_URL=o},"877b":function(e,n,t){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.sort((function(){return Math.random()-.5}))}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i;n.default=o},8899:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i={toast:10090,noNetwork:10080,popup:10075,mask:10070,navbar:980,topTips:975,sticky:970,indexListSticky:965};n.default=i},"89cc":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.validatorDefaultCatch=i,n.default=void 0;var t={confirm:function(n){e.showModal({title:"提示",content:n.mes,success:function(e){e.confirm?opts():e.cancel}})},alert:null,notify:null,loading:{open:function(){},close:function(){e.hideLoading()}}};function i(n){return e.showToast({title:n.errors[0].message,icon:"none",duration:2e3}),!1}t.message=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"操作失败";return new Promise((function(t){e.showToast({title:n,icon:"none",duration:2e3,complete:function(){t()}})}))},t.toast=function(n){e.showToast({title:n.mes,icon:"none",duration:2e3,complete:function(){n.callback&&n.callback()}})},t.error=function(n){e.showToast({title:n,icon:"none",duration:2e3})},t.validateError=function(){i.apply(void 0,arguments)};var o=t;n.default=o}).call(this,t("543d")["default"])},"8a78":function(e,n,t){"use strict";function i(e){return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(e)}function o(e){return/^1[3-9]\d{9}$/.test(e)}function d(e){return/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w-.\/?%&=]*)?/.test(e)}function a(e){return!/Invalid|NaN/.test(new Date(e).toString())}function r(e){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)}function c(e){return/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e)}function s(e){return/^\d+$/.test(e)}function u(e){return/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(e)}function l(e){var n=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,t=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;return 7===e.length?t.test(e):8===e.length&&n.test(e)}function m(e){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(e)}function f(e){var n=/^[\u4e00-\u9fa5]+$/gi;return n.test(e)}function h(e){return/^[a-zA-Z]*$/.test(e)}function p(e){var n=/^[0-9a-zA-Z]*$/g;return n.test(e)}function g(e,n){return e.indexOf(n)>=0}function v(e,n){return e>=n[0]&&e<=n[1]}function y(e,n){return e.length>=n[0]&&e.length<=n[1]}function b(e){var n=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return n.test(e)}function _(e){switch(typeof e){case"undefined":return!0;case"string":if(0==e.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"").length)return!0;break;case"boolean":if(!e)return!0;break;case"number":if(0===e||isNaN(e))return!0;break;case"object":if(null===e||0===e.length)return!0;for(var n in e)return!1;return!0}return!1}function w(e){if("string"==typeof e)try{var n=JSON.parse(e);return!("object"!=typeof n||!n)}catch(t){return!1}return!1}function O(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function x(e){return"[object Object]"===Object.prototype.toString.call(e)}function k(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return new RegExp("^\\d{".concat(n,"}$")).test(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var A={email:i,mobile:o,url:d,date:a,dateISO:r,number:c,digits:s,idCard:u,carNo:l,amount:m,chinese:f,letter:h,enOrNum:p,contains:g,range:v,rangeLength:y,empty:_,isEmpty:_,jsonString:w,landline:b,object:x,array:O,code:k};n.default=A},"8c03":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getCombinationList=d,n.getCombinationDetail=a,n.getCombinationPink=r,n.getCombinationRemove=c,n.getCombinationPoster=s,n.getSeckillConfig=u,n.getSeckillList=l,n.getSeckillDetail=m,n.getBargainList=f,n.getBargainDetail=h,n.getBargainShare=p,n.getBargainStart=g,n.getBargainHelp=v,n.getBargainHelpPrice=y,n.getBargainHelpCount=b,n.getBargainStartUser=_,n.getBargainHelpList=w,n.getBargainPoster=O,n.getBargainUserList=x,n.getBargainUserCancel=k;var i=o(t("abf6"));function o(e){return e&&e.__esModule?e:{default:e}}function d(e){return i.default.get("/combination/list",e,{login:!1})}function a(e){return i.default.get("/combination/detail/"+e,{},{login:!0})}function r(e){return i.default.get("/combination/pink/"+e)}function c(e){return i.default.post("/combination/remove",e)}function s(e){return i.default.post("/combination/poster",e)}function u(){return i.default.get("/seckill/index",{},{login:!1})}function l(e,n){return i.default.get("/seckill/list/"+e,n,{login:!1})}function m(e){return i.default.get("/seckill/detail/"+e,{},{login:!0})}function f(e){return i.default.get("/bargain/list",e,{login:!1})}function h(e){return i.default.get("/bargain/detail/"+e)}function p(e){return i.default.post("/bargain/share",e)}function g(e){return i.default.post("/bargain/start",e)}function v(e){return i.default.post("/bargain/help",e)}function y(e){return i.default.post("/bargain/help/price",e)}function b(e){return i.default.post("/bargain/help/count",e)}function _(e){return i.default.post("/bargain/start/user",e)}function w(e){return i.default.post("/bargain/help/list",e)}function O(e){return i.default.post("/bargain/poster",e)}function x(e){return i.default.get("/bargain/user/list",e)}function k(e){return i.default.post("/bargain/user/cancel",e)}},"8c38":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.dataFormat=p,n.dateFormatL=g,n.dateFormatT=v,n.trim=y,n.isType=b,n.isWeixin=_,n.parseQuery=w,n.getCurrentPageUrl=O,n.getCurrentPageUrlWithArgs=x,n.parseUrl=j,n.parseRoute=E,n.handleAuth=T,n.routerPermissions=M,n.push=D,n.replace=I,n.reLaunch=L,n.go=R,n.back=F,n.switchTab=N,n.handleQrCode=U,n.handleUrlParam=z,n.chooseImage=W,n.chooseImages=J,n.handleErrorMessage=Y,n.handleLoginFailure=n.PosterCanvas=n._router=n.handleLoginStatus=n.handleGetUserInfo=n.login=n.authorize=n.getProvider=n.copyClipboard=void 0;var i=m(t("a34a")),o=m(t("66fd")),d=t("6e63"),a=m(t("1aa7")),r=m(t("bac4")),c=m(t("93d0")),s=m(t("aa2b")),u=t("83b4"),l=t("183b");function m(e){return e&&e.__esModule?e:{default:e}}function f(e,n,t,i,o,d,a){try{var r=e[d](a),c=r.value}catch(s){return void t(s)}r.done?n(c):Promise.resolve(c).then(i,o)}function h(e){return function(){var n=this,t=arguments;return new Promise((function(i,o){var d=e.apply(n,t);function a(e){f(d,i,o,a,r,"next",e)}function r(e){f(d,i,o,a,r,"throw",e)}a(void 0)}))}}function p(e,n){e=1e3*+e;var t=new Date(e),i=(new Date).getTime(),o=(i-t)/1e3;if(o<30)return"刚刚";if(o<3600)return Math.ceil(o/60)+"分钟前";if(o<86400)return Math.ceil(o/3600)+"小时前";if(o<172800)return"1天前";if(!n){var d=t.getFullYear()+"年"+(t.getMonth()+1)+"月"+t.getDate()+"日"+t.getHours()+"时"+t.getMinutes()+"分";return d}}function g(e,n){var t,i={"Y+":n.getFullYear().toString(),"m+":(n.getMonth()+1).toString(),"d+":n.getDate().toString(),"H+":n.getHours().toString(),"M+":n.getMinutes().toString(),"S+":n.getSeconds().toString()};for(var o in i)t=new RegExp("("+o+")").exec(e),t&&(e=e.replace(t[1],1==t[1].length?i[o]:i[o].padStart(t[1].length,"0")));return e}function v(e){e=1e3*+e;var n=new Date(e);return n.getFullYear()+"/"+(n.getMonth()+parseInt(1))+"/"+n.getDate()}function y(e){return String.prototype.trim.call(e)}function b(e,n){return Object.prototype.toString.call(e)==="[object "+n+"]"}function _(){return!(!navigator||!navigator.userAgent||-1===navigator.userAgent.toLowerCase().indexOf("micromessenger"))}function w(){var e={},n=getCurrentPages(),t=n[n.length-1];t.route;return e=t.options,e}function O(){var e=getCurrentPages(),n=e[e.length-1],t=n.route;return t}function x(){var e=getCurrentPages(),n=e[e.length-1],t=n.route,i=n.options,o=t+"?";for(var d in i){var a=i[d];o+=d+"="+a+"&"}return o=o.substring(0,o.length-1),console.log(o,"///urlWithArgs////"),o}var k=function(n){e.setClipboardData({data:n,success:function(n){e.showToast({title:"复制成功",icon:"success",duration:2e3})}})};n.copyClipboard=k;var A=function(n){return new Promise((function(t,i){e.getProvider({service:n||"oauth",success:function(e){e.provider&&t(e.provider[0])},fail:function(){i("获取环境服务商失败")}})})).catch((function(e){console.log(e)}))};n.getProvider=A;var $=function(n){return new Promise((function(t,i){console.log("检验授权","scope.".concat(n)),e.getSetting({success:function(e){console.log(e.authSetting),e.authSetting["scope.".concat(n)]?t(!0):t(!1)},fail:function(){t(!1)}})}))};n.authorize=$;var S=function(n){return new Promise((function(t,s){if("weixin"!=o.default.prototype.$deviceType){if("weixinh5"==o.default.prototype.$deviceType)return console.log("当前运行环境为H5"),void s("当前运行环境为H5");if("app"==o.default.prototype.$deviceType)return console.log("当前运行环境为app"),void s("当前运行环境为app");console.log("————————————————————"),console.log("开始登录"),console.log("————————————————————"),console.log("获取环境商"),A().then((function(o){console.log("当前的环境商"),console.log(o),o||s(),console.log("调用登录接口"),e.login({provider:o,success:function(){var u=h(i.default.mark((function u(l){var m,f;return i.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return console.log(l),console.log("登录接口调用成功"),console.log("开始检查用户信息授权"),m=l.code,c.default.set("wxLoginCode",l.code),i.next=7,$("userInfo");case 7:if(f=i.sent,wx.getUserProfile||f){i.next=11;break}return s("用户未授权"),i.abrupt("return");case 11:if(!wx.getUserProfile){i.next=20;break}if(!n){i.next=16;break}(0,d.wxappAuth)({encryptedData:n.encryptedData,iv:n.iv,code:m,spread:c.default.get("spread")}).then((function(n){var i=n.data;console.log("登录接口调用成功"),console.log("开始处理登录信息保存,并获取用户详情"),e.hideLoading(),a.default.commit("login",i.token,(0,r.default)(i.expires_time)),a.default.dispatch("userInfo",!0),(0,d.getUserInfo)().then((function(n){console.log("获取用户信息成功"),e.setStorageSync("uid",n.data.uid),a.default.dispatch("setUserInfo",n.data),t(n)})).catch((function(e){console.log("获取用户信息失败"),s("获取用户信息失败")}))})).catch((function(e){console.log(e),console.log("登录接口调用失败"),s("登录接口调用失败")})),i.next=18;break;case 16:return s("用户未授权"),i.abrupt("return");case 18:i.next=21;break;case 20:e.getUserInfo({provider:o,success:function(n){console.log(n),console.log("获取用户信息成功"),console.log("开始调用登录接口"),(0,d.wxappAuth)({encryptedData:n.encryptedData,iv:n.iv,code:m,spread:c.default.get("spread")}).then((function(n){var i=n.data;console.log("登录接口调用成功"),console.log("开始处理登录信息保存,并获取用户详情"),e.hideLoading(),a.default.commit("login",i.token,(0,r.default)(i.expires_time)),a.default.dispatch("userInfo",!0),(0,d.getUserInfo)().then((function(n){console.log("获取用户信息成功"),e.setStorageSync("uid",n.data.uid),a.default.dispatch("setUserInfo",n.data),t(n)})).catch((function(e){console.log("获取用户信息失败"),s("获取用户信息失败")}))})).catch((function(e){console.log(e),console.log("登录接口调用失败"),s("登录接口调用失败")}))},fail:function(){console.log("获取用户信息失败"),s("获取用户信息失败")}});case 21:case"end":return i.stop()}}),u)})));function l(e){return u.apply(this,arguments)}return l}(),fail:function(){console.log("调用登录接口失败"),s("调用登录接口失败")}})})).catch((function(e){s("获取环境服务商失败")}))}else{var u=w(),m=u.code;m&&(0,l.auth)(m).then((function(){var e=c.default.get("redirect").replace(/\ /g,"");console.log(e,"redirect"),e?(e=e.split("/pages")[1],e||(e="/Loading/index"),L({path:"/pages"+e}),c.default.remove("redirect")):L({path:"/pages/home/index"})})).catch((function(){s("当前运行环境为微信浏览器"),L({path:"/pages/home/index"})}))}}))};n.login=S;var P=function(){(0,d.getUserInfo)().then((function(e){console.log("获取用户信息"),a.default.dispatch("setUserInfo",e.data),console.log("获取用户信息后跳转回显的页面");var n=c.default.get("redirect").replace(/\ /g,"");n?L({path:n}):F()}))};function j(e){if("string"===typeof e)return e;var n=e.path,t=e.query,i=(0,s.default)(t);return i?"".concat(n,"?").concat(i):n}function E(e){var n=e||{},t=n.page&&n.page.route;return{path:"/".concat(t),params:{},query:n.query||n.page.options,hash:"",fullPath:j({path:"/".concat(t),query:n.query||n.page.options}),name:t&&t.replace(/\/(\w)/g,(function(e,n){return n.toUpperCase()}))}}function T(){return!!c.default.get("login_status")}n.handleGetUserInfo=P;var C=function(e,n,t,i){var o=[{path:"/pages/Loading/index",name:"loading页面"},{path:"/pages/home/index",name:"首页"},{path:"/pages/shop/HotNewGoods/index",name:"热门榜单"},{path:"/pages/activity/GoodsGroup/index",name:"超值拼团"},{path:"/pages/shop/Live/LiveList/index",name:"热门直播"},{path:"/pages/shop/GoodsClass/index",name:"商品分类"},{path:"/pages/user/Login/index",name:"登录页面"},{path:"/pages/authorization/index",name:"授权页面"},{path:"/pages/course/index",name:"课程首页"}],d=!1;console.log("即将跳转",e,j(e));var a="";return a="string"===typeof e?e:e.path,console.log(a),T()?d=!0:o.map((function(e){e.path==a&&(d=!0)})),console.log(d),new Promise((function(o,d){o({url:j(e),complete:n,fail:t,success:i})})).catch((function(e){console.log(e)}))};function M(n,t){console.log("routerPermissions",n),console.log("————————"),console.log(n,t,"routerPermissions"),console.log("————————");var i=n;i||(i="/"+x()),console.log(o.default.prototype.$deviceType),"routine"==o.default.prototype.$deviceType?(console.log("————————"),console.log("当前是微信小程序,开始处理小程序登录方法"),console.log("————————"),console.log("————————"),console.log("开始校验权限"),console.log("————————"),$("userInfo").then((function(){console.log("————————"),console.log("自动登录"),console.log("————————"),S().then((function(e){if(console.log("————————"),console.log("登录成功,跳转页面"),console.log("————————"),a.default.commit("updateAuthorizationPage",!1),"/pages/shop/ShoppingCart/index"==i||"/pages/user/User/index"==i)return console.log("————————"),console.log("当前是购物车,或者个人中心"),void console.log("————————");"reLaunch"!=t?"replace"!=t?D({path:i}):I({path:i}):L({path:i})})).catch((function(n){console.log("————————"),console.log("自动登录失败,跳转到授权页面"),console.log("————————"),e.showToast({title:n,icon:"none",duration:2e3}),L({path:"/pages/authorization/index"}),c.default.set("redirect",i)}))})).catch((function(e){if("/pages/shop/ShoppingCart/index"==i||"/pages/user/User/index"==i)return N({path:i}),void a.default.commit("updateAuthorizationPage",!1);L({path:"/pages/authorization/index"}),c.default.set("redirect",i)}))):"weixin"==o.default.prototype.$deviceType?((0,l.wechat)().then((function(){return(0,l.oAuth)()})),t||D({path:n})):(console.log(i),c.default.set("redirect",i),D({path:"/pages/user/Login/index"}))}function D(n,t,i,o){C(n,t,i,o).then((function(n){e.navigateTo(n)})).catch((function(e){}))}function I(n,t,i,o){C(n,t,i,o).then((function(n){console.log(n),e.redirectTo(n)})).catch((function(e){}))}function L(n,t,i,o){C(n,t,i,o).then((function(n){console.log(n),e.reLaunch(n)})).catch((function(e){console.log(e)}))}function R(n){e.navigateBack({delta:n})}function F(){e.navigateBack({delta:1,success:function(e){},fail:function(e){}})}function N(n,t,i,o){C(n,t,i,o).then((function(n){console.log("params",n),e.switchTab(n)})).catch((function(e){}))}n.handleLoginStatus=C;var q={mode:"history",switchTab:N,push:D,replace:I,go:R,back:F,reLaunch:L};function U(){var e=w()["q"];return e?-1!=e.indexOf("%3F")?(e=e.split("%3F")[1].replace(/%3D/g,":").replace(/%26/g,",").split(",").map((function(e,n){return e=e.split(":"),'"'.concat(e[0],'":"').concat(e[1],'"')})).join(","),e=JSON.parse("{"+e+"}"),e):z(e):null}function z(e){var n=e.split("?")[1],t=new Object;if(e.includes("?")){n=e.split("?")[1];for(var i=n.split("&"),o=0;o0&&void 0!==arguments[0]?arguments[0]:"auto",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rpx";return e=String(e),i.default.number(e)?"".concat(e).concat(n):e}},"96cf":function(e,n){!function(n){"use strict";var t,i=Object.prototype,o=i.hasOwnProperty,d="function"===typeof Symbol?Symbol:{},a=d.iterator||"@@iterator",r=d.asyncIterator||"@@asyncIterator",c=d.toStringTag||"@@toStringTag",s="object"===typeof e,u=n.regeneratorRuntime;if(u)s&&(e.exports=u);else{u=n.regeneratorRuntime=s?e.exports:{},u.wrap=_;var l="suspendedStart",m="suspendedYield",f="executing",h="completed",p={},g={};g[a]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(C([])));y&&y!==i&&o.call(y,a)&&(g=y);var b=k.prototype=O.prototype=Object.create(g);x.prototype=b.constructor=k,k.constructor=x,k[c]=x.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var n="function"===typeof e&&e.constructor;return!!n&&(n===x||"GeneratorFunction"===(n.displayName||n.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(b),e},u.awrap=function(e){return{__await:e}},A($.prototype),$.prototype[r]=function(){return this},u.AsyncIterator=$,u.async=function(e,n,t,i){var o=new $(_(e,n,t,i));return u.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},A(b),b[c]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},u.keys=function(e){var n=[];for(var t in e)n.push(t);return n.reverse(),function t(){while(n.length){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},u.values=C,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0],n=e.completion;if("throw"===n.type)throw n.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(i,o){return r.type="throw",r.arg=e,n.next=i,o&&(n.method="next",n.arg=t),!!o}for(var d=this.tryEntries.length-1;d>=0;--d){var a=this.tryEntries[d],r=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--t){var i=this.tryEntries[t];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),E(t),p}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var i=t.completion;if("throw"===i.type){var o=i.arg;E(t)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:C(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),p}}}function _(e,n,t,i){var o=n&&n.prototype instanceof O?n:O,d=Object.create(o.prototype),a=new T(i||[]);return d._invoke=S(e,t,a),d}function w(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(i){return{type:"throw",arg:i}}}function O(){}function x(){}function k(){}function A(e){["next","throw","return"].forEach((function(n){e[n]=function(e){return this._invoke(n,e)}}))}function $(e){function n(t,i,d,a){var r=w(e[t],e,i);if("throw"!==r.type){var c=r.arg,s=c.value;return s&&"object"===typeof s&&o.call(s,"__await")?Promise.resolve(s.__await).then((function(e){n("next",e,d,a)}),(function(e){n("throw",e,d,a)})):Promise.resolve(s).then((function(e){c.value=e,d(c)}),(function(e){return n("throw",e,d,a)}))}a(r.arg)}var t;function i(e,i){function o(){return new Promise((function(t,o){n(e,i,t,o)}))}return t=t?t.then(o,o):o()}this._invoke=i}function S(e,n,t){var i=l;return function(o,d){if(i===f)throw new Error("Generator is already running");if(i===h){if("throw"===o)throw d;return M()}t.method=o,t.arg=d;while(1){var a=t.delegate;if(a){var r=P(a,t);if(r){if(r===p)continue;return r}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if(i===l)throw i=h,t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);i=f;var c=w(e,n,t);if("normal"===c.type){if(i=t.done?h:m,c.arg===p)continue;return{value:c.arg,done:t.done}}"throw"===c.type&&(i=h,t.method="throw",t.arg=c.arg)}}}function P(e,n){var i=e.iterator[n.method];if(i===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var o=w(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,p;var d=o.arg;return d?d.done?(n[e.resultName]=d.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,p):d:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function j(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function E(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function C(e){if(e){var n=e[a];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,d=function n(){while(++i",nbsp:" ",amp:"&",quot:'"'};return e.replace(/&(lt|gt|nbsp|amp|quot);/gi,(function(e,t){return n[t]}))},html2Escape:function(e){return e?e.replace(/[<>&"]/g,(function(e){return{"<":"<",">":">","&":"&",'"':"""}[e]})):e},setData:function(e,n){var t=this,i=function(e,n,t){var i=e;return n=n.split("."),n.forEach((function(n){if(null===e[n]||void 0===e[n]){var o=/^[0-9]+$/;e[n]=o.test(t)?[]:{},i=e[n]}else i=e[n]})),i},o=function(e){return"function"==typeof e||!1};Object.keys(e).forEach((function(n){var o,d,a=e[n];n=n.replace(/\]/g,"").replace(/\[/g,".");var r=n.lastIndexOf(".");-1!=r?(d=n.slice(r+1),o=i(t,n.slice(0,r),d)):(d=n,o=t),o.$data&&void 0===o.$data[d]?(Object.defineProperty(o,d,{get:function(){return o.$data[d]},set:function(e){o.$data[d]=e,t.hasOwnProperty("$forceUpdate")&&t.$forceUpdate()},enumerable:!0,configurable:!0}),o[d]=a):t.$set(o,d,a)})),o(n)&&this.$nextTick(n)}}};n.default=i},a204:function(e,n,t){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];if(t=t||i.length,e)for(var d=0;d=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function s(e,n){if(null==e)return{};var t,i,o={},d=Object.keys(e);for(i=0;i=0||(o[t]=e[t]);return o}function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function l(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return p(Object.assign({url:e,data:t,method:n},h,i))},e}),{});["get","delete","head"].forEach((function(e){g[e]=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return p(Object.assign({url:n,params:t,method:e},h,i))}}));var v=g;n.default=v}).call(this,t("543d")["default"])},ac60:function(e,n,t){(function(n,t){e.exports=t()})(0,(function(){return function(e){var n={};function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=13)}([function(e,n,t){"use strict";var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports={type:function(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()},isObject:function(e,n){return n?"object"===this.type(e):e&&"object"===("undefined"===typeof e?"undefined":i(e))},isFormData:function(e){return"undefined"!==typeof FormData&&e instanceof FormData},trim:function(e){return e.replace(/(^\s*)|(\s*$)/g,"")},encode:function(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")},formatParams:function(e){var n="",t=!0,i=this;if(!this.isObject(e))return e;function o(e,d){var a=i.encode,r=i.type(e);if("array"==r)e.forEach((function(e,n){i.isObject(e)||(n=""),o(e,d+"%5B"+n+"%5D")}));else if("object"==r)for(var c in e)o(e[c],d?d+"%5B"+a(c)+"%5D":a(c));else t||(n+="&"),t=!1,n+=d+"="+a(e)}return o(e,""),n},merge:function(e,n){for(var t in n)e.hasOwnProperty(t)?this.isObject(n[t],1)&&this.isObject(e[t],1)&&this.merge(e[t],n[t]):e[t]=n[t];return e}}},function(e,n,t){var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,n){for(var t=0;t0&&(c=setTimeout((function(){3===o.readyState&&(t._call("onloadend"),o._changeReadyState(0),o._call("ontimeout"))}),o.timeout)),d.timeout=o.timeout,e(d,(function(e){function n(n){var t=e[n];return delete e[n],t}if(3===o.readyState){clearTimeout(c),o.status=n("statusCode")-0;var t=n("responseText"),d=n("statusMessage");if(o.status){var a=n("headers"),s={};for(var u in a){var l=a[u],m=u.toLowerCase();"object"===("undefined"===typeof l?"undefined":i(l))?s[m]=l:(s[m]=s[m]||[],s[m].push(l))}var f=s["set-cookie"];r&&f&&f.forEach((function(e){document.cookie=e.replace(/;\s*httpOnly/gi,"")})),o.responseHeaders=s,o.statusText=d||"",o.response=o.responseText=t,o._response=e,o._changeReadyState(4),o._call("onload")}else o.statusText=t,o._call("onerror",{msg:d});o._call("onloadend")}}))}else console.error("Ajax require adapter")}},{key:"setRequestHeader",value:function(e,n){this.requestHeaders[a.trim(e)]=n}},{key:"getResponseHeader",value:function(e){return(this.responseHeaders[e.toLowerCase()]||"").toString()||null}},{key:"getAllResponseHeaders",value:function(){var e="";for(var n in this.responseHeaders)e+=n+":"+this.getResponseHeader(n)+"\r\n";return e||null}},{key:"abort",value:function(e){this._changeReadyState(0),this._call("onerror",{msg:e}),this._call("onloadend")}}],[{key:"setAdapter",value:function(n){e=n}}]),n}();return n}e.exports=c},function(e,n,t){var i=function(){function e(e,n){for(var t=0;t0&&(e+=(-1===e.indexOf("?")?"?":"&")+w.join("&")),o.open(t.method,e);try{o.withCredentials=!!t.withCredentials,o.timeout=t.timeout||0,"stream"!==v&&(o.responseType=v)}catch(P){}var O=t.headers[r]||t.headers[c],x="application/x-www-form-urlencoded";for(var k in d.trim((O||"").toLowerCase())===x?n=d.formatParams(n):d.isFormData(n)||-1===["object","array"].indexOf(d.type(n))||(x="application/json;charset=utf-8",n=JSON.stringify(n)),O||y||(t.headers[r]=x),t.headers)if(k===r&&d.isFormData(n))delete t.headers[k];else try{o.setRequestHeader(k,t.headers[k])}catch(P){}function A(e,n,i){p(l.p,(function(){if(e){i&&(n.request=t);var o=e.call(l,n,Promise);n=void 0===o?n:o}h(n)||(n=Promise[0===i?"resolve":"reject"](n)),n.then((function(e){s(e)})).catch((function(e){f(e)}))}))}function $(e){e.engine=o,A(l.onerror,e,-1)}function S(e,n){this.message=e,this.status=n}o.onload=function(){try{var e=o.response||o.responseText;e&&t.parseJson&&-1!==(o.getResponseHeader(r)||"").indexOf("json")&&!d.isObject(e)&&(e=JSON.parse(e));var n=o.responseHeaders;if(!n){n={};var i=(o.getAllResponseHeaders()||"").split("\r\n");i.pop(),i.forEach((function(e){if(e){var t=e.split(":")[0];n[t]=o.getResponseHeader(t)}}))}var a=o.status,c=o.statusText,s={data:e,headers:n,status:a,statusText:c};if(d.merge(s,o._response),a>=200&&a<300||304===a)s.engine=o,s.request=t,A(l.handler,s,0);else{var u=new S(c,a);u.response=s,$(u)}}catch(u){$(new S(u.msg,o.status))}},o.onerror=function(e){$(new S(e.msg||"Network Error",0))},o.ontimeout=function(){$(new S("timeout [ "+o.timeout+"ms ]",1))},o._options=t,setTimeout((function(){o.send(y?null:n)}),0)}d.isObject(e)&&(t=e,e=t.url),t=t||{},t.headers=t.headers||{},p(u.p,(function(){d.merge(t,JSON.parse(JSON.stringify(i.config)));var o=t.headers;o[r]=o[r]||o[c]||"",delete o[c],t.body=n||t.body,e=d.trim(e||""),t.method=t.method.toUpperCase(),t.url=e;var a=t;m&&(a=m.call(u,t,Promise)||t),h(a)||(a=Promise.resolve(a)),a.then((function(e){e===t?g(e):s(e)}),(function(e){f(e)}))}))}));return f.engine=o,f}},{key:"all",value:function(e){return Promise.all(e)}},{key:"spread",value:function(e){return function(n){return e.apply(null,n)}}}]),e}();r.default=r,["get","post","put","patch","head","delete"].forEach((function(e){r.prototype[e]=function(n,t,i){return this.request(n,t,d.merge({method:e},i))}})),["lock","unlock","clear"].forEach((function(e){r.prototype[e]=function(){this.interceptors.request[e]()}})),e.exports=r},,,,,function(e,n,t){"use strict";e.exports=function(e,n){var t={method:e.method,url:e.url,dataType:e.dataType||void 0,header:e.headers,data:e.body||{},responseType:e.responseType||"text",success:function(e){n({statusCode:e.statusCode,responseText:e.data,headers:e.header,statusMessage:e.errMsg})},fail:function(e){n({statusCode:e.statusCode||0,statusMessage:e.errMsg})}};wx.request(t)}},,,,,,function(e,n,t){"use strict";var i=t(2),o=t(1),d=t(7),a=o(d);e.exports=function(e){return new i(e||a)}}])}))},bac4:function(e,n,t){!function(n,t){e.exports=t()}(0,(function(){"use strict";var e=1e3,n=6e4,t=36e5,i="millisecond",o="second",d="minute",a="hour",r="day",c="week",s="month",u="quarter",l="year",m="date",f="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},v=function(e,n,t){var i=String(e);return!i||i.length>=n?e:""+Array(n+1-i.length).join(t)+e},y={s:v,z:function(e){var n=-e.utcOffset(),t=Math.abs(n),i=Math.floor(t/60),o=t%60;return(n<=0?"+":"-")+v(i,2,"0")+":"+v(o,2,"0")},m:function e(n,t){if(n.date()=0,d=o&&i.regeneratorRuntime;if(i.regeneratorRuntime=void 0,e.exports=t("96cf"),o)i.regeneratorRuntime=d;else try{delete i.regeneratorRuntime}catch(a){i.regeneratorRuntime=void 0}},c20a:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=d(t("8255")),o=d(t("8a78"));function d(e){return e&&e.__esModule?e:{default:e}}function a(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function r(e,n){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.request({method:"GET",url:n,header:i,data:t})},this.post=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.request({url:n,method:"POST",header:i,data:t})},this.put=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.request({url:n,method:"PUT",header:i,data:t})},this.delete=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.request({url:n,method:"DELETE",header:i,data:t})}}return c(n,[{key:"setConfig",value:function(e){this.config=(0,i.default)(this.config,e)}},{key:"request",value:function(){var n=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.interceptor.request&&"function"===typeof this.interceptor.request){var i=this.interceptor.request(t);if(!1===i)return new Promise((function(){}));this.options=i}return t.dataType=t.dataType||this.config.dataType,t.responseType=t.responseType||this.config.responseType,t.url=t.url||"",t.params=t.params||{},t.header=Object.assign({},this.config.header,t.header),t.method=t.method||this.config.method,new Promise((function(i,d){t.complete=function(t){if(e.hideLoading(),clearTimeout(n.config.timer),n.config.timer=null,n.config.originalData)if(n.interceptor.response&&"function"===typeof n.interceptor.response){var o=n.interceptor.response(t);!1!==o?i(o):d(t)}else i(t);else if(200==t.statusCode)if(n.interceptor.response&&"function"===typeof n.interceptor.response){var a=n.interceptor.response(t.data);!1!==a?i(a):d(t.data)}else i(t.data);else d(t)},t.url=o.default.url(t.url)?t.url:n.config.baseUrl+(0==t.url.indexOf("/")?t.url:"/"+t.url),n.config.showLoading&&!n.config.timer&&(n.config.timer=setTimeout((function(){e.showLoading({title:n.config.loadingText,mask:n.config.loadingMask}),n.config.timer=null}),n.config.loadingTime)),e.request(t)}))}}]),n}(),u=new s;n.default=u}).call(this,t("543d")["default"])},c38b:function(e,n,t){"use strict";function i(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";return"both"==n?e.replace(/^\s+|\s+$/g,""):"left"==n?e.replace(/^\s*/,""):"right"==n?e.replace(/(\s*$)/g,""):"all"==n?e.replace(/\s+/g,""):e}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i;n.default=o},c8ba:function(e,n){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(i){"object"===typeof window&&(t=window)}e.exports=t},c924:function(e,n,t){"use strict";(function(e){function t(){return e.getSystemInfoSync().platform}function i(){return e.getSystemInfoSync()}Object.defineProperty(n,"__esModule",{value:!0}),n.os=t,n.sys=i}).call(this,t("543d")["default"])},d488:function(e,n,t){"use strict";function i(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(0, 0, 0)",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgb(255, 255, 255)",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,i=o(e,!1),a=i[0],r=i[1],c=i[2],s=o(n,!1),u=s[0],l=s[1],m=s[2],f=(u-a)/t,h=(l-r)/t,p=(m-c)/t,g=[],v=0;v1&&void 0!==arguments[1])||arguments[1],t=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(e=e.toLowerCase(),e&&t.test(e)){if(4===e.length){for(var i="#",o=1;o<4;o+=1)i+=e.slice(o,o+1).concat(e.slice(o,o+1));e=i}for(var d=[],a=1;a<7;a+=2)d.push(parseInt("0x"+e.slice(a,a+2)));return n?"rgb(".concat(d[0],",").concat(d[1],",").concat(d[2],")"):d}if(/^(rgb|RGB)/.test(e)){var r=e.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",");return r.map((function(e){return Number(e)}))}return e}function d(e){var n=e,t=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(/^(rgb|RGB)/.test(n)){for(var i=n.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),o="#",d=0;d1&&void 0!==arguments[1]?arguments[1]:.3;e=d(e);var t=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/,i=e.toLowerCase();if(i&&t.test(i)){if(4===i.length){for(var o="#",a=1;a<4;a+=1)o+=i.slice(a,a+1).concat(i.slice(a,a+1));i=o}for(var r=[],c=1;c<7;c+=2)r.push(parseInt("0x"+i.slice(c,c+2)));return"rgba("+r.join(",")+","+n+")"}return i}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r={colorGradient:i,hexToRgb:o,rgbToHex:d,colorToRgba:a};n.default=r},dbbc:function(e,n,t){"use strict";function i(e){return"[object Array]"===Object.prototype.toString.call(e)}function o(e){if([null,void 0,NaN,!1].includes(e))return e;if("object"!==typeof e&&"function"!==typeof e)return e;var n=i(e)?[]:{};for(var t in e)e.hasOwnProperty(t)&&(n[t]="object"===typeof e[t]?o(e[t]):e[t]);return n}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var d=o;n.default=d},deb0:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=P(t("f09d")),o=P(t("c20a")),d=P(t("f908")),a=P(t("8363")),r=P(t("f8d6")),c=P(t("49b1")),s=P(t("d488")),u=P(t("a204")),l=P(t("1b89")),m=P(t("11c7")),f=P(t("877b")),h=P(t("dbbc")),p=P(t("8255")),g=P(t("94a0")),v=P(t("8a78")),y=P(t("f000")),b=P(t("c38b")),_=P(t("6fed")),w=P(t("3f75")),O=P(t("0518")),x=t("c924"),k=P(t("5720")),A=P(t("4227")),$=P(t("415e")),S=P(t("8899"));function P(e){return e&&e.__esModule?e:{default:e}}function j(e){0}var E={queryParams:d.default,route:a.default,timeFormat:r.default,date:r.default,timeFrom:c.default,colorGradient:s.default.colorGradient,colorToRgba:s.default.colorToRgba,guid:u.default,color:l.default,sys:x.sys,os:x.os,type2icon:m.default,randomArray:f.default,wranning:j,get:o.default.get,post:o.default.post,put:o.default.put,delete:o.default.delete,hexToRgb:s.default.hexToRgb,rgbToHex:s.default.rgbToHex,test:v.default,random:y.default,deepClone:h.default,deepMerge:p.default,getParent:w.default,$parent:O.default,addUnit:g.default,trim:b.default,type:["primary","success","error","warning","info"],http:o.default,toast:_.default,config:$.default,zIndex:S.default,debounce:k.default,throttle:A.default};e.$u=E;var T=function(e){e.mixin(i.default),e.prototype.openShare&&e.mixin(mpShare),e.filter("timeFormat",(function(e,n){return(0,r.default)(e,n)})),e.filter("date",(function(e,n){return(0,r.default)(e,n)})),e.filter("timeFrom",(function(e,n){return(0,c.default)(e,n)})),e.prototype.$u=E},C={install:T};n.default=C}).call(this,t("543d")["default"])},df7c:function(e,n,t){(function(e){function t(e,n){for(var t=0,i=e.length-1;i>=0;i--){var o=e[i];"."===o?e.splice(i,1):".."===o?(e.splice(i,1),t++):t&&(e.splice(i,1),t--)}if(n)for(;t--;t)e.unshift("..");return e}function i(e){"string"!==typeof e&&(e+="");var n,t=0,i=-1,o=!0;for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!o){t=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(t,i)}function o(e,n){if(e.filter)return e.filter(n);for(var t=[],i=0;i=-1&&!i;d--){var a=d>=0?arguments[d]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(n=a+"/"+n,i="/"===a.charAt(0))}return n=t(o(n.split("/"),(function(e){return!!e})),!i).join("/"),(i?"/":"")+n||"."},n.normalize=function(e){var i=n.isAbsolute(e),a="/"===d(e,-1);return e=t(o(e.split("/"),(function(e){return!!e})),!i).join("/"),e||i||(e="."),e&&a&&(e+="/"),(i?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(o(e,(function(e,n){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},n.relative=function(e,t){function i(e){for(var n=0;n=0;t--)if(""!==e[t])break;return n>t?[]:e.slice(n,t-n+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var o=i(e.split("/")),d=i(t.split("/")),a=Math.min(o.length,d.length),r=a,c=0;c=1;--d)if(n=e.charCodeAt(d),47===n){if(!o){i=d;break}}else o=!1;return-1===i?t?"/":".":t&&1===i?"/":e.slice(0,i)},n.basename=function(e,n){var t=i(e);return n&&t.substr(-1*n.length)===n&&(t=t.substr(0,t.length-n.length)),t},n.extname=function(e){"string"!==typeof e&&(e+="");for(var n=-1,t=0,i=-1,o=!0,d=0,a=e.length-1;a>=0;--a){var r=e.charCodeAt(a);if(47!==r)-1===i&&(o=!1,i=a+1),46===r?-1===n?n=a:1!==d&&(d=1):-1!==n&&(d=-1);else if(!o){t=a+1;break}}return-1===n||-1===i||0===d||1===d&&n===i-1&&n===t+1?"":e.slice(n,i)};var d="b"==="ab".substr(-1)?function(e,n,t){return e.substr(n,t)}:function(e,n,t){return n<0&&(n=e.length+n),e.substr(n,t)}}).call(this,t("4362"))},f000:function(e,n,t){"use strict";function i(e,n){if(e>=0&&n>0&&n>=e){var t=n-e+1;return Math.floor(Math.random()*t+e)}return 0}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i;n.default=o},f09d:function(e,n,t){(function(n){e.exports={data:function(){return{}},onLoad:function(){this.$u.getRect=this.$uGetRect},methods:{$uGetRect:function(e,t){var i=this;return new Promise((function(o){n.createSelectorQuery().in(i)[t?"selectAll":"select"](e).boundingClientRect((function(e){t&&Array.isArray(e)&&e.length&&o(e),!t&&e&&o(e)})).exec()}))},getParentData:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.parent||(this.parent=!1),this.parent=this.$u.$parent.call(this,n),this.parent&&Object.keys(this.parentData).map((function(n){e.parentData[n]=e.parent[n]}))},preventEvent:function(e){e&&e.stopPropagation&&e.stopPropagation()}},onReachBottom:function(){n.$emit("uOnReachBottom")},beforeDestroy:function(){var e=this;if(this.parent&&n.$u.test.array(this.parent.children)){var t=this.parent.children;t.map((function(n,i){n===e&&t.splice(i,1)}))}}}}).call(this,t("543d")["default"])},f0c5:function(e,n,t){"use strict";function i(e,n,t,i,o,d,a,r,c,s){var u,l="function"===typeof e?e.options:e;if(c){l.components||(l.components={});var m=Object.prototype.hasOwnProperty;for(var f in c)m.call(c,f)&&!m.call(l.components,f)&&(l.components[f]=c[f])}if(s&&((s.beforeCreate||(s.beforeCreate=[])).unshift((function(){this[s.__module]=this})),(l.mixins||(l.mixins=[])).push(s)),n&&(l.render=n,l.staticRenderFns=t,l._compiled=!0),i&&(l.functional=!0),d&&(l._scopeId="data-v-"+d),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):o&&(u=r?function(){o.call(this,this.$root.$options.shadowRoot)}:o),u)if(l.functional){l._injectStyles=u;var h=l.render;l.render=function(e,n){return u.call(n),h(e,n)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,u):[u]}return{exports:e,options:l}}t.d(n,"a",(function(){return i}))},f431:function(e,n,t){"use strict";(function(n){i(t("1aa7"));function i(e){return e&&e.__esModule?e:{default:e}}var o=getApp(),d=function(e){var n=e.getFullYear(),t=e.getMonth()+1,i=e.getDate(),o=e.getHours(),d=e.getMinutes(),r=e.getSeconds();return"".concat([n,t,i].map(a).join("/")," ").concat([o,d,r].map(a).join(":"))},a=function(e){return e=e.toString(),e[1]?e:"0".concat(e)};function r(e){console.log("weixinupload"),n.chooseImage({count:1,sourceType:["album","camera"],success:function(t){for(var i=t.tempFilePaths,d=0;d0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";e||(e=Number(new Date)),10==e.toString().length&&(e*=1e3);var t,i=new Date(e),o={"y+":i.getFullYear().toString(),"m+":(i.getMonth()+1).toString(),"d+":i.getDate().toString(),"h+":i.getHours().toString(),"M+":i.getMinutes().toString(),"s+":i.getSeconds().toString()};for(var d in o)t=new RegExp("("+d+")").exec(n),t&&(n=n.replace(t[1],1==t[1].length?o[d]:o[d].padStart(t[1].length,"0")));return n}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,String.prototype.padStart||(String.prototype.padStart=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";if("[object String]"!==Object.prototype.toString.call(n))throw new TypeError("fillString must be String");var t=this;if(t.length>=e)return String(t);var i=e-t.length,o=Math.ceil(i/n.length);while(o>>=1)n+=n,1===o&&(n+=n);return n.slice(0,i)+t});var o=i;n.default=o},f908:function(e,n,t){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"brackets",i=n?"?":"",o=[];-1==["indices","brackets","repeat","comma"].indexOf(t)&&(t="brackets");var d=function(n){var i=e[n];if(["",void 0,null].indexOf(i)>=0)return"continue";if(i.constructor===Array)switch(t){case"indices":for(var d=0;d1&&void 0!==arguments[1]?arguments[1]:{};return o({required:!0,message:e,type:"string"},n)}function c(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o({type:"url",message:e},n)}function s(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o({type:"email",message:e},n)}function u(e){return _.pattern(/^[\w]+$/,e)}function l(e){return _.pattern(/^[\w\d_-]+$/,e)}function m(e){return _.pattern(/^[\w\d]+$/,e)}function f(e){return _.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,e)}function h(e){return _.pattern(/^[\u4e00-\u9fa5]+$/,e)}function p(e){return _.pattern(/^[\u4e00-\u9fa5\w]+$/,e)}function g(e){return _.pattern(/^[\u4e00-\u9fa5\w\d]+$/,e)}function v(e){return _.pattern(/^[\u4e00-\u9fa5\w\d-_]+$/,e)}function y(e){return _.pattern(/^1(3|4|5|7|8|9|6)\d{9}$/i,e)}a(r,"请输入%s"),a(c,"请输入正确的链接"),a(s,"请输入正确的邮箱地址"),a(u,"%s必须是字母"),a(l,"%s只能包含由字母、数字,以及 - 和 _"),a(m,"%s只能包含字母、数字"),a(f,"%s格式不正确"),a(h,"%s只能是汉字"),a(p,"%s只能包含汉字、字母"),a(g,"%s只能包含汉字、字母和数字"),a(v,"%s只能包含由汉字、字母、数字,以及 - 和 _"),a(y,"请输入正确的手机号码");var b={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"},_=Object.keys(b).reduce((function(e,n){return e[n]=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a="range"===n?{min:e[0],max:e[1]}:d({},n,e);return o(o({message:t.replace(":".concat(n),"range"===n?"".concat(e[0],"-").concat(e[1]):e),type:"string"},a),i)},a(e[n],b[n]),e}),{}),w=_;n.default=w}}]);