|
@@ -318,16 +318,6 @@ function renderGoodList() { |
|
@@ -318,16 +318,6 @@ function renderGoodList() { |
318
|
"男": 1,
|
318
|
"男": 1,
|
319
|
"女": 2
|
319
|
"女": 2
|
320
|
};
|
320
|
};
|
321
|
- goodsList.forEach(function (item, index) {
|
|
|
322
|
- if (item && item.goodsImagesList) {
|
|
|
323
|
- console.log((item.goodsImagesList));
|
|
|
324
|
- for (var i = 0; i < item.goodsImagesList.length; i++) {
|
|
|
325
|
- if (!item.goodsImagesList[i]) {
|
|
|
326
|
- item.goodsImagesList.splice(i, 1);
|
|
|
327
|
- }
|
|
|
328
|
- }
|
|
|
329
|
- }
|
|
|
330
|
- });
|
|
|
331
|
var gender = map[window.NETSALEDATA.baseProductInfo.baseProduct.gender]||3;
|
321
|
var gender = map[window.NETSALEDATA.baseProductInfo.baseProduct.gender]||3;
|
332
|
$("#fenmianWrap").html(common.util.__template2($("#fenmianTemp").html(), {
|
322
|
$("#fenmianWrap").html(common.util.__template2($("#fenmianTemp").html(), {
|
333
|
goodsList: goodsList,
|
323
|
goodsList: goodsList,
|
|
@@ -439,24 +429,20 @@ $('#fenmianWrap').on("click", ".btn-metro", function () { |
|
@@ -439,24 +429,20 @@ $('#fenmianWrap').on("click", ".btn-metro", function () { |
439
|
var colorIndex = $(this).data("i");
|
429
|
var colorIndex = $(this).data("i");
|
440
|
if (colorIndex == 0) {
|
430
|
if (colorIndex == 0) {
|
441
|
list.forEach(function (item, index) {
|
431
|
list.forEach(function (item, index) {
|
442
|
- if(item){
|
|
|
443
|
- if (index == index1) {
|
|
|
444
|
- item.isDefault = "Y";
|
|
|
445
|
- item.genderCover = 0;
|
|
|
446
|
- } else {
|
|
|
447
|
- item.isDefault = "N";
|
|
|
448
|
- }
|
432
|
+ if (index == index1) {
|
|
|
433
|
+ item.isDefault = "Y";
|
|
|
434
|
+ item.genderCover = 0;
|
|
|
435
|
+ } else {
|
|
|
436
|
+ item.isDefault = "N";
|
449
|
}
|
437
|
}
|
450
|
});
|
438
|
});
|
451
|
} else {
|
439
|
} else {
|
452
|
list.forEach(function (item, index) {
|
440
|
list.forEach(function (item, index) {
|
453
|
- if(item){
|
|
|
454
|
- if (index == index1) {
|
|
|
455
|
- item.genderCover = colorIndex;
|
|
|
456
|
- item.isDefault = "N";
|
|
|
457
|
- } else {
|
|
|
458
|
- item.genderCover = 0;
|
|
|
459
|
- }
|
441
|
+ if (index == index1) {
|
|
|
442
|
+ item.genderCover = colorIndex;
|
|
|
443
|
+ item.isDefault = "N";
|
|
|
444
|
+ } else {
|
|
|
445
|
+ item.genderCover = 0;
|
460
|
}
|
446
|
}
|
461
|
});
|
447
|
});
|
462
|
// item.genderCover = colorIndex;
|
448
|
// item.genderCover = colorIndex;
|