Showing
1 changed file
with
15 additions
and
11 deletions
@@ -250,10 +250,10 @@ var g = new common.grid({ | @@ -250,10 +250,10 @@ var g = new common.grid({ | ||
250 | if (item.maxSortName) { | 250 | if (item.maxSortName) { |
251 | sortName = item.maxSortName+"/"+sortName; | 251 | sortName = item.maxSortName+"/"+sortName; |
252 | } | 252 | } |
253 | - html += '<p><strong>名称:</strong><a target="_blank" href="' + item.productUrl + '">' + productName + '</a></p>'; | ||
254 | - html += '<p><strong>品牌:</strong>' + brandName + '</p>'; | ||
255 | - html += '<p><strong>类目:</strong>' + sortName + '</p>'; | ||
256 | - html += '<p><strong>店铺:</strong>' + item.shopName + '</p>'; | 253 | + html += '<strong>名称:</strong><a target="_blank" href="' + item.productUrl + '">' + productName + '</a></br>'; |
254 | + html += '<strong>品牌:</strong>' + brandName + '</br>'; | ||
255 | + html += '<strong>类目:</strong>' + sortName + '</br>'; | ||
256 | + html += '<strong>店铺:</strong>' + item.shopName + '</br>'; | ||
257 | html += '<strong>经营模式:</strong>' + (item.sellType ? item.sellType : ''); | 257 | html += '<strong>经营模式:</strong>' + (item.sellType ? item.sellType : ''); |
258 | return html; | 258 | return html; |
259 | } | 259 | } |
@@ -264,14 +264,14 @@ var g = new common.grid({ | @@ -264,14 +264,14 @@ var g = new common.grid({ | ||
264 | retailPrice = item.retailPrice ? item.retailPrice : '', | 264 | retailPrice = item.retailPrice ? item.retailPrice : '', |
265 | salesPrice = item.salesPrice ? item.salesPrice : ''; | 265 | salesPrice = item.salesPrice ? item.salesPrice : ''; |
266 | 266 | ||
267 | - var html = '<p><strong>吊牌价:</strong>' + retailPrice + '</p>' + | ||
268 | - '<p><strong>销售价:</strong>' + salesPrice + '</p>' + | ||
269 | - '<p><strong>是否VIP:</strong>' + vip + '</p>'; | 267 | + var html = '<strong>吊牌价:</strong>' + retailPrice + '</br>' + |
268 | + '<strong>销售价:</strong>' + salesPrice + '</br>' + | ||
269 | + '<strong>是否VIP:</strong>' + vip + '</br>'; | ||
270 | 270 | ||
271 | if (item.returnCoinMoney) { | 271 | if (item.returnCoinMoney) { |
272 | - html += "<p><strong>返yoho币金额:</strong>" + item.returnCoinMoney + "</p>"; | 272 | + html += "<strong>返yoho币金额:</strong>" + item.returnCoinMoney; |
273 | } else { | 273 | } else { |
274 | - html += "<p><strong>返yoho币金额:</strong>0</p>"; | 274 | + html += "<strong>返yoho币金额:</strong>0"; |
275 | } | 275 | } |
276 | return html; | 276 | return html; |
277 | } | 277 | } |
@@ -980,6 +980,10 @@ function getProductLabeldata(SknList) { | @@ -980,6 +980,10 @@ function getProductLabeldata(SknList) { | ||
980 | var dataObj = {} | 980 | var dataObj = {} |
981 | dataObj.productSknList = JSON.stringify(SknList); | 981 | dataObj.productSknList = JSON.stringify(SknList); |
982 | 982 | ||
983 | + if ($('div[flag=true]').length > 0) { | ||
984 | + return; // 如果已经加载,不能重复加载 | ||
985 | + } | ||
986 | + | ||
983 | common.util.__ajax({ | 987 | common.util.__ajax({ |
984 | url: '/basegoods/queryProductLabels', | 988 | url: '/basegoods/queryProductLabels', |
985 | data: dataObj | 989 | data: dataObj |
@@ -988,10 +992,10 @@ function getProductLabeldata(SknList) { | @@ -988,10 +992,10 @@ function getProductLabeldata(SknList) { | ||
988 | $.each(res.data, function (i, value) { | 992 | $.each(res.data, function (i, value) { |
989 | var itemObj = $("div[data-skn=" + value.productSkn + "]"); | 993 | var itemObj = $("div[data-skn=" + value.productSkn + "]"); |
990 | if (ENUM.suppledFlag["" + value.suppledFlag]) { | 994 | if (ENUM.suppledFlag["" + value.suppledFlag]) { |
991 | - itemObj.append(ENUM.suppledFlag["" + value.suppledFlag] + "</br>"); | 995 | + itemObj.append(ENUM.suppledFlag["" + value.suppledFlag]); |
992 | } | 996 | } |
993 | if (ENUM.traderFlag["" + value.traderFlag]) { | 997 | if (ENUM.traderFlag["" + value.traderFlag]) { |
994 | - itemObj.append(ENUM.traderFlag["" + value.traderFlag] + "</br>"); | 998 | + itemObj.append("</br><div flag='true'>" + ENUM.traderFlag["" + value.traderFlag] + "</div>"); |
995 | }// 量贩/非量贩 traderFlag 1 或者 0 | 999 | }// 量贩/非量贩 traderFlag 1 或者 0 |
996 | 1000 | ||
997 | // 支持货到付款/不支持货到付款 specialFlag | 1001 | // 支持货到付款/不支持货到付款 specialFlag |
-
Please register or login to post a comment