Authored by yyq

init scoll

... ... @@ -117,10 +117,6 @@ function toggleAll(obj, roleType) {
cartScroll = {
init: function() {
if (!$cartListWrap.find('.cart-fixed-submit').length) {
return;
}
this.$listWrap = $cartListWrap;
this.$win = $(window);
... ... @@ -138,6 +134,11 @@ cartScroll = {
resetFixedWrapInfo: function() {
var $fixedWrap = this.$listWrap.find('.cart-fixed-submit');
if (!$fixedWrap.length) {
this.fh = 0;
return;
}
this.fh = $fixedWrap.height() + $fixedWrap.offset().top;
this.onScroll();
},
... ...