Authored by 张孝茹

增加生日礼

... ... @@ -265,6 +265,7 @@ class familyModel extends global.yoho.BaseModel {
}
if (key === 'green') {
val.birthShow = true;
if (val.growthValue <= 0) {
val.percent = 0;
} else if (val.growthValue > 0 && val.growthValue < 1000) {
... ...
... ... @@ -63,6 +63,10 @@
{{/ privileges}}
</div>
</div>
{{#if birthShow}}
<a href="" class="birthday"><b></b>生日礼,会员当月专享生日礼</a>
{{/if}}
</div>
</div>
</div>
\ No newline at end of file
... ...
... ... @@ -154,7 +154,7 @@ class FamilyIndex extends Page {
// 资源位初始化
resources() {
if (this.selector.$bannerCenterSwiper.length > 0) {
if (this.selector.$bannerCenterSwiper.find('li').length > 0) {
new Swiper('.banner-center-swiper', {
pagination: '.swiper-pagination',
lazyLoading: true,
... ... @@ -295,6 +295,9 @@ class FamilyIndex extends Page {
// 点击关闭会员信息弹框
hideVipInfo() {
$('.vip-detail').remove();
$('body,.main').css({
'overflow-y': 'auto'
});
}
// 返回上一页
... ... @@ -307,12 +310,16 @@ class FamilyIndex extends Page {
// 关闭下载弹窗
downClose() {
this.selector.$downLoadDetail.addClass('hide');
$('body,.main').css({
'overflow-y': 'auto'
});
}
// 弹窗出现禁止滑动
banSliding(e) {
e.preventDefault();
return false;
banSliding() {
$('body,.main').css({
'overflow-y': 'hidden'
});
}
}
... ...
... ... @@ -518,6 +518,7 @@
overflow-x: scroll;
overflow-y: hidden;
white-space: nowrap;
width: 100%;
}
.privilege-item {
... ... @@ -591,6 +592,24 @@
}
}
}
.birthday {
margin-left: 40px;
font-size: 24px;
color: #1a1a1a;
margin-bottom: 30px;
display: inherit;
b {
display: block;
width: 10px;
height: 10px;
background-color: #000;
float: left;
margin-top: 11px;
margin-right: 10px;
}
}
}
.yohobuy {
... ...