...
|
...
|
@@ -757,7 +757,7 @@ |
|
|
$.ajax({
|
|
|
url:"{:url('index/goods/get_all')}",
|
|
|
type:"POST",
|
|
|
data:{"province_id":0,"page":page,"pageNum":pageNum,'paginate':1,'sort':sort,'keyword':keyword,'lng':lng,'lat':lat, 'store_id':store_id},
|
|
|
data:{"province_id":0,"province_id2":province_id,"page":page,"pageNum":pageNum,'paginate':1,'sort':sort,'keyword':keyword,'lng':lng,'lat':lat, 'store_id':store_id},
|
|
|
success:function(res){
|
|
|
var goods_html = "";
|
|
|
$(res.data.data).each(function (key1, vo) {
|
...
|
...
|
@@ -774,12 +774,12 @@ |
|
|
" <td><img src=\""+vo.thumbnail+"\" alt=\"\" style='width: 100px;height:100px'></td>\n" +
|
|
|
" <td>"+vo.goodsname+"</td>\n" +
|
|
|
" <td>"+vo.inventory+"</td>\n" +
|
|
|
" <td onclick=\"window.event.stopPropagation();window.location.href='{:url('index/shop/detail',array('store_id'=>'STORE_ID'))}'\">"+vo.store_name+property+"\n" +
|
|
|
" <td onclick=\"window.event.stopPropagation();window.location.href='{:url('index/shop/detail',array('store_id'=>'STORE_ID','province_id'=>'PROVINCE_ID'))}'\">"+vo.store_name+property+"\n" +
|
|
|
" <td>"+vo.brand+"</td>\n" +
|
|
|
" <td>单价:¥"+vo.price+"</td>\n" +
|
|
|
" <td>"+vo.store_address+""+distance+"</td>\n" +
|
|
|
" </tr>";
|
|
|
goods_html += str.replace("GOODS_ID",vo.id).replace("STORE_ID",vo.store_id);
|
|
|
goods_html += str.replace("GOODS_ID",vo.id).replace("STORE_ID",vo.store_id).replace("PROVINCE_ID",province_id);
|
|
|
});
|
|
|
$('.goods_dom').html(goods_html);
|
|
|
$('#resultsNum').html(res.data.total+"件");
|
...
|
...
|
|