|
@@ -1957,6 +1957,8 @@ $(document).on('change', '.model-default-hotproduct', function() { |
|
@@ -1957,6 +1957,8 @@ $(document).on('change', '.model-default-hotproduct', function() { |
1957
|
return;
|
1957
|
return;
|
1958
|
}
|
1958
|
}
|
1959
|
|
1959
|
|
|
|
1960
|
+ item = +item;
|
|
|
1961
|
+
|
1960
|
// 最多只能8个SKN
|
1962
|
// 最多只能8个SKN
|
1961
|
if(skns.length >= 8) {
|
1963
|
if(skns.length >= 8) {
|
1962
|
return;
|
1964
|
return;
|
|
@@ -1975,7 +1977,7 @@ $(document).on('change', '.model-default-hotproduct', function() { |
|
@@ -1975,7 +1977,7 @@ $(document).on('change', '.model-default-hotproduct', function() { |
1975
|
|
1977
|
|
1976
|
if(sknList.length === 0) {
|
1978
|
if(sknList.length === 0) {
|
1977
|
if(jsonMain.resources.defaultHotProducts) {
|
1979
|
if(jsonMain.resources.defaultHotProducts) {
|
1978
|
- jsonMain.resources.defaultHotProducts.data = '';
|
1980
|
+ jsonMain.resources.defaultHotProducts.data = [];
|
1979
|
}
|
1981
|
}
|
1980
|
return;
|
1982
|
return;
|
1981
|
}
|
1983
|
}
|
|
@@ -1996,7 +1998,7 @@ $(document).on('change', '.model-default-hotproduct', function() { |
|
@@ -1996,7 +1998,7 @@ $(document).on('change', '.model-default-hotproduct', function() { |
1996
|
if(hotProductResource === undefined) {
|
1998
|
if(hotProductResource === undefined) {
|
1997
|
hotProductResource = {};
|
1999
|
hotProductResource = {};
|
1998
|
}
|
2000
|
}
|
1999
|
- hotProductResource.data = sknList;
|
2001
|
+ hotProductResource.data = skns;
|
2000
|
jsonMain.resources.defaultHotProducts = hotProductResource;
|
2002
|
jsonMain.resources.defaultHotProducts = hotProductResource;
|
2001
|
}
|
2003
|
}
|
2002
|
}
|
2004
|
}
|