Merge remote-tracking branch 'origin/master'
Showing
3 changed files
with
9 additions
and
2 deletions
1 | { | 1 | { |
2 | "name": "yohobuy-node", | 2 | "name": "yohobuy-node", |
3 | - "version": "5.1.3", | 3 | + "version": "5.1.4", |
4 | "private": true, | 4 | "private": true, |
5 | "description": "A New Yohobuy Project With Express", | 5 | "description": "A New Yohobuy Project With Express", |
6 | "repository": { | 6 | "repository": { |
@@ -53,7 +53,7 @@ | @@ -53,7 +53,7 @@ | ||
53 | "request-ip": "^1.2.2", | 53 | "request-ip": "^1.2.2", |
54 | "serve-favicon": "^2.3.0", | 54 | "serve-favicon": "^2.3.0", |
55 | "uuid": "^2.0.2", | 55 | "uuid": "^2.0.2", |
56 | - "yoho-node-lib": "0.1.29", | 56 | + "yoho-node-lib": "0.1.30", |
57 | "yoho-zookeeper": "^1.0.4" | 57 | "yoho-zookeeper": "^1.0.4" |
58 | }, | 58 | }, |
59 | "devDependencies": { | 59 | "devDependencies": { |
@@ -162,6 +162,7 @@ function clearSelectUl($a, code) { | @@ -162,6 +162,7 @@ function clearSelectUl($a, code) { | ||
162 | $input.val($a.html()); | 162 | $input.val($a.html()); |
163 | } | 163 | } |
164 | $ul.empty(); | 164 | $ul.empty(); |
165 | + $ul.addClass('hide'); | ||
165 | $wrap.removeClass('active'); | 166 | $wrap.removeClass('active'); |
166 | } | 167 | } |
167 | 168 | ||
@@ -227,6 +228,7 @@ function loadSelectLi(jsonData, param) { | @@ -227,6 +228,7 @@ function loadSelectLi(jsonData, param) { | ||
227 | if (data.code === 200) { | 228 | if (data.code === 200) { |
228 | fnJson[jsonData.keyData] = data.data; | 229 | fnJson[jsonData.keyData] = data.data; |
229 | jsonData.$ul.html(provFn(fnJson)); | 230 | jsonData.$ul.html(provFn(fnJson)); |
231 | + jsonData.$ul.removeClass('hide'); | ||
230 | } else if (data.code === 403) { | 232 | } else if (data.code === 403) { |
231 | location.href = data.data.url; | 233 | location.href = data.data.url; |
232 | } | 234 | } |
@@ -426,6 +428,7 @@ $stuYear.on('click', function() { | @@ -426,6 +428,7 @@ $stuYear.on('click', function() { | ||
426 | for (i = year - 7; i <= year; i++) { | 428 | for (i = year - 7; i <= year; i++) { |
427 | yearArr.push(i); | 429 | yearArr.push(i); |
428 | } | 430 | } |
431 | + $ul.removeClass('hide'); | ||
429 | $ul.html(provFn({ | 432 | $ul.html(provFn({ |
430 | yearData: yearArr | 433 | yearData: yearArr |
431 | })); | 434 | })); |
@@ -170,6 +170,10 @@ exports.processProductList = (list, options) => { | @@ -170,6 +170,10 @@ exports.processProductList = (list, options) => { | ||
170 | // 判别默认的商品是否将默认的图片URL赋值到skn | 170 | // 判别默认的商品是否将默认的图片URL赋值到skn |
171 | let flag = false; | 171 | let flag = false; |
172 | 172 | ||
173 | + _.remove(product.goods_list, function(n) { | ||
174 | + return !+n.status; | ||
175 | + }); | ||
176 | + | ||
173 | // 如果设置了默认图片,就取默认的图片 | 177 | // 如果设置了默认图片,就取默认的图片 |
174 | _.forEach(product.goods_list, (goods) => { | 178 | _.forEach(product.goods_list, (goods) => { |
175 | if (flag) { | 179 | if (flag) { |
-
Please register or login to post a comment