Authored by yyq

购物车兼容性

... ... @@ -47,7 +47,7 @@ exports.showStorage = (leftNumber) => {
leftNumber = typeof num1 === 'number' ? leftNumber : parseFloat(leftNumber, 10);
if (leftNumber <= 3 && leftNumber >= 0) {
return '仅剩' + leftNumber + '件';
return `仅剩${leftNumber}件`;
} else if (leftNumber < 0) {
return '库存不足';
}
... ...
... ... @@ -7,7 +7,7 @@ module.exports = function(leftNumber) {
leftNumber = typeof num1 === 'number' ? leftNumber : parseFloat(leftNumber, 10);
if (leftNumber <= 3 && leftNumber >= 0) {
return `仅剩${leftNumber}件`;
return '仅剩' + leftNumber + '件';
} else if (leftNumber < 0) {
return '库存不足';
}
... ...