|
@@ -666,13 +666,6 @@
|
|
|
})
|
|
|
// 处理低高度屏幕下无法显示下方文字
|
|
|
$('#jy-index').css('min-height', document.documentElement.clientHeight + 'px')
|
|
|
- // 首页底部样式调整,适配广告位
|
|
|
- function fixBottomADHeight () {
|
|
|
- var adHeight = $('.pc-index-bottom').height()
|
|
|
- $(".jy_renzheng").css('bottom', adHeight)
|
|
|
- $(".j-bottom").css('padding-bottom', Number($(".j-bottom").css('padding-bottom').replace('px', '')) + adHeight)
|
|
|
- }
|
|
|
- fixBottomADHeight()
|
|
|
// 从login.js isAdd接口取大会员状态 赋值给全局变量
|
|
|
clearInterval(memberTimer)
|
|
|
var memberTimer = setInterval(function () {
|
|
@@ -687,6 +680,7 @@
|
|
|
if (window.memberStatus > 0) {
|
|
|
// 首页底部广告位隐藏
|
|
|
$('.pc-index-bottom').hide()
|
|
|
+ fixBottomADHeight(false)
|
|
|
} else {
|
|
|
var top1 = 0;
|
|
|
var top2 = 0;
|
|
@@ -863,6 +857,21 @@
|
|
|
// console.log({{$bottom}})
|
|
|
var bottom_img = ({{$bottom}})
|
|
|
|
|
|
+ // 首页底部样式调整,适配广告位
|
|
|
+ function fixBottomADHeight (type) {
|
|
|
+ var adHeight = $('.pc-index-bottom').height()
|
|
|
+ if (type) {
|
|
|
+ $(".jy_renzheng").css('padding-bottom', adHeight)
|
|
|
+ $(".j-bottom").attr('data-padding-bottom', Number($(".j-bottom").css('padding-bottom').replace('px', '')))
|
|
|
+ $(".j-bottom").css('padding-bottom', Number($(".j-bottom").css('padding-bottom').replace('px', '')) + adHeight)
|
|
|
+ } else {
|
|
|
+ $(".jy_renzheng").css('padding-bottom', 0)
|
|
|
+ $(".j-bottom").css('padding-bottom', Number($(".j-bottom").attr('data-padding-bottom')))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $('.pc-index-bottom .bottom-member-ad').on('load', function () {
|
|
|
+ fixBottomADHeight(true)
|
|
|
+ })
|
|
|
$('.pc-index-bottom .bottom-member-ad').attr('src', bottom_img[0].s_pic)
|
|
|
$('.pc-index-bottom .bottom-member-ad').unbind('click').click(function () {
|
|
|
window.open(bottom_img[0].s_link)
|