|
@@ -1,44 +1,45 @@
|
|
|
<template>
|
|
|
<div class="w-full h-full relative" style="padding-bottom: 60px;">
|
|
|
- <div class="flex justify-between w-full px-4 py-6 text-white top" @click="toPage('userInfo')">
|
|
|
- <div class="flex">
|
|
|
- <div class="w-14 h-14 border-2 border-gray-50 rounded-full bg-gray-300">
|
|
|
- <img class="w-full h-full rounded-full" :src="baseURL + userInfo.profilePicture" alt="">
|
|
|
- </div>
|
|
|
- <div class="flex flex-col ml-4">
|
|
|
- <div>{{ userInfo.userName }}</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <i class="el-icon-arrow-right"></i>
|
|
|
+ <div class=" w-full h-40 top flex items-end relative overflow-hidden bg-white">
|
|
|
+ <img class=" absolute object-cover w-full h-full" v-if="userInfo.cover" :src="baseApi + userInfo.cover" alt="">
|
|
|
</div>
|
|
|
- <div class="boxs p-5 border-gray-200 shadow-md rounded-md">
|
|
|
- <!-- <div class="box px-2 py-2 mb-2 flex items-center rounded-md cursor-pointer"
|
|
|
- :class="active === 'userInfo' ? '' : ''" @click="menuClick('userInfo')">
|
|
|
- <i class="el-icon-user text-xl"></i>
|
|
|
- 用户信息
|
|
|
- </div> -->
|
|
|
- <div class="box px-2 py-2 flex items-center rounded-md cursor-pointer " @click="toPage('consume')">
|
|
|
- <i class="el-icon-setting text-xl"></i>
|
|
|
- 消费明细
|
|
|
+ <div class="px-6 flex justify-between relative w-full">
|
|
|
+ <div class="w-20 h-20 border-2 bg-white border-gray-50 rounded-full" style="transform: translateY(-50%);">
|
|
|
+ <img class="w-full h-full rounded-full" :src="$store.state.user.avatar" alt="">
|
|
|
</div>
|
|
|
- <div class="box px-2 py-2 flex items-center rounded-md cursor-pointer " @click="toPage('invite')">
|
|
|
- <i class="el-icon-present text-xl"></i>
|
|
|
- 邀请有礼
|
|
|
+ <div
|
|
|
+ class="text-gray-700 mt-4 w-20 h-8 text-sm flex justify-center items-center border border-gray-700 rounded-full"
|
|
|
+ @click="toPage('userInfo')">
|
|
|
+ 编辑资料
|
|
|
</div>
|
|
|
- <!-- <div class="box px-2 py-2 flex items-center rounded-md cursor-pointer " @click="toPage('signIn')">
|
|
|
- <i class="el-icon-present text-xl"></i>
|
|
|
- 签到
|
|
|
- </div> -->
|
|
|
- <div class="box px-2 py-2 flex items-center rounded-md cursor-pointer " @click="toPage('opinion')">
|
|
|
- <i class="el-icon-message text-xl"></i>
|
|
|
- 意见反馈
|
|
|
+ </div>
|
|
|
+ <div class=" text-gray-700 flex flex-col ml-4 justify-center">
|
|
|
+ <div class="text-lg font-semibold">{{ userInfo.userName }}</div>
|
|
|
+ <!-- <div class="text-sm">账号:{{ userInfo.account }}</div> -->
|
|
|
+ <div class=" text-sm">
|
|
|
+ UID: {{ userInfo.id }}
|
|
|
+ <i class="el-icon-copy-document cursor-pointer"></i>
|
|
|
</div>
|
|
|
- <div class="box px-2 py-2 flex items-center rounded-md cursor-pointer " @click="toPage('logOut')">
|
|
|
- <i class="fa-solid fa-arrow-right-from-bracket text-xl"></i>
|
|
|
- 退出登录
|
|
|
+ <div class="flex mt-2">
|
|
|
+ <div class="text-xs">
|
|
|
+ <span class="text-base font-semibold mr-2">0</span>关注
|
|
|
+ </div>
|
|
|
+ <div class="text-xs ml-4">
|
|
|
+ <span class="text-base font-semibold mr-2">0</span>粉丝
|
|
|
+ </div>
|
|
|
</div>
|
|
|
-
|
|
|
</div>
|
|
|
+ <van-cell class=" py-6 text-gray-700 mt-12" title="消费明细" icon="balance-list-o" is-link
|
|
|
+ @click="toPage('consume')"></van-cell>
|
|
|
+ <van-cell class=" py-6 text-gray-700" title="邀请有礼" icon="friends-o" is-link @click="toPage('invite')" />
|
|
|
+ <!-- <van-cell class=" py-6 text-gray-700" title="签到" is-link @click="toPage('signIn')" /> -->
|
|
|
+ <van-cell class=" py-6 text-gray-700" title="意见反馈" icon="envelop-o" is-link @click="toPage('opinion')" />
|
|
|
+ <van-cell class=" py-6 text-gray-700" title="退出登录" is-link @click="toPage('logOut')">
|
|
|
+ <template #title>
|
|
|
+ <i class="fa-solid fa-arrow-right-from-bracket mr-1"></i>
|
|
|
+ <span>退出登录</span>
|
|
|
+ </template>
|
|
|
+ </van-cell>
|
|
|
<div class="w-full text-gray-500 mb-4 px-4 text-sm absolute" style="bottom: 60px;">
|
|
|
© 2024 Xchat
|
|
|
<a :href="`${baseURL}/#/termOfUse`" target="_blank" class="underline mx-1">用户协议</a>
|
|
@@ -100,12 +101,12 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-.UserInfo {
|
|
|
- padding: 10px 10px;
|
|
|
+.top {
|
|
|
+ background: linear-gradient(rgba(0, 0, 0, 0) 23.28%, rgba(0, 0, 0, 0.72) 100%), url(https://cdn-az.rochat.tech/avatar/131__c9103616-e103-11ee-bef2-66a40ff97e79.png) center center / cover no-repeat;
|
|
|
}
|
|
|
|
|
|
-.top {
|
|
|
- background: linear-gradient(var(--bg-color1) 20%, #fff);
|
|
|
+.UserInfo {
|
|
|
+ padding: 10px 10px;
|
|
|
}
|
|
|
|
|
|
.boxs {
|
|
@@ -116,6 +117,7 @@ export default {
|
|
|
margin: 15px;
|
|
|
width: calc(100% - 30px);
|
|
|
padding: 10px;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
.box {
|