shaogen1995 8 місяців тому
батько
коміт
4a1003ef46

+ 1 - 1
展示端/src/pages/A3selectDay/index.tsx

@@ -62,7 +62,7 @@ function A3selectDay() {
         // 最多给2天可预约的日期
         arr = arr.filter(v => v.shangNum === 0 || v.xiaNum === 0)
 
-        setList(arr.filter((v, i) => i <= 1))
+        setList(arr)
       }
     }
   }, [])

+ 1 - 0
展示端/src/pages/B3start/index.module.scss

@@ -22,6 +22,7 @@
         padding-bottom: 10px;
         white-space: nowrap;
         display: inline-block;
+        text-align: center;
         .B3dayRow {
           font-size: 16px;
           display: inline-block;

+ 5 - 3
展示端/src/pages/B3start/index.tsx

@@ -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'>