Showing
1 changed file
with
4 additions
and
3 deletions
@@ -398,16 +398,17 @@ $('#fenmianWrap').on("click", ".btn-metro", function () { | @@ -398,16 +398,17 @@ $('#fenmianWrap').on("click", ".btn-metro", function () { | ||
398 | item.isDefault = "N"; | 398 | item.isDefault = "N"; |
399 | } | 399 | } |
400 | }); | 400 | }); |
401 | - } else { | 401 | + }else { |
402 | list.forEach(function (item, index) { | 402 | list.forEach(function (item, index) { |
403 | if (index == index1) { | 403 | if (index == index1) { |
404 | item.genderCover = colorIndex; | 404 | item.genderCover = colorIndex; |
405 | item.isDefault = "N"; | 405 | item.isDefault = "N"; |
406 | } else { | 406 | } else { |
407 | - item.genderCover = 0; | 407 | + if(item.genderCover==colorIndex){ |
408 | + item.genderCover = 0; | ||
409 | + } | ||
408 | } | 410 | } |
409 | }); | 411 | }); |
410 | - // item.genderCover = colorIndex; | ||
411 | } | 412 | } |
412 | 413 | ||
413 | renderGoodList(); | 414 | renderGoodList(); |
-
Please register or login to post a comment