...
|
...
|
@@ -803,22 +803,41 @@ var goodsgird = new common.grid({ |
|
|
var appType = $("#goodsgird").attr("appType");
|
|
|
var containGlobal = $("#goodsgird").attr("containGlobal");
|
|
|
var isGlobal = $("#goodsgird").attr("isGlobal");
|
|
|
return {
|
|
|
status: 1,
|
|
|
sales: "Y",
|
|
|
stocknumber: "1",
|
|
|
attribute_not: "2",
|
|
|
query: common.util.__input('skns'),
|
|
|
price: price,
|
|
|
color: Bll2.getIds(Bll.sorts[0].list),
|
|
|
style: Bll2.getIds(Bll.sorts[1].list),//风格先不管
|
|
|
msort: Bll2.getIds(Bll.sorts[2].list),
|
|
|
brand: Bll2.getIds(Bll.sorts[3].list),
|
|
|
gender: Bll2.getIds(Bll.sorts[4].list),
|
|
|
app_type:appType,
|
|
|
contain_global:containGlobal,
|
|
|
is_global:isGlobal
|
|
|
};
|
|
|
var isLimitBuy = $("#goodsgird").attr("isLimitBuy");
|
|
|
if(isLimitBuy == 'N'){
|
|
|
return {
|
|
|
status: 1,
|
|
|
sales: "Y",
|
|
|
stocknumber: "1",
|
|
|
attribute_not: "2",
|
|
|
query: common.util.__input('skns'),
|
|
|
price: price,
|
|
|
color: Bll2.getIds(Bll.sorts[0].list),
|
|
|
style: Bll2.getIds(Bll.sorts[1].list),//风格先不管
|
|
|
msort: Bll2.getIds(Bll.sorts[2].list),
|
|
|
brand: Bll2.getIds(Bll.sorts[3].list),
|
|
|
gender: Bll2.getIds(Bll.sorts[4].list),
|
|
|
app_type:appType,
|
|
|
contain_global:containGlobal,
|
|
|
is_global:isGlobal
|
|
|
};
|
|
|
}else {
|
|
|
return {
|
|
|
isLimitbuy: "Y",
|
|
|
attribute_not: "2",
|
|
|
query: common.util.__input('skns'),
|
|
|
price: price,
|
|
|
color: Bll2.getIds(Bll.sorts[0].list),
|
|
|
style: Bll2.getIds(Bll.sorts[1].list),//风格先不管
|
|
|
msort: Bll2.getIds(Bll.sorts[2].list),
|
|
|
brand: Bll2.getIds(Bll.sorts[3].list),
|
|
|
gender: Bll2.getIds(Bll.sorts[4].list),
|
|
|
/*app_type:appType,*/
|
|
|
contain_global:containGlobal,
|
|
|
is_global:isGlobal
|
|
|
};
|
|
|
}
|
|
|
|
|
|
},
|
|
|
columns: [
|
|
|
{
|
...
|
...
|
@@ -1035,6 +1054,23 @@ $(document).on("click", "#search", function () { |
|
|
$("#goodsgird").attr("appType","0");
|
|
|
$("#goodsgird").attr("containGlobal","N");
|
|
|
$("#goodsgird").attr("isGlobal","N");
|
|
|
$("#goodsgird").attr("isLimitBuy","N");
|
|
|
if (goodsgird.grid) {
|
|
|
goodsgird.reload(1);
|
|
|
} else {
|
|
|
goodsgird.init('/yohosearch/search');
|
|
|
}
|
|
|
});
|
|
|
|
|
|
/**
|
|
|
* 手动输入中“搜限购商品”按钮
|
|
|
*/
|
|
|
$(document).on("click", "#searchLimit", function () {
|
|
|
$(".goods-list").show();
|
|
|
$("#goodsgird").attr("appType","0");
|
|
|
$("#goodsgird").attr("containGlobal","N");
|
|
|
$("#goodsgird").attr("isGlobal","N");
|
|
|
$("#goodsgird").attr("isLimitBuy","Y");
|
|
|
if (goodsgird.grid) {
|
|
|
goodsgird.reload(1);
|
|
|
} else {
|
...
|
...
|
@@ -1050,6 +1086,7 @@ $(document).on("click", "#searchBLK", function () { |
|
|
$("#goodsgird").attr("appType","1");
|
|
|
$("#goodsgird").attr("containGlobal","N");
|
|
|
$("#goodsgird").attr("isGlobal","N");
|
|
|
$("#goodsgird").attr("isLimitBuy","N");
|
|
|
if (goodsgird.grid) {
|
|
|
goodsgird.reload(1);
|
|
|
} else {
|
...
|
...
|
@@ -1065,6 +1102,7 @@ $(document).on("click", "#searchGlobal", function () { |
|
|
$("#goodsgird").attr("appType","");
|
|
|
$("#goodsgird").attr("containGlobal","Y");
|
|
|
$("#goodsgird").attr("isGlobal","Y");
|
|
|
$("#goodsgird").attr("isLimitBuy","N");
|
|
|
if (goodsgird.grid) {
|
|
|
goodsgird.reload(1);
|
|
|
} else {
|
...
|
...
|
|