feat; 更新
No files matched your search
@@ -14,6 +14,7 @@
|
||||
100% {transform:rotate(360deg);}
|
||||
}
|
||||
</style>
|
||||
<script>window.info = {};window.getMessage = function(key, value) {window.info[key] = value;};</script>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
|
||||
|
Before Width: | Height: | Size: 168 KiB After Width: | Height: | Size: 108 KiB |
|
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 51 KiB |
@@ -193,7 +193,7 @@ const tools = {
|
||||
|
||||
const getMsgFromDevice = function() {
|
||||
let browser = checkVersion();
|
||||
const info = {};
|
||||
let info = {};
|
||||
if (browser.app) {
|
||||
if (browser.ios) {
|
||||
window.webkit.messageHandlers.getDeviceId.postMessage(null);
|
||||
@@ -201,16 +201,16 @@ const getMsgFromDevice = function() {
|
||||
} else if (browser.android) {
|
||||
// eslint-disable-next-line no-undef
|
||||
if (androidJsObj && typeof androidJsObj === "object") {
|
||||
info.deviceId = window.androidJsObj.getDeviceId();
|
||||
info.roomUid = window.androidJsObj.getRoomUid();
|
||||
window.info.deviceId = window.androidJsObj.getDeviceId();
|
||||
window.info.roomUid = window.androidJsObj.getRoomUid();
|
||||
}
|
||||
|
||||
info.appVersion = tools.nativeUtils.getAppVersion();
|
||||
window.info.appVersion = tools.nativeUtils.getAppVersion();
|
||||
}
|
||||
|
||||
info.uid = tools.nativeUtils.getUid();
|
||||
info.ticket = tools.nativeUtils.getTicket();
|
||||
info.appVersion = tools.nativeUtils.getAppVersion();
|
||||
window.info.uid = tools.nativeUtils.getUid();
|
||||
window.info.ticket = tools.nativeUtils.getTicket();
|
||||
window.info.appVersion = tools.nativeUtils.getAppVersion();
|
||||
} else {
|
||||
const params = getQueryString();
|
||||
if (
|
||||
@@ -218,13 +218,14 @@ const getMsgFromDevice = function() {
|
||||
params.debug === "true" ||
|
||||
location.hostname === "localhost"
|
||||
) {
|
||||
info.roomUid = 904860;
|
||||
info.uid = 1000002;
|
||||
info.deviceId = "afhksafhksajhfs1kjahsfkjsf0000aaaaaaaacaa";
|
||||
info.ticket =
|
||||
window.info.roomUid = 904860;
|
||||
window.info.uid = 1000002;
|
||||
window.info.deviceId = "afhksafhksajhfs1kjahsfkjsf0000aaaaaaaacaa";
|
||||
window.info.ticket =
|
||||
"eyJhbGciOiJIUzI1NiJ9.eyJ0aWNrZXRfdHlwZSI6bnVsbCwidWlkIjo5MTMzOSwidGlja2V0X2lkIjoiOGJmMTdlYmQtMTY4ZC00NTliLWI0NzUtMDU3M2Y1ZmM4MDQzIiwiZXhwIjozNjAwLCJjbGllbnRfaWQiOiJlcmJhbi1jbGllbnQifQ.MnKGEc6bSkyOkCbx26lib6J0koFDA2uiKnbwkhdk3MU";
|
||||
}
|
||||
}
|
||||
info = window.info;
|
||||
return info;
|
||||
};
|
||||
|
||||
|
||||
@@ -16,11 +16,6 @@ import {
|
||||
Button
|
||||
} from "vant";
|
||||
|
||||
window.info = {};
|
||||
window.getMessage = function(key, value) {
|
||||
window.info[key] = value;
|
||||
};
|
||||
|
||||
Vue.config.productionTip = false;
|
||||
|
||||
Vue.use(Toast);
|
||||
|
||||