|
@@ -61,7 +61,9 @@ $(document).on("click", "#btn-descriptioner", function () { |
|
@@ -61,7 +61,9 @@ $(document).on("click", "#btn-descriptioner", function () { |
61
|
|
61
|
|
62
|
/*小编推荐*/
|
62
|
/*小编推荐*/
|
63
|
var recommendEdit = new common.edit('#recommenderWrap');
|
63
|
var recommendEdit = new common.edit('#recommenderWrap');
|
64
|
-window.UMrecommender = UM.getEditor('edit-recommender');
|
64
|
+window.UMrecommender = UM.getEditor('edit-recommender',{
|
|
|
65
|
+ initialFrameWidth: null
|
|
|
66
|
+ });
|
65
|
var recommender = [];
|
67
|
var recommender = [];
|
66
|
common.util.__ajax({
|
68
|
common.util.__ajax({
|
67
|
url: '/guang/article/queryArticlesBySKN',
|
69
|
url: '/guang/article/queryArticlesBySKN',
|
|
@@ -322,6 +324,7 @@ renderGoodList(); |
|
@@ -322,6 +324,7 @@ renderGoodList(); |
322
|
|
324
|
|
323
|
function changeImgQuality(flag){
|
325
|
function changeImgQuality(flag){
|
324
|
$.each(goodsList,function (index,item){
|
326
|
$.each(goodsList,function (index,item){
|
|
|
327
|
+ if(!item.goodsImagesList){return true;}
|
325
|
$.each(item.goodsImagesList, function (_index, _item) {
|
328
|
$.each(item.goodsImagesList, function (_index, _item) {
|
326
|
if(flag && _item.imageUrl.indexOf('?') == -1){
|
329
|
if(flag && _item.imageUrl.indexOf('?') == -1){
|
327
|
_item.imageUrl = _item.imageUrl + '?imageView2/0/q/75';
|
330
|
_item.imageUrl = _item.imageUrl + '?imageView2/0/q/75';
|
|
@@ -421,10 +424,35 @@ $(document).on('click', '.btn-use-img', function() { |
|
@@ -421,10 +424,35 @@ $(document).on('click', '.btn-use-img', function() { |
421
|
var data = res.data;
|
424
|
var data = res.data;
|
422
|
var imgHtml = '';
|
425
|
var imgHtml = '';
|
423
|
if (res.code == 200 && data.list instanceof Array && data.list[0].pictureBoList instanceof Array) {
|
426
|
if (res.code == 200 && data.list instanceof Array && data.list[0].pictureBoList instanceof Array) {
|
424
|
- $.each(data.list[0].pictureBoList, function(i, value) {
|
427
|
+
|
|
|
428
|
+ var picArray = data.list[0].pictureBoList;
|
|
|
429
|
+ var skuArray = [];
|
|
|
430
|
+
|
|
|
431
|
+ $.each(picArray, function(i, value) {
|
|
|
432
|
+ if(skuArray.indexOf(value.productSku) == -1 ){
|
|
|
433
|
+ skuArray.push(value.productSku);
|
|
|
434
|
+ }
|
|
|
435
|
+ });
|
|
|
436
|
+
|
|
|
437
|
+ var indexTag = 0;
|
|
|
438
|
+ $.each(skuArray, function(i, skuItem) {
|
|
|
439
|
+ var skuHtml = "<div class = 'skuList' style='border-top:solid black 1px;border-bottom:solid black 1px;padding:8px;'><table><tr>";
|
|
|
440
|
+ skuHtml += "<td><div style='display:inline;height:100%'>"+skuItem+" </div></td><td>";
|
|
|
441
|
+ $.each(picArray, function(j, picItem) {
|
|
|
442
|
+ if(skuItem == picItem.productSku){
|
|
|
443
|
+ 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>';
|
|
|
444
|
+ indexTag = indexTag + 1;
|
|
|
445
|
+ }
|
|
|
446
|
+ });
|
|
|
447
|
+ skuHtml += "</td></tr></table></div>";
|
|
|
448
|
+ imgHtml += skuHtml;
|
|
|
449
|
+ })
|
|
|
450
|
+
|
|
|
451
|
+
|
|
|
452
|
+ /*$.each(data.list[0].pictureBoList, function(i, value) {
|
425
|
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>';
|
453
|
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>';
|
426
|
- /*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>';*/
|
|
|
427
|
- });
|
454
|
+ 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>';
|
|
|
455
|
+ }); */
|
428
|
uesImgDialog = common.dialog.confirm("调用图片",imgHtml,function(){
|
456
|
uesImgDialog = common.dialog.confirm("调用图片",imgHtml,function(){
|
429
|
for(var i in uesImgMap){
|
457
|
for(var i in uesImgMap){
|
430
|
addFengmian(uesImgIndex, uesImgMap[i]);
|
458
|
addFengmian(uesImgIndex, uesImgMap[i]);
|