task#15348,ios培训参数转换为int,去除Vscole
This commit is contained in:
@ -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 == '培训文档'){
|
||||
|
Reference in New Issue
Block a user