task#15348,ios培训参数更改,打印
This commit is contained in:
@ -35,6 +35,7 @@ export const myMixins = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
goH5Detail(item,type){//h5传参到app文档资料,培训文档
|
goH5Detail(item,type){//h5传参到app文档资料,培训文档
|
||||||
|
console.log("type",type)
|
||||||
let data = {
|
let data = {
|
||||||
"action": "goTraining",
|
"action": "goTraining",
|
||||||
"params": {
|
"params": {
|
||||||
@ -45,6 +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)
|
||||||
window.webkit.messageHandlers.nativeObject.postMessage(data);
|
window.webkit.messageHandlers.nativeObject.postMessage(data);
|
||||||
}else {
|
}else {
|
||||||
if(type == '培训文档'){
|
if(type == '培训文档'){
|
||||||
|
Reference in New Issue
Block a user