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文档资料培训文档
console.log("type",type)
// console.log("type",type)
let data = {
"action": "goTraining",
"params": {
"id": item.id,
// "docType" : type=='培训文档' ? 1 : 2,
"id":type == '培训文档' ? Number(10000+item.id) : item.id,
}
};
let u = navigator.userAgent;
let isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
if(isiOS){
// console.log("data",data)
window.webkit.messageHandlers.nativeObject.postMessage(data);
}else {
if(type == '培训文档'){