Authored by xuqi

return top for user center

<div class="me-page blk-page clearfix">
<div class="center-content">
<div class="me-page blk-page">
<div class="center-content clearfix">
{{# content}}
{{!-- 头部面包屑 --}}
{{> path-nav}}
... ...
... ... @@ -9,7 +9,7 @@ var $ = require('yoho-jquery');
var $returnTop = $('.return-top');
function showOrNot() {
if ($(window).height() > $(document).height()) {
if ($(window).height() >= $(document).height()) {
$returnTop.addClass('hide');
}
}
... ... @@ -28,4 +28,9 @@ $(window).scroll(function() {
}
});
// 页面图片加载完成后根据页面高度决定是否显示
if ($returnTop.hasClass('hide')) {
$('img').load(showOrNot);
}
exports.returnTopShowOrNot = showOrNot;
... ...
... ... @@ -7,6 +7,10 @@
var $ = require('yoho-jquery'),
lazyLoad = require('yoho-jquery-lazyload');
$('.blk-footer .return-top').remove(); // 移除通用的返回顶部组件
require('../common/return-top'); // return-top
// 左侧banner图片lazyload
lazyLoad($('.banner-img'));
... ...
... ... @@ -196,6 +196,11 @@ a {
-moz-osx-font-smoothing: grayscale;
}
/* 单一布局 */
.blk-page {
min-width: 1150px;
}
.body-mask {
position: absolute;
z-index: 100;
... ... @@ -219,7 +224,7 @@ a {
}
.hide {
display: none;
display: none !important;
}
.vhide {
... ...
... ... @@ -3,7 +3,7 @@
background: #f5f5f5;
/* 个人中心布局下重置默认的底部样式 */
+ .yoho-footer .center-content {
+ .blk-footer .center-content {
border-top: none;
}
... ...