(function(e){function n(n){for(var o,a,r=n[0],s=n[1],g=n[2],c=0,u=[];c-1||e.indexOf("Adr")>-1}},{key:"signLink",value:function(){return"undefined"!==typeof window.entryUrl&&""!==window.entryUrl||(window.entryUrl=document.location.href),/(Android)/i.test(navigator.userAgent)?document.location.href:window.entryUrl}},{key:"wechat",value:function(){var e=this;return new Promise((function(n,t){(0,s.getWechatConfig)().then((function(t){e.instance.config(t.data),e.initConfig=t.data,e.status=!0,e.instance.ready((function(){n(e.instance)}))})).catch((function(n){e.status=!1,t(n)}))}))}},{key:"verifyInstance",value:function(){var e=this;return new Promise((function(n,t){if(null!==e.instance||e.status)return n(e.instance);e.wechat().then((function(t){n(e.instance)})).catch((function(){return t()}))}))}},{key:"openAddress",value:function(){var e=this;return new Promise((function(n,t){e.wechat().then((function(o){e.toPromise(o.openAddress).then((function(e){n(e)})).catch((function(e){t(e)}))})).catch((function(e){t(e)}))}))}},{key:"location",value:function(){var e=this;return new Promise((function(n,t){e.wechat().then((function(o){e.toPromise(o.getLocation,{type:"wgs84"}).then((function(e){n(e)})).catch((function(e){t(e)}))})).catch((function(e){t(e)}))}))}},{key:"seeLocation",value:function(e){var n=this;return new Promise((function(t,o){n.wechat().then((function(i){n.toPromise(i.openLocation,e).then((function(e){t(e)})).catch((function(e){o(e)}))})).catch((function(e){o(e)}))}))}},{key:"pay",value:function(e){var n=this;return new Promise((function(t,o){n.wechat().then((function(i){n.toPromise(i.chooseWXPay,e).then((function(e){t(e)})).catch((function(e){o(e)}))})).catch((function(e){o(e)}))}))}},{key:"toPromise",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(t,o){e((0,i.default)((0,i.default)({},n),{},{success:function(e){t(e)},fail:function(e){o(e)},complete:function(e){o(e)},cancel:function(e){o(e)}}))}))}},{key:"oAuth",value:function(e,n){if(!uni.getStorageSync(g.WX_AUTH)||!d.default.state.app.token||"snsapi_base"!=e){var t=(0,c.parseQuery)(),o=t.code,i=uni.getStorageSync("snsapiCode");return o instanceof Array&&(o=o[o.length-1]),i instanceof Array&&(i=i[i.length-1]),o&&o!=i?void 0:(uni.setStorageSync("authIng",!0),this.toAuth(e,n))}}},{key:"clearAuthStatus",value:function(){}},{key:"auth",value:function(e){return new Promise((function(n,t){u.default.get(g.LOGINTYPE);(0,s.wechatAuthV2)(e,parseInt(u.default.get("spread"))).then((function(t){var o=t.data;u.default.set(g.WX_AUTH,e),u.default.clear(g.STATE_KEY),n(o)})).catch(t)}))}},{key:"getAuthUrl",value:function(e,n,t){if(t){var o=t.split("&"),i=o.filter((function(e){if(-1===e.indexOf("code="))return e}));t=i.join("&")}var A="".concat(location.origin).concat(t);-1===A.indexOf("?")?A+="?":A+="&";var a=encodeURIComponent("".concat(A,"scope=").concat(n,"&back_url=")+encodeURIComponent(encodeURIComponent(uni.getStorageSync(g.BACK_URL)?uni.getStorageSync(g.BACK_URL):location.pathname+location.search)));uni.removeStorageSync(g.BACK_URL);var r=encodeURIComponent((""+Math.random()).split(".")[1]+"authorizestate");return uni.setStorageSync(g.STATE_KEY,r),"snsapi_base"===n?"https://open.weixin.qq.com/connect/oauth2/authorize?appid=".concat(e,"&redirect_uri=").concat(a,"&response_type=code&scope=snsapi_base&state=").concat(r,"&connect_redirect=1#wechat_redirect"):"https://open.weixin.qq.com/connect/oauth2/authorize?appid=".concat(e,"&redirect_uri=").concat(a,"&response_type=code&scope=snsapi_userinfo&state=").concat(r,"&connect_redirect=1#wechat_redirect")}},{key:"toAuth",value:function(e,n){var t=this,o=this;this.wechat().then((function(i){location.href=t.getAuthUrl(o.initConfig.appId,e,n)}))}},{key:"wechatEvevt",value:function(e,n){var t=this;return new Promise((function(o,i){var A={fail:function(e){if(t.instance)return i({is_ready:!0,wx:t.instance});t.verifyInstance().then((function(e){return i({is_ready:!0,wx:e})}))},success:function(e){return o(e,2222)}};Object.assign(A,n),t.wechat().then((function(n){"object"===typeof e?e.forEach((function(e){n[e]&&n[e](A)})):n[e]&&n[e](A)}))}))}},{key:"isWeixin",value:function(){return-1!==navigator.userAgent.toLowerCase().indexOf("micromessenger")}}]),e}(),m=new l;n.default=m},"13d8":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o={namespaced:!0,state:{indexDatas:{},cartNum:0},getters:{},mutations:{setIndexData:function(e,n){e.indexDatas=n},setCartNum:function(e,n){e.cartNum=n}}};n.default=o},"16e7":function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return A})),t.d(n,"a",(function(){return o}));var i=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.status?t("v-uni-view",{staticClass:"load"},[e._v("加载中...")]):e._e()},A=[]},"30aa":function(e,n,t){"use strict";var o=t("53e0"),i=t.n(o);i.a},"3bb5":function(e,n,t){"use strict";function o(e){var n=/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/;return!!n.test(e)}function i(e){var n=/^1(3|4|5|6|7|8|9)\d{9}$/;return!!n.test(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.isMoney=o,n.checkPhone=i,n.Throttle=n.Debounce=void 0;var A=function(e,n){var t,o=n||500;return function(){var n=this,i=arguments;t&&clearTimeout(t),t=setTimeout((function(){t=null,e.apply(n,i)}),o)}};n.Debounce=A;var a=function(e,n){var t,o,i=n||500;return function(){var n=this,A=arguments,a=+new Date;t&&a-t0?uni.setTabBarBadge({index:Number(uni.getStorageSync("FOOTER_ADDCART"))||2,text:e+""}):uni.hideTabBarRedDot({index:Number(uni.getStorageSync("FOOTER_ADDCART"))||2})}},onLaunch:function(e){var n=this;return(0,i.default)(regeneratorRuntime.mark((function t(){var o,i,c,d,C;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:o=n,(0,g.colorChange)("color_change").then((function(e){switch(uni.setStorageSync("is_diy",e.data.is_diy),uni.$emit("is_diy",e.data.is_diy),e.data.status){case 1:uni.setStorageSync("viewColor",m),uni.$emit("ok",m,e.data.status);break;case 2:uni.setStorageSync("viewColor",u),uni.$emit("ok",u,e.data.status);break;case 3:uni.setStorageSync("viewColor",l),uni.$emit("ok",l,e.data.status);break;case 4:uni.setStorageSync("viewColor",f),uni.$emit("ok",f,e.data.status);break;case 5:uni.setStorageSync("viewColor",p),uni.$emit("ok",p,e.data.status);break;default:uni.setStorageSync("viewColor",l),uni.$emit("ok",l,e.data.status);break}})),e.query.spread&&(o.$Cache.set("spread",e.query.spread),o.globalData.spid=e.query.spread,o.globalData.pid=e.query.spread,(0,s.silenceBindingSpread)()),uni.getSystemInfo({success:function(e){e.windowHeight,e.statusBarHeight;o.globalData.windowHeight=e.windowHeight+"px"}}),uni.getSystemInfo({success:function(e){o.globalData.navHeight=e.statusBarHeight*(750/e.windowWidth)+91}}),uni.getSystemInfo({success:function(e){e.windowWidth>420&&!window.top.isPC&&!/iOS|Android/i.test(e.system)&&(window.location.pathname="/static/html/pc.html")}}),e.query.hasOwnProperty("type")&&"iframeWindow"==e.query.type?n.globalData.isIframe=!0:n.globalData.isIframe=!1,"/"!==window.location.pathname&&"snsapi_base"===e.query.scope&&(i="snsapi_base",c=location.pathname+location.search,!o.$store.getters.isLogin&&r.default.isWeixin()?("",d=e.query.code instanceof Array?e.query.code[e.query.code.length-1]:e.query.code,d&&d!=uni.getStorageSync("snsapiCode")&&-1===location.pathname.indexOf("/pages/users/wechat_login/index")?(uni.setStorageSync("snsapiCode",d),o.globalData.spid?o.globalData.spid:"",uni.setStorageSync("authIng",!0),(0,a.silenceAuth)({code:d,spread:o.$Cache.get("spread"),spid:o.globalData.code}).then((function(t){if(uni.setStorageSync("authIng",!1),uni.setStorageSync("snRouter",decodeURIComponent(decodeURIComponent(e.query.back_url))),void 0!==t.data.key&&t.data.key)n.$Cache.set("snsapiKey",t.data.key);else{var o=t.data.expires_time-n.$Cache.time();n.$store.commit("LOGIN",{token:t.data.token,time:o}),n.$Cache.set("WX_AUTH",d),n.$store.commit("SETUID",t.data.userInfo.uid),n.$store.commit("UPDATE_USERINFO",t.data.userInfo),e.query.back_url&&location.replace(decodeURIComponent(decodeURIComponent(e.query.back_url)))}})).catch((function(n){uni.setStorageSync("authIng",!1);var t="";t=e.query.back_url instanceof Array?e.query.back_url[e.query.back_url.length-1]:e.query.back_url,o.$Cache.has("snsapiKey")||-1===location.pathname.indexOf("/pages/users/wechat_login/index")&&r.default.oAuth(i,t)}))):n.$Cache.has("snsapiKey")||-1===location.pathname.indexOf("/pages/users/wechat_login/index")&&r.default.oAuth(i,c)):e.query.back_url&&location.replace(uni.getStorageSync("snRouter"))),C=document.createElement("script"),C.src="".concat(A.HTTP_REQUEST_URL,"/api/get_script"),document.head.appendChild(C);case 11:case"end":return t.stop()}}),t)})))()},methods:{silenceAuth:function(e){var n=this,t=this,o=t.globalData.spid?t.globalData.spid:"";(0,a.silenceAuth)({code:e,spread_spid:o,spread_code:t.globalData.code}).then((function(e){if(void 0!==e.data.token&&e.data.token){uni.hideLoading();var o=e.data.expires_time-n.$Cache.time();t.$store.commit("LOGIN",{token:e.data.token,time:o}),t.$store.commit("SETUID",e.data.userInfo.uid),t.$store.commit("UPDATE_USERINFO",e.data.userInfo)}})).catch((function(e){}))}},onHide:function(){}};n.default=C},"72cd":function(e,n,t){"use strict";var o=t("4ea4");t("4160"),t("c975"),t("a9e3"),t("e25e"),t("ac1f"),t("5319"),t("1276"),t("498a"),t("159b"),Object.defineProperty(n,"__esModule",{value:!0}),n.silenceBindingSpread=s,n.isWeixin=g,n.getCustomer=c,n.parseQuery=d,n.updateURLParameter=u,n.default=n.VUE_APP_WS_URL=void 0;var i=t("b79f"),A=o(t("bc9c")),a=t("c159"),r=t("da62");function s(){var e=A.default.get("spread"),n=0;e=parseInt(e),Number.isNaN(e)&&(e=0),e&&(0,i.spread)({puid:e,code:n}).then((function(e){A.default.clear("spread")})).catch((function(e){}))}function g(){return-1!==navigator.userAgent.toLowerCase().indexOf("micromessenger")}function c(e){(0,a.getCustomerType)().then((function(n){var t=n.data.customer_type;if("0"==t)uni.navigateTo({url:e||"/pages/customer_list/chat"});else if("1"==t)uni.makePhoneCall({phoneNumber:n.data.customer_phone});else{if(n.data.customer_url.indexOf("work.weixin.qq.com")>0)return window.location.href=n.data.customer_url;uni.navigateTo({url:"/pages/annex/web_view/index?url=".concat(n.data.customer_url)})}}))}function d(){var e={},n=(location.href.split("?")[1]||"").trim().replace(/^(\?|#|&)/,"");return n?(n.split("&").forEach((function(n){var t=n.replace(/\+/g," ").split("="),o=decodeURIComponent(t.shift()),i=t.length>0?decodeURIComponent(t.join("=")):null;void 0===e[o]?e[o]=i:Array.isArray(e[o])?e[o].push(i):e[o]=[e[o],i]})),e):e}function u(e,n,t){var o="",i=e.split("?"),A=i[0],a=i[1],r="";if(a){i=a.split("&");for(var s=0;s0&&(e.systemInfo.height=n[0][0].height+n[0][0].top)})).exec(),this.rectHandle(),this.radiusHandle()},rectHandle:function(){var e=this;uni.createSelectorQuery().selectAll(".".concat(this.selector,"-rect")).boundingClientRect().exec((function(n){e.skeletonRectLists=n[0]}))},radiusHandle:function(){var e=this;uni.createSelectorQuery().selectAll(".".concat(this.selector,"-radius")).boundingClientRect().exec((function(n){e.skeletonCircleLists=n[0]}))}}};n.default=o},b79f:function(e,n,t){"use strict";var o=t("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.getUserInfo=a,n.userShare=r,n.loginH5=s,n.loginMobile=g,n.getCodeApi=c,n.registerVerify=d,n.register=u,n.registerReset=l,n.getMenuList=m,n.postSignUser=f,n.getSignConfig=p,n.getSignList=C,n.setSignIntegral=b,n.getSignMonthList=I,n.userActivity=_,n.getCommissionInfo=w,n.getIntegralList=v,n.spreadBanner=y,n.spreadPeople=h,n.spreadCount=k,n.getSpreadInfo=x,n.spreadOrder=B,n.getRankList=D,n.getBrokerageRank=E,n.extractCash=P,n.extractBank=F,n.userLevelGrade=Q,n.userLevelTask=S,n.userLevelDetection=T,n.getAddressList=O,n.setAddressDefault=L,n.editAddress=U,n.delAddress=Y,n.getAddressDetail=M,n.userEdit=H,n.getLogout=G,n.rechargeRoutine=N,n.rechargeWechat=j,n.getAddressDefault=R,n.getRechargeApi=W,n.setVisit=V,n.serviceList=z,n.getChatRecord=K,n.spread=X,n.getlevelInfo=Z,n.getlevelExpList=J,n.updateUserInfo=q,n.phoneWxSilenceAuth=$,n.phoneSilenceAuth=ee,n.invoiceList=ne,n.invoiceSave=te,n.invoiceDelete=oe,n.invoiceDefault=ie,n.invoiceDetail=Ae,n.invoiceOrder=ae,n.makeUpinvoice=re,n.memberCard=se,n.memberCardDraw=ge,n.memberCardCreate=ce,n.memberCouponsList=de,n.groomList=ue,n.memberOverdueTime=le,n.spreadMsg=me,n.imgToBase=fe,n.routineCode=pe,n.serviceRecord=Ce,n.messageSystem=be,n.getMsgDetails=Ie,n.appleLogin=_e,n.getUserAgreement=we,n.agentLevelList=ve,n.agentLevelTaskList=ye,n.friendDetail=he,n.clerkPeople=ke,n.setClerkPercent=xe,n.delClerkPercent=Be;var i=o(t("5530")),A=o(t("f75a"));function a(){return A.default.get("user")}function r(){return A.default.post("user/share")}function s(e){return A.default.post("login",e,{noAuth:!0})}function g(e){return A.default.post("login/mobile",e,{noAuth:!0})}function c(){return A.default.get("verify_code",{},{noAuth:!0})}function d(e){return A.default.post("register/verify",e,{noAuth:!0})}function u(e){return A.default.post("register",e,{noAuth:!0})}function l(e){return A.default.post("register/reset",e,{noAuth:!0})}function m(){return A.default.get("menu/user",{},{noAuth:!0})}function f(e){return A.default.post("sign/user",e)}function p(){return A.default.get("sign/config")}function C(e){return A.default.get("sign/list",e)}function b(){return A.default.post("sign/integral")}function I(e){return A.default.get("sign/month",e)}function _(){return A.default.get("user/activity")}function w(e,n){return A.default.get("spread/commission/"+n,e)}function v(e){return A.default.get("integral/list",e)}function y(){return A.default.get("spread/banner",{type:2})}function h(e){return A.default.post("spread/people",e)}function k(e){return A.default.get("spread/count/"+e)}function x(){return A.default.get("commission")}function B(e){return A.default.post("spread/order",e)}function D(e){return A.default.get("rank",e)}function E(e){return A.default.get("brokerage_rank",e)}function P(e){return A.default.post("extract/cash",e)}function F(){return A.default.get("extract/bank")}function Q(){return A.default.get("user/level/grade")}function S(e){return A.default.get("user/level/task/"+e)}function T(){return A.default.get("user/level/detection")}function O(e){return A.default.get("address/list",e)}function L(e){return A.default.post("address/default/set",{id:e})}function U(e){return A.default.post("address/edit",e)}function Y(e){return A.default.post("address/del",{id:e})}function M(e){return A.default.get("address/detail/"+e)}function H(e){return A.default.post("user/edit",e)}function G(){return A.default.get("logout")}function N(e){return A.default.post("recharge/routine",e)}function j(e){return A.default.post("recharge/wechat",e)}function R(){return A.default.get("address/default")}function W(){return A.default.get("recharge/index")}function V(e){return A.default.post("user/set_visit",(0,i.default)({},e),{noAuth:!0})}function z(){return A.default.get("user/service/list")}function K(e){return A.default.get("v2/user/service/record",e)}function X(e){return A.default.post("user/spread",e)}function Z(){return A.default.get("user/level/info")}function J(e){return A.default.get("user/level/expList",e)}function q(e){return A.default.post("v2/user/user_update",e)}function $(e){return A.default.post("v2/phone_wx_silence_auth",e,{noAuth:!0})}function ee(e){return A.default.post("v2/phone_silence_auth",e,{noAuth:!0})}function ne(e){return A.default.get("v2/invoice",e,{noAuth:!0})}function te(e){return A.default.post("v2/invoice/save",e,{noAuth:!0})}function oe(e){return A.default.get("v2/invoice/del/"+e)}function ie(e){return A.default.get("v2/invoice/get_default/"+e)}function Ae(e){return A.default.get("v2/invoice/detail/"+e)}function ae(e){return A.default.post("v2/order/make_up_invoice",e)}function re(e){return A.default.post("v2/order/make_up_invoice",e)}function se(){return A.default.get("user/member/card/index")}function ge(e){return A.default.post("user/member/card/draw",e)}function ce(e){return A.default.post("user/member/card/create",e)}function de(){return A.default.get("user/member/coupons/list")}function ue(e,n){return A.default.get("groom/list/".concat(e),n)}function le(e){return A.default.get("user/member/overdue/time",e)}function me(){return A.default.get("user/spread_info")}function fe(e){return A.default.post("image_base64",e)}function pe(e){return A.default.get("user/routine_code",e)}function Ce(e){return A.default.get("user/record",e)}function be(e){return A.default.get("user/message_system/list",e)}function Ie(e){return A.default.get("user/message_system/detail/"+e)}function _e(e){return A.default.post("apple_login",e,{noAuth:!0})}function we(){return A.default.get("user_agreement",{},{noAuth:!0})}function ve(){return A.default.get("v2/agent/level_list")}function ye(e){return A.default.get("v2/agent/level_task_list?id="+e)}function he(e){return A.default.get("order/friend_detail?order_id="+e)}function ke(e){return A.default.get("agent/get_staff_list",e)}function xe(e){return A.default.post("agent/set_staff_percent",e)}function Be(e){return A.default.get("agent/del_staff/".concat(e))}},bc9c:function(e,n,t){"use strict";var o=t("4ea4");t("4160"),t("c975"),t("d81d"),t("a434"),t("a9e3"),t("e25e"),t("ac1f"),t("5319"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(t("d4ec")),A=o(t("bee2")),a=t("ca44"),r=function(){function e(n){(0,i.default)(this,e),this.cacheSetHandler=uni.setStorageSync,this.cacheGetHandler=uni.getStorageSync,this.cacheClearHandler=uni.removeStorageSync,this.cacheExpire="UNI-APP-CRMEB:TAG",this.clearOverdue()}return(0,A.default)(e,[{key:"time",value:function(){return Math.round(new Date/1e3)}},{key:"strTotime",value:function(e){var n=e.substring(0,19);return n=n.replace(/-/g,"/"),Math.round(new Date(n).getTime()/1e3)}},{key:"setExpireCaheTag",value:function(e,n){var t=this;if(n=void 0!==n?n:a.EXPIRE,"number"===typeof n){var o=this.cacheGetHandler(this.cacheExpire),i=[],A=[];"object"===typeof o&&o.length&&(i=o.map((function(o){return A.push(o.key),o.key===e&&(o.expire=0===n?0:t.time()+n),o}))),A.length&&-1!==A.indexOf(e)||i.push({key:e,expire:0===n?0:this.time()+n}),this.cacheSetHandler(this.cacheExpire,i)}}},{key:"getExpireCahe",value:function(e,n){try{var t=this.cacheGetHandler(this.cacheExpire),o=0,i=!1;if("object"===typeof t&&t.length){if(t.map((function(n,t){n.key===e&&(o=n.expire,i=t)})),o){var A=parseInt(o);return!(o&&ot||0===e.expire?i.push(e):o.push(e.key))})),i.length!==n.length&&this.cacheSetHandler(this.cacheExpire,i),o.forEach((function(n){e.cacheClearHandler(n)}))}}]),e}(),s=new r;n.default=s},bf77:function(e,n,t){"use strict";var o=t("4ea4");t("c975"),t("fb6a"),t("a9e3"),t("d3b7"),t("acd8"),t("ac1f"),t("25f0"),t("5319"),t("1276"),t("498a"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,t("96cf");var i=o(t("1da1")),A=o(t("ade3")),a=o(t("3835")),r=t("ca44"),s=o(t("b1af")),g=(t("a0ea"),{Tips:function(e,n){"string"==typeof e&&(n=e,e={});var t=e.title||"",o=e.icon||"none",i=e.endtime||2e3,A=e.success;if(t&&uni.showToast({title:t,icon:o,duration:i,success:A}),void 0!=n)if("object"==typeof n){var a=n.tab||1,r=n.url||"";switch(a){case 1:setTimeout((function(){uni.navigateTo({url:r})}),i);break;case 2:setTimeout((function(){uni.navigateTo({url:r})}),i);break;case 3:setTimeout((function(){history.back()}),i);break;case 4:setTimeout((function(){uni.reLaunch({url:r})}),i);break;case 5:setTimeout((function(){uni.redirectTo({url:r})}),i);break}}else"function"==typeof n?setTimeout((function(){n&&n()}),i):setTimeout((function(){uni.navigateTo({url:n})}),t?i:0)},ArrayRemove:function(e,n,t){var o=[];if(e instanceof Array)for(var i=0;i255?(t+=2,t>o*n&&(t++,A.push(e.slice(i,a)),i=a,o++)):(t++,t>o*n&&(A.push(e.slice(i,a)),i=a,o++));return A.push(e.slice(i,e.length)),[t,A,o]},PosterCanvas:function(e,n,t,o,i){var A=this;uni.showLoading({title:"海报生成中",mask:!0});var r=uni.createCanvasContext("myCanvas");r.clearRect(0,0,0,0),r.fillStyle="#fff",r.fillRect(0,0,750,1150),uni.getImageInfo({src:e[0],success:function(s){var g=s.width,c=s.height;r.drawImage(e[1],0,0,g,g),r.save();var d=110,u=2*d,l=480,m=790;r.arc(l+d,m+d,d,0,2*Math.PI),r.drawImage(e[2],l,m,u,u),r.restore();var f=20,p=A.textByteLength(n,f),C=(0,a.default)(p,3),b=(C[0],C[1]),I=C[2];if(I>2){I=2;var _=b.slice(0,2);_[_.length-1]+="……",b=_}r.setTextAlign("left"),r.setFontSize(36),r.setFillStyle("#000");for(var w=36,v=0;v2){E=2;var P=D.slice(0,2);P[P.length-1]+="…",D=P}c.setTextAlign("left"),c.setFillStyle("#000"),D.length<2?c.setFontSize(22):c.setFontSize(20);for(var F=8,Q=0;Qa?(t=a,i=a/A):(t=n.width,i=n.height),o&&o({w:t,h:i});var r=uni.createCanvasContext("canvas");r.width=t,r.height=i,r.clearRect(0,0,t,i),r.drawImage(n.path,0,0,t,i),r.save(),setTimeout((function(e){r.draw(!0,(function(){uni.canvasToTempFilePath({canvasId:"canvas",fileType:"JPEG",destWidth:t,destHeight:i,quality:.7,success:function(e){f(e.tempFilePath)}})}))}),200)}}})}})},SplitArray:function(e,n){if("object"!=typeof e)return[];void 0===n&&(n=[]);for(var t=0;t=o?t:o,((this.Mul(e,i)-this.Mul(n,i))/i).toFixed(A)},Mul:function(e,n){e=parseFloat(e),n=parseFloat(n);var t=0,o=e.toString(),i=n.toString();try{t+=o.split(".")[1].length}catch(A){}try{t+=i.split(".")[1].length}catch(A){}return Number(o.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,t)}},$L:{getLocation:function(){var e=this;return(0,i.default)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.doGetLocation();case 1:case"end":return n.stop()}}),n)})))()},doGetLocation:function(){uni.getLocation({success:function(e){uni.removeStorageSync("CACHE_LONGITUDE"),uni.removeStorageSync("CACHE_LATITUDE"),uni.setStorageSync("CACHE_LONGITUDE",e.longitude),uni.setStorageSync("CACHE_LATITUDE",e.latitude)},fail:function(e){e.errMsg.indexOf("auth deny")>=0?uni.showToast({title:"访问位置被拒绝"}):uni.showToast({title:e.errMsg})}})},getSetting:function(){return new Promise((function(e,n){uni.getSetting({success:function(n){void 0!==n.authSetting["scope.userLocation"]?n.authSetting["scope.userLocation"]?e(1):e(2):e(0)}})}))},openSetting:function(){var e=this;uni.openSetting({success:function(n){n.authSetting&&n.authSetting["scope.userLocation"]&&e.doGetLocation()},fail:function(e){}})},checkPermission:function(){return(0,i.default)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!permision.isIOS){e.next=6;break}return e.next=3,permision.requestIOS("location");case 3:e.t0=e.sent,e.next=9;break;case 6:return e.next=8,permision.requestAndroid("android.permission.ACCESS_FINE_LOCATION");case 8:e.t0=e.sent;case 9:return n=e.t0,null===n||1===n?n=1:2===n?uni.showModal({content:"系统定位已关闭",confirmText:"确定",showCancel:!1,success:function(e){}}):n.code?uni.showModal({content:n.message}):uni.showModal({content:"需要定位权限",confirmText:"设置",success:function(e){e.confirm&&permision.gotoAppSetting()}}),e.abrupt("return",n);case 12:case"end":return e.stop()}}),e)})))()}}});n.default=g},c159:function(e,n,t){"use strict";var o=t("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.getIndexData=A,n.getServerType=a,n.getLogo=r,n.setFormId=s,n.setCouponReceive=g,n.getCoupons=c,n.getCouponsIndex=d,n.getUserCoupons=u,n.getNewCoupon=l,n.getArticleCategoryList=m,n.getArticleList=f,n.getArticleHotList=p,n.getArticleBannerList=C,n.getArticleDetails=b,n.loginMobile=I,n.verifyCode=_,n.registerVerify=w,n.phoneRegister=v,n.phoneRegisterReset=y,n.phoneLogin=h,n.switchH5Login=k,n.bindingPhone=x,n.bindingUserPhone=B,n.logout=D,n.getTemlIds=E,n.pink=P,n.getCity=F,n.getLiveList=Q,n.getDiy=S,n.colorChange=T,n.follow=O,n.updatePhone=L,n.getCouponV2=U,n.getCouponNewUser=Y,n.category=M,n.searchList=H,n.clearSearch=G,n.siteConfig=N,n.wechatAppAuth=j,n.getCustomerType=R,n.getOpenAdv=W;var i=o(t("f75a"));function A(){return i.default.get("v2/index",{},{noAuth:!0})}function a(){return i.default.get("v2/site_serve",{},{noAuth:!0})}function r(){return i.default.get("wechat/get_logo",{},{noAuth:!0})}function s(e){return i.default.post("wechat/set_form_id",{formId:e})}function g(e){return i.default.post("coupon/receive",{couponId:e})}function c(e){return i.default.get("v2/coupons",e,{noAuth:!0})}function d(e){return i.default.get("coupons",e,{noAuth:!0})}function u(e,n){return i.default.get("coupons/user/"+e,n)}function l(){return i.default.get("v2/new_coupon")}function m(){return i.default.get("article/category/list",{},{noAuth:!0})}function f(e,n){return i.default.get("article/list/"+e,n,{noAuth:!0})}function p(){return i.default.get("article/hot/list",{},{noAuth:!0})}function C(){return i.default.get("article/banner/list",{},{noAuth:!0})}function b(e){return i.default.get("article/details/"+e,{},{noAuth:!0})}function I(e){return i.default.post("login/mobile",e,{noAuth:!0})}function _(){return i.default.get("verify_code",{},{noAuth:!0})}function w(e,n,t,o){return i.default.post("register/verify",{phone:e,type:void 0===n?"reset":n,key:t,code:o},{noAuth:!0})}function v(e){return i.default.post("register",e,{noAuth:!0})}function y(e){return i.default.post("register/reset",e,{noAuth:!0})}function h(e){return i.default.post("login",e,{noAuth:!0})}function k(){return i.default.post("switch_h5",{from:"wechat"})}function x(e){return i.default.post("binding",e,{noAuth:!0})}function B(e){return i.default.post("user/binding",e)}function D(){return i.default.get("logout")}function E(){return i.default.get("wechat/teml_ids",{},{noAuth:!0})}function P(){return i.default.get("pink",{},{noAuth:!0})}function F(){return i.default.get("city_list",{},{noAuth:!0})}function Q(e,n){return i.default.get("wechat/live",{page:e,limit:n},{noAuth:!0})}function S(e){return i.default.get("v2/diy/get_diy/default".concat(e?"?id="+e:""),{},{noAuth:!0})}function T(e){return i.default.get("v2/diy/color_change/"+e,{},{noAuth:!0})}function O(){return i.default.get("wechat/follow",{},{noAuth:!0})}function L(e){return i.default.post("user/updatePhone",e,{noAuth:!0})}function U(){return i.default.get("v2/get_today_coupon",{},{noAuth:!0})}function Y(){return i.default.get("v2/new_coupon",{},{noAuth:!0})}function M(e){return i.default.get("category",e,{noAuth:!0})}function H(e){return i.default.get("v2/user/search_list",e,{noAuth:!0})}function G(){return i.default.get("v2/user/clean_search")}function N(e){return i.default.get("site_config",e,{noAuth:!0})}function j(e){return i.default.post("wechat/app_auth",e,{noAuth:!0})}function R(e){return i.default.get("get_customer_type",{},{noAuth:!0})}function W(e){return i.default.get("get_open_adv",{},{noAuth:!0})}},c3e5:function(e,n,t){var o=t("24fb");n=o(!1),n.push([e.i,'.spinbox[data-v-8b110168]{position:fixed;display:flex;justify-content:center;align-items:center;height:100%;width:100%;z-index:9999}.spin[data-v-8b110168]{display:inline-block;width:%?64?%;height:%?64?%}.spin[data-v-8b110168]:after{content:" ";display:block;width:%?46?%;height:%?46?%;margin:%?1?%;border-radius:50%;border:%?5?% solid #409eff;border-color:#409eff transparent #409eff transparent;-webkit-animation:spin-data-v-8b110168 1.2s linear infinite;animation:spin-data-v-8b110168 1.2s linear infinite}@-webkit-keyframes spin-data-v-8b110168{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin-data-v-8b110168{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.chiaroscuro[data-v-8b110168]{width:100%;height:100%;background:#c2cfd6;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-name:blink-data-v-8b110168;animation-name:blink-data-v-8b110168;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}@-webkit-keyframes blink-data-v-8b110168{0%{opacity:.4}50%{opacity:1}100%{opacity:.4}}@keyframes blink-data-v-8b110168{0%{opacity:.4}50%{opacity:1}100%{opacity:.4}}@-webkit-keyframes flush-data-v-8b110168{0%{left:-100%}50%{left:0}100%{left:100%}}@keyframes flush-data-v-8b110168{0%{left:-100%}50%{left:0}100%{left:100%}}.shine[data-v-8b110168]{-webkit-animation:flush-data-v-8b110168 2s linear infinite;animation:flush-data-v-8b110168 2s linear infinite;position:absolute;top:0;bottom:0;width:100%;background:linear-gradient(270deg,hsla(0,0%,100%,0) 0,hsla(0,0%,100%,.85) 50%,hsla(0,0%,100%,0))}',""]),e.exports=n},c57d:function(e,n,t){"use strict";var o=t("4ea4");t("d3b7"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=t("b79f"),A=t("e377"),a=o(t("bc9c")),r={token:a.default.get(A.LOGIN_STATUS)||!1,backgroundColor:"#fff",userInfo:{},uid:a.default.get(A.UID)||0,homeActive:!1,phoneStatus:!0,pageFooter:uni.getStorageSync("pageFoot")||{}},s={SETPHONESTATUS:function(e,n){e.phoneStatus=n},LOGIN:function(e,n){e.token=n.token,a.default.set(A.LOGIN_STATUS,n.token,n.time)},SETUID:function(e,n){e.uid=n,a.default.set(A.UID,n)},UPDATE_LOGIN:function(e,n){e.token=n},LOGOUT:function(e){e.token=void 0,e.uid=void 0,a.default.clear(A.LOGIN_STATUS),a.default.clear(A.UID)},BACKGROUND_COLOR:function(e,n){e.color=n,document.body.style.backgroundColor=n},UPDATE_USERINFO:function(e,n){e.userInfo=n,a.default.set(A.USER_INFO,n)},OPEN_HOME:function(e){e.homeActive=!0},CLOSE_HOME:function(e){e.homeActive=!1},FOOT_UPLOAD:function(e,n){e.pageFooter=n}},g={USERINFO:function(e,n){var t=e.state,o=e.commit;return null===t.userInfo||n?new Promise((function(e){(0,i.getUserInfo)().then((function(n){o("UPDATE_USERINFO",n.data),a.default.set(A.USER_INFO,n.data),e(n.data)}))})).catch((function(){})):Promise.resolve(t.userInfo)}},c={state:r,mutations:s,actions:g};n.default=c},ca44:function(e,n,t){t("c975"),e.exports={HTTP_REQUEST_URL:window.location.protocol+"//"+window.location.host,HEADER:{"content-type":"application/json","Form-type":-1!==navigator.userAgent.toLowerCase().indexOf("micromessenger")?"wechat":"h5"},TOKENNAME:"Authori-zation",EXPIRE:0,LIMIT:10}},ca86:function(e,n,t){"use strict";var o=t("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(t("c57d")),A=o(t("971d")),a=o(t("13d8")),r={app:i.default,hotWords:A.default,indexData:a.default};n.default=r},cf97:function(e,n,t){(function(o){var i;t("c975"),t("ac1f"),t("466d"),t("5319"),t("1276");var A=t("9523");!function(o,A){i=function(){return A(o)}.call(n,t,n,e),void 0===i||(e.exports=i)}(window,(function(e,n){if(!e.jWeixin){var t,o,i={config:"preVerifyJSAPI",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareQQ:"menu:share:qq",onMenuShareWeibo:"menu:share:weiboApp",onMenuShareQZone:"menu:share:QZone",previewImage:"imagePreview",getLocation:"geoLocation",openProductSpecificView:"openProductViewWithPid",addCard:"batchAddCard",openCard:"batchViewCard",chooseWXPay:"getBrandWCPayRequest",openEnterpriseRedPacket:"getRecevieBizHongBaoRequest",startSearchBeacons:"startMonitoringBeacons",stopSearchBeacons:"stopMonitoringBeacons",onSearchBeacons:"onBeaconsInRange",consumeAndShareCard:"consumedShareCard",openAddress:"editAddress"},a=function(){var e={};for(var n in i)e[i[n]]=n;return e}(),r=e.document,s=r.title,g=navigator.userAgent.toLowerCase(),c=navigator.platform.toLowerCase(),d=!(!c.match("mac")&&!c.match("win")),u=-1!=g.indexOf("wxdebugger"),l=-1!=g.indexOf("micromessenger"),m=-1!=g.indexOf("android"),f=-1!=g.indexOf("iphone")||-1!=g.indexOf("ipad"),p=(o=g.match(/micromessenger\/(\d+\.\d+\.\d+)/)||g.match(/micromessenger\/(\d+\.\d+)/))?o[1]:"",C={initStartTime:T(),initEndTime:0,preVerifyStartTime:0,preVerifyEndTime:0},b={version:1,appId:"",initTime:0,preVerifyTime:0,networkType:"",isPreVerifyOk:1,systemType:f?1:m?2:-1,clientVersion:p,url:encodeURIComponent(location.href)},I={},_={_completes:[]},w={state:0,data:{}};O((function(){C.initEndTime=T()}));var v=!1,y=[],h=(t={config:function(n){S("config",I=n);var t=!1!==I.check;O((function(){if(t)B(i.config,{verifyJsApiList:Q(I.jsApiList),verifyOpenTagList:Q(I.openTagList)},function(){_._complete=function(e){C.preVerifyEndTime=T(),w.state=1,w.data=e},_.success=function(e){b.isPreVerifyOk=0},_.fail=function(e){_._fail?_._fail(e):w.state=-1};var e=_._completes;return e.push((function(){!function(){if(!(d||u||I.debug||p<"6.0.2"||b.systemType<0)){var e=new Image;b.appId=I.appId,b.initTime=C.initEndTime-C.initStartTime,b.preVerifyTime=C.preVerifyEndTime-C.preVerifyStartTime,h.getNetworkType({isInnerInvoke:!0,success:function(n){b.networkType=n.networkType;var t="https://open.weixin.qq.com/sdk/report?v="+b.version+"&o="+b.isPreVerifyOk+"&s="+b.systemType+"&c="+b.clientVersion+"&a="+b.appId+"&n="+b.networkType+"&i="+b.initTime+"&p="+b.preVerifyTime+"&u="+b.url;e.src=t}})}}()})),_.complete=function(n){for(var t=0,o=e.length;t0?new Date(e):new Date,t=n.getDate()<10?"0"+n.getDate():n.getDate(),o=n.getMonth()<9?"0"+(n.getMonth()+1):n.getMonth()+1,i=n.getFullYear(),A=n.getHours()<10?"0"+n.getHours():n.getHours(),a=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),r=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds(),s=n.getMilliseconds()<10?"0"+n.getMilliseconds():n.getMilliseconds();return s<100&&(s="0"+s),{time:+n,year:i,month:o,day:t,hour:A,minute:a,second:r,millisecond:s}},e.isNumber=t,e.isString=o,e.isArray=i,e.isBoolean=A,e.isUndefined=a,e.isNull=r,e.isSymbol=s,e.isObject=g,e.isFunction=c,e.isElement=function(e){return"object"===("undefined"==typeof HTMLElement?"undefined":n(HTMLElement))?e instanceof HTMLElement:e&&"object"===n(e)&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName},e.isWindow=d,e.isPlainObject=function(e){var t,o=Object.prototype.hasOwnProperty;if(!e||"object"!==n(e)||e.nodeType||d(e))return!1;try{if(e.constructor&&!o.call(e,"constructor")&&!o.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}for(t in e);return void 0===t||o.call(e,t)},e.htmlEncode=function(e){return document.createElement("a").appendChild(document.createTextNode(e)).parentNode.innerHTML},e.JSONStringify=function(e){if(!g(e)&&!i(e))return JSON.stringify(e);var n="{",t="}";i(e)&&(n="[",t="]");for(var o=n,A=u(e),a=0;a-1||(i.push(n),e[t].className=i.join(" "))}}},removeClass:function(e,n){if(e){(0,o.isArray)(e)||(e=[e]);for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"newPlugin";!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=n,this.name=t,this.isReady=!1,this.eventList={}}var n,t,i;return n=e,(t=[{key:"on",value:function(e,n){return this.eventList[e]=n,this}},{key:"trigger",value:function(e,n){if("function"==typeof this.eventList[e])this.eventList[e].call(this,n);else{var t="on"+e.charAt(0).toUpperCase()+e.slice(1);"function"==typeof this[t]&&this[t].call(this,n)}return this}},{key:"id",get:function(){return this._id},set:function(e){if(!e)throw"Plugin ID cannot be empty";this._id=e.toLowerCase()}},{key:"name",get:function(){return this._name},set:function(e){if(!e)throw"Plugin name cannot be empty";this._name=e}},{key:"vConsole",get:function(){return this._vConsole||void 0},set:function(e){if(!e)throw"vConsole cannot be empty";this._vConsole=e}}])&&o(n.prototype,t),i&&o(n,i),e}();t.default=i,e.exports=n.default})?o.apply(n,i):o)||(e.exports=A)},function(e,n,t){var o,i,A;i=[n,t(0),t(1),t(2),t(18),t(19),t(20)],void 0===(A="function"==typeof(o=function(t,o,i,A,a,r,s){"use strict";function g(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="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)}function d(e,n){for(var t=0;t=t.scrollHeight?e.isInBottom=!0:e.isInBottom=!1)}));for(var o=0;o-1&&p.splice(e,1)}},{key:"onShow",value:function(){this.isShow=!0,1==this.isInBottom&&this.autoScrollToBottom()}},{key:"onHide",value:function(){this.isShow=!1}},{key:"onShowConsole",value:function(){1==this.isInBottom&&this.autoScrollToBottom()}},{key:"onUpdateOption",value:function(){this.vConsole.option.maxLogNumber!=this.maxLogNumber&&(this.updateMaxLogNumber(),this.limitMaxLogs())}},{key:"updateMaxLogNumber",value:function(){this.maxLogNumber=this.vConsole.option.maxLogNumber||f,this.maxLogNumber=Math.max(1,this.maxLogNumber)}},{key:"limitMaxLogs",value:function(){if(this.isReady)for(;this.logNumber>this.maxLogNumber;){var e=i.default.one(".vc-item",this.$tabbox);if(!e)break;e.parentNode.removeChild(e),this.logNumber--}}},{key:"showLogType",value:function(e){var n=i.default.one(".vc-log",this.$tabbox);i.default.removeClass(n,"vc-log-partly-log"),i.default.removeClass(n,"vc-log-partly-info"),i.default.removeClass(n,"vc-log-partly-warn"),i.default.removeClass(n,"vc-log-partly-error"),"all"==e?i.default.removeClass(n,"vc-log-partly"):(i.default.addClass(n,"vc-log-partly"),i.default.addClass(n,"vc-log-partly-"+e))}},{key:"autoScrollToBottom",value:function(){this.vConsole.option.disableLogScrolling||this.scrollToBottom()}},{key:"scrollToBottom",value:function(){var e=i.default.one(".vc-content");e&&(e.scrollTop=e.scrollHeight-e.offsetHeight)}},{key:"mockConsole",value:function(){var e=this,n=this,t=["log","info","warn","debug","error"];window.console?(t.map((function(e){n.console[e]=window.console[e]})),n.console.time=window.console.time,n.console.timeEnd=window.console.timeEnd,n.console.clear=window.console.clear):window.console={},t.map((function(n){window.console[n]=function(){for(var t=arguments.length,o=new Array(t),i=0;i0&&(i=a[1].toLowerCase(),A=p.indexOf(i)>-1)}if(i===this.id||!0!==A&&"default"===this.id)if(e._id||(e._id="__vc_"+Math.random().toString(36).substring(2,8)),e.date||(e.date=+new Date),this.isReady){o.isString(n[0])&&A&&(n[0]=n[0].replace(t,""),""===n[0]&&n.shift());for(var r={_id:e._id,logType:e.logType,logText:[],hasContent:!!e.content,count:1},s=0;s "+n[m].toString()+"":o.isObject(n[m])||o.isArray(n[m])?this.getFoldedLine(n[m]):(r[m]?' '):" ")+o.htmlEncode(n[m]).replace(/\n/g,"
")+"
"}catch(e){f=" ["+c(n[m])+"]"}f&&("string"==typeof f?l.insertAdjacentHTML("beforeend",f):l.insertAdjacentElement("beforeend",f))}o.isObject(e.content)&&l.insertAdjacentElement("beforeend",e.content),i.default.one(".vc-log",this.$tabbox).insertAdjacentElement("beforeend",t),this.logNumber++,this.limitMaxLogs()}},{key:"getFoldedLine",value:function(e,n){var t=this;if(!n){var A=o.JSONStringify(e),a=A.substr(0,36);n=o.getObjName(e),A.length>36&&(a+="..."),n+=" "+a}var g=i.default.render(r.default,{outer:n,lineType:"obj"});return i.default.bind(i.default.one(".vc-fold-outer",g),"click",(function(n){n.preventDefault(),n.stopPropagation(),i.default.hasClass(g,"vc-toggle")?(i.default.removeClass(g,"vc-toggle"),i.default.removeClass(i.default.one(".vc-fold-inner",g),"vc-toggle"),i.default.removeClass(i.default.one(".vc-fold-outer",g),"vc-toggle")):(i.default.addClass(g,"vc-toggle"),i.default.addClass(i.default.one(".vc-fold-inner",g),"vc-toggle"),i.default.addClass(i.default.one(".vc-fold-outer",g),"vc-toggle"));var A=i.default.one(".vc-fold-inner",g);return setTimeout((function(){if(0==A.children.length&&e){for(var n=o.getObjAllKeys(e),a=0;adocument.documentElement.offsetWidth&&(t=document.documentElement.offsetWidth-n.offsetWidth),o+n.offsetHeight>document.documentElement.offsetHeight&&(o=document.documentElement.offsetHeight-n.offsetHeight),t<0&&(t=0),o<0&&(o=0),this.switchPos.x=t,this.switchPos.y=o,A.default.one(".vc-switch").style.right=t+"px",A.default.one(".vc-switch").style.bottom=o+"px");var a=window.devicePixelRatio||1,s=document.querySelector('[name="viewport"]');if(s&&s.content){var g=s.content.match(/initial\-scale\=\d+(\.\d+)?/);(g?parseFloat(g[0].split("=")[1]):1)<1&&(this.$dom.style.fontSize=13*a+"px")}A.default.one(".vc-mask",this.$dom).style.display="none"}},{key:"_mockTap",value:function(){var e,n,t,o=!1,i=null;this.$dom.addEventListener("touchstart",(function(o){if(void 0===e){var A=o.targetTouches[0];n=A.pageX,t=A.pageY,e=o.timeStamp,i=o.target.nodeType===Node.TEXT_NODE?o.target.parentNode:o.target}}),!1),this.$dom.addEventListener("touchmove",(function(e){var i=e.changedTouches[0];(Math.abs(i.pageX-n)>10||Math.abs(i.pageY-t)>10)&&(o=!0)})),this.$dom.addEventListener("touchend",(function(n){if(!1===o&&n.timeStamp-e<700&&null!=i){var t=!1;switch(i.tagName.toLowerCase()){case"textarea":t=!0;break;case"input":switch(i.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":t=!1;break;default:t=!i.disabled&&!i.readOnly}}t?i.focus():n.preventDefault();var A=n.changedTouches[0],a=document.createEvent("MouseEvents");a.initMouseEvent("click",!0,!0,window,1,A.screenX,A.screenY,A.clientX,A.clientY,!1,!1,!1,!1,0,null),a.forwardedTouchEvent=!0,a.initEvent("click",!0,!0),i.dispatchEvent(a)}e=void 0,o=!1,i=null}),!1)}},{key:"_bindEvent",value:function(){var e=this,n=A.default.one(".vc-switch",e.$dom);A.default.bind(n,"touchstart",(function(n){e.switchPos.startX=n.touches[0].pageX,e.switchPos.startY=n.touches[0].pageY})),A.default.bind(n,"touchend",(function(n){e.switchPos.x=e.switchPos.endX,e.switchPos.y=e.switchPos.endY,e.switchPos.startX=0,e.switchPos.startY=0,i.setStorage("switch_x",e.switchPos.x),i.setStorage("switch_y",e.switchPos.y)})),A.default.bind(n,"touchmove",(function(t){if(t.touches.length>0){var o=t.touches[0].pageX-e.switchPos.startX,i=t.touches[0].pageY-e.switchPos.startY,A=e.switchPos.x-o,a=e.switchPos.y-i;A+n.offsetWidth>document.documentElement.offsetWidth&&(A=document.documentElement.offsetWidth-n.offsetWidth),a+n.offsetHeight>document.documentElement.offsetHeight&&(a=document.documentElement.offsetHeight-n.offsetHeight),A<0&&(A=0),a<0&&(a=0),n.style.right=A+"px",n.style.bottom=a+"px",e.switchPos.endX=A,e.switchPos.endY=a,t.preventDefault()}})),A.default.bind(A.default.one(".vc-switch",e.$dom),"click",(function(){e.show()})),A.default.bind(A.default.one(".vc-hide",e.$dom),"click",(function(){e.hide()})),A.default.bind(A.default.one(".vc-mask",e.$dom),"click",(function(n){if(n.target!=A.default.one(".vc-mask"))return!1;e.hide()})),A.default.delegate(A.default.one(".vc-tabbar",e.$dom),"click",".vc-tab",(function(n){var t=this.dataset.tab;t!=e.activedTab&&e.showTab(t)})),A.default.bind(A.default.one(".vc-panel",e.$dom),"transitionend webkitTransitionEnd oTransitionEnd otransitionend",(function(n){if(n.target!=A.default.one(".vc-panel"))return!1;A.default.hasClass(e.$dom,"vc-toggle")||(n.target.style.display="none")}));var t=A.default.one(".vc-content",e.$dom),o=!1;A.default.bind(t,"touchstart",(function(e){var n=t.scrollTop,i=t.scrollHeight,a=n+t.offsetHeight;0===n?(t.scrollTop=1,0===t.scrollTop&&(A.default.hasClass(e.target,"vc-cmd-input")||(o=!0))):a===i&&(t.scrollTop=n-1,t.scrollTop===n&&(A.default.hasClass(e.target,"vc-cmd-input")||(o=!0)))})),A.default.bind(t,"touchmove",(function(e){o&&e.preventDefault()})),A.default.bind(t,"touchend",(function(e){o=!1}))}},{key:"_autoRun",value:function(){for(var e in this.isInited=!0,this.pluginList)this._initPlugin(this.pluginList[e]);this.tabList.length>0&&this.showTab(this.tabList[0]),this.triggerEvent("ready")}},{key:"triggerEvent",value:function(e,n){e="on"+e.charAt(0).toUpperCase()+e.slice(1),i.isFunction(this.option[e])&&this.option[e].apply(this,n)}},{key:"_initPlugin",value:function(e){var n=this;e.vConsole=this,e.trigger("init"),e.trigger("renderTab",(function(t){n.tabList.push(e.id);var o=A.default.render(s.default,{id:e.id,name:e.name});A.default.one(".vc-tabbar",n.$dom).insertAdjacentElement("beforeend",o);var a=A.default.render(g.default,{id:e.id});t&&(i.isString(t)?a.innerHTML+=t:i.isFunction(t.appendTo)?t.appendTo(a):i.isElement(t)&&a.insertAdjacentElement("beforeend",t)),A.default.one(".vc-content",n.$dom).insertAdjacentElement("beforeend",a)})),e.trigger("addTopBar",(function(t){if(t)for(var o=A.default.one(".vc-topbar",n.$dom),a=function(n){var a=t[n],r=A.default.render(c.default,{name:a.name||"Undefined",className:a.className||"",pluginID:e.id});if(a.data)for(var s in a.data)r.dataset[s]=a.data[s];i.isFunction(a.onClick)&&A.default.bind(r,"click",(function(n){!1===a.onClick.call(r)||(A.default.removeClass(A.default.all(".vc-topbar-"+e.id),"vc-actived"),A.default.addClass(r,"vc-actived"))})),o.insertAdjacentElement("beforeend",r)},r=0;r-1&&this.tabList.splice(g,1);try{delete this.pluginList[e]}catch(n){this.pluginList[e]=void 0}return this.activedTab==e&&this.tabList.length>0&&this.showTab(this.tabList[0]),!0}},{key:"show",value:function(){if(this.isInited){var e=this;A.default.one(".vc-panel",this.$dom).style.display="block",setTimeout((function(){A.default.addClass(e.$dom,"vc-toggle"),e._triggerPluginsEvent("showConsole"),A.default.one(".vc-mask",e.$dom).style.display="block"}),10)}}},{key:"hide",value:function(){if(this.isInited){A.default.removeClass(this.$dom,"vc-toggle"),this._triggerPluginsEvent("hideConsole");var e=A.default.one(".vc-mask",this.$dom),n=A.default.one(".vc-panel",this.$dom);A.default.bind(e,"transitionend",(function(t){e.style.display="none",n.style.display="none"}))}}},{key:"showSwitch",value:function(){this.isInited&&(A.default.one(".vc-switch",this.$dom).style.display="block")}},{key:"hideSwitch",value:function(){this.isInited&&(A.default.one(".vc-switch",this.$dom).style.display="none")}},{key:"showTab",value:function(e){if(this.isInited){var n=A.default.one("#__vc_log_"+e);A.default.removeClass(A.default.all(".vc-tab",this.$dom),"vc-actived"),A.default.addClass(A.default.one("#__vc_tab_"+e),"vc-actived"),A.default.removeClass(A.default.all(".vc-logbox",this.$dom),"vc-actived"),A.default.addClass(n,"vc-actived");var t=A.default.all(".vc-topbar-"+e,this.$dom);A.default.removeClass(A.default.all(".vc-toptab",this.$dom),"vc-toggle"),A.default.addClass(t,"vc-toggle"),t.length>0?A.default.addClass(A.default.one(".vc-content",this.$dom),"vc-has-topbar"):A.default.removeClass(A.default.one(".vc-content",this.$dom),"vc-has-topbar"),A.default.removeClass(A.default.all(".vc-tool",this.$dom),"vc-toggle"),A.default.addClass(A.default.all(".vc-tool-"+e,this.$dom),"vc-toggle"),this.activedTab&&this._triggerPluginEvent(this.activedTab,"hide"),this.activedTab=e,this._triggerPluginEvent(this.activedTab,"show")}}},{key:"setOption",value:function(e,n){if(i.isString(e))this.option[e]=n,this._triggerPluginsEvent("updateOption");else if(i.isObject(e)){for(var t in e)this.option[t]=e[t];this._triggerPluginsEvent("updateOption")}else console.debug("The first parameter of vConsole.setOption() must be a string or an object.")}},{key:"destroy",value:function(){if(this.isInited){for(var e=Object.keys(this.pluginList),n=e.length-1;n>=0;n--)this.removePlugin(e[n]);this.$dom.parentNode.removeChild(this.$dom),this.isInited=!1}}}])&&_(n.prototype,t),a&&_(n,a),e}();v.VConsolePlugin=u.default,v.VConsoleLogPlugin=l.default,v.VConsoleDefaultPlugin=m.default,v.VConsoleSystemPlugin=f.default,v.VConsoleNetworkPlugin=p.default,v.VConsoleElementPlugin=C.default,v.VConsoleStoragePlugin=b.default;var y=v;t.default=y,e.exports=n.default})?o.apply(n,i):o)||(e.exports=A)},function(e){e.exports=JSON.parse('{"name":"vconsole","version":"3.3.4","description":"A lightweight, extendable front-end developer tool for mobile web page.","homepage":"https://github.com/Tencent/vConsole","main":"dist/vconsole.min.js","typings":"dist/vconsole.min.d.ts","scripts":{"test":"mocha","build":"webpack"},"keywords":["console","debug","mobile"],"repository":{"type":"git","url":"git+https://github.com/Tencent/vConsole.git"},"dependencies":{},"devDependencies":{"@babel/core":"^7.5.5","@babel/plugin-proposal-class-properties":"^7.5.5","@babel/plugin-proposal-export-namespace-from":"^7.5.2","@babel/plugin-proposal-object-rest-spread":"^7.5.5","@babel/preset-env":"^7.5.5","babel-loader":"^8.0.6","babel-plugin-add-module-exports":"^1.0.2","chai":"^4.2.0","copy-webpack-plugin":"^5.0.4","css-loader":"^3.2.0","html-loader":"^0.5.5","jsdom":"^15.1.1","json-loader":"^0.5.7","less":"^3.10.0","less-loader":"^5.0.0","mocha":"^5.2.0","style-loader":"^1.0.0","webpack":"^4.39.2","webpack-cli":"^3.3.6"},"author":"Tencent","license":"MIT"}')},function(e,n,t){var o,i,A;i=[n],void 0===(A="function"==typeof(o=function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,n,t){var o=/\{\{([^\}]+)\}\}/g,i="",A="",a=0,r=[],s=function(e,n){""!==e&&(n?e.match(/^ ?else/g)?i+="} "+e+" {\n":e.match(/\/(if|for|switch)/g)?i+="}\n":e.match(/^ ?if|for|switch/g)?i+=e+" {\n":e.match(/^ ?(break|continue) ?$/g)?i+=e+";\n":e.match(/^ ?(case|default)/g)?i+=e+":\n":i+="arr.push("+e+");\n":i+='arr.push("'+e.replace(/"/g,'\\"')+'");\n')};for(window.__mito_data=n,window.__mito_code="",window.__mito_result="",e=(e=e.replace(/(\{\{ ?switch(.+?)\}\})[\r\n\t ]+\{\{/g,"$1{{")).replace(/^[\r\n]/,"").replace(/\n/g,"\\\n").replace(/\r/g,"\\\r"),A="(function(){\n",i="var arr = [];\n";r=o.exec(e);)s(e.slice(a,r.index),!1),s(r[1],!0),a=r.index+r[0].length;s(e.substr(a,e.length-a),!1),A+=i="with (__mito_data) {\n"+(i+='__mito_result = arr.join("");')+"\n}",A+="})();";var g=document.getElementsByTagName("script"),c="";g.length>0&&(c=g[0].nonce||"");var d=document.createElement("SCRIPT");d.innerHTML=A,d.setAttribute("nonce",c),document.documentElement.appendChild(d);var u=__mito_result;if(document.documentElement.removeChild(d),!t){var l=document.createElement("DIV");l.innerHTML=u,u=l.children[0]}return u},e.exports=n.default})?o.apply(n,i):o)||(e.exports=A)},function(e,n,t){var o=t(12);"string"==typeof o&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};t(5)(o,i),o.locals&&(e.exports=o.locals)},function(e,n,t){(e.exports=t(4)(!1)).push([e.i,'#__vconsole {\n color: #000;\n font-size: 13px;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n /* global */\n /* compoment */\n}\n#__vconsole .vc-max-height {\n max-height: 19.23076923em;\n}\n#__vconsole .vc-max-height-line {\n max-height: 3.38461538em;\n}\n#__vconsole .vc-min-height {\n min-height: 3.07692308em;\n}\n#__vconsole dd,\n#__vconsole dl,\n#__vconsole pre {\n margin: 0;\n}\n#__vconsole .vc-switch {\n display: block;\n position: fixed;\n right: 0.76923077em;\n bottom: 0.76923077em;\n color: #FFF;\n background-color: #04BE02;\n line-height: 1;\n font-size: 1.07692308em;\n padding: 0.61538462em 1.23076923em;\n z-index: 10000;\n border-radius: 0.30769231em;\n box-shadow: 0 0 0.61538462em rgba(0, 0, 0, 0.4);\n}\n#__vconsole .vc-mask {\n display: none;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0);\n z-index: 10001;\n transition: background 0.3s;\n -webkit-tap-highlight-color: transparent;\n overflow-y: scroll;\n}\n#__vconsole .vc-panel {\n display: none;\n position: fixed;\n min-height: 85%;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 10002;\n background-color: #EFEFF4;\n -webkit-transition: -webkit-transform 0.3s;\n transition: -webkit-transform 0.3s;\n transition: transform 0.3s;\n transition: transform 0.3s, -webkit-transform 0.3s;\n -webkit-transform: translate(0, 100%);\n transform: translate(0, 100%);\n}\n#__vconsole .vc-tabbar {\n border-bottom: 1px solid #D9D9D9;\n overflow-x: auto;\n height: 3em;\n width: auto;\n white-space: nowrap;\n}\n#__vconsole .vc-tabbar .vc-tab {\n display: inline-block;\n line-height: 3em;\n padding: 0 1.15384615em;\n border-right: 1px solid #D9D9D9;\n text-decoration: none;\n color: #000;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n}\n#__vconsole .vc-tabbar .vc-tab:active {\n background-color: rgba(0, 0, 0, 0.15);\n}\n#__vconsole .vc-tabbar .vc-tab.vc-actived {\n background-color: #FFF;\n}\n#__vconsole .vc-content {\n background-color: #FFF;\n overflow-x: hidden;\n overflow-y: auto;\n position: absolute;\n top: 3.07692308em;\n left: 0;\n right: 0;\n bottom: 3.07692308em;\n -webkit-overflow-scrolling: touch;\n margin-bottom: constant(safe-area-inset-bottom);\n margin-bottom: env(safe-area-inset-bottom);\n}\n#__vconsole .vc-content.vc-has-topbar {\n top: 5.46153846em;\n}\n#__vconsole .vc-topbar {\n background-color: #FBF9FE;\n display: flex;\n display: -webkit-box;\n flex-direction: row;\n flex-wrap: wrap;\n -webkit-box-direction: row;\n -webkit-flex-wrap: wrap;\n width: 100%;\n}\n#__vconsole .vc-topbar .vc-toptab {\n display: none;\n flex: 1;\n -webkit-box-flex: 1;\n line-height: 2.30769231em;\n padding: 0 1.15384615em;\n border-bottom: 1px solid #D9D9D9;\n text-decoration: none;\n text-align: center;\n color: #000;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n}\n#__vconsole .vc-topbar .vc-toptab.vc-toggle {\n display: block;\n}\n#__vconsole .vc-topbar .vc-toptab:active {\n background-color: rgba(0, 0, 0, 0.15);\n}\n#__vconsole .vc-topbar .vc-toptab.vc-actived {\n border-bottom: 1px solid #3e82f7;\n}\n#__vconsole .vc-logbox {\n display: none;\n position: relative;\n min-height: 100%;\n}\n#__vconsole .vc-logbox i {\n font-style: normal;\n}\n#__vconsole .vc-logbox .vc-log {\n padding-bottom: 3em;\n -webkit-tap-highlight-color: transparent;\n}\n#__vconsole .vc-logbox .vc-log:empty:before {\n content: "Empty";\n color: #999;\n position: absolute;\n top: 45%;\n left: 0;\n right: 0;\n bottom: 0;\n font-size: 1.15384615em;\n text-align: center;\n}\n#__vconsole .vc-logbox .vc-item {\n margin: 0;\n padding: 0.46153846em 0.61538462em;\n overflow: hidden;\n line-height: 1.3;\n border-bottom: 1px solid #EEE;\n word-break: break-word;\n}\n#__vconsole .vc-logbox .vc-item-info {\n color: #6A5ACD;\n}\n#__vconsole .vc-logbox .vc-item-debug {\n color: #DAA520;\n}\n#__vconsole .vc-logbox .vc-item-warn {\n color: #FFA500;\n border-color: #FFB930;\n background-color: #FFFACD;\n}\n#__vconsole .vc-logbox .vc-item-error {\n color: #DC143C;\n border-color: #F4A0AB;\n background-color: #FFE4E1;\n}\n#__vconsole .vc-logbox .vc-log.vc-log-partly .vc-item {\n display: none;\n}\n#__vconsole .vc-logbox .vc-log.vc-log-partly-log .vc-item-log,\n#__vconsole .vc-logbox .vc-log.vc-log-partly-info .vc-item-info,\n#__vconsole .vc-logbox .vc-log.vc-log-partly-warn .vc-item-warn,\n#__vconsole .vc-logbox .vc-log.vc-log-partly-error .vc-item-error {\n display: block;\n}\n#__vconsole .vc-logbox .vc-item .vc-item-content {\n margin-right: 4.61538462em;\n display: inline-block;\n}\n#__vconsole .vc-logbox .vc-item .vc-item-repeat {\n display: inline-block;\n margin-right: 0.30769231em;\n padding: 0 6.5px;\n color: #D7E0EF;\n background-color: #42597F;\n border-radius: 8.66666667px;\n}\n#__vconsole .vc-logbox .vc-item.vc-item-error .vc-item-repeat {\n color: #901818;\n background-color: #DC2727;\n}\n#__vconsole .vc-logbox .vc-item.vc-item-warn .vc-item-repeat {\n color: #987D20;\n background-color: #F4BD02;\n}\n#__vconsole .vc-logbox .vc-item .vc-item-code {\n display: block;\n white-space: pre-wrap;\n overflow: auto;\n position: relative;\n}\n#__vconsole .vc-logbox .vc-item .vc-item-code.vc-item-code-input,\n#__vconsole .vc-logbox .vc-item .vc-item-code.vc-item-code-output {\n padding-left: 0.92307692em;\n}\n#__vconsole .vc-logbox .vc-item .vc-item-code.vc-item-code-input:before,\n#__vconsole .vc-logbox .vc-item .vc-item-code.vc-item-code-output:before {\n content: "›";\n position: absolute;\n top: -0.23076923em;\n left: 0;\n font-size: 1.23076923em;\n color: #6A5ACD;\n}\n#__vconsole .vc-logbox .vc-item .vc-item-code.vc-item-code-output:before {\n content: "‹";\n}\n#__vconsole .vc-logbox .vc-item .vc-fold {\n display: block;\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-outer {\n display: block;\n font-style: italic;\n padding-left: 0.76923077em;\n position: relative;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-outer:active {\n background-color: #E6E6E6;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-outer:before {\n content: "";\n position: absolute;\n top: 0.30769231em;\n left: 0.15384615em;\n width: 0;\n height: 0;\n border: transparent solid 0.30769231em;\n border-left-color: #000;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-outer.vc-toggle:before {\n top: 0.46153846em;\n left: 0;\n border-top-color: #000;\n border-left-color: transparent;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-inner {\n display: none;\n margin-left: 0.76923077em;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-inner.vc-toggle {\n display: block;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-inner .vc-code-key {\n margin-left: 0.76923077em;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-outer .vc-code-key {\n margin-left: 0;\n}\n#__vconsole .vc-logbox .vc-code-key {\n color: #905;\n}\n#__vconsole .vc-logbox .vc-code-private-key {\n color: #D391B5;\n}\n#__vconsole .vc-logbox .vc-code-function {\n color: #905;\n font-style: italic;\n}\n#__vconsole .vc-logbox .vc-code-number,\n#__vconsole .vc-logbox .vc-code-boolean {\n color: #0086B3;\n}\n#__vconsole .vc-logbox .vc-code-string {\n color: #183691;\n}\n#__vconsole .vc-logbox .vc-code-null,\n#__vconsole .vc-logbox .vc-code-undefined {\n color: #666;\n}\n#__vconsole .vc-logbox .vc-cmd {\n position: absolute;\n height: 3.07692308em;\n left: 0;\n right: 0;\n bottom: 0;\n border-top: 1px solid #D9D9D9;\n display: block!important;\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-input-wrap {\n display: block;\n height: 2.15384615em;\n margin-right: 3.07692308em;\n padding: 0.46153846em 0.61538462em;\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-input {\n width: 100%;\n border: none;\n resize: none;\n outline: none;\n padding: 0;\n font-size: 0.92307692em;\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-input::-webkit-input-placeholder {\n line-height: 2.15384615em;\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-btn {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n width: 3.07692308em;\n border: none;\n background-color: #EFEFF4;\n outline: none;\n -webkit-touch-callout: none;\n font-size: 1em;\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-btn:active {\n background-color: rgba(0, 0, 0, 0.15);\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-prompted {\n position: fixed;\n width: 100%;\n background-color: #FBF9FE;\n border: 1px solid #D9D9D9;\n overflow-x: scroll;\n display: none;\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-prompted li {\n list-style: none;\n line-height: 30px;\n padding: 0 0.46153846em;\n border-bottom: 1px solid #D9D9D9;\n}\n#__vconsole .vc-logbox .vc-group .vc-group-preview {\n -webkit-touch-callout: none;\n}\n#__vconsole .vc-logbox .vc-group .vc-group-preview:active {\n background-color: #E6E6E6;\n}\n#__vconsole .vc-logbox .vc-group .vc-group-detail {\n display: none;\n padding: 0 0 0.76923077em 1.53846154em;\n border-bottom: 1px solid #EEE;\n}\n#__vconsole .vc-logbox .vc-group.vc-actived .vc-group-detail {\n display: block;\n background-color: #FBF9FE;\n}\n#__vconsole .vc-logbox .vc-group.vc-actived .vc-table-row {\n background-color: #FFF;\n}\n#__vconsole .vc-logbox .vc-group.vc-actived .vc-group-preview {\n background-color: #FBF9FE;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-row {\n display: flex;\n display: -webkit-flex;\n flex-direction: row;\n flex-wrap: wrap;\n -webkit-box-direction: row;\n -webkit-flex-wrap: wrap;\n overflow: hidden;\n border-bottom: 1px solid #EEE;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-row.vc-left-border {\n border-left: 1px solid #EEE;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col {\n flex: 1;\n -webkit-box-flex: 1;\n padding: 0.23076923em 0.30769231em;\n border-left: 1px solid #EEE;\n overflow: auto;\n white-space: pre-wrap;\n word-break: break-word;\n /*white-space: nowrap;\n text-overflow: ellipsis;*/\n -webkit-overflow-scrolling: touch;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col:first-child {\n border: none;\n}\n#__vconsole .vc-logbox .vc-table .vc-small .vc-table-col {\n padding: 0 0.30769231em;\n font-size: 0.92307692em;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col-2 {\n flex: 2;\n -webkit-box-flex: 2;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col-3 {\n flex: 3;\n -webkit-box-flex: 3;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col-4 {\n flex: 4;\n -webkit-box-flex: 4;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col-5 {\n flex: 5;\n -webkit-box-flex: 5;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col-6 {\n flex: 6;\n -webkit-box-flex: 6;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-row-error {\n border-color: #F4A0AB;\n background-color: #FFE4E1;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-row-error .vc-table-col {\n color: #DC143C;\n border-color: #F4A0AB;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col-title {\n font-weight: bold;\n}\n#__vconsole .vc-logbox.vc-actived {\n display: block;\n}\n#__vconsole .vc-toolbar {\n border-top: 1px solid #D9D9D9;\n line-height: 3em;\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n display: -webkit-box;\n flex-direction: row;\n -webkit-box-direction: row;\n}\n#__vconsole .vc-toolbar .vc-tool {\n display: none;\n text-decoration: none;\n color: #000;\n width: 50%;\n flex: 1;\n -webkit-box-flex: 1;\n text-align: center;\n position: relative;\n -webkit-touch-callout: none;\n}\n#__vconsole .vc-toolbar .vc-tool.vc-toggle,\n#__vconsole .vc-toolbar .vc-tool.vc-global-tool {\n display: block;\n}\n#__vconsole .vc-toolbar .vc-tool:active {\n background-color: rgba(0, 0, 0, 0.15);\n}\n#__vconsole .vc-toolbar .vc-tool:after {\n content: " ";\n position: absolute;\n top: 0.53846154em;\n bottom: 0.53846154em;\n right: 0;\n border-left: 1px solid #D9D9D9;\n}\n#__vconsole .vc-toolbar .vc-tool-last:after {\n border: none;\n}\n@supports (bottom: constant(safe-area-inset-bottom)) or (bottom: env(safe-area-inset-bottom)) {\n #__vconsole .vc-toolbar,\n #__vconsole .vc-switch {\n bottom: constant(safe-area-inset-bottom);\n bottom: env(safe-area-inset-bottom);\n }\n}\n#__vconsole.vc-toggle .vc-switch {\n display: none;\n}\n#__vconsole.vc-toggle .vc-mask {\n background: rgba(0, 0, 0, 0.6);\n display: block;\n}\n#__vconsole.vc-toggle .vc-panel {\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n}\n',""])},function(e,n){e.exports='
\n
vConsole
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n Hide\n
\n
\n
'},function(e,n){e.exports='{{name}}'},function(e,n){e.exports='
\n \n
'},function(e,n){e.exports='{{name}}'},function(e,n){e.exports='{{name}}'},function(e,n){e.exports='
\n\t
\n
'},function(e,n){e.exports='
\n {{if (lineType == \'obj\')}}\n {{outer}}\n
\n {{else if (lineType == \'value\')}}\n {{value}}\n {{else if (lineType == \'kv\')}}\n {{key}}: {{value}}\n {{/if}}\n
'},function(e,n){e.exports='\n {{key}}: {{value}}\n'},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,factory;factory=function factory(_exports,_query,tool,_log,_tabbox_default,_item_code){"use strict";function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,t):{};o.get||o.set?Object.defineProperty(n,t,o):n[t]=e[t]}return n.default=e,n}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _typeof(e){return(_typeof="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)}function _classCallCheck(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,n){for(var t=0;t=0&&t.test(e[i]);i--)o.push(e[i]);if(0==o.length){t=/\./;for(var A=n-1;A>=0&&t.test(e[A]);A--)o.push(e[A])}if(0===o.length){var a=e.match(/[\(\)\[\]\{\}]/gi)||[];return a[a.length-1]}return o.reverse().join("")};_query.default.bind(_query.default.one(".vc-cmd-input"),"keyup",(function(e){var isDeleteKeyCode=8===e.keyCode||46===e.keyCode,$prompted=_query.default.one(".vc-cmd-prompted");$prompted.style.display="none",$prompted.innerHTML="";var tempValue=this.value,value=retrievePrecedingIdentifier(this.value,this.value.length);if(value&&value.length>0){if(/\(/.test(value)&&!isDeleteKeyCode)return void(_query.default.one(".vc-cmd-input").value+=")");if(/\[/.test(value)&&!isDeleteKeyCode)return void(_query.default.one(".vc-cmd-input").value+="]");if(/\{/.test(value)&&!isDeleteKeyCode)return void(_query.default.one(".vc-cmd-input").value+="}");if("."===value){var key=retrievePrecedingIdentifier(tempValue,tempValue.length-1);if(!cacheObj[key])try{cacheObj[key]=Object.getOwnPropertyNames(eval("("+key+")")).sort()}catch(e){}try{for(var _i3=0;_i3=0){var _$li=document.createElement("li");_$li.innerHTML=winKeys[_i4],_$li.onclick=function(){_query.default.one(".vc-cmd-input").value="",_query.default.one(".vc-cmd-input").value=this.innerHTML,"function"==keyTypes[this.innerHTML]&&(_query.default.one(".vc-cmd-input").value+="()"),$prompted.style.display="none"},$prompted.appendChild(_$li)}}else{var arr=value.split(".");if(cacheObj[arr[0]]){cacheObj[arr[0]].sort();for(var _i5=0;_i5=0&&(_$li2.innerHTML=_key3,_$li2.onclick=function(){_query.default.one(".vc-cmd-input").value="",_query.default.one(".vc-cmd-input").value=tempValue+this.innerHTML,$prompted.style.display="none"},$prompted.appendChild(_$li2))}}}if($prompted.children.length>0){var m=Math.min(200,31*$prompted.children.length);$prompted.style.display="block",$prompted.style.height=m+"px",$prompted.style.marginTop=-m+"px"}}else $prompted.style.display="none"})),_query.default.bind(_query.default.one(".vc-cmd",this.$tabbox),"submit",(function(e){e.preventDefault();var n=_query.default.one(".vc-cmd-input",e.target),t=n.value;n.value="",""!==t&&that.evalCommand(t);var o=_query.default.one(".vc-cmd-prompted");o&&(o.style.display="none")}));var code="";code+="if (!!window) {",code+="window.__vConsole_cmd_result = undefined;",code+="window.__vConsole_cmd_error = false;",code+="}";var scriptList=document.getElementsByTagName("script"),nonce="";scriptList.length>0&&(nonce=scriptList[0].nonce||"");var script=document.createElement("SCRIPT");script.innerHTML=code,script.setAttribute("nonce",nonce),document.documentElement.appendChild(script),document.documentElement.removeChild(script)}},{key:"mockConsole",value:function(){_get(_getPrototypeOf(VConsoleDefaultTab.prototype),"mockConsole",this).call(this);var e=this;tool.isFunction(window.onerror)&&(this.windowOnError=window.onerror),window.onerror=function(n,t,o,i,A){var a=n;t&&(a+="\n"+t.replace(location.origin,"")),(o||i)&&(a+=":"+o+":"+i);var r=!!A&&!!A.stack&&A.stack.toString()||"";e.printLog({logType:"error",logs:[a,r],noOrigin:!0}),tool.isFunction(e.windowOnError)&&e.windowOnError.call(window,n,t,o,i,A)}}},{key:"evalCommand",value:function(e){this.printLog({logType:"log",content:_query.default.render(_item_code.default,{content:e,type:"input"}),style:""});var n,t=void 0;try{t=eval.call(window,"("+e+")")}catch(n){try{t=eval.call(window,e)}catch(e){}}tool.isArray(t)||tool.isObject(t)?n=this.getFoldedLine(t):(tool.isNull(t)?t="null":tool.isUndefined(t)?t="undefined":tool.isFunction(t)?t="function()":tool.isString(t)&&(t='"'+t+'"'),n=_query.default.render(_item_code.default,{content:t,type:"output"})),this.printLog({logType:"log",content:n,style:""}),window.winKeys=Object.getOwnPropertyNames(window).sort()}}]),VConsoleDefaultTab}(_log.default),_default=VConsoleDefaultTab;_exports.default=_default,module.exports=exports.default},__WEBPACK_AMD_DEFINE_ARRAY__=[exports,__webpack_require__(1),__webpack_require__(0),__webpack_require__(3),__webpack_require__(22),__webpack_require__(23)],void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=factory)?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},function(e,n){e.exports='
\n
\n
\n \n
    \n
    \n \n
    \n
    \n
    '},function(e,n){e.exports='
    {{content}}
    '},function(e,n,t){var o,i,A;i=[n,t(3),t(25)],void 0===(A="function"==typeof(o=function(t,o,i){"use strict";function A(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="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)}function r(e,n){for(var t=0;t\n
    \n'},function(e,n,t){var o,i,A;i=[n,t(1),t(0),t(2),t(27),t(28),t(29)],void 0===(A="function"==typeof(o=function(t,o,i,A,a,r,s){"use strict";function g(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="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)}function d(e,n){for(var t=0;t=n.scrollHeight?e.isInBottom=!0:e.isInBottom=!1)})),e.reqList)e.updateRequest(t,{})}},{key:"onRemove",value:function(){window.XMLHttpRequest&&(window.XMLHttpRequest.prototype.open=this._open,window.XMLHttpRequest.prototype.send=this._send,this._open=void 0,this._send=void 0)}},{key:"onShow",value:function(){this.isShow=!0,1==this.isInBottom&&this.scrollToBottom()}},{key:"onHide",value:function(){this.isShow=!1}},{key:"onShowConsole",value:function(){1==this.isInBottom&&this.scrollToBottom()}},{key:"scrollToBottom",value:function(){var e=o.default.one(".vc-content");e.scrollTop=e.scrollHeight-e.offsetHeight}},{key:"clearLog",value:function(){for(var e in this.reqList={},this.domList)this.domList[e].parentNode.removeChild(this.domList[e]),this.domList[e]=void 0;this.domList={},this.renderHeader()}},{key:"renderHeader",value:function(){var e=Object.keys(this.reqList).length,n=o.default.render(r.default,{count:e}),t=o.default.one(".vc-log",this.$tabbox);this.$header?this.$header.parentNode.replaceChild(n,this.$header):t.parentNode.insertBefore(n,t),this.$header=n}},{key:"updateRequest",value:function(e,n){var t=Object.keys(this.reqList).length,A=this.reqList[e]||{};for(var a in n)A[a]=n[a];if(this.reqList[e]=A,this.isReady){var r={id:e,url:A.url,status:A.status,method:A.method||"-",costTime:A.costTime>0?A.costTime+"ms":"-",header:A.header||null,getData:A.getData||null,postData:A.postData||null,response:null,actived:!!A.actived};switch(A.responseType){case"":case"text":if(i.isString(A.response))try{r.response=JSON.parse(A.response),r.response=JSON.stringify(r.response,null,1),r.response=i.htmlEncode(r.response)}catch(e){r.response=i.htmlEncode(A.response)}else void 0!==A.response&&(r.response=Object.prototype.toString.call(A.response));break;case"json":void 0!==A.response&&(r.response=JSON.stringify(A.response,null,1),r.response=i.htmlEncode(r.response));break;case"blob":case"document":case"arraybuffer":default:void 0!==A.response&&(r.response=Object.prototype.toString.call(A.response))}0==A.readyState||1==A.readyState?r.status="Pending":2==A.readyState||3==A.readyState?r.status="Loading":4==A.readyState||(r.status="Unknown");var g=o.default.render(s.default,r),c=this.domList[e];A.status>=400&&o.default.addClass(o.default.one(".vc-group-preview",g),"vc-table-row-error"),c?c.parentNode.replaceChild(g,c):o.default.one(".vc-log",this.$tabbox).insertAdjacentElement("beforeend",g),this.domList[e]=g,Object.keys(this.reqList).length!=t&&this.renderHeader(),this.isInBottom&&this.scrollToBottom()}}},{key:"mockAjax",value:function(){if(window.XMLHttpRequest){var e=this,n=window.XMLHttpRequest.prototype.open,t=window.XMLHttpRequest.prototype.send;e._open=n,e._send=t,window.XMLHttpRequest.prototype.open=function(){var t=this,o=[].slice.call(arguments),i=o[0],A=o[1],a=e.getUniqueID(),r=null;t._requestID=a,t._method=i,t._url=A;var s=t.onreadystatechange||function(){},g=function(){var n=e.reqList[a]||{};if(n.readyState=t.readyState,n.status=0,t.readyState>1&&(n.status=t.status),n.responseType=t.responseType,0==t.readyState)n.startTime||(n.startTime=+new Date);else if(1==t.readyState)n.startTime||(n.startTime=+new Date);else if(2==t.readyState){n.header={};for(var o=t.getAllResponseHeaders()||"",i=o.split("\n"),A=0;A0){a.getData={},r=(r=r.join("?")).split("&");var s=!0,g=!1,c=void 0;try{for(var d,u=r[Symbol.iterator]();!(s=(d=u.next()).done);s=!0){var l=d.value;l=l.split("="),a.getData[l[0]]=decodeURIComponent(l[1])}}catch(e){g=!0,c=e}finally{try{s||null==u.return||u.return()}finally{if(g)throw c}}}if("POST"==a.method)if(i.isString(A)){var m=A.split("&");a.postData={};var f=!0,p=!1,C=void 0;try{for(var b,I=m[Symbol.iterator]();!(f=(b=I.next()).done);f=!0){var _=b.value;_=_.split("="),a.postData[_[0]]=_[1]}}catch(e){p=!0,C=e}finally{try{f||null==I.return||I.return()}finally{if(p)throw C}}}else i.isPlainObject(A)&&(a.postData=A);return n._noVConsole||e.updateRequest(n._requestID,a),t.apply(n,o)}}}},{key:"getUniqueID",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=16*Math.random()|0;return("x"==e?n:3&n|8).toString(16)}))}}])&&d(t.prototype,g),c&&d(t,c),n}();t.default=f,e.exports=n.default})?o.apply(n,i):o)||(e.exports=A)},function(e,n){e.exports='
    \n
    \n
    '},function(e,n){e.exports='
    \n
    Name {{if (count > 0)}}({{count}}){{/if}}
    \n
    Method
    \n
    Status
    \n
    Time
    \n
    '},function(e,n){e.exports='
    \n
    \n
    {{url}}
    \n
    {{method}}
    \n
    {{status}}
    \n
    {{costTime}}
    \n
    \n
    \n {{if (header !== null)}}\n
    \n
    \n
    Headers
    \n
    \n {{for (var key in header)}}\n
    \n
    {{key}}
    \n
    {{header[key]}}
    \n
    \n {{/for}}\n
    \n {{/if}}\n {{if (getData !== null)}}\n
    \n
    \n
    Query String Parameters
    \n
    \n {{for (var key in getData)}}\n
    \n
    {{key}}
    \n
    {{getData[key]}}
    \n
    \n {{/for}}\n
    \n {{/if}}\n {{if (postData !== null)}}\n
    \n
    \n
    Form Data
    \n
    \n {{for (var key in postData)}}\n
    \n
    {{key}}
    \n
    {{postData[key]}}
    \n
    \n {{/for}}\n
    \n {{/if}}\n
    \n
    \n
    Response
    \n
    \n
    \n
    {{response || \'\'}}
    \n
    \n
    \n
    \n
    '},function(e,n,t){var o,i,A;i=[n,t(31),t(2),t(33),t(34),t(0),t(1)],void 0===(A="function"==typeof(o=function(t,o,i,A,a,r,s){"use strict";function g(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="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)}function d(e,n){for(var t=0;t0&&this.onChildRemove(e),e.addedNodes.length>0&&this.onChildAdd(e);break;case"attributes":this.onAttributesChange(e);break;case"characterData":this.onCharacterDataChange(e)}}},{key:"onChildRemove",value:function(e){var n=e.target;if(n.__vconsole_node){for(var t=0;t0||(e.childNodes[i]?o.renderView(e.childNodes[i],a,"replace"):a.style.display="none"))}}})),t){case"replace":n.parentNode.replaceChild(i,n);break;case"insertBefore":n.parentNode.insertBefore(i,n);break;default:n.appendChild(i)}return i}},{key:"getNode",value:function(e){if(!this._isIgnoredElement(e)){var n=e.__vconsole_node||{};if(n.nodeType=e.nodeType,n.nodeName=e.nodeName,n.tagName=e.tagName||"",n.textContent="",n.nodeType!=e.TEXT_NODE&&n.nodeType!=e.DOCUMENT_TYPE_NODE||(n.textContent=e.textContent),n.id=e.id||"",n.className=e.className||"",n.attributes=[],e.hasAttributes&&e.hasAttributes())for(var t=0;t0)for(var o=0;o .vcelm-node {\n display: block;\n}\n.vcelm-l .vcelm-node:active {\n background-color: rgba(0, 0, 0, 0.15);\n}\n.vcelm-l.vcelm-noc .vcelm-node:active {\n background-color: transparent;\n}\n.vcelm-t {\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n/* level */\n.vcelm-l .vcelm-l {\n display: none;\n}\n.vcelm-l.vc-toggle > .vcelm-l {\n margin-left: 4px;\n display: block;\n}\n/* arrow */\n.vcelm-l:before {\n content: "";\n display: block;\n position: absolute;\n top: 6px;\n left: 3px;\n width: 0;\n height: 0;\n border: transparent solid 3px;\n border-left-color: #000;\n}\n.vcelm-l.vc-toggle:before {\n display: block;\n top: 6px;\n left: 0;\n border-top-color: #000;\n border-left-color: transparent;\n}\n.vcelm-l.vcelm-noc:before {\n display: none;\n}\n',""])},function(e,n){e.exports='
    \n
    \n
    '},function(e,n,t){var o,i,A;i=[n,t(35),t(36),t(0),t(1)],void 0===(A="function"==typeof(o=function(t,o,i,A,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function s(e,n){for(var t=0;t-1),r=A;0==e.childNodes.length&&(r=!0);var s=a.default.render(o.default,{node:e}),g=a.default.render(i.default,{node:e});if(r)a.default.addClass(n,"vcelm-noc"),n.appendChild(s),A||n.appendChild(g);else{n.appendChild(s);for(var c=0;c<{{node.tagName.toLowerCase()}}{{if (node.className || node.attributes.length)}}\n \n {{for (var i = 0; i < node.attributes.length; i++)}}\n {{if (node.attributes[i].value !== \'\')}}\n {{node.attributes[i].name}}="{{node.attributes[i].value}}"{{else}}\n {{node.attributes[i].name}}{{/if}}{{/for}}{{/if}}>
    '},function(e,n){e.exports='</{{node.tagName.toLowerCase()}}>'},function(e,n,t){var o,i,A;i=[n,t(2),t(38),t(39),t(0),t(1)],void 0===(A="function"==typeof(o=function(t,o,i,A,a,r){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g="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)}function c(e,n){for(var t=0;t\n
    \n'},function(e,n){e.exports='
    \n
    \n
    Name
    \n
    Value
    \n
    \n {{for (var i = 0; i < list.length; i++)}}\n
    \n
    {{list[i].name}}
    \n
    {{list[i].value}}
    \n
    \n {{/for}}\n
    '}])}))}).call(this,__webpack_require__("5a52")["default"])},f37e:function(e,n,t){"use strict";var o=t("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.getWechatConfig=a,n.wechatAuth=r,n.getLogo=s,n.login=g,n.silenceAuth=c,n.getShare=d,n.follow=u,n.imageBase64=l,n.copyWords=m,n.getShopConfig=f,n.getUserPhone=p,n.routineLogin=C,n.wechatAuthV2=b,n.getNavigation=I,n.getSubscribe=_,n.getUpdateInfo=w;var i=o(t("f75a")),A=o(t("124b"));function a(){return i.default.get("wechat/config",{url:A.default.signLink()},{noAuth:!0})}function r(e,n,t){return i.default.get("wechat/auth",{code:e,spread:n,login_type:t},{noAuth:!0})}function s(){return i.default.get("wechat/get_logo",{},{noAuth:!0})}function g(e){return i.default.post("wechat/mp_auth",e,{noAuth:!0})}function c(e){return i.default.get("v2/wechat/wx_silence_auth",e,{noAuth:!0})}function d(){return i.default.get("share",{},{noAuth:!0})}function u(){return i.default.get("wechat/follow",{},{noAuth:!0})}function l(e,n){return i.default.post("image_base64",{image:e,code:n},{noAuth:!0})}function m(){return i.default.get("copy_words",{},{noAuth:!0})}function f(){return i.default.get("v2/bind_status",{},{noAuth:!0})}function p(e){return i.default.post("v2/auth_bindind_phone",e,{noAuth:!0})}function C(e){return i.default.get("v2/wechat/routine_auth",e,{noAuth:!0})}function b(e,n){return i.default.get("v2/wechat/auth",{code:e,spread:n},{noAuth:!0})}function I(e){return i.default.get("navigation",e,{noAuth:!0})}function _(){return i.default.get("subscribe",{},{noAuth:!0})}function w(e){return i.default.get("get_new_app/"+e,{},{noAuth:!0})}},f47e:function(e,n,t){"use strict";t.r(n);var o=t("8dbe"),i=t.n(o);for(var A in o)"default"!==A&&function(e){t.d(n,e,(function(){return o[e]}))}(A);n["default"]=i.a},f57c:function(e,n,t){"use strict";var o=t("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.getCartCounts=A,n.getCartList=a,n.getResetCart=r,n.changeCartNum=s,n.cartDel=g,n.getOrderList=c,n.orderProduct=d,n.orderComment=u,n.orderPay=l,n.refundOrderDel=m,n.orderData=f,n.orderCancel=p,n.orderDel=C,n.getOrderDetail=b,n.getRefundOrderDetail=I,n.orderAgain=_,n.orderTake=w,n.express=v,n.ordeRefundReason=y,n.orderRefundVerify=h,n.orderConfirm=k,n.getCouponsOrderPrice=x,n.orderCreate=B,n.postOrderComputed=D,n.orderCoupon=E,n.offlineCheckPrice=P,n.offlineCreate=F,n.orderOfflinePayType=Q,n.orderInvoiceList=S,n.orderInvoiceDetail=T,n.aliPay=O,n.refundExpress=L,n.vcartList=U,n.refundGoodsList=Y,n.postRefundGoods=M,n.returnGoodsSubmit=H,n.getNewOrderList=G,n.refundOrderDetail=N,n.cancelRefundOrder=j;var i=o(t("f75a"));function A(e){return i.default.get("cart/count",{numType:void 0===e?0:e})}function a(e){return i.default.get("cart/list",e)}function r(e){return i.default.post("v2/reset_cart",e)}function s(e,n){return i.default.post("cart/num",{id:e,number:n})}function g(e){return"object"===typeof e&&(e=e.join(",")),i.default.post("cart/del",{ids:e})}function c(e){return i.default.get("order/list",e)}function d(e){return i.default.post("order/product",{unique:e})}function u(e){return i.default.post("order/comment",e)}function l(e){return i.default.post("order/pay",e)}function m(e){return i.default.get("order/refund/del/"+e,{})}function f(){return i.default.get("order/data")}function p(e){return i.default.post("order/cancel",{id:e})}function C(e){return i.default.post("order/del",{uni:e})}function b(e,n){return i.default.get("order/detail/"+e+"".concat(n?"/".concat(n):""))}function I(e,n){return i.default.get("order/refund_detail/"+e+"".concat(n?"/".concat(n):""))}function _(e){return i.default.post("order/again",{uni:e})}function w(e){return i.default.post("order/take",{uni:e})}function v(e,n){return i.default.get("order/express/"+e+"".concat(n?"/refund":""))}function y(){return i.default.get("order/refund/reason")}function h(e){return i.default.post("order/refund/verify",e)}function k(e,n,t,o){return i.default.post("order/confirm",{cartId:e,new:n,addressId:t,shipping_type:o})}function x(e,n){return i.default.get("coupons/order/"+e,n)}function B(e,n){return i.default.post("order/create/"+e,n)}function D(e,n){return i.default.post("order/computed/"+e,n)}function E(e){return i.default.post("v2/order/product_coupon/"+e)}function P(e){return i.default.post("order/offline/check/price",e)}function F(e){return i.default.post("order/offline/create",e)}function Q(){return i.default.get("order/offline/pay/type")}function S(e){return i.default.get("v2/order/invoice_list",e)}function T(e){return i.default.get("v2/order/invoice_detail/".concat(e))}function O(e,n){return i.default.get("ali_pay",{key:e,quitUrl:n},{noAuth:!0})}function L(e){return i.default.post("order/refund/express",e)}function U(){return i.default.get("v2/cart_list")}function Y(e){return i.default.get("order/refund/cart_info/".concat(e))}function M(e){return i.default.post("order/refund/cart_info",e)}function H(e,n){return i.default.post("order/refund/apply/".concat(e),n)}function G(e){return i.default.get("order/refund/list",e)}function N(e){return i.default.get("order/refund/detail/"+e)}function j(e){return i.default.post("order/refund/cancel/"+e)}},f75a:function(e,n,t){"use strict";var o=t("4ea4");t("4160"),t("c975"),t("d3b7"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=t("ca44"),A=t("f9f5"),a=o(t("b1af"));function r(e,n,t,o){var r=o.noAuth,s=void 0!==r&&r,g=o.noVerify,c=void 0!==g&&g,d=i.HTTP_REQUEST_URL,u=i.HEADER;return s||a.default.state.app.token||(0,A.checkLogin)()?(a.default.state.app.token&&(u[i.TOKENNAME]="Bearer "+a.default.state.app.token),new Promise((function(o,i){uni.request({url:d+"/api/"+e,method:n||"GET",header:u,data:t||{},success:function(e){c||200==e.data.status?o(e.data,e):-1!==[41e4,410001,410002].indexOf(e.data.status)?((0,A.toLogin)(),i(e.data)):410010==e.data.status?uni.showModal({title:"提示",content:e.data.msg,showCancel:!1,confirmText:"我知道了"}):i(e.data.msg||"系统错误")},fail:function(e){i("请求失败")}})}))):((0,A.toLogin)(),Promise.reject({msg:"未登录"}))}var s={};["options","get","post","put","head","delete","trace","connect"].forEach((function(e){s[e]=function(n,t,o){return r(n,e,t,o||{})}}));var g=s;n.default=g},f9f5:function(e,n,t){"use strict";var o=t("4ea4");t("c975"),t("ac1f"),t("841c"),Object.defineProperty(n,"__esModule",{value:!0}),n.checkLogin=l,n.toLogin=void 0;var i=o(t("b1af")),A=o(t("bc9c")),a=t("3bb5"),r=t("72cd"),s=o(t("124b")),g=t("e377");o(t("5617"));function c(){var e=getCurrentPages(),n=e[e.length-1];return n.route}var d=(0,a.Debounce)(u,800);function u(e,n){(0,r.isWeixin)()&&uni.getStorageSync("authIng")||i.default.commit("LOGOUT");var t=c();if(t=location.pathname+location.search,n||(n="/page/users/login/index"),A.default.set("login_back_url",t),(0,r.isWeixin)()){var o=location.pathname+location.search;-1!==o.indexOf("?")?o+="&go_longin=1":o+="?go_longin=1",A.default.has("snsapiKey")?uni.navigateTo({url:"/pages/users/wechat_login/index"}):s.default.oAuth("snsapi_base",o)}else uni.navigateTo({url:"/pages/users/login/index"})}function l(){var e=A.default.get(g.LOGIN_STATUS);A.default.get(g.EXPIRES_TIME);if(e){i.default.commit("UPDATE_LOGIN",e);var n=A.default.get(g.USER_INFO,!0);return n&&i.default.commit("UPDATE_USERINFO",n),!0}return uni.setStorageSync("authIng",!1),A.default.clear(g.LOGIN_STATUS),A.default.clear(g.EXPIRES_TIME),A.default.clear(g.USER_INFO),A.default.clear(g.STATE_R_KEY),!1}n.toLogin=d},fdc4:function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return A})),t.d(n,"a",(function(){return o}));var i=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.show?t("v-uni-view",{style:{width:e.systemInfo.width+"px",height:e.systemInfo.height+"px",backgroundColor:e.bgcolor,position:"absolute",left:0,top:0,zIndex:9998}},[e._l(e.skeletonRectLists,(function(n,o){return t("v-uni-view",{key:o+"rect",class:["chiaroscuro"==e.loading?"chiaroscuro":""],style:{width:n.width+"px",height:n.height+"px",backgroundColor:"rgb(194, 207, 214,.3)",position:"absolute",left:n.left+"px",top:n.top+"px"}})})),e._l(e.skeletonCircleLists,(function(n,o){return t("v-uni-view",{key:o+"circle",class:"chiaroscuro"==e.loading?"chiaroscuro":"",style:{width:n.width+"px",height:n.height+"px",backgroundColor:"rgb(194, 207, 214,.3)",borderRadius:n.width+"px",position:"absolute",left:n.left+"px",top:n.top+"px"}})})),"spin"==e.loading?t("v-uni-view",{staticClass:"spinbox"},[t("v-uni-view",{staticClass:"spin"})],1):e._e()],2):e._e()},A=[]}});