1 |
- var w=Object.defineProperty,T=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var O=(e,t,r)=>t in e?w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,d=(e,t)=>{for(var r in t||(t={}))B.call(t,r)&&O(e,r,t[r]);if(A)for(var r of A(t))R.call(t,r)&&O(e,r,t[r]);return e},h=(e,t)=>T(e,j(t));import{i as D,n as y,j as M,T as p,s as S,h as k}from"./vendor.372dc65e.js";const V=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerpolicy&&(s.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?s.credentials="include":o.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}};V();var J=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r};const N="modulepreload",C={},X="./",i=function(t,r){return!r||r.length===0?t():Promise.all(r.map(n=>{if(n=`${X}${n}`,n in C)return;C[n]=!0;const o=n.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${s}`))return;const a=document.createElement("link");if(a.rel=o?"stylesheet":N,o||(a.as="script",a.crossOrigin=""),a.href=n,document.head.appendChild(a),o)return new Promise((m,l)=>{a.addEventListener("load",m),a.addEventListener("error",l)})})).then(()=>t())},c=D({user:{status:"init",data:{}},platformType:"",musicCertStatus:!1,openLiveStatus:!1}),W=e=>{c.user.status="login",c.user.data=e},L=()=>{c.user.status="logout",c.user.data=null},$=()=>{c.user.status="error",c.user.data=null};D({loadingCount:0});const F=()=>{const e=navigator.userAgent;return{trident:e.indexOf("Trident")>-1,presto:e.indexOf("Presto")>-1,webKit:e.indexOf("AppleWebKit")>-1,gecko:e.indexOf("Gecko")>-1&&e.indexOf("KHTML")==-1,mobile:!!e.match(/AppleWebKit.*Mobile.*/),ios:!!e.match(/Mac OS X/),android:e.indexOf("COLEXIUAPPA")>-1||e.indexOf("Adr")>-1,iPhone:e.indexOf("COLEXIUAPPI")>-1,isApp:e.indexOf("COLEXIUAPPI")>-1||e.indexOf("COLEXIUAPPA")>-1||e.indexOf("Adr")>-1,iPad:e.indexOf("iPad")>-1,webApp:e.indexOf("Safari")==-1,weixin:e.indexOf("MicroMessenger")>-1,huawei:!!e.match(/huawei/i)||!!e.match(/honor/i),xiaomi:!!e.match(/mi\s/i)||!!e.match(/redmi/i)||!!e.match(/mix/i)}},P=()=>""+new Date().getTime()+Math.floor(Math.random()*1e6),Y=()=>{sessionStorage.removeItem("Authorization")},G=e=>{sessionStorage.setItem("Authorization",e)},Q=(e,t=0)=>t?["\u661F\u671F\u5929","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"][e]:["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"][e],Z=(e,t)=>e==="year"?`${t}\u5E74`:e==="month"?`${t}\u6708`:e==="day"?`${t}\u65E5`:t,ee=e=>y(e).format("0,0.00"),q=window.postMessage;window.postMessage=e=>{q(e,"*")};const f=()=>{},u={},E=F();E.isApp&&window.addEventListener("message",e=>{var t,r,n;try{console.log(e,"message",e.data);const o=e.data?typeof e.data=="object"?e.data:JSON.parse(e.data):{},s=((t=o.content)==null?void 0:t.uuid)||o.uuid;console.log(s,o.content,"uuid");try{o.content&&(o.content=JSON.parse(o.content))}catch{}if(((r=o==null?void 0:o.content)==null?void 0:r.uuid)&&console.log("data",o),!s){const l=Object.keys(u).filter(_=>_.indexOf(o.api)===0);console.log(l,"keys"),console.log(o,"data");for(const _ of l){const g=u[_]||f;typeof g=="function"&&g(o)}return}const a=((n=o.content)==null?void 0:n.uuid)||o.uuid||o.api+o.uuid,m=u[a]||f;console.log(o,"data"),typeof m=="function"&&m(o)}catch(o){console.error("\u901A\u4FE1\u6D88\u606F\u89E3\u6790\u9519\u8BEF",o)}});var I,x;const z=window.COLEXIU||((x=(I=window.webkit)==null?void 0:I.messageHandlers)==null?void 0:x.COLEXIU),K=(e,t)=>{if(E.isApp){const r=P();u[r]=t||f,e.content=e.content?h(d({},e.content),{uuid:r}):{uuid:r},z.postMessage(JSON.stringify(e)),console.log("send:",JSON.stringify(e))}},te=(e,t)=>{if(E.isApp){const r=e+P();u[r]=t||f}},oe=(e,t)=>{if(E.isApp){const r=e;if(Array.isArray(u[r])){const n=u[r].indexOf(t);u[r].splice(n,1)}}},v=M({timeout:2e4,timeoutMessage:"\u8BF7\u6C42\u8D85\u65F6"});let b=!1;v.interceptors.request.use((e,t)=>{t.hideLoading||p.loading({message:"\u52A0\u8F7D\u4E2D...",forbidClick:!0,loadingType:"spinner",duration:0}),b=t.initRequest||!1;const r=sessionStorage.getItem("Authorization")||"",n={};return r&&!["/api-auth/usernameLogin","/api-auth/smsLogin","/api-auth/code/sendSms"].includes(e)&&(n.Authorization=r),{url:e,options:h(d({},t),{params:S(t.params),headers:d(d({},t.headers),n)})}},{global:!1});v.interceptors.response.use(async e=>{if(p.clear(),e.status>299||e.status<200){const r="\u670D\u52A1\u5668\u9519\u8BEF\uFF0C\u72B6\u6001\u7801"+e.status;throw p(r),new Error(r)}const t=await e.clone().json();if(t.code!==200&&t.errCode!==0){let r=t.msg||"\u5904\u7406\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5";b&&(t.code===403||t.code===401?L():$()),t.code===403||t.code===401||p(r);const n=F();throw t.code===403&&(r+="403",n.isApp?K({api:"login"}):L()),new Error(r)}return e},{global:!1});const re=[{path:"/orderDetail",name:"orderDetail",component:()=>i(()=>import("./index.1f4daeb3.js"),["assets/index.1f4daeb3.js","assets/index.3ec96a91.css","assets/index.09cb4b8c.css","assets/index.c3ad47f3.css","assets/index.935001ee.css","assets/index.e07367fb.css","assets/index.4da210b7.css","assets/index.c1ee5538.css","assets/index.2fc2f59a.css","assets/index.7a7f33be.css","assets/index.ed0ac76f.css","assets/index.abdc2a4c.css","assets/index.360fb78d.css","assets/index.d4faca36.js","assets/index.ffae849d.css","assets/vendor.372dc65e.js","assets/vendor.177057eb.css","assets/icon_checkbox_default.2fe5d57e.js","assets/index.33c26d32.js","assets/index.1b729ab7.css","assets/index.336d16cc.js","assets/index.42a60c15.js","assets/index.f5591219.css","assets/icon_tips.1f103236.js","assets/index.7d13bf74.js","assets/index.9c0f0484.css","assets/orderStatus.3c16fe86.js","assets/icon_teacher.2c3a434a.js","assets/index.926ca9c5.js","assets/init-user-icon.d5c3c464.js"]),meta:{title:"\u8BA2\u5355\u8BE6\u60C5"}},{path:"/tradeDetail",name:"tradeDetail",component:()=>i(()=>import("./trade-detail.96f8be8b.js"),["assets/trade-detail.96f8be8b.js","assets/trade-detail.bdd6c940.css","assets/index.09cb4b8c.css","assets/index.935001ee.css","assets/index.ed0ac76f.css","assets/index.e07367fb.css","assets/index.abdc2a4c.css","assets/index.7a7f33be.css","assets/index.360fb78d.css","assets/index.33c26d32.js","assets/index.1b729ab7.css","assets/vendor.372dc65e.js","assets/vendor.177057eb.css","assets/index.a4625394.js","assets/icon_teacher.2c3a434a.js","assets/index.7d13bf74.js","assets/index.9c0f0484.css","assets/orderStatus.3c16fe86.js"]),meta:{title:"\u4EA4\u6613\u8BE6\u60C5"}},{path:"/goodsOrder",name:"goodsOrder",component:()=>i(()=>import("./index.6c95172a.js"),["assets/index.6c95172a.js","assets/index.09cb4b8c.css","assets/index.935001ee.css","assets/index.e07367fb.css","assets/index.85a0c0a7.css","assets/index.725eb6f5.css","assets/index.6073691f.css","assets/index.3c6f8825.css","assets/index.33c26d32.js","assets/index.1b729ab7.css","assets/vendor.372dc65e.js","assets/vendor.177057eb.css","assets/index.75b00e65.js","assets/index.9b8bd839.css","assets/index.module.66d0f943.js","assets/index.module.fe6cdc90.css"]),meta:{title:"\u5546\u54C1\u8BA2\u5355"}},{path:"/afterSale",name:"afterSale",component:()=>i(()=>import("./after-sale.8a747086.js"),["assets/after-sale.8a747086.js","assets/index.9bdb045e.css","assets/index.09cb4b8c.css","assets/index.935001ee.css","assets/index.c3ad47f3.css","assets/index.e07367fb.css","assets/index.85a0c0a7.css","assets/index.725eb6f5.css","assets/index.6073691f.css","assets/index.3c6f8825.css","assets/index.33c26d32.js","assets/index.1b729ab7.css","assets/vendor.372dc65e.js","assets/vendor.177057eb.css","assets/index.75b00e65.js","assets/index.9b8bd839.css","assets/index.module.66d0f943.js","assets/index.module.fe6cdc90.css"]),meta:{title:"\u552E\u540E\u670D\u52A1"}},{path:"/afterService",name:"afterService",component:()=>i(()=>import("./index.1b7309ce.js"),["assets/index.1b7309ce.js","assets/index.725eb6f5.css","assets/index.6073691f.css","assets/index.3c6f8825.css","assets/vendor.372dc65e.js","assets/vendor.177057eb.css"]),meta:{title:"\u552E\u540E\u670D\u52A1"}},{path:"/helpCenter",name:"helpCenter",component:()=>i(()=>import("./help-center.3da8efeb.js"),["assets/help-center.3da8efeb.js","assets/index.09cb4b8c.css","assets/index.85a0c0a7.css","assets/index.725eb6f5.css","assets/index.c3ad47f3.css","assets/vendor.372dc65e.js","assets/vendor.177057eb.css","assets/index.da09e935.js","assets/index.1c2130c9.css","assets/index.75b00e65.js","assets/index.9b8bd839.css"]),meta:{title:"\u5E2E\u52A9\u4E2D\u5FC3"}},{path:"/helpCenterDetail",name:"helpCenterDetail",component:()=>i(()=>import("./help-center-detail.791744c5.js"),["assets/help-center-detail.791744c5.js","assets/index.e07367fb.css","assets/index.6073691f.css","assets/index.9db88570.css","assets/vendor.372dc65e.js","assets/vendor.177057eb.css","assets/help-center-detail.module.bbedfc5d.js","assets/help-center-detail.module.55a2a782.css"]),meta:{title:"\u5E2E\u52A9\u4E2D\u5FC3\u8BE6\u60C5"}},{path:"/special",name:"special",component:()=>i(()=>import("./special.ae7fd898.js"),["assets/special.ae7fd898.js","assets/special.99552603.css","assets/index.09cb4b8c.css","assets/index.85a0c0a7.css","assets/index.725eb6f5.css","assets/index.e07367fb.css","assets/index.935001ee.css","assets/index.c3ad47f3.css","assets/vendor.372dc65e.js","assets/vendor.177057eb.css","assets/index.da09e935.js","assets/index.1c2130c9.css","assets/index.75b00e65.js","assets/index.9b8bd839.css"]),meta:{title:"\u8D44\u8BAF\u5217\u8868"}},{path:"/specialDetail",name:"specialDetail",component:()=>i(()=>import("./special-detail.ff56b56b.js"),["assets/special-detail.ff56b56b.js","assets/index.e07367fb.css","assets/index.6073691f.css","assets/index.9db88570.css","assets/vendor.372dc65e.js","assets/vendor.177057eb.css","assets/help-center-detail.module.bbedfc5d.js","assets/help-center-detail.module.55a2a782.css"]),meta:{title:"\u8D44\u8BAF\u8BE6\u60C5"}},{path:"/articleTheory",name:"articleTheory",component:()=>i(()=>import("./theory.b77965d5.js"),["assets/theory.b77965d5.js","assets/theory.9a68dfe2.css","assets/index.09cb4b8c.css","assets/index.85a0c0a7.css","assets/index.725eb6f5.css","assets/index.e07367fb.css","assets/index.935001ee.css","assets/index.c3ad47f3.css","assets/vendor.372dc65e.js","assets/vendor.177057eb.css","assets/index.da09e935.js","assets/index.1c2130c9.css","assets/index.75b00e65.js","assets/index.9b8bd839.css"]),meta:{title:"\u4E50\u7406\u5217\u8868"}},{path:"/theoryDetail",name:"theoryDetail",component:()=>i(()=>import("./theory-detail.e7092082.js"),["assets/theory-detail.e7092082.js","assets/index.e07367fb.css","assets/index.6073691f.css","assets/index.9db88570.css","assets/vendor.372dc65e.js","assets/vendor.177057eb.css","assets/help-center-detail.module.bbedfc5d.js","assets/help-center-detail.module.55a2a782.css"]),meta:{title:"\u4E50\u7406\u8BE6\u60C5"}},{path:"/shopMall",name:"shopMall",component:()=>i(()=>import("./index.08ac2f64.js"),["assets/index.08ac2f64.js","assets/index.a9113016.css","assets/index.e07367fb.css","assets/index.6073691f.css","assets/index.725eb6f5.css","assets/index.3c6f8825.css","assets/index.ed0ac76f.css","assets/index.85a0c0a7.css","assets/index.09cb4b8c.css","assets/index.441f1bac.css","assets/index.c1ee5538.css","assets/index.33c26d32.js","assets/index.1b729ab7.css","assets/vendor.372dc65e.js","assets/vendor.177057eb.css","assets/index.75b00e65.js","assets/index.9b8bd839.css"]),meta:{title:"\u5546\u57CE"}},{path:"/goodsDetail",name:"goodsDetail",component:()=>i(()=>import("./index.e6fd307b.js"),["assets/index.e6fd307b.js","assets/vendor.372dc65e.js","assets/vendor.177057eb.css"]),meta:{title:"\u5546\u54C1\u8BE6\u60C5"}}],ne=[{path:"/registerProtocol",name:"registerProtocol",component:()=>i(()=>import("./register.963680e8.js"),["assets/register.963680e8.js","assets/index.module.b4127d60.js","assets/index.module.85d8aa1a.css","assets/vendor.372dc65e.js","assets/vendor.177057eb.css"]),meta:{title:"\u6CE8\u518C\u534F\u8BAE"}},{path:"/privacyProtocol",name:"privacyProtocol",component:()=>i(()=>import("./privacy.55b5dda4.js"),["assets/privacy.55b5dda4.js","assets/index.module.b4127d60.js","assets/index.module.85d8aa1a.css","assets/vendor.372dc65e.js","assets/vendor.177057eb.css"]),meta:{title:"\u9177\u4E50\u79C0\u9690\u79C1\u653F\u7B56"}}];var se={moneyFormat(e){return y(e).format("0,0.00")},dateFormat(e,t="YYYY-MM-DD HH:mm:ss"){return k(e).format(t)}};export{J as _,G as a,W as b,$ as c,L as d,F as e,re as f,i as g,ne as h,Y as i,Z as j,Q as k,oe as l,te as m,ee as n,K as p,v as r,c as s,se as v};
|