Showing
1 changed file
with
3 additions
and
34 deletions
@@ -45,7 +45,7 @@ function convertTime(time) { | @@ -45,7 +45,7 @@ function convertTime(time) { | ||
45 | } | 45 | } |
46 | 46 | ||
47 | function setPageTime() { | 47 | function setPageTime() { |
48 | - var i, text, showTime; | 48 | + var i, text, showTime, $par; |
49 | 49 | ||
50 | for (i = 0; i < limitTime.length; i++) { | 50 | for (i = 0; i < limitTime.length; i++) { |
51 | if (limitTime[i].time < 0) { | 51 | if (limitTime[i].time < 0) { |
@@ -60,6 +60,8 @@ function setPageTime() { | @@ -60,6 +60,8 @@ function setPageTime() { | ||
60 | text = limitTime[i].pre + ' ' + text; | 60 | text = limitTime[i].pre + ' ' + text; |
61 | } | 61 | } |
62 | } else { | 62 | } else { |
63 | + $par = limitTime[i].dom.closest('.item-info').parent(); | ||
64 | + $par.find('a').attr('href', 'javascript:;'); | ||
63 | text = '活动已结束'; | 65 | text = '活动已结束'; |
64 | } | 66 | } |
65 | limitTime[i].dom.text(text); | 67 | limitTime[i].dom.text(text); |
@@ -121,39 +123,6 @@ function extraInfo() { | @@ -121,39 +123,6 @@ function extraInfo() { | ||
121 | } | 123 | } |
122 | } | 124 | } |
123 | 125 | ||
124 | -// // 处理潮品推荐商品 | ||
125 | -// function formatExtraGood() { | ||
126 | -// var $item = $limitList.find('.good-item'), | ||
127 | -// html = '', | ||
128 | -// list = [], | ||
129 | -// i = 0; | ||
130 | - | ||
131 | -// if (!$limitList.length) { | ||
132 | -// return; | ||
133 | -// } | ||
134 | - | ||
135 | -// $item.each(function() { | ||
136 | -// if ((i % 5) === 0) { | ||
137 | -// list.push(''); | ||
138 | -// } | ||
139 | -// list[list.length - 1] += $item[i].outerHTML; | ||
140 | -// i++; | ||
141 | -// }); | ||
142 | - | ||
143 | -// if (list.length > 3) { | ||
144 | -// list.length = 3; | ||
145 | -// } | ||
146 | - | ||
147 | -// $limitList.data({max: list.length}); | ||
148 | - | ||
149 | -// for (i = 0; i < list.length; i++) { | ||
150 | -// html += '<div class="list-page">' + list[i] + '</div>'; | ||
151 | -// } | ||
152 | - | ||
153 | -// $limitList.html(html); | ||
154 | -// } | ||
155 | - | ||
156 | -// | ||
157 | if ($fixNav.length) { | 126 | if ($fixNav.length) { |
158 | $navPar = $fixNav.parent(); | 127 | $navPar = $fixNav.parent(); |
159 | 128 |
-
Please register or login to post a comment