|
@@ -10,7 +10,6 @@ var pageDetail = {
|
|
|
var _this = this
|
|
|
this.isImgLoad(function () {
|
|
|
var adHeight = _this.$adBottomImg.height()// 获取图片高度
|
|
|
- console.log(adHeight, 'adHeight');
|
|
|
_this.$pageMain.css('padding-bottom', adHeight + 'px')
|
|
|
})
|
|
|
this.goLogin()
|
|
@@ -46,5 +45,14 @@ var pageDetail = {
|
|
|
}
|
|
|
}
|
|
|
$(function () {
|
|
|
+ var isPageHide = false;
|
|
|
+ window.addEventListener('pageshow', function () {
|
|
|
+ if (isPageHide) {
|
|
|
+ location.reload()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ window.addEventListener('pagehide', function () {
|
|
|
+ isPageHide = true;
|
|
|
+ })
|
|
|
pageDetail.init()
|
|
|
})
|