|
@@ -1,8 +1,11 @@
|
|
<template>
|
|
<template>
|
|
<div class="profile-page bg-[#f8f8f8]">
|
|
<div class="profile-page bg-[#f8f8f8]">
|
|
- <div class="pt-66 pb-14 px-26 relative w-full bg-[url('~/assets/img/profile/profile_banner.png')] bg-no-repeat bg-cover">
|
|
|
|
|
|
+ <div
|
|
|
|
+ class="pt-66 pb-14 px-26 relative w-full bg-[url('~/assets/img/profile/profile_banner.png')] bg-no-repeat bg-cover">
|
|
<NuxtLink to="/chat/sweep" class="absolute top-17 right-14">
|
|
<NuxtLink to="/chat/sweep" class="absolute top-17 right-14">
|
|
- <img src="~/assets/img/profile/pofile_qr.png" height="33" width="33" alt="扫一扫"/>
|
|
|
|
|
|
+ <ScanCode>
|
|
|
|
+ <img src="~/assets/img/profile/pofile_qr.png" height="33" width="33" alt="扫一扫"/>
|
|
|
|
+ </ScanCode>
|
|
</NuxtLink>
|
|
</NuxtLink>
|
|
<div class="w-335 left-20 top-66 right-20 ">
|
|
<div class="w-335 left-20 top-66 right-20 ">
|
|
<NuxtLink to="/profile/userInfo">
|
|
<NuxtLink to="/profile/userInfo">
|
|
@@ -15,9 +18,11 @@
|
|
height="75px"
|
|
height="75px"
|
|
radius="37.5px"
|
|
radius="37.5px"
|
|
/>
|
|
/>
|
|
- <div class="text-2xl text-[#fff] font-bold text-ellipsis text-nowrap overflow-hidden ...">{{ userInfo.showName }}</div>
|
|
|
|
|
|
+ <div class="text-2xl text-[#fff] font-bold text-ellipsis text-nowrap overflow-hidden ...">
|
|
|
|
+ {{ userInfo.showName }}
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- <div class="mt-24 text-base text-[#fff] ">{{ userInfo.personalSign || "暂未填写" }}</div>
|
|
|
|
|
|
+ <div class="mt-24 text-base text-[#fff] ">{{ userInfo.personalSign }}</div>
|
|
</div>
|
|
</div>
|
|
</NuxtLink>
|
|
</NuxtLink>
|
|
<!-- <NuxtLink to="/profile/userInfo" class="flex items-center space-x-10">
|
|
<!-- <NuxtLink to="/profile/userInfo" class="flex items-center space-x-10">
|
|
@@ -39,20 +44,12 @@
|
|
</div>
|
|
</div>
|
|
<div class="mt-17 w-full grid grid-cols-4 gap-10">
|
|
<div class="mt-17 w-full grid grid-cols-4 gap-10">
|
|
<template v-for="(tab, i) in tabList" :key="i">
|
|
<template v-for="(tab, i) in tabList" :key="i">
|
|
- <template v-if="tab.listType">
|
|
|
|
- <NuxtLink :to="`/follow?listType=${tab.listType}`">
|
|
|
|
- <div class="text-[#fff] text-base text-center ">
|
|
|
|
- <div class="font-semibold">{{tab.numText}} </div>
|
|
|
|
- <div class="text-sm">{{ tab.label }}</div>
|
|
|
|
- </div>
|
|
|
|
- </NuxtLink>
|
|
|
|
- </template>
|
|
|
|
- <template v-else>
|
|
|
|
|
|
+ <NuxtLink :to=" tab.listType ? `/follow?listType=${tab.listType}` : null">
|
|
<div class="text-[#fff] text-base text-center ">
|
|
<div class="text-[#fff] text-base text-center ">
|
|
- <div class="font-semibold">{{tab.numText}} </div>
|
|
|
|
|
|
+ <div class="font-semibold">{{ tab.numText }}</div>
|
|
<div class="text-sm">{{ tab.label }}</div>
|
|
<div class="text-sm">{{ tab.label }}</div>
|
|
</div>
|
|
</div>
|
|
- </template>
|
|
|
|
|
|
+ </NuxtLink>
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -82,7 +79,7 @@ import profile_colection from "~/assets/img/profile/profile_colection.png";
|
|
import profile_car_order from "~/assets/img/profile/profile_car_order.png";
|
|
import profile_car_order from "~/assets/img/profile/profile_car_order.png";
|
|
import profile_visa_order from "~/assets/img/profile/profile_visa_order.png";
|
|
import profile_visa_order from "~/assets/img/profile/profile_visa_order.png";
|
|
import profile_my_comment from "~/assets/img/profile/profile_my_comment.png";
|
|
import profile_my_comment from "~/assets/img/profile/profile_my_comment.png";
|
|
-import {formatNumber} from "~/utils/formatNumber";
|
|
|
|
|
|
+// import {formatNumber} from "~/utils";
|
|
|
|
|
|
const userInfoStore = useUserInfoStore();
|
|
const userInfoStore = useUserInfoStore();
|
|
const {userInfo} = storeToRefs(userInfoStore);
|
|
const {userInfo} = storeToRefs(userInfoStore);
|
|
@@ -141,11 +138,11 @@ const menuData = [
|
|
label: "我的收藏",
|
|
label: "我的收藏",
|
|
to: "/profile/collection",
|
|
to: "/profile/collection",
|
|
},
|
|
},
|
|
- {
|
|
|
|
- icon: profile_my_comment,
|
|
|
|
- label: "我的评论",
|
|
|
|
- to: "/profile/my-comment",
|
|
|
|
- },
|
|
|
|
|
|
+ /* {
|
|
|
|
+ icon: profile_my_comment,
|
|
|
|
+ label: "我的评论",
|
|
|
|
+ to: "/profile/my-comment",
|
|
|
|
+ },*/
|
|
{
|
|
{
|
|
icon: profile_my_comment,
|
|
icon: profile_my_comment,
|
|
label: '我的消息',
|
|
label: '我的消息',
|
|
@@ -161,6 +158,6 @@ onMounted(() => {
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
.profile-page {
|
|
.profile-page {
|
|
- height: calc(100vh - 50px);
|
|
|
|
|
|
+ height: calc(100vh - 50px);
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|