feat: 基本資料修改
This commit is contained in:
@@ -100,6 +100,15 @@
|
||||
to="/"
|
||||
/>
|
||||
|
||||
<v-list-item
|
||||
v-if="store.isLoggedIn"
|
||||
color="primary"
|
||||
prepend-icon="mdi-account-edit"
|
||||
title="個人資料修改"
|
||||
to="/profile"
|
||||
@click="drawer = false"
|
||||
/>
|
||||
|
||||
<v-list-item
|
||||
color="primary"
|
||||
prepend-icon="mdi-information-outline"
|
||||
@@ -149,13 +158,6 @@
|
||||
title="資料授權與隱私條款"
|
||||
@click="showPrivacy = true"
|
||||
/>
|
||||
|
||||
<v-list-item
|
||||
color="primary"
|
||||
prepend-icon="mdi-phone"
|
||||
title="緊急聯絡人資訊"
|
||||
@click="showEmergency = true"
|
||||
/>
|
||||
</v-list>
|
||||
</template>
|
||||
|
||||
@@ -270,48 +272,6 @@
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
|
||||
<!-- 緊急聯絡人對話框 -->
|
||||
<v-dialog v-model="showEmergency" max-width="500">
|
||||
<v-card class="rounded-xl">
|
||||
<v-card-title
|
||||
class="bg-primary text-white font-weight-bold d-flex align-center"
|
||||
>
|
||||
<v-icon class="mr-2" icon="mdi-alert-circle-outline" />
|
||||
緊急聯絡資訊
|
||||
</v-card-title>
|
||||
|
||||
<v-card-text class="pt-4 text-body-1">
|
||||
<v-text-field
|
||||
v-model="store.userProfile.emergencyContact"
|
||||
class="mb-3"
|
||||
color="primary"
|
||||
density="comfortable"
|
||||
label="緊急聯絡人姓名"
|
||||
variant="outlined"
|
||||
/>
|
||||
|
||||
<v-text-field
|
||||
v-model="store.userProfile.emergencyPhone"
|
||||
color="primary"
|
||||
density="comfortable"
|
||||
label="緊急聯絡人電話"
|
||||
variant="outlined"
|
||||
/>
|
||||
</v-card-text>
|
||||
|
||||
<v-card-actions class="justify-end px-4 pb-4">
|
||||
<v-btn
|
||||
class="rounded-lg px-4"
|
||||
color="primary"
|
||||
variant="flat"
|
||||
@click="showEmergency = false"
|
||||
>
|
||||
儲存並關閉
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
</v-app>
|
||||
</template>
|
||||
|
||||
@@ -327,7 +287,6 @@ const route = useRoute();
|
||||
const drawer = ref(false);
|
||||
const activeTab = ref("home");
|
||||
const showPrivacy = ref(false);
|
||||
const showEmergency = ref(false);
|
||||
|
||||
// 無障礙狀態 (可持久化儲存於 localStorage)
|
||||
const isLargeText = ref(localStorage.getItem("mode-large-text") === "true");
|
||||
|
||||
Reference in New Issue
Block a user