...
|
...
|
@@ -31,21 +31,21 @@ |
|
|
<p class="seach_title">搜索</p>
|
|
|
</div>
|
|
|
<div class="shoplist_select">
|
|
|
<div class="select_quyu" onclick="qy($(this),region,redata)">
|
|
|
<div class="select_quyu" onclick="qy($(this),region,'区域')">
|
|
|
<p class="shoplist_select_title">区域</p>
|
|
|
<i class="iconfont icon-fylb_icon_arrow_norm"></i>
|
|
|
</div>
|
|
|
<div class="select_line">
|
|
|
|
|
|
</div>
|
|
|
<div class="select_price" onclick="qy($(this),price,prdata)">
|
|
|
<div class="select_price" onclick="qy($(this),price,'价格')">
|
|
|
<p class="shoplist_select_title">价格</p>
|
|
|
<i class="iconfont icon-fylb_icon_arrow_norm"></i>
|
|
|
</div>
|
|
|
<div class="select_line">
|
|
|
|
|
|
</div>
|
|
|
<div class="select_pai" onclick="qy($(this),brand,brdata)">
|
|
|
<div class="select_pai" onclick="qy($(this),brand,'品牌')">
|
|
|
<p class="shoplist_select_title">品牌</p>
|
|
|
<i class="iconfont icon-fylb_icon_arrow_norm"></i>
|
|
|
</div>
|
...
|
...
|
@@ -89,13 +89,13 @@ |
|
|
// // scrollbar: '.swiper-scrollbar',
|
|
|
// })
|
|
|
// }
|
|
|
var page=0;
|
|
|
//var page=0;
|
|
|
var region = change(`"{$region_mobile}"`);
|
|
|
console.log(region)
|
|
|
|
|
|
var price = change(`"{$price_search}"`);
|
|
|
console.log(price)
|
|
|
|
|
|
var brand = change(`"{$brandList}"`);
|
|
|
console.log(brand)
|
|
|
|
|
|
var redata="",prdata="",brdata=''
|
|
|
function change(arr) {
|
|
|
qyarr = arr.substring(1, arr.length - 1);
|
...
|
...
|
@@ -113,8 +113,14 @@ console.log(brand) |
|
|
container: 'body',
|
|
|
defaultValue: [0],
|
|
|
onConfirm: function (result) {
|
|
|
that.find(".shoplist_select_title").html(result[0].label)
|
|
|
datatype=result[0].value
|
|
|
that.find(".shoplist_select_title").html(result[0].label);
|
|
|
if(datatype=='区域'){
|
|
|
redata=result[0].value
|
|
|
}else if(datatype=='价格'){
|
|
|
prdata=result[0].value
|
|
|
}else{
|
|
|
brdata=result[0].value
|
|
|
}
|
|
|
ajax()
|
|
|
},
|
|
|
id: 'singleLinePicker'
|
...
|
...
|
@@ -141,16 +147,19 @@ console.log(brand) |
|
|
},
|
|
|
dataType: 'json',
|
|
|
success: function(data) {
|
|
|
console.log(data)
|
|
|
var arrLen = data.data;
|
|
|
|
|
|
if(arrLen.length > 0) {
|
|
|
|
|
|
for(var i = 0; i < arrLen.length; i++) {
|
|
|
result += "<div class='list_view'><a href='1111'><img src="+arrLen[i].thumb+" class='list_logo'/></a><div class='list_res'><p class='res_title'>"+arrLen[i].name+"</p><p class='res_mintitle'>"+arrLen[i].goods_name+"</p><p class='res_price'>¥"+arrLen[i].goods_price+"<s>¥"+arrLen[i].price+"</s></p></div></div>"
|
|
|
result += "<div class='list_view'><a href='"+arrLen[i].url+"'><img src="+arrLen[i].thumb+" class='list_logo'/></a><div class='list_res'><p class='res_title'>"+arrLen[i].name+"</p><p class='res_mintitle'>"+arrLen[i].goods_name+"</p><p class='res_price'>¥"+arrLen[i].goods_price+"<s>¥"+arrLen[i].price+"</s></p></div></div>"
|
|
|
}
|
|
|
$('.list_content').html(result);
|
|
|
// 如果没有数据
|
|
|
} else {
|
|
|
// 无数据
|
|
|
|
|
|
$('.list_content').html(result);
|
|
|
}
|
|
|
},
|
|
|
error: function(xhr, type) {
|
...
|
...
|
|