Authored by dongjunjie

店铺装修添加字段

@@ -237,6 +237,11 @@ function findDecoration(){ @@ -237,6 +237,11 @@ function findDecoration(){
237 if(!jsonMain.resources.allHotProducts_APP.data || jsonMain.resources.allHotProducts_APP.data.length < 1){ 237 if(!jsonMain.resources.allHotProducts_APP.data || jsonMain.resources.allHotProducts_APP.data.length < 1){
238 findTopHotProducts_APP(); 238 findTopHotProducts_APP();
239 } 239 }
  240 + /*
  241 + findTopNewProducts();
  242 + findTopHotProducts();
  243 + findTopHotProducts_APP();
  244 + */
240 } 245 }
241 showMain(); 246 showMain();
242 },true); 247 },true);
@@ -1439,6 +1444,8 @@ $(document).on("click",".topAdd",function(){ @@ -1439,6 +1444,8 @@ $(document).on("click",".topAdd",function(){
1439 item.productName = $(this).attr("data-productName"); 1444 item.productName = $(this).attr("data-productName");
1440 item.salesPrice = $(this).attr("data-productPrice"); 1445 item.salesPrice = $(this).attr("data-productPrice");
1441 item.productSkn = $(this).attr("data-productSkn"); 1446 item.productSkn = $(this).attr("data-productSkn");
  1447 + item.goodsId = $(this).attr("data-goodsId");
  1448 + item.cnAlphabet = $(this).attr("data-cnAlphabet");
1442 1449
1443 g.__rows.push(item); 1450 g.__rows.push(item);
1444 g.init(g.__rows); 1451 g.init(g.__rows);
@@ -357,7 +357,8 @@ @@ -357,7 +357,8 @@
357 <div class="topListDetail"> 357 <div class="topListDetail">
358 <ul> 358 <ul>
359 [[each data as item _index]] 359 [[each data as item _index]]
360 - <li class="topAdd" data-productId="[[item.productId]]" data-productName="[[item.productName]]" data-productPrice="[[item.salesPrice]]" data-productSkn="[[item.productSkn]]"> 360 + <li class="topAdd" data-productId="[[item.productId]]" data-productName="[[item.productName]]"
  361 + data-productPrice="[[item.salesPrice]]" data-productSkn="[[item.productSkn]]" data-cnAlphabet="[[item.cnAlphabet]]" data-goodsId ="[[item.goodsId]]">
361 <a href="javascript:"><img src="[[item.src]]"><b></b><span>top[[_index+1]]</span><i></i></a> 362 <a href="javascript:"><img src="[[item.src]]"><b></b><span>top[[_index+1]]</span><i></i></a>
362 </li> 363 </li>
363 [[/each]] 364 [[/each]]