...
|
...
|
@@ -61,7 +61,9 @@ $(document).on("click", "#btn-descriptioner", function () { |
|
|
|
|
|
/*小编推荐*/
|
|
|
var recommendEdit = new common.edit('#recommenderWrap');
|
|
|
window.UMrecommender = UM.getEditor('edit-recommender');
|
|
|
window.UMrecommender = UM.getEditor('edit-recommender',{
|
|
|
initialFrameWidth: null
|
|
|
});
|
|
|
var recommender = [];
|
|
|
common.util.__ajax({
|
|
|
url: '/guang/article/queryArticlesBySKN',
|
...
|
...
|
@@ -322,6 +324,7 @@ renderGoodList(); |
|
|
|
|
|
function changeImgQuality(flag){
|
|
|
$.each(goodsList,function (index,item){
|
|
|
if(!item.goodsImagesList){return true;}
|
|
|
$.each(item.goodsImagesList, function (_index, _item) {
|
|
|
if(flag && _item.imageUrl.indexOf('?') == -1){
|
|
|
_item.imageUrl = _item.imageUrl + '?imageView2/0/q/75';
|
...
|
...
|
@@ -421,10 +424,35 @@ $(document).on('click', '.btn-use-img', function() { |
|
|
var data = res.data;
|
|
|
var imgHtml = '';
|
|
|
if (res.code == 200 && data.list instanceof Array && data.list[0].pictureBoList instanceof Array) {
|
|
|
$.each(data.list[0].pictureBoList, function(i, value) {
|
|
|
|
|
|
var picArray = data.list[0].pictureBoList;
|
|
|
var skuArray = [];
|
|
|
|
|
|
$.each(picArray, function(i, value) {
|
|
|
if(skuArray.indexOf(value.productSku) == -1 ){
|
|
|
skuArray.push(value.productSku);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
var indexTag = 0;
|
|
|
$.each(skuArray, function(i, skuItem) {
|
|
|
var skuHtml = "<div class = 'skuList' style='border-top:solid black 1px;border-bottom:solid black 1px;padding:8px;'><table><tr>";
|
|
|
skuHtml += "<td><div style='display:inline;height:100%'>"+skuItem+" </div></td><td>";
|
|
|
$.each(picArray, function(j, picItem) {
|
|
|
if(skuItem == picItem.productSku){
|
|
|
skuHtml += '<div style="display:inline; height:123px; width:125px;margin:5px;text-align: center;line-height:128px" ><a style="display:inline-block"><img class="use-img" src="' + picItem.fileName +'?imageView2/0/w/120/q/75'+ '" alt="" data-i="'+indexTag+'" data-index="' + index + '" style="cursor:pointer;" /></a></div>';
|
|
|
indexTag = indexTag + 1;
|
|
|
}
|
|
|
});
|
|
|
skuHtml += "</td></tr></table></div>";
|
|
|
imgHtml += skuHtml;
|
|
|
})
|
|
|
|
|
|
|
|
|
/*$.each(data.list[0].pictureBoList, function(i, value) {
|
|
|
imgHtml += '<div style="float:left; border:1px solid gray; height:123px; width:125px;margin:5px;text-align: center;line-height:120px" ><a style="display:inline-block"><img class="use-img" src="' + value.fileName +'?imageView2/0/w/120/q/75'+ '" alt="" data-i="'+i+'" data-index="' + index + '" style="cursor:pointer;" /></a></div>';
|
|
|
/*imgHtml += '<a style="margin:0 0 10px 10px"><img class="use-img" src="' + value.fileName + '" alt="" width="100" height="140" data-i="'+i+'" data-index="' + index + '" style="cursor:pointer;" /></a>';*/
|
|
|
});
|
|
|
imgHtml += '<a style="margin:0 0 10px 10px"><img class="use-img" src="' + value.fileName + '" alt="" width="100" height="140" data-i="'+i+'" data-index="' + index + '" style="cursor:pointer;" /></a>';
|
|
|
}); */
|
|
|
uesImgDialog = common.dialog.confirm("调用图片",imgHtml,function(){
|
|
|
for(var i in uesImgMap){
|
|
|
addFengmian(uesImgIndex, uesImgMap[i]);
|
...
|
...
|
|