big-white-calendar
Advanced tools
Comparing version 1.0.33 to 1.0.34
@@ -31,3 +31,3 @@ import regeneratorRuntime from "regenerator-runtime"; | ||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() { | ||
var item, buttonVisible, buttonText, start, currentTime, issue_start_time, issue_end_time, statue, end; | ||
var item, buttonVisible, buttonText, start, currentTime, issue_start_time, issue_end_time, statue, stock_num, end; | ||
return regeneratorRuntime.wrap(function _callee$(_context) { | ||
@@ -51,3 +51,3 @@ while (1) { | ||
currentTime = _context.sent; | ||
issue_start_time = item.issue_start_time, issue_end_time = item.issue_end_time, statue = item.statue; | ||
issue_start_time = item.issue_start_time, issue_end_time = item.issue_end_time, statue = item.statue, stock_num = item.stock_num; | ||
start = dateToTime(issue_start_time); | ||
@@ -57,3 +57,3 @@ end = dateToTime(issue_end_time); | ||
buttonText = buttonVisible ? '立即领取' : buttonText; | ||
buttonText = end.time < currentTime ? '已抢完' : buttonText; | ||
buttonText = end.time < currentTime || !stock_num ? '已抢完' : buttonText; | ||
buttonText = statue === '1001' ? '去使用' : buttonText; | ||
@@ -60,0 +60,0 @@ buttonText = statue === '1002' ? '已使用' : buttonText; |
{ | ||
"name": "big-white-calendar", | ||
"description": "big-white-calendar", | ||
"version": "1.0.33", | ||
"version": "1.0.34", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "files": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60050