电子商城测试版v4

This commit is contained in:
2022-07-05 20:32:37 +08:00
parent 29090350ef
commit 7a2dc0006f
19 changed files with 649 additions and 168 deletions
+2 -1
View File
@@ -15,6 +15,7 @@ export const useTimeCountDown = () => {
const timeObj:any = useRef()
const endTime = useRef('')
const onStart = (val = '') => {
console.log('time:::', val)
endTime.current = val
if(endTime.current) {
clearInterval(timeObj.current)
@@ -51,7 +52,7 @@ export const useTimeCountDown = () => {
var HH = ('00'+hh).slice(-2);
var MM = ('00'+mm).slice(-2);
var SS = ('00'+ss).slice(-2);
// console.log('endTime::', `${DD}-${HH}-${MM}-${SS}`)
console.log('endTime::', `${DD}-${HH}-${MM}-${SS}`)
setShowTime((e) => ({...e, DD, HH, MM, SS}))
}
return {