Authored by TaoHuang

fix

... ... @@ -201,6 +201,24 @@ const yoho = {
}
},
goXianyuNewPage(args) {
if (!args.url) {
return;
}
if (this.isAliApp && window.WindVane) {
window.WindVane.call('Base', 'openWindow', args, () => {
console.log('open new window success');
}, () => {
window.open(args.url, '_blank');
});
} else {
if (args.url) {
window.open(args.url, '_blank');
}
}
},
/**
* 跳转至新页面(页面内容为html)
* @param args 传递给 APP 的参数 {"url":""}
... ...
... ... @@ -42,16 +42,20 @@ export default {
this.page = JSON.parse(this.extra || '{}');
}
},
beforeRouteLeave () {
beforeRouteLeave(to, from, next) {
if (this.timer) {
clearTimeout(this.timer);
}
next();
},
methods: {
openPay() {
const url = config.alipayUrl + '?' + this.payParams;
// window.location.href = url;
this.$yoho.goXianyuNewPage({
url
});
},
setCount() {
if (this.count > 0) {
... ...