feat: feature switch

This commit is contained in:
skytek_xinliang
2026-09-14 09:35:56 +08:00
parent a6042b993a
commit bcaaf8797c
7 changed files with 41 additions and 13 deletions
@@ -132,7 +132,7 @@
/>
<v-list-item
v-if="store.isLoggedIn"
v-if="APPOINTMENT_ENABLED && store.isLoggedIn"
color="primary"
prepend-icon="mdi-calendar-check"
title="普測活動預約"
@@ -140,7 +140,7 @@
/>
<v-list-item
v-if="store.isLoggedIn"
v-if="CHECKIN_ENABLED && store.isLoggedIn"
color="primary"
prepend-icon="mdi-qrcode-scan"
title="現場報到與量測"
@@ -219,14 +219,22 @@
<span class="bottom-nav-text">自評</span>
</v-btn>
<v-btn v-if="store.isLoggedIn" to="/checkin" value="checkin">
<v-btn
v-if="CHECKIN_ENABLED && store.isLoggedIn"
to="/checkin"
value="checkin"
>
<v-icon :color="getBottomNavIconColor('checkin')"
>mdi-qrcode-scan</v-icon
>
<span class="bottom-nav-text">量測</span>
</v-btn>
<v-btn v-if="store.isLoggedIn" to="/appointment" value="appointment">
<v-btn
v-if="APPOINTMENT_ENABLED && store.isLoggedIn"
to="/appointment"
value="appointment"
>
<v-icon :color="getBottomNavIconColor('appointment')"
>mdi-calendar-check</v-icon
>
@@ -250,7 +258,7 @@
</p>
<ul class="pl-4 mb-3">
<li>提供個人化的運動方針與健康改善建議。</li>
<li>提供個人化的運動與健康改善建議。</li>
<li>於普測活動現場合對您的身分。</li>
<li>在去識別化的安全機制下,作為高齡健康促進的政策分析參考。</li>
</ul>
@@ -279,6 +287,7 @@
import { ref, watch } from "vue";
import { useRoute, useRouter } from "vue-router";
import { useDisplayUserName } from "@/composables/useDisplayUserName";
import { APPOINTMENT_ENABLED, CHECKIN_ENABLED } from "@/config/features";
import { useAppStore } from "@/stores/app";
import { useCourseStore } from "@/stores/course";