Authored by 张孝茹

下载

@@ -353,15 +353,15 @@ class familyModel extends global.yoho.BaseModel { @@ -353,15 +353,15 @@ class familyModel extends global.yoho.BaseModel {
353 353
354 if (val.appName === 'yohobuy') { 354 if (val.appName === 'yohobuy') {
355 singleData = _.assign(singleData, { 355 singleData = _.assign(singleData, {
356 - loadSrc: 'https://union.yoho.cn/union/app-downloads.html?union_type=100000000000349&client_id=531951919' 356 + loadSrc: 'http://union.yoho.cn/union/app-downloads.html?union_type=100000000000349&openby:yohobuy={"action":"go.h5","params":{"url":"http://union.yoho.cn/union/app-downloads.html?union_type=100000000000349"}}'
357 }); 357 });
358 } else if (val.appName === 'mars') { 358 } else if (val.appName === 'mars') {
359 singleData = _.assign(singleData, { 359 singleData = _.assign(singleData, {
360 - loadSrc: 'http://www.yohomars.com/download/index?action=gp.index&params:yohomars://yohomars.com/goapp?openby:mars=""' 360 + loadSrc: 'http://www.yohomars.com/download/index?action=go.index&params:yohomars://yohomars.com/goapp&openby:yohobuy={"action":"go.h5","params":{"url": "http://www.yohomars.com/download/index?action=go.index&params:yohomars://yohomars.com/goapp"}}'
361 }); 361 });
362 } else if (val.appName === 'now') { 362 } else if (val.appName === 'now') {
363 singleData = _.assign(singleData, { 363 singleData = _.assign(singleData, {
364 - loadSrc: 'http://www.yohogirls.com/download/default/index?act=go.news&params=yohoefashion4In1://' 364 + loadSrc: 'http://www.yohogirls.com/download/default/index?act=go.news&params=yohoefashion4In1://&openby:yohobuy={"action":"go.h5","params": {"url":"http://www.yohogirls.com/download/default/index?act=go.news&params=yohoefashion4In1://"}}'
365 }); 365 });
366 } 366 }
367 }); 367 });
@@ -272,7 +272,7 @@ class FamilyIndex extends Page { @@ -272,7 +272,7 @@ class FamilyIndex extends Page {
272 272
273 let $linkJump = $('#link-jump'); 273 let $linkJump = $('#link-jump');
274 274
275 - if (yoho.isMarsApp) { 275 + if (yoho.isMarsApp || yoho.isNowApp) {
276 if (!$linkJump.length) { 276 if (!$linkJump.length) {
277 $('body').append('<a id="link-jump" href="javascript:;" style="display:none !important;"></a>'); 277 $('body').append('<a id="link-jump" href="javascript:;" style="display:none !important;"></a>');
278 $linkJump = $('#link-jump'); 278 $linkJump = $('#link-jump');
@@ -280,6 +280,13 @@ class FamilyIndex extends Page { @@ -280,6 +280,13 @@ class FamilyIndex extends Page {
280 280
281 if (yoho.isMarsApp) { 281 if (yoho.isMarsApp) {
282 282
  283 + href = href + '&openby:mars=' + (JSON.stringify({
  284 + action: 'go.h5',
  285 + params: {
  286 + url: href
  287 + }
  288 + }));
  289 + } else {
283 href = href + '&openby:yohobuy=' + (JSON.stringify({ 290 href = href + '&openby:yohobuy=' + (JSON.stringify({
284 action: 'go.h5', 291 action: 'go.h5',
285 params: { 292 params: {