Commit 65a8b553 by dhn

支付页按钮闪烁

parent 445b3cee
......@@ -496,6 +496,7 @@
padding: 5px 20px;
}
.button-fix {
width:100%!important;
position: fixed;
bottom: 0;
left: 0;
......@@ -818,15 +819,15 @@ script;
else {
$(window).scroll(function () {
if(!$('#checkout-step-shipping').is(":visible")) {
var scrollTop = $(document).scrollTop() - 120;
var wh = $(document.body).height();
var offsetTop = $('#checkout_place_order').offset().top;
if (wh - offsetTop <= scrollTop) {
//
$('#checkout_place_order').removeClass('button-fix');
} else {
$('#checkout_place_order').addClass('button-fix');
}
$(window).scroll(function () {
var positionUl = $('#checkout_place_order')
if (window.outerHeight + $(document).scrollTop() < $(positionUl).offset().top + 50) {
$('#place-order').addClass("button-fix");
} else {
$('#place-order').removeClass("button-fix");
}
});
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment