|
@@ -1,5 +1,8 @@
|
|
<template>
|
|
<template>
|
|
- <div class="pt-70 px-20 pb-30 flex flex-col h-screen">
|
|
|
|
|
|
+ <div class="pt-70 px-20 pb-30 flex flex-col h-screen relative">
|
|
|
|
+ <div @click="visible = false" class="absolute right-20 top-50">
|
|
|
|
+ <span class="iconfont icon-close"></span>
|
|
|
|
+ </div>
|
|
<NuxtLink v-if="!token" to="/login" class="flex items-center space-x-15">
|
|
<NuxtLink v-if="!token" to="/login" class="flex items-center space-x-15">
|
|
<div
|
|
<div
|
|
class="flex items-center justify-center bg-[#d9d9d9] rounded-full h-60 w-60"
|
|
class="flex items-center justify-center bg-[#d9d9d9] rounded-full h-60 w-60"
|
|
@@ -18,7 +21,7 @@
|
|
class="flex items-center space-x-15"
|
|
class="flex items-center space-x-15"
|
|
>
|
|
>
|
|
<van-image
|
|
<van-image
|
|
- :src="userInfo.headImageUrl"
|
|
|
|
|
|
+ :src="userInfo.headImageUrl || defaultAvatar"
|
|
height="60"
|
|
height="60"
|
|
width="60"
|
|
width="60"
|
|
radius="30px"
|
|
radius="30px"
|
|
@@ -37,15 +40,15 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <div class="flex flex-col mt-20 divide-y flex-1 overflow-scroll">
|
|
|
|
|
|
+ <div class="flex flex-col mt-20 flex-1 overflow-scroll">
|
|
<div
|
|
<div
|
|
v-for="item in menuData"
|
|
v-for="item in menuData"
|
|
:key="item.title"
|
|
:key="item.title"
|
|
@click="handleClickMenu(item)"
|
|
@click="handleClickMenu(item)"
|
|
- class="flex items-center h-50 space-x-5"
|
|
|
|
|
|
+ class="flex items-center h-50 space-x-5 border-b hover:bg-[#fff8e7]"
|
|
>
|
|
>
|
|
<img :src="item.icon" class="w-23 h-23" alt="" srcset="" />
|
|
<img :src="item.icon" class="w-23 h-23" alt="" srcset="" />
|
|
- <span class="text-base text-black-3">{{ item.title }}</span>
|
|
|
|
|
|
+ <span class="text-base text-black">{{ item.title }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -70,6 +73,7 @@ import menu_travel_note from "@/assets/img/navbar/menu_travel_note.png";
|
|
import menu_travel_project from "@/assets/img/navbar/menu_travel_project.png";
|
|
import menu_travel_project from "@/assets/img/navbar/menu_travel_project.png";
|
|
import menu_visa from "@/assets/img/navbar/menu_visa.png";
|
|
import menu_visa from "@/assets/img/navbar/menu_visa.png";
|
|
import menu_profile from "@/assets/img/navbar/menu_profile.png";
|
|
import menu_profile from "@/assets/img/navbar/menu_profile.png";
|
|
|
|
+import defaultAvatar from "~/assets/img/default_avatar.png";
|
|
|
|
|
|
const visible = defineModel("visible");
|
|
const visible = defineModel("visible");
|
|
|
|
|