提交 5cc79910 编写于 作者: 张磊's avatar 张磊

Merge branch 'feature/zl2' into 'develop'

auto commit

See merge request !19
...@@ -332,23 +332,14 @@ export default { ...@@ -332,23 +332,14 @@ export default {
} }
); );
}, },
getJumpToWebapp(t) { getJumpToWebapp() {
if(this.picaWechat == 'wechat') { if(this.picaWechat == 'wechat') {
return false; return false;
} }
const p = {params:{path:'pages/health/myCheck/index', query:'zl---test'}, type: 2}; const p = {params:{path:'pages/health/myCheck/index', query:'zl---test'}, type: 2};
getJumpToWebapp(p).then(res => { getJumpToWebapp(p).then(res => {
console.log('--res', res); console.log('--res', res);
if(t == 'href') { window.location.href = res.data;
window.location.href = res.data;
}else{
const a = document.createElement('a');
a.setAttribute('href', res.data);
a.setAttribute('target', '_blank');
// 防止反复添加
document.body.appendChild(a);
a.click();
}
}); });
} }
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册