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