列表页面价格排序 默认从低到高 code review by @liangzhifeng
Showing
4 changed files
with
6 additions
and
7 deletions
@@ -45,7 +45,7 @@ var $listNav = $('#list-nav'), | @@ -45,7 +45,7 @@ var $listNav = $('#list-nav'), | ||
45 | end: false | 45 | end: false |
46 | }, | 46 | }, |
47 | price: { | 47 | price: { |
48 | - order: 0, | 48 | + order: 1, |
49 | reload: true, | 49 | reload: true, |
50 | page: 0, | 50 | page: 0, |
51 | end: false | 51 | end: false |
@@ -474,4 +474,3 @@ $listNav.on('touchstart', 'li', function() { | @@ -474,4 +474,3 @@ $listNav.on('touchstart', 'li', function() { | ||
474 | }).on('touchend touchcancel', 'li', function() { | 474 | }).on('touchend touchcancel', 'li', function() { |
475 | $listNav.find('li').removeClass('bytouch'); | 475 | $listNav.find('li').removeClass('bytouch'); |
476 | }); | 476 | }); |
477 | - |
@@ -15,8 +15,8 @@ | @@ -15,8 +15,8 @@ | ||
15 | <a href="javascript:void(0);"> | 15 | <a href="javascript:void(0);"> |
16 | <span class="spanTest">价格</span> | 16 | <span class="spanTest">价格</span> |
17 | <span class="icon"> | 17 | <span class="icon"> |
18 | - <i class="iconfont up"></i> | ||
19 | - <i class="iconfont down cur"></i> | 18 | + <i class="iconfont up cur"></i> |
19 | + <i class="iconfont down"></i> | ||
20 | </span> | 20 | </span> |
21 | </a> | 21 | </a> |
22 | </li> | 22 | </li> |
@@ -61,8 +61,8 @@ | @@ -61,8 +61,8 @@ | ||
61 | <a href="javascript:void(0);"> | 61 | <a href="javascript:void(0);"> |
62 | <span class="nav-txt">价格</span> | 62 | <span class="nav-txt">价格</span> |
63 | <span class="icon"> | 63 | <span class="icon"> |
64 | - <i class="iconfont up"></i> | ||
65 | - <i class="iconfont down cur"></i> | 64 | + <i class="iconfont up cur"></i> |
65 | + <i class="iconfont down"></i> | ||
66 | </span> | 66 | </span> |
67 | </a> | 67 | </a> |
68 | </li> | 68 | </li> |
-
Please register or login to post a comment