文档资料h5

This commit is contained in:
2023-08-29 13:57:25 +08:00
parent e409822f81
commit 0b26ff7122

View File

@ -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() {