Authored by liuyue

模特备注及封面默认修改

... ... @@ -406,6 +406,9 @@ $(document).on("click", ".cover-goods .btn-goods-cover", function() {
$('.cover-goods .btn-goods-cover').removeClass("info");
$(this).addClass("info");
}
$.each(goodsList, function(i, value) {
value.isDefault = 'N';
});
item.isDefault = $(this).hasClass("info") ? "Y" : "N";
});
... ... @@ -437,6 +440,7 @@ GOLABDATA.on("fenmian", function() {
},
errorMsg = '';
console.log(goodsList);
$.each(goodsList, function(index, item) {
if (item.isDefault == "Y") {
map.productSkc = item.productSkc;
... ... @@ -454,6 +458,7 @@ GOLABDATA.on("fenmian", function() {
});
//if (map.goodsImagesBoList.length == 0) return;
map.goodsImagesBoList = JSON.stringify(map.goodsImagesBoList);
if (errorMsg === '') {
return {
"goodsImagesReq": JSON.stringify(map)
... ...
... ... @@ -48,7 +48,7 @@ var modelTryTable = new common.grid({
}
}, {
display: '备注',
return: function(item) {
render: function(item) {
return item.fitModelBo.fit_remark;
}
}]
... ...