fix: 增加兑换码时间的禁用

This commit is contained in:
zhangds 2022-11-02 13:53:08 +08:00
parent b06cf8f31b
commit 5f411474b5
1 changed files with 2 additions and 1 deletions

View File

@ -445,7 +445,8 @@ const UseProductPop = forwardRef((props, ref) => {
}; };
const onDisabledTime = (date) => { const onDisabledTime = (date) => {
const min = new Date(); let step1 = JSON.parse(sessionStorage.getItem("datetime"));
const min = new Date(step1[0]);
const hour = min.getHours(); const hour = min.getHours();
const minute = min.getMinutes(); const minute = min.getMinutes();
const second = min.getSeconds(); const second = min.getSeconds();