...
|
...
|
@@ -1957,6 +1957,8 @@ $(document).on('change', '.model-default-hotproduct', function() { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
item = +item;
|
|
|
|
|
|
// 最多只能8个SKN
|
|
|
if(skns.length >= 8) {
|
|
|
return;
|
...
|
...
|
@@ -1975,7 +1977,7 @@ $(document).on('change', '.model-default-hotproduct', function() { |
|
|
|
|
|
if(sknList.length === 0) {
|
|
|
if(jsonMain.resources.defaultHotProducts) {
|
|
|
jsonMain.resources.defaultHotProducts.data = '';
|
|
|
jsonMain.resources.defaultHotProducts.data = [];
|
|
|
}
|
|
|
return;
|
|
|
}
|
...
|
...
|
@@ -1996,7 +1998,7 @@ $(document).on('change', '.model-default-hotproduct', function() { |
|
|
if(hotProductResource === undefined) {
|
|
|
hotProductResource = {};
|
|
|
}
|
|
|
hotProductResource.data = sknList;
|
|
|
hotProductResource.data = skns;
|
|
|
jsonMain.resources.defaultHotProducts = hotProductResource;
|
|
|
}
|
|
|
}
|
...
|
...
|
|