Commit b15acd2d authored by prurite's avatar prurite
Browse files

巴士时刻表修改下班车高亮为20分钟内;加入顶部说明

parent a005d13b
Loading
Loading
Loading
Loading
+28 −1
Original line number Diff line number Diff line
@@ -17,6 +17,16 @@
        </template>
      </a-segmented>

      <div class="top-note">
        2026.05.09 / “时间表”中的部分班次发车时间与实际不符的问题已修正。对于带来的不便,南科手册深表歉意。
        <br>
        The issue where some departure times in the "timetable" did not match the actual schedule has been corrected. We sincerely apologize for any inconvenience caused.
      </div>

      <div style="margin-bottom: 1rem">
      表中所列时间为首站发车时间。Times listed are departure times from the terminus.
      </div>

      <!-- Legend -->
      <div class="legend-bar">
        <div class="legend-item">
@@ -314,6 +324,7 @@ export default {
    
    updateStatuses() {
      const now = this.currentMinutes
      const nextHighlightWindow = 20
      
      this.scheduleGroups.forEach(g => {
        g.routes.forEach(r => {
@@ -327,7 +338,7 @@ export default {
              t.status = 'en-route'
            } else {
              // Future
              if (!nextFound) {
              if (!nextFound && t.val - now <= nextHighlightWindow) {
                t.status = 'next'
                nextFound = true
              } else {
@@ -374,6 +385,22 @@ export default {
  background: #333;
}

.top-note {
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.9rem;
  line-height: 1.5;
}
[data-theme='dark'] .top-note {
  background: rgba(154, 52, 18, 0.16);
  border-color: rgba(249, 115, 22, 0.35);
  color: #fdba74;
}

.legend-bar {
  display: flex;
  flex-wrap: wrap;
+7 −7
Original line number Diff line number Diff line
@@ -6,9 +6,9 @@
            "routes": [
                {
                    "name": "1路 内环",
                    "description": "顺时针 / Clockwise (欣园 → 欣园)",
                    "description": "顺时针 / Clockwise\n欣园 → 欣园 Joy Highland Loop)",
                    "type": "loop",
                    "color": "#FF901C",
                    "color": "#00ab5b",
                    "sources": [
                        {
                            "url": "/bus_times/one_down.json",
@@ -28,7 +28,7 @@
            "routes": [
                {
                    "name": "2路 外环",
                    "description": "逆时针 / Counter-Clockwise (欣园 → 欣园)",
                    "description": "逆时针 / Counter-Clockwise\n(欣园 → 欣园 Joy Highland Loop)",
                    "type": "loop",
                    "color": "#F0608F",
                    "sources": [
@@ -114,7 +114,7 @@
            "routes": [
                {
                    "name": "南山智园离校线",
                    "description": "欣园 - 慧园 - 荔园西 - 学生宿舍 - 二号门 - 一号门 - 南山智园C1\nJoy Highland ... Nanshan iPark C1",
                    "description": "欣园 - 慧园 - 荔园西 - 学生宿舍 - 二号门 - 一号门 - 南山智园C1\nJoy Highland  Nanshan iPark C1",
                    "type": "point-to-point",
                    "color": "#444",
                    "sources": [
@@ -126,7 +126,7 @@
                },
                {
                    "name": "南山智园进校线",
                    "description": "南山智园C1 - 二号门 - 学生宿舍 - 荔园南 - 慧园 - 欣园\nNanshan iPark C1 ... Joy Highland",
                    "description": "南山智园C1 - 二号门 - 学生宿舍 - 荔园南 - 慧园 - 欣园\nNanshan iPark C1  Joy Highland",
                    "type": "point-to-point",
                    "color": "#444",
                    "sources": [
@@ -176,7 +176,7 @@
            "routes": [
                {
                    "name": "1路 内环",
                    "description": "顺时针 / Clockwise (欣园 → 欣园)",
                    "description": "顺时针 / Clockwise\n(欣园 → 欣园 Joy Highland Loop)",
                    "type": "loop",
                    "color": "#009966",
                    "sources": [
@@ -198,7 +198,7 @@
            "routes": [
                {
                    "name": "2路 外环",
                    "description": "逆时针 / Counter-Clockwise (欣园 → 欣园)",
                    "description": "逆时针 / Counter-Clockwise\n(欣园 → 欣园 Joy Highland Loop)",
                    "type": "loop",
                    "color": "#F0608F",
                    "sources": [