...
|
...
|
@@ -120,7 +120,7 @@ function tabChange(dom, index) { |
|
|
//首页导航
|
|
|
$.jqtab = function(nav, posNav, main) {
|
|
|
|
|
|
$(nav + ' li, ' + posNav + ' li').on('touchstart', function() {
|
|
|
$(nav + ' li, ' + posNav + ' li').not('li.all-goods').on('touchstart', function() {
|
|
|
|
|
|
var index = $(this).index(),
|
|
|
activeTab = $(this).attr('tab');
|
...
|
...
|
@@ -135,13 +135,10 @@ $.jqtab = function(nav, posNav, main) { |
|
|
|
|
|
if(activeTab == 'new-arrival'){
|
|
|
newData();
|
|
|
}else if(activeTab == 'popularity'){
|
|
|
} else if(activeTab == 'popularity'){
|
|
|
hotData();
|
|
|
} else if (activeTab == 'home-page') {
|
|
|
myScroll && myScroll.refresh();
|
|
|
// setTimeout(function() {
|
|
|
// scH = $('#scroller').outerHeight();
|
|
|
// },1000);
|
|
|
scH = $('#scroller').outerHeight();
|
|
|
$nav1.removeClass('fixed-top');
|
|
|
$nav1.removeClass('absolute');
|
...
|
...
|
@@ -236,7 +233,6 @@ myScroll.on('scroll', function() { |
|
|
|
|
|
if (sTop + winH * 2 > scH) {
|
|
|
switch(viewType) {
|
|
|
|
|
|
case 2:
|
|
|
newData();
|
|
|
break;
|
...
|
...
|
|