task#15348,ios培训参数转换为int,去除Vscole

This commit is contained in:
2024-10-14 17:20:53 +08:00
parent bd45b42ccd
commit 1f8df28ef8
2 changed files with 4 additions and 4 deletions

View File

@ -30,10 +30,10 @@
} }
</script> </script>
<script src="https://webapi.amap.com/maps?v=1.4.15&key=2560bbf04daef66c810c5e6a97e8c508&plugin=AMap.Polyline"></script> <script src="https://webapi.amap.com/maps?v=1.4.15&key=2560bbf04daef66c810c5e6a97e8c508&plugin=AMap.Polyline"></script>
<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script> <!-- <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>-->
<script> <script>
// VConsole 默认会挂载到 `window.VConsole` 上 // VConsole 默认会挂载到 `window.VConsole` 上
let vConsole = new window.VConsole(); // let vConsole = new window.VConsole();
(function (doc, win) { (function (doc, win) {
console.log("==window.location.pathname===",window.location.pathname) console.log("==window.location.pathname===",window.location.pathname)
let docEl = doc.documentElement let docEl = doc.documentElement

View File

@ -35,7 +35,7 @@ export const myMixins = {
} }
}, },
goH5Detail(item,type){//h5传参到app文档资料培训文档 goH5Detail(item,type){//h5传参到app文档资料培训文档
console.log("type",type) // console.log("type",type)
let data = { let data = {
"action": "goTraining", "action": "goTraining",
"params": { "params": {
@ -46,7 +46,7 @@ export const myMixins = {
let u = navigator.userAgent; let u = navigator.userAgent;
let isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); let isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
if(isiOS){ if(isiOS){
console.log("data",data) // console.log("data",data)
window.webkit.messageHandlers.nativeObject.postMessage(data); window.webkit.messageHandlers.nativeObject.postMessage(data);
}else { }else {
if(type == '培训文档'){ if(type == '培训文档'){