Authored by 张孝茹

下载 积分跳转

... ... @@ -350,6 +350,20 @@ class familyModel extends global.yoho.BaseModel {
});
}
}
if (val.appName === 'yohobuy') {
singleData = _.assign(singleData, {
loadSrc: 'https://union.yoho.cn/union/app-downloads.html?union_type=100000000000349&client_id=531951919'
});
} else if (val.appName === 'mars') {
singleData = _.assign(singleData, {
loadSrc: 'http://www.yohomars.com/download/index?action=gp.index&params:yohomars://yohomars.com/goapp?openby:mars=""'
});
} else if (val.appName === 'now') {
singleData = _.assign(singleData, {
loadSrc: 'http://www.yohogirls.com/download/default/index?act=go.news&params=yohoefashion4In1://'
});
}
});
return singleData;
... ...
... ... @@ -11,6 +11,10 @@
{{#if winXinCode}}
<span class="code-copy" data-text="{{winXinCode}}">复制</span>
{{/if}}
{{#if loadSrc}}
<a class="load-src" href="{{loadSrc}}"></a>
{{/if}}
</div>
{{/ downLoadData}}
</div>
... ...
... ... @@ -96,13 +96,13 @@ class IconMall extends Page {
scroll() {
$(window).scroll(() => {
let $scrollTop = $(window).scrollTop();
// let $scrollTop = $(window).scrollTop();
if ($scrollTop >= this.fixTop) {
this.selector.$tabFixed.find('.tab').addClass('fixed');
} else {
this.selector.$tabFixed.find('.tab').removeClass('fixed');
}
// if ($scrollTop >= this.fixTop) {
// this.selector.$tabFixed.find('.tab').addClass('fixed');
// } else {
// this.selector.$tabFixed.find('.tab').removeClass('fixed');
// }
$(window).scroll(() => {
window.requestAnimationFrame(this.scrollHandler.bind(this));
... ... @@ -114,6 +114,17 @@ class IconMall extends Page {
this.selector.$tabItem.on('click', this.tabItem.bind(this));
this.selector.$acquiringHelp.on('click', this.openHelp.bind(this));
this.selector.$detail.on('click', this.openDetail.bind(this));
$(window).on('scroll touchmove touchstart touchend', this.move.bind(this));
}
move() {
let $scrollTop = $(window).scrollTop();
if ($scrollTop >= this.fixTop) {
this.selector.$tabFixed.find('.tab').addClass('fixed');
} else {
this.selector.$tabFixed.find('.tab').removeClass('fixed');
}
}
defaultChosen() {
... ...
... ... @@ -158,7 +158,7 @@ class FamilyIndex extends Page {
]
});
}
})
});
}
// 资源位初始化
... ... @@ -272,7 +272,7 @@ class FamilyIndex extends Page {
let $linkJump = $('#link-jump');
if (yoho.isMarsApp || yoho.isNowApp) {
if (yoho.isMarsApp) {
if (!$linkJump.length) {
$('body').append('<a id="link-jump" href="javascript:;" style="display:none !important;"></a>');
$linkJump = $('#link-jump');
... ... @@ -283,9 +283,6 @@ class FamilyIndex extends Page {
href = href + '&openby:yohobuy=' + (JSON.stringify({
action: 'go.h5',
params: {
islogin: 'N',
type: 0,
updateflag: Date.now() + '',
url: href
}
}));
... ... @@ -295,7 +292,6 @@ class FamilyIndex extends Page {
$linkJump[0].click();
return false;
} else {
yoho.goH5(href);
}
... ...
... ... @@ -38,6 +38,14 @@
border-radius: 10px;
}
.load-src {
display: inline-block;
width: 100%;
height: 300px;
position: relative;
bottom: 300px;
}
.yohobuy,
.now,
.mars {
... ...