文档资料h5
This commit is contained in:
@ -87,13 +87,13 @@ export default {
|
|||||||
};
|
};
|
||||||
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 (window.MyAppBridge) {
|
// if (window.MyAppBridge) {
|
||||||
if(isiOS){
|
if(isiOS){
|
||||||
window.webkit.messageHandlers.nativeObject.postMessage(data);
|
window.webkit.messageHandlers.nativeObject.postMessage(data);
|
||||||
}else {
|
}else {
|
||||||
window.android.sendMessage("articleId=" + item.id);
|
window.android.sendMessage("articleId=" + item.id);
|
||||||
}
|
}
|
||||||
}
|
// }
|
||||||
// window.location.href = `http://crm1.sino-assist.com/res/training/training.html?id=${item.id}&source=supplierApp&supplierId=${this.supplierId}&userId=${this.userId}`;
|
// window.location.href = `http://crm1.sino-assist.com/res/training/training.html?id=${item.id}&source=supplierApp&supplierId=${this.supplierId}&userId=${this.userId}`;
|
||||||
},
|
},
|
||||||
onRefresh() {
|
onRefresh() {
|
||||||
|
Reference in New Issue
Block a user