...
|
...
|
@@ -51,22 +51,29 @@ class HaveGainApplyPage extends Page { |
|
|
if (yoho.isApp && jumpUrl.indexOf('go.minealliance') > -1) {
|
|
|
|
|
|
// 若指定跳转
|
|
|
if (this.query.passJump) {
|
|
|
if (this.query.passJump === 'Y') {
|
|
|
jumpUrl = `//m.yohobuy.com/?openby:yohobuy=${decodeURIComponent(this.query.jumpRules)}`;
|
|
|
}
|
|
|
|
|
|
$('body').append('<a id="jump-url" href="javascript:;" style="display: none;"></a>');
|
|
|
$('#jump-url').attr('href', jumpUrl);
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
// ios暂不支持go.back关闭
|
|
|
if (window.yohoInterface && yoho.isAndroid) {
|
|
|
yoho.invokeMethod('go.back');
|
|
|
}
|
|
|
|
|
|
$('#jump-url')[0].click();
|
|
|
}, 500);
|
|
|
const jumpFn = () => {
|
|
|
setTimeout(() => {
|
|
|
$('#jump-url')[0].click();
|
|
|
|
|
|
// ios暂不支持go.back关闭前置webview
|
|
|
if (yoho.isAndroid) {
|
|
|
yoho.invokeMethod('go.back');
|
|
|
}
|
|
|
}, 500);
|
|
|
};
|
|
|
|
|
|
if (window.yohoInterface) {
|
|
|
jumpFn();
|
|
|
} else {
|
|
|
yoho.ready(jumpFn);
|
|
|
}
|
|
|
} else {
|
|
|
window.location.href = jumpUrl;
|
|
|
}
|
...
|
...
|
|