文档资料h5
This commit is contained in:
@ -79,9 +79,17 @@ export default {
|
|||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
goH5Detail(item){
|
goH5Detail(item){
|
||||||
|
// 定义要传递的参数
|
||||||
|
let params = {
|
||||||
|
id: item.id
|
||||||
|
};
|
||||||
|
// 调用 App 提供的原生方法,并传递参数
|
||||||
|
if (window.MyAppBridge) {
|
||||||
|
window.MyAppBridge.postMessage(JSON.stringify(params));
|
||||||
|
}
|
||||||
// let url = (process.env.NODE_ENV === 'production' ? 'http://crm1.sino-assist.com': 'http://www.sinoassist.com'),
|
// let url = (process.env.NODE_ENV === 'production' ? 'http://crm1.sino-assist.com': 'http://www.sinoassist.com'),
|
||||||
// console.log(item)
|
// console.log(item)
|
||||||
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() {
|
||||||
this.getList()
|
this.getList()
|
||||||
|
Reference in New Issue
Block a user