|
@@ -26,7 +26,11 @@ function B3start() {
|
|
|
const arr = getWeekList()
|
|
|
let arrRes: TimeChageResType[] = []
|
|
|
arr.forEach(v => {
|
|
|
- if (!noTimeArr.includes(v.date)) arrRes.push(v)
|
|
|
+ if (!noTimeArr.includes(v.date)) {
|
|
|
+ // 只有周六日可以约
|
|
|
+ const num = dayjs(v.timeStamp).day()
|
|
|
+ if ([6, 0].includes(num)) arrRes.push(v)
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
if (arrRes && arrRes.length) setNowTime(arrRes[0].date)
|
|
@@ -145,8 +149,6 @@ function B3start() {
|
|
|
[nowTime]
|
|
|
)
|
|
|
|
|
|
- //
|
|
|
-
|
|
|
return (
|
|
|
<div className={styles.B3start}>
|
|
|
<div className='B3main'>
|