...
|
...
|
@@ -46,9 +46,9 @@ exports.lte = (num1, num2, options) => { |
|
|
exports.showStorage = (leftNumber) => {
|
|
|
leftNumber = +leftNumber;
|
|
|
|
|
|
if (leftNumber <= 3 && leftNumber > 0) {
|
|
|
if (leftNumber <= 3 && leftNumber >= 0) {
|
|
|
return `仅剩${leftNumber}件`;
|
|
|
} else if (leftNumber <= 0) {
|
|
|
} else if (leftNumber < 0) {
|
|
|
return '库存不足';
|
|
|
}
|
|
|
}; |
...
|
...
|
|