...
|
...
|
@@ -19,19 +19,12 @@ if (window.NETSALEDATA) { |
|
|
|
|
|
//材质初始化
|
|
|
common.util.__ajax({
|
|
|
url: '/netSale/queryMaterialList',
|
|
|
url: '/netSale/queryAllBySortId4Select',
|
|
|
data: {
|
|
|
categoryId: baseProduct.maxSortId,
|
|
|
saleType: 2,
|
|
|
displayPosition: 3
|
|
|
param: baseProduct.maxSortId
|
|
|
}
|
|
|
}, function(res) {
|
|
|
var attrs = [];
|
|
|
if(res.data) {
|
|
|
attrs = res.data.attributeValues.split(",");
|
|
|
}
|
|
|
var obj = {"attrs":attrs};
|
|
|
$("#material-group").html(common.util.__template2($("#material-params").html(), obj || {}));
|
|
|
$("#material-group").html(common.util.__template2($("#material-params").html(), res || {}));
|
|
|
var materials = [];
|
|
|
for (var i = 0; i < materialList.length; i++) {
|
|
|
materials[i] = materialList[i].id;
|
...
|
...
|
@@ -42,19 +35,10 @@ if (window.NETSALEDATA) { |
|
|
|
|
|
//洗涤提示初始化
|
|
|
common.util.__ajax({
|
|
|
url: '/netSale/queryWashTipsList',
|
|
|
data: {
|
|
|
categoryId: baseProduct.maxSortId,
|
|
|
saleType: 2,
|
|
|
displayPosition: 3
|
|
|
}
|
|
|
url: '/netSale/getAll4Select',
|
|
|
data: {}
|
|
|
}, function(res) {
|
|
|
var attrs = [];
|
|
|
if(res.data) {
|
|
|
attrs = res.data.attributeValues.split(",");
|
|
|
}
|
|
|
var obj = {"attrs":attrs};
|
|
|
$("#washTip-group").html(common.util.__template2($("#washTip-params").html(), obj || {}));
|
|
|
$("#washTip-group").html(common.util.__template2($("#washTip-params").html(), res || {}));
|
|
|
var washTips = [];
|
|
|
for (var i = 0; i < washTipsList.length; i++) {
|
|
|
washTips[i] = washTipsList[i].sortId;
|
...
|
...
|
@@ -94,9 +78,8 @@ if (window.NETSALEDATA) { |
|
|
washTips: washTips.replace(/\|/g, ","),
|
|
|
productMaterial: productMaterial.replace(/\|/g, ",")
|
|
|
}
|
|
|
}, function() {
|
|
|
// body...
|
|
|
});
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
window.GOLABDATA.on('TYcaizhi', function() {
|
...
|
...
|
@@ -156,9 +139,8 @@ if (window.NETSALEDATA) { |
|
|
productSkn: window.NETSALEDATA.baseProductInfo.baseProduct.productSkn,
|
|
|
searchKeys: searchKeys
|
|
|
}
|
|
|
}, function(res) {
|
|
|
|
|
|
});
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
window.GOLABDATA.on('TYsearchKey', function() {
|
...
|
...
|
@@ -222,9 +204,8 @@ if (window.NETSALEDATA) { |
|
|
data: {
|
|
|
searchSortList: JSON.stringify(searchSortList)
|
|
|
}
|
|
|
}, function() {
|
|
|
|
|
|
});
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
$("#sort0").on('change', function() {
|
...
|
...
|
|