feat; 更新

This commit is contained in:
dengtongyu committed 2023-04-11 22:50:42 +08:00
1 parent 2419fca977
commit f717386d54
10 files changed
+13 -16

No files matched your search

+1
View File
@@ -14,6 +14,7 @@
100% {transform:rotate(360deg);} 100% {transform:rotate(360deg);}
} }
</style> </style>
<script>window.info = {};window.getMessage = function(key, value) {window.info[key] = value;};</script>
</head> </head>
<body> <body>
<noscript> <noscript>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 168 KiB

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 KiB

After

Width:  |  Height:  |  Size: 51 KiB

+12 -11
View File
@@ -193,7 +193,7 @@ const tools = {
const getMsgFromDevice = function() { const getMsgFromDevice = function() {
let browser = checkVersion(); let browser = checkVersion();
const info = {}; let info = {};
if (browser.app) { if (browser.app) {
if (browser.ios) { if (browser.ios) {
window.webkit.messageHandlers.getDeviceId.postMessage(null); window.webkit.messageHandlers.getDeviceId.postMessage(null);
@@ -201,16 +201,16 @@ const getMsgFromDevice = function() {
} else if (browser.android) { } else if (browser.android) {
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
if (androidJsObj && typeof androidJsObj === "object") { if (androidJsObj && typeof androidJsObj === "object") {
info.deviceId = window.androidJsObj.getDeviceId(); window.info.deviceId = window.androidJsObj.getDeviceId();
info.roomUid = window.androidJsObj.getRoomUid(); window.info.roomUid = window.androidJsObj.getRoomUid();
} }
info.appVersion = tools.nativeUtils.getAppVersion(); window.info.appVersion = tools.nativeUtils.getAppVersion();
} }
info.uid = tools.nativeUtils.getUid(); window.info.uid = tools.nativeUtils.getUid();
info.ticket = tools.nativeUtils.getTicket(); window.info.ticket = tools.nativeUtils.getTicket();
info.appVersion = tools.nativeUtils.getAppVersion(); window.info.appVersion = tools.nativeUtils.getAppVersion();
} else { } else {
const params = getQueryString(); const params = getQueryString();
if ( if (
@@ -218,13 +218,14 @@ const getMsgFromDevice = function() {
params.debug === "true" || params.debug === "true" ||
location.hostname === "localhost" location.hostname === "localhost"
) { ) {
info.roomUid = 904860; window.info.roomUid = 904860;
info.uid = 1000002; window.info.uid = 1000002;
info.deviceId = "afhksafhksajhfs1kjahsfkjsf0000aaaaaaaacaa"; window.info.deviceId = "afhksafhksajhfs1kjahsfkjsf0000aaaaaaaacaa";
info.ticket = window.info.ticket =
"eyJhbGciOiJIUzI1NiJ9.eyJ0aWNrZXRfdHlwZSI6bnVsbCwidWlkIjo5MTMzOSwidGlja2V0X2lkIjoiOGJmMTdlYmQtMTY4ZC00NTliLWI0NzUtMDU3M2Y1ZmM4MDQzIiwiZXhwIjozNjAwLCJjbGllbnRfaWQiOiJlcmJhbi1jbGllbnQifQ.MnKGEc6bSkyOkCbx26lib6J0koFDA2uiKnbwkhdk3MU"; "eyJhbGciOiJIUzI1NiJ9.eyJ0aWNrZXRfdHlwZSI6bnVsbCwidWlkIjo5MTMzOSwidGlja2V0X2lkIjoiOGJmMTdlYmQtMTY4ZC00NTliLWI0NzUtMDU3M2Y1ZmM4MDQzIiwiZXhwIjozNjAwLCJjbGllbnRfaWQiOiJlcmJhbi1jbGllbnQifQ.MnKGEc6bSkyOkCbx26lib6J0koFDA2uiKnbwkhdk3MU";
} }
} }
info = window.info;
return info; return info;
}; };
-5
View File
@@ -16,11 +16,6 @@ import {
Button Button
} from "vant"; } from "vant";
window.info = {};
window.getMessage = function(key, value) {
window.info[key] = value;
};
Vue.config.productionTip = false; Vue.config.productionTip = false;
Vue.use(Toast); Vue.use(Toast);