New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

big-white-calendar

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

big-white-calendar - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

26

es/components/template-user-discount/index.js

@@ -13,3 +13,5 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }

data: {
item: {}
item: {
buttonText: '待开启'
}
},

@@ -29,3 +31,3 @@ didMount: function didMount() {

return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
var item, buttonVisible, buttonDisable, start, currentTime, issue_start_time, issue_end_time, end;
var item, buttonVisible, buttonText, start, currentTime, issue_start_time, issue_end_time, statue, end;
return regeneratorRuntime.wrap(function _callee$(_context) {

@@ -36,21 +38,25 @@ while (1) {

item = _this.props.dataArr[0] || {};
buttonText = _this.data.buttonText;
start = {};
if (!_this.props.show) {
_context.next = 11;
_context.next = 15;
break;
}
_context.next = 5;
_context.next = 6;
return getServerTime();
case 5:
case 6:
currentTime = _context.sent;
issue_start_time = item.issue_start_time, issue_end_time = item.issue_end_time;
issue_start_time = item.issue_start_time, issue_end_time = item.issue_end_time, statue = item.statue;
start = dateToTime(issue_start_time);
end = dateToTime(issue_end_time);
buttonVisible = start.time < currentTime;
buttonDisable = end.time < currentTime;
buttonText = end.time < currentTime ? '已抢完' : buttonText;
buttonText = statue === '1001' ? '去使用' : buttonText;
buttonText = statue === '1002' ? '已使用' : buttonText;
buttonText = statue === '1003' ? '已过期' : buttonText;
case 11:
case 15:
_this.setData({

@@ -60,6 +66,6 @@ item: item,

buttonVisible: buttonVisible,
buttonDisable: buttonDisable
buttonText: buttonText
});
case 12:
case 16:
case "end":

@@ -66,0 +72,0 @@ return _context.stop();

{
"name": "big-white-calendar",
"description": "big-white-calendar",
"version": "1.0.6",
"version": "1.0.7",
"license": "MIT",

@@ -6,0 +6,0 @@ "files": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc