Showing
4 changed files
with
35 additions
and
4 deletions
@@ -265,6 +265,7 @@ class familyModel extends global.yoho.BaseModel { | @@ -265,6 +265,7 @@ class familyModel extends global.yoho.BaseModel { | ||
265 | } | 265 | } |
266 | 266 | ||
267 | if (key === 'green') { | 267 | if (key === 'green') { |
268 | + val.birthShow = true; | ||
268 | if (val.growthValue <= 0) { | 269 | if (val.growthValue <= 0) { |
269 | val.percent = 0; | 270 | val.percent = 0; |
270 | } else if (val.growthValue > 0 && val.growthValue < 1000) { | 271 | } else if (val.growthValue > 0 && val.growthValue < 1000) { |
@@ -154,7 +154,7 @@ class FamilyIndex extends Page { | @@ -154,7 +154,7 @@ class FamilyIndex extends Page { | ||
154 | 154 | ||
155 | // 资源位初始化 | 155 | // 资源位初始化 |
156 | resources() { | 156 | resources() { |
157 | - if (this.selector.$bannerCenterSwiper.length > 0) { | 157 | + if (this.selector.$bannerCenterSwiper.find('li').length > 0) { |
158 | new Swiper('.banner-center-swiper', { | 158 | new Swiper('.banner-center-swiper', { |
159 | pagination: '.swiper-pagination', | 159 | pagination: '.swiper-pagination', |
160 | lazyLoading: true, | 160 | lazyLoading: true, |
@@ -295,6 +295,9 @@ class FamilyIndex extends Page { | @@ -295,6 +295,9 @@ class FamilyIndex extends Page { | ||
295 | // 点击关闭会员信息弹框 | 295 | // 点击关闭会员信息弹框 |
296 | hideVipInfo() { | 296 | hideVipInfo() { |
297 | $('.vip-detail').remove(); | 297 | $('.vip-detail').remove(); |
298 | + $('body,.main').css({ | ||
299 | + 'overflow-y': 'auto' | ||
300 | + }); | ||
298 | } | 301 | } |
299 | 302 | ||
300 | // 返回上一页 | 303 | // 返回上一页 |
@@ -307,12 +310,16 @@ class FamilyIndex extends Page { | @@ -307,12 +310,16 @@ class FamilyIndex extends Page { | ||
307 | // 关闭下载弹窗 | 310 | // 关闭下载弹窗 |
308 | downClose() { | 311 | downClose() { |
309 | this.selector.$downLoadDetail.addClass('hide'); | 312 | this.selector.$downLoadDetail.addClass('hide'); |
313 | + $('body,.main').css({ | ||
314 | + 'overflow-y': 'auto' | ||
315 | + }); | ||
310 | } | 316 | } |
311 | 317 | ||
312 | // 弹窗出现禁止滑动 | 318 | // 弹窗出现禁止滑动 |
313 | - banSliding(e) { | ||
314 | - e.preventDefault(); | ||
315 | - return false; | 319 | + banSliding() { |
320 | + $('body,.main').css({ | ||
321 | + 'overflow-y': 'hidden' | ||
322 | + }); | ||
316 | } | 323 | } |
317 | } | 324 | } |
318 | 325 |
@@ -518,6 +518,7 @@ | @@ -518,6 +518,7 @@ | ||
518 | overflow-x: scroll; | 518 | overflow-x: scroll; |
519 | overflow-y: hidden; | 519 | overflow-y: hidden; |
520 | white-space: nowrap; | 520 | white-space: nowrap; |
521 | + width: 100%; | ||
521 | } | 522 | } |
522 | 523 | ||
523 | .privilege-item { | 524 | .privilege-item { |
@@ -591,6 +592,24 @@ | @@ -591,6 +592,24 @@ | ||
591 | } | 592 | } |
592 | } | 593 | } |
593 | } | 594 | } |
595 | + | ||
596 | + .birthday { | ||
597 | + margin-left: 40px; | ||
598 | + font-size: 24px; | ||
599 | + color: #1a1a1a; | ||
600 | + margin-bottom: 30px; | ||
601 | + display: inherit; | ||
602 | + | ||
603 | + b { | ||
604 | + display: block; | ||
605 | + width: 10px; | ||
606 | + height: 10px; | ||
607 | + background-color: #000; | ||
608 | + float: left; | ||
609 | + margin-top: 11px; | ||
610 | + margin-right: 10px; | ||
611 | + } | ||
612 | + } | ||
594 | } | 613 | } |
595 | 614 | ||
596 | .yohobuy { | 615 | .yohobuy { |
-
Please register or login to post a comment