Authored by dongjunjie

店铺装修添加字段

... ... @@ -237,6 +237,11 @@ function findDecoration(){
if(!jsonMain.resources.allHotProducts_APP.data || jsonMain.resources.allHotProducts_APP.data.length < 1){
findTopHotProducts_APP();
}
/*
findTopNewProducts();
findTopHotProducts();
findTopHotProducts_APP();
*/
}
showMain();
},true);
... ... @@ -1439,6 +1444,8 @@ $(document).on("click",".topAdd",function(){
item.productName = $(this).attr("data-productName");
item.salesPrice = $(this).attr("data-productPrice");
item.productSkn = $(this).attr("data-productSkn");
item.goodsId = $(this).attr("data-goodsId");
item.cnAlphabet = $(this).attr("data-cnAlphabet");
g.__rows.push(item);
g.init(g.__rows);
... ...
... ... @@ -357,7 +357,8 @@
<div class="topListDetail">
<ul>
[[each data as item _index]]
<li class="topAdd" data-productId="[[item.productId]]" data-productName="[[item.productName]]" data-productPrice="[[item.salesPrice]]" data-productSkn="[[item.productSkn]]">
<li class="topAdd" data-productId="[[item.productId]]" data-productName="[[item.productName]]"
data-productPrice="[[item.salesPrice]]" data-productSkn="[[item.productSkn]]" data-cnAlphabet="[[item.cnAlphabet]]" data-goodsId ="[[item.goodsId]]">
<a href="javascript:"><img src="[[item.src]]"><b></b><span>top[[_index+1]]</span><i></i></a>
</li>
[[/each]]
... ...