...
|
...
|
@@ -50,11 +50,11 @@ if(window.NETSALEDATA) { |
|
|
});
|
|
|
|
|
|
$(document).on('change','.washTips', function() {
|
|
|
var items = $("#washTips").val().split("|");
|
|
|
for (var i = 0; i < items.length; i++) {
|
|
|
washTipsList[i] = {"sortId":parseInt(items[i])};
|
|
|
}
|
|
|
});
|
|
|
var items = $("#washTips").val().split("|");
|
|
|
for (var i = 0; i < items.length; i++) {
|
|
|
washTipsList[i] = {"sortId":parseInt(items[i])};
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$(document).on('click', "#propertySave", function() {
|
|
|
|
...
|
...
|
@@ -72,7 +72,18 @@ if(window.NETSALEDATA) { |
|
|
// body...
|
|
|
});
|
|
|
});
|
|
|
|
|
|
window.GOLABDATA.on('TYcaizhi', function() {
|
|
|
var washTips = $("#washTips").val() || "";
|
|
|
var productMaterial = $("#material").val() || "";
|
|
|
return {
|
|
|
"washTips": washTips.replace(/\|/g, ","),
|
|
|
"productMaterial": productMaterial.replace(/\|/g, ",")
|
|
|
};
|
|
|
});
|
|
|
}
|
|
|
|
|
|
|
|
|
{//搜索关键词
|
|
|
var searchKeys = "";
|
|
|
if(window.NETSALEDATA.productExtBo) {
|
...
|
...
|
@@ -118,7 +129,17 @@ if(window.NETSALEDATA) { |
|
|
|
|
|
});
|
|
|
});
|
|
|
|
|
|
window.GOLABDATA.on('TYsearchKey', function() {
|
|
|
var washTips = $("#washTips").val() || "";
|
|
|
var productMaterial = $("#material").val() || "";
|
|
|
return {
|
|
|
"searchKeys": searchKeys
|
|
|
};
|
|
|
});
|
|
|
}
|
|
|
|
|
|
|
|
|
{//尺寸信息
|
|
|
var sizeInfo = {};
|
|
|
if(window.NETSALEDATA.sizeInfo) {
|
...
|
...
|
@@ -126,6 +147,8 @@ if(window.NETSALEDATA) { |
|
|
}
|
|
|
$("#body").html(common.util.__template2($("#sizeifo-template").html(),sizeInfo));
|
|
|
}
|
|
|
|
|
|
|
|
|
{//搜索优先级
|
|
|
var searchSortList = [];
|
|
|
if(window.NETSALEDATA.searchSortList) {
|
...
|
...
|
@@ -160,27 +183,38 @@ if(window.NETSALEDATA) { |
|
|
}
|
|
|
}
|
|
|
|
|
|
window.NETSALEDATA.searchSortList = item;
|
|
|
searchSortList = item;
|
|
|
|
|
|
$('#sort-save').on('click', function () {
|
|
|
common.util.__ajax({
|
|
|
url:'/netSale/saveSearchSort',
|
|
|
data:{searchSortList:JSON.stringify(window.NETSALEDATA.searchSortList)}
|
|
|
data:{searchSortList:JSON.stringify(searchSortList)}
|
|
|
},function() {
|
|
|
|
|
|
});
|
|
|
});
|
|
|
|
|
|
$("#sort0").on('change', function() {
|
|
|
window.NETSALEDATA.searchSortList[0].intValue = parseInt($("#sort0").val());
|
|
|
searchSortList[0].intValue = parseInt($("#sort0").val());
|
|
|
});
|
|
|
|
|
|
$("#sort1").on('change', function() {
|
|
|
window.NETSALEDATA.searchSortList[1].intValue = parseInt($("#sort1").val());
|
|
|
searchSortList[1].intValue = parseInt($("#sort1").val());
|
|
|
});
|
|
|
|
|
|
$("#sort2").on('change', function() {
|
|
|
window.NETSALEDATA.searchSortList[2].intValue = parseInt($("#sort2").val());
|
|
|
searchSortList[2].intValue = parseInt($("#sort2").val());
|
|
|
});
|
|
|
|
|
|
window.GOLABDATA.on('TYsearchSort', function() {
|
|
|
if(!searchSortList[0] || !searchSortList[1] || !searchSortList[2])
|
|
|
return "请将搜索排序填写完整!";
|
|
|
return {
|
|
|
"searchSortList": JSON.stringify(searchSortList)
|
|
|
};
|
|
|
});
|
|
|
}
|
|
|
} |
|
|
\ No newline at end of file |
|
|
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
|