fix: 移除市民字樣
This commit is contained in:
@@ -24,13 +24,13 @@
|
||||
'justify-center',
|
||||
'align-center',
|
||||
courseStore.groupLoaded
|
||||
? `bg-${courseStore.groupMeta.color}`
|
||||
: 'bg-primary',
|
||||
? `text-${courseStore.groupMeta.color}`
|
||||
: 'text-primary',
|
||||
]"
|
||||
>
|
||||
<v-progress-circular
|
||||
v-if="courseStore.groupLoading"
|
||||
color="white"
|
||||
color="primary"
|
||||
indeterminate
|
||||
size="28"
|
||||
width="3"
|
||||
@@ -39,7 +39,7 @@
|
||||
{{ courseStore.groupMeta.label }}
|
||||
</span>
|
||||
<span v-else-if="courseStore.groupMissing" class="group-label">
|
||||
尚未分組
|
||||
未取得體適能分組
|
||||
</span>
|
||||
<span v-else class="group-label">無資料</span>
|
||||
</div>
|
||||
@@ -60,7 +60,7 @@
|
||||
</v-card-subtitle>
|
||||
|
||||
<!-- 四項核心能力數值簡覽 -->
|
||||
<v-row class="mt-4" no-gutters>
|
||||
<!-- <v-row class="mt-4" no-gutters>
|
||||
<v-col class="text-center border pa-2" cols="3">
|
||||
<div class="">肌力</div>
|
||||
|
||||
@@ -92,13 +92,13 @@
|
||||
{{ store.radarData.cardio }}
|
||||
</div>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-row> -->
|
||||
|
||||
<!-- 課程建議入口 -->
|
||||
|
||||
<v-list-item
|
||||
append-icon="mdi-chevron-right"
|
||||
class="bg-primary py-4"
|
||||
class="bg-primary py-4 mt-4"
|
||||
to="/course"
|
||||
>
|
||||
<v-list-item-title class="font-weight-bold">
|
||||
@@ -283,6 +283,7 @@ import BrandAvatar from "@/components/BrandAvatar.vue";
|
||||
import HealthRadarChart from "@/components/HealthRadarChart.vue";
|
||||
import Layout from "@/components/layout/DefaultLayout.vue";
|
||||
import ModuleRouterCard from "@/components/ModuleRouterCard.vue";
|
||||
import { useDisplayUserName } from "@/composables/useDisplayUserName";
|
||||
import { useAppStore } from "@/stores/app";
|
||||
import { useCourseStore } from "@/stores/course";
|
||||
|
||||
@@ -291,18 +292,7 @@ const courseStore = useCourseStore();
|
||||
const router = useRouter();
|
||||
const missingGroupDialog = ref(false);
|
||||
|
||||
const displayUserName = computed(() => {
|
||||
const name = store.userProfile.name || "市民";
|
||||
const gender = store.userProfile.gender;
|
||||
const honorific =
|
||||
gender === "男" || gender === "male"
|
||||
? "先生"
|
||||
: gender === "女" || gender === "female"
|
||||
? "女士"
|
||||
: "";
|
||||
|
||||
return honorific ? `${name} ${honorific}` : name;
|
||||
});
|
||||
const displayUserName = useDisplayUserName(store.userProfile);
|
||||
|
||||
const MISSING_GROUP_DIALOG_KEY = "missing-fitness-group-dialog-shown";
|
||||
|
||||
@@ -424,12 +414,15 @@ const todayTimeString = computed(() => {
|
||||
}
|
||||
|
||||
.score-disk {
|
||||
border: 3px solid #ffffff;
|
||||
width: min(100%, 108px);
|
||||
border: 2px solid currentColor;
|
||||
background-color: transparent;
|
||||
width: fit-content;
|
||||
min-width: 108px;
|
||||
max-width: 100%;
|
||||
height: 72px;
|
||||
padding: 0 10px;
|
||||
border-radius: 22px;
|
||||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
|
||||
padding: 0 8px;
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 3px 10px rgba(29, 112, 99, 0.12);
|
||||
box-sizing: border-box;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
@@ -438,8 +431,11 @@ const todayTimeString = computed(() => {
|
||||
font-size: clamp(0.95rem, 3vw, 1.1rem);
|
||||
font-weight: 900;
|
||||
line-height: 1;
|
||||
color: #ffffff;
|
||||
white-space: nowrap;
|
||||
color: inherit;
|
||||
max-width: 100%;
|
||||
overflow-wrap: anywhere;
|
||||
text-align: center;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.transition-card {
|
||||
|
||||
Reference in New Issue
Block a user