|
@@ -25,7 +25,6 @@ import LoadingLogo from "@/components/shared/Loading.vue";
|
|
|
import { createApp } from "@/app";
|
|
|
import { listenMessage } from "@/utils/messageHandler";
|
|
|
import { Dialog } from "@/global_components";
|
|
|
-
|
|
|
import { ref, onMounted, computed } from "vue";
|
|
|
import { useStore } from "vuex";
|
|
|
import { useApp, getApp } from "@/app";
|
|
@@ -33,6 +32,17 @@ import browser from "@/utils/browser";
|
|
|
import { useI18n, getLocale } from "@/i18n";
|
|
|
const { t } = useI18n({ useScope: "global" });
|
|
|
|
|
|
+onMounted(async () => {
|
|
|
+ if (browser.isMobile()) {
|
|
|
+ window.location.href = window.location.href.replace(
|
|
|
+ "spg.html",
|
|
|
+ "smg.html"
|
|
|
+ );
|
|
|
+ console.warn('重跳后::',window.location.href);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+});
|
|
|
+
|
|
|
const autoPlayMedia = (player) => {
|
|
|
function onclick() {
|
|
|
window.parent.postMessage(
|
|
@@ -90,23 +100,29 @@ onMounted(() => {
|
|
|
);
|
|
|
break;
|
|
|
case 5034:
|
|
|
- window.location.replace( `/5034.html?m=${browser.getURLParam("m")}&lang=${browser.getURLParam(
|
|
|
+ window.location.replace(
|
|
|
+ `/5034.html?m=${browser.getURLParam("m")}&lang=${browser.getURLParam(
|
|
|
"lang"
|
|
|
- )}`);
|
|
|
+ )}`
|
|
|
+ );
|
|
|
break;
|
|
|
case 5009:
|
|
|
- window.location.replace( `/5034.html?m=${browser.getURLParam("m")}&lang=${browser.getURLParam(
|
|
|
+ window.location.replace(
|
|
|
+ `/5034.html?m=${browser.getURLParam("m")}&lang=${browser.getURLParam(
|
|
|
"lang"
|
|
|
- )}`);
|
|
|
+ )}`
|
|
|
+ );
|
|
|
break;
|
|
|
case 5005:
|
|
|
// Dialog.toast({
|
|
|
// content: t('guide.no_scene'),
|
|
|
// type: 'error',
|
|
|
// })
|
|
|
- window.location.replace( `/5033.html?m=${browser.getURLParam("m")}&lang=${browser.getURLParam(
|
|
|
+ window.location.replace(
|
|
|
+ `/5033.html?m=${browser.getURLParam("m")}&lang=${browser.getURLParam(
|
|
|
"lang"
|
|
|
- )}`);
|
|
|
+ )}`
|
|
|
+ );
|
|
|
break;
|
|
|
}
|
|
|
});
|