|
@@ -11,6 +11,12 @@ import { getQuery } from "/src/utils/queryString";
|
|
|
export default defineComponent({
|
|
|
name: "TheVip",
|
|
|
setup() {
|
|
|
+ const apiUrls = {
|
|
|
+ 'dev': 'https://dev.kt.colexiu.com',
|
|
|
+ 'test': 'https://test.lexiaoya.cn',
|
|
|
+ 'online': 'https://kt.colexiu.com',
|
|
|
+ }
|
|
|
+ let environment: 'dev' | 'test' | 'online' = location.origin.includes('//dev') ? 'dev' : location.origin.includes('//test') ? 'test' : (location.origin.includes('//online') || location.origin.includes('//kt') || location.origin.includes('//mec')) ? 'online' : 'dev'
|
|
|
const close = () => {
|
|
|
const query = getQuery();
|
|
|
if (query.modelType){
|
|
@@ -42,7 +48,7 @@ export default defineComponent({
|
|
|
postMessage({
|
|
|
api: "openWebView",
|
|
|
content: {
|
|
|
- url: `${location.origin.includes('192') ? 'https://test.lexiaoya.cn' : location.origin}/classroom-app/#/member-center`,
|
|
|
+ url: `${location.origin.includes('192') ? 'https://test.lexiaoya.cn' : apiUrls[environment]}/classroom-app/#/member-center`,
|
|
|
orientation: 1,
|
|
|
},
|
|
|
});
|