Merge branch 'feature/cps-passjump' into 'release/0806'
Feature/cps passjump See merge request !1505
Showing
2 changed files
with
6 additions
and
8 deletions
@@ -17,7 +17,7 @@ module.exports = class extends global.yoho.BaseModel { | @@ -17,7 +17,7 @@ module.exports = class extends global.yoho.BaseModel { | ||
17 | let gainList = [ | 17 | let gainList = [ |
18 | { | 18 | { |
19 | url: _.get(res[1], 'data.checkUrl', ''), | 19 | url: _.get(res[1], 'data.checkUrl', ''), |
20 | - img: '//img11.static.yhbimg.com/yhb-img01/2018/07/09/10/018092224dc2f48195e3ad15269f981d1f.jpg?imageView2/{mode}/w/{width}/h/{height}', // eslint-disable-line | 20 | + img: '//img11.static.yhbimg.com/yhb-img01/2018/08/06/11/01b915610bd29715162266f17cdc93451d.jpg?imageView2/{mode}/w/{width}/h/{height}', // eslint-disable-line |
21 | isShow: false | 21 | isShow: false |
22 | }, | 22 | }, |
23 | { | 23 | { |
@@ -48,12 +48,6 @@ class HaveGainApplyPage extends Page { | @@ -48,12 +48,6 @@ class HaveGainApplyPage extends Page { | ||
48 | 48 | ||
49 | // app内审核通过跳转区分处理 | 49 | // app内审核通过跳转区分处理 |
50 | if (yoho.isApp && jumpUrl.indexOf('go.minealliance') > -1) { | 50 | if (yoho.isApp && jumpUrl.indexOf('go.minealliance') > -1) { |
51 | - | ||
52 | - // 若指定跳转 | ||
53 | - if (this.query.passJump === 'Y') { | ||
54 | - jumpUrl = `//m.yohobuy.com/?openby:yohobuy={"action":"go.h5","params":{"title":"${this.query.title}","url":"${this.query.jumpUrl}"}}`; // eslint-disable-line | ||
55 | - } | ||
56 | - | ||
57 | $('body').append('<a id="jump-url" href="javascript:;" style="display: none;"></a>'); | 51 | $('body').append('<a id="jump-url" href="javascript:;" style="display: none;"></a>'); |
58 | $('#jump-url').attr('href', jumpUrl); | 52 | $('#jump-url').attr('href', jumpUrl); |
59 | 53 | ||
@@ -74,7 +68,11 @@ class HaveGainApplyPage extends Page { | @@ -74,7 +68,11 @@ class HaveGainApplyPage extends Page { | ||
74 | yoho.ready(jumpFn); | 68 | yoho.ready(jumpFn); |
75 | } | 69 | } |
76 | } else { | 70 | } else { |
77 | - window.location.href = jumpUrl; | 71 | + if (jumpUrl.indexOf('go.minealliance') > -1 && this.query.jumpUrl) { |
72 | + window.location.href = this.query.jumpUrl; | ||
73 | + } else { | ||
74 | + window.location.href = jumpUrl; | ||
75 | + } | ||
78 | } | 76 | } |
79 | } | 77 | } |
80 | } | 78 | } |
-
Please register or login to post a comment