|
@@ -803,6 +803,8 @@ var goodsgird = new common.grid({ |
|
@@ -803,6 +803,8 @@ var goodsgird = new common.grid({ |
803
|
var appType = $("#goodsgird").attr("appType");
|
803
|
var appType = $("#goodsgird").attr("appType");
|
804
|
var containGlobal = $("#goodsgird").attr("containGlobal");
|
804
|
var containGlobal = $("#goodsgird").attr("containGlobal");
|
805
|
var isGlobal = $("#goodsgird").attr("isGlobal");
|
805
|
var isGlobal = $("#goodsgird").attr("isGlobal");
|
|
|
806
|
+ var isLimitBuy = $("#goodsgird").attr("isLimitBuy");
|
|
|
807
|
+ if(isLimitBuy == 'N'){
|
806
|
return {
|
808
|
return {
|
807
|
status: 1,
|
809
|
status: 1,
|
808
|
sales: "Y",
|
810
|
sales: "Y",
|
|
@@ -819,6 +821,23 @@ var goodsgird = new common.grid({ |
|
@@ -819,6 +821,23 @@ var goodsgird = new common.grid({ |
819
|
contain_global:containGlobal,
|
821
|
contain_global:containGlobal,
|
820
|
is_global:isGlobal
|
822
|
is_global:isGlobal
|
821
|
};
|
823
|
};
|
|
|
824
|
+ }else {
|
|
|
825
|
+ return {
|
|
|
826
|
+ isLimitbuy: "Y",
|
|
|
827
|
+ attribute_not: "2",
|
|
|
828
|
+ query: common.util.__input('skns'),
|
|
|
829
|
+ price: price,
|
|
|
830
|
+ color: Bll2.getIds(Bll.sorts[0].list),
|
|
|
831
|
+ style: Bll2.getIds(Bll.sorts[1].list),//风格先不管
|
|
|
832
|
+ msort: Bll2.getIds(Bll.sorts[2].list),
|
|
|
833
|
+ brand: Bll2.getIds(Bll.sorts[3].list),
|
|
|
834
|
+ gender: Bll2.getIds(Bll.sorts[4].list),
|
|
|
835
|
+ /*app_type:appType,*/
|
|
|
836
|
+ contain_global:containGlobal,
|
|
|
837
|
+ is_global:isGlobal
|
|
|
838
|
+ };
|
|
|
839
|
+ }
|
|
|
840
|
+
|
822
|
},
|
841
|
},
|
823
|
columns: [
|
842
|
columns: [
|
824
|
{
|
843
|
{
|
|
@@ -1035,6 +1054,23 @@ $(document).on("click", "#search", function () { |
|
@@ -1035,6 +1054,23 @@ $(document).on("click", "#search", function () { |
1035
|
$("#goodsgird").attr("appType","0");
|
1054
|
$("#goodsgird").attr("appType","0");
|
1036
|
$("#goodsgird").attr("containGlobal","N");
|
1055
|
$("#goodsgird").attr("containGlobal","N");
|
1037
|
$("#goodsgird").attr("isGlobal","N");
|
1056
|
$("#goodsgird").attr("isGlobal","N");
|
|
|
1057
|
+ $("#goodsgird").attr("isLimitBuy","N");
|
|
|
1058
|
+ if (goodsgird.grid) {
|
|
|
1059
|
+ goodsgird.reload(1);
|
|
|
1060
|
+ } else {
|
|
|
1061
|
+ goodsgird.init('/yohosearch/search');
|
|
|
1062
|
+ }
|
|
|
1063
|
+});
|
|
|
1064
|
+
|
|
|
1065
|
+/**
|
|
|
1066
|
+ * 手动输入中“搜限购商品”按钮
|
|
|
1067
|
+ */
|
|
|
1068
|
+$(document).on("click", "#searchLimit", function () {
|
|
|
1069
|
+ $(".goods-list").show();
|
|
|
1070
|
+ $("#goodsgird").attr("appType","0");
|
|
|
1071
|
+ $("#goodsgird").attr("containGlobal","N");
|
|
|
1072
|
+ $("#goodsgird").attr("isGlobal","N");
|
|
|
1073
|
+ $("#goodsgird").attr("isLimitBuy","Y");
|
1038
|
if (goodsgird.grid) {
|
1074
|
if (goodsgird.grid) {
|
1039
|
goodsgird.reload(1);
|
1075
|
goodsgird.reload(1);
|
1040
|
} else {
|
1076
|
} else {
|
|
@@ -1050,6 +1086,7 @@ $(document).on("click", "#searchBLK", function () { |
|
@@ -1050,6 +1086,7 @@ $(document).on("click", "#searchBLK", function () { |
1050
|
$("#goodsgird").attr("appType","1");
|
1086
|
$("#goodsgird").attr("appType","1");
|
1051
|
$("#goodsgird").attr("containGlobal","N");
|
1087
|
$("#goodsgird").attr("containGlobal","N");
|
1052
|
$("#goodsgird").attr("isGlobal","N");
|
1088
|
$("#goodsgird").attr("isGlobal","N");
|
|
|
1089
|
+ $("#goodsgird").attr("isLimitBuy","N");
|
1053
|
if (goodsgird.grid) {
|
1090
|
if (goodsgird.grid) {
|
1054
|
goodsgird.reload(1);
|
1091
|
goodsgird.reload(1);
|
1055
|
} else {
|
1092
|
} else {
|
|
@@ -1065,6 +1102,7 @@ $(document).on("click", "#searchGlobal", function () { |
|
@@ -1065,6 +1102,7 @@ $(document).on("click", "#searchGlobal", function () { |
1065
|
$("#goodsgird").attr("appType","");
|
1102
|
$("#goodsgird").attr("appType","");
|
1066
|
$("#goodsgird").attr("containGlobal","Y");
|
1103
|
$("#goodsgird").attr("containGlobal","Y");
|
1067
|
$("#goodsgird").attr("isGlobal","Y");
|
1104
|
$("#goodsgird").attr("isGlobal","Y");
|
|
|
1105
|
+ $("#goodsgird").attr("isLimitBuy","N");
|
1068
|
if (goodsgird.grid) {
|
1106
|
if (goodsgird.grid) {
|
1069
|
goodsgird.reload(1);
|
1107
|
goodsgird.reload(1);
|
1070
|
} else {
|
1108
|
} else {
|