Authored by biao

Merge branch 'release/1.0' of http://git.yoho.cn/fe/yoho-blk into release/1.0

... ... @@ -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 '库存不足';
}
};
... ...
... ... @@ -6,9 +6,9 @@
module.exports = function(leftNumber) {
leftNumber = +leftNumber;
if (leftNumber <= 3 && leftNumber > 0) {
if (leftNumber <= 3 && leftNumber >= 0) {
return '仅剩' + leftNumber + '件';
} else if (leftNumber <= 0) {
} else if (leftNumber < 0) {
return '库存不足';
}
};
... ...