Authored by 杨延青

Merge branch 'gray' into 'master'

Gray

1.有货有赚入口页图片替换
2.解决h5内嵌小程序webview接口兼容问题

See merge request !1508
@@ -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 {
1 { 1 {
2 "name": "yohobuywap-node", 2 "name": "yohobuywap-node",
3 - "version": "6.6.27", 3 + "version": "6.6.28",
4 "private": true, 4 "private": true,
5 "description": "A New Yohobuy Project With Express", 5 "description": "A New Yohobuy Project With Express",
6 "repository": { 6 "repository": {
@@ -88,7 +88,7 @@ @@ -88,7 +88,7 @@
88 "xml2js": "^0.4.19", 88 "xml2js": "^0.4.19",
89 "yoho-express-session": "^2.0.0", 89 "yoho-express-session": "^2.0.0",
90 "yoho-md5": "^2.0.0", 90 "yoho-md5": "^2.0.0",
91 - "yoho-node-lib": "=0.6.22", 91 + "yoho-node-lib": "=0.6.23",
92 "yoho-zookeeper": "^1.0.10" 92 "yoho-zookeeper": "^1.0.10"
93 }, 93 },
94 "devDependencies": { 94 "devDependencies": {
@@ -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,10 +68,14 @@ class HaveGainApplyPage extends Page { @@ -74,10 +68,14 @@ class HaveGainApplyPage extends Page {
74 yoho.ready(jumpFn); 68 yoho.ready(jumpFn);
75 } 69 }
76 } else { 70 } else {
  71 + if (jumpUrl.indexOf('go.minealliance') > -1 && this.query.jumpUrl) {
  72 + window.location.href = this.query.jumpUrl;
  73 + } else {
77 window.location.href = jumpUrl; 74 window.location.href = jumpUrl;
78 } 75 }
79 } 76 }
80 } 77 }
  78 + }
81 79
82 changeBtnStatus() { 80 changeBtnStatus() {
83 let errStatus = 0; 81 let errStatus = 0;
@@ -9894,9 +9894,9 @@ yoho-md5@^2.0.0: @@ -9894,9 +9894,9 @@ yoho-md5@^2.0.0:
9894 version "2.1.0" 9894 version "2.1.0"
9895 resolved "http://npm.yohops.com/yoho-md5/-/yoho-md5-2.1.0.tgz#f0c00d343f775e77952ebce0826863ac52e0ad50" 9895 resolved "http://npm.yohops.com/yoho-md5/-/yoho-md5-2.1.0.tgz#f0c00d343f775e77952ebce0826863ac52e0ad50"
9896 9896
9897 -yoho-node-lib@=0.6.19:  
9898 - version "0.6.19"  
9899 - resolved "http://npm.yohops.com/yoho-node-lib/-/yoho-node-lib-0.6.19.tgz#f3df50ea9d4a20ef7dc5f629e1725ee530e3570b" 9897 +yoho-node-lib@=0.6.23:
  9898 + version "0.6.23"
  9899 + resolved "http://npm.yohops.com/yoho-node-lib/-/yoho-node-lib-0.6.23.tgz#7ad4b550c3c66deb860bc6f7b1b7d9598ca89297"
9900 dependencies: 9900 dependencies:
9901 dnscache "^1.0.1" 9901 dnscache "^1.0.1"
9902 handlebars "^4.0.5" 9902 handlebars "^4.0.5"