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

This commit is contained in:
2024-10-14 17:20:53 +08:00
parent f83e646547
commit 374a5182db

View File

@ -35,18 +35,18 @@ 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": {
"id": item.id, "id":type == '培训文档' ? Number(10000+item.id) : item.id,
// "docType" : type=='培训文档' ? 1 : 2,
} }
}; };
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)
window.webkit.messageHandlers.nativeObject.postMessage(data); window.webkit.messageHandlers.nativeObject.postMessage(data);
}else { }else {
if(type == '培训文档'){ if(type == '培训文档'){