Authored by zhangxiaoru

首页全部商品

17.1 KB | W: | H:

16.3 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
... ... @@ -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;
... ...
... ... @@ -37,7 +37,7 @@
<li class="active color" tab="home-page">首页</li>
<li tab="new-arrival">上新</li>
<li tab="popularity">人气</li>
<li>
<li class="all-goods">
<a href="{{allGoods}}">全部商品</a>
</li>
</ul>
... ...