From 089bf5d2378b3c4a61d795b2a92bede2c193b771 Mon Sep 17 00:00:00 2001
From: admin <344137771@qq.com>
Date: Tue, 06 Jan 2026 11:22:58 +0800
Subject: [PATCH] 1

---
 src/components/user/AccountCard.vue |  139 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 139 insertions(+), 0 deletions(-)

diff --git a/src/components/user/AccountCard.vue b/src/components/user/AccountCard.vue
new file mode 100644
index 0000000..0853b87
--- /dev/null
+++ b/src/components/user/AccountCard.vue
@@ -0,0 +1,139 @@
+<template>
+  <div>
+    <div class="user-card animated fadeIn">
+      <div class="card-header">
+        <img :src="$store.state.user.visitCardBag" class="no-select" />
+        <div class="user-avatar no-select">
+          <img
+            :src="$store.state.user.avatar"
+            :onerror="$store.state.detaultAvatar"
+          />
+        </div>
+        <div class="user-nickname">
+          <i class="iconfont icon-qianming" />
+          <span v-text="$store.state.user.nickname"></span>
+        </div>
+      </div>
+      <div class="card-main">
+        <div class="usersign">
+          <div class="arrow"></div>
+          <span v-if="$store.state.user.signature">
+            <span style="font-weight: 600">个性签名</span> :
+            {{ $store.state.user.signature }}
+          </span>
+          <span v-else>
+            <i class="iconfont icon-bianji" />
+            <span>编辑个签,展示我的独特态度。</span>
+          </span>
+        </div>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'AccountCard',
+}
+</script>
+<style lang="less" scoped>
+.user-card {
+  width: 320px;
+  min-height: 300px;
+  background: #ffffff;
+  box-shadow: -1px 1px 9px 0px #e6e3e3;
+  padding-bottom: 10px;
+
+  .card-header {
+    height: 230px;
+    overflow: hidden;
+
+    img {
+      width: 100%;
+      height: 180px;
+      -webkit-transition: all 0.2s linear;
+      transition: all 0.2s linear;
+
+      &:hover {
+        -webkit-transform: scale(1.1);
+        transform: scale(1.1);
+        -webkit-filter: contrast(130%);
+        filter: contrast(130%);
+      }
+    }
+
+    .user-avatar {
+      height: 70px;
+      width: 70px;
+      border: 5px solid #fff;
+      background-color: #fff;
+      border-radius: 50%;
+      position: relative;
+      top: -35px;
+      margin-left: 15px;
+
+      img {
+        width: 100%;
+        height: 100%;
+        border-radius: 50%;
+        cursor: pointer;
+      }
+    }
+
+    .user-nickname {
+      position: relative;
+      top: -72px;
+      text-align: left;
+      margin-left: 105px;
+      margin-right: 5px;
+      font-size: 14px;
+      overflow: hidden;
+      text-overflow: ellipsis;
+      white-space: nowrap;
+
+      span {
+        font-size: 16px;
+        font-weight: 400;
+        margin-left: 8px;
+      }
+    }
+  }
+}
+
+.user-card .card-main {
+  margin-top: 10px;
+  min-height: 50px;
+  text-align: left;
+  padding: 0 16px;
+
+  .usersign {
+    min-height: 26px;
+    border-radius: 5px;
+    padding: 5px;
+    line-height: 25px;
+    background: #f3f5f7;
+    color: #7d7d7d;
+    font-size: 12px;
+    margin-bottom: 20px;
+    position: relative;
+    cursor: pointer;
+
+    .icon-bianji {
+      margin-left: 10px;
+    }
+
+    .arrow {
+      position: absolute;
+      width: 0;
+      height: 0;
+      font-size: 0;
+      border: solid 5px;
+      top: 5px;
+      border-color: rgba(247, 247, 247, 0) rgba(247, 247, 247, 0) #f3f5f7
+        rgba(247, 247, 247, 0);
+      top: -10px;
+      left: 31px;
+    }
+  }
+}
+</style>

--
Gitblit v1.9.3