| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425 |
- <template>
- <view class="mine-container">
- <image class="top-bg" src="/static/image/home/top-bg.png" />
- <!-- 顶部背景区域 -->
- <view class="header-bg">
- <NavBar title="" color="#020202" :fixed="true" :bg="'transparent'">
- <template #left>
- <view class="left-title"></view>
- </template>
- </NavBar>
- <!-- 用户信息 -->
- <view class="user-info-section">
- <view class="avatar-wrapper">
- <image class="avatar" src="/static/image/public/avatar-default.png" mode="aspectFill" />
- <image class="avatar-badge" src="/static/image/public/badge-icon.png" />
- </view>
- <view class="user-details">
- <view class="name-row">
- <text class="user-name">赵建平</text>
- <text class="user-role">销售经理</text>
- </view>
- <text class="company-name">浙江舒博特网络科技有限公司</text>
- </view>
- <view class="qr-btn" @click="showCard">
- <image class="qr-icon" src="/static/image/public/qr-icon.png" />
- <text class="qr-text">我的名片</text>
- </view>
- </view>
- </view>
- <!-- 内容区域 -->
- <view class="content-section">
- <!-- 线索数据卡片 -->
- <view class="data-card">
- <view class="card-header">
- <text class="card-title">线索数据</text>
- </view>
- <view class="data-row">
- <view class="data-item">
- <text class="data-value">1,266</text>
- <text class="data-label">线索总数</text>
- </view>
- <view class="data-item highlight">
- <text class="data-value orange">65</text>
- <text class="data-label">本月新增</text>
- </view>
- <view class="data-item">
- <text class="data-value">126</text>
- <text class="data-label">我的线索</text>
- </view>
- </view>
- </view>
- <!-- 客户数据卡片 -->
- <view class="data-card">
- <view class="card-header">
- <text class="card-title">客户数据</text>
- <uni-icons type="eye" size="20" color="#999999"></uni-icons>
- </view>
- <view class="data-row">
- <view class="data-item">
- <text class="data-value">1,088</text>
- <text class="data-label">客户总数</text>
- </view>
- <view class="data-item highlight">
- <text class="data-value orange">123</text>
- <text class="data-label">本月新增</text>
- </view>
- <view class="data-item">
- <text class="data-value">235</text>
- <text class="data-label">我的客户</text>
- </view>
- </view>
- </view>
- <!-- 商机数据卡片 -->
- <view class="data-card">
- <view class="card-header">
- <text class="card-title">商机数据</text>
- <uni-icons type="eye" size="20" color="#999999"></uni-icons>
- </view>
- <view class="data-row">
- <view class="data-item">
- <text class="data-value">1,366</text>
- <text class="data-label">商机总数</text>
- </view>
- <view class="data-item highlight">
- <text class="data-value orange">63</text>
- <text class="data-label">本月新增</text>
- </view>
- <view class="data-item">
- <text class="data-value">86</text>
- <text class="data-label">我的商机</text>
- </view>
- </view>
- </view>
- <!-- 功能菜单卡片 -->
- <view class="menu-card">
- <view class="menu-item" @click="navigateTo('guide')">
- <view class="menu-icon-wrapper icon-blue">
- <uni-icons type="help" size="24" color="#4A90E2"></uni-icons>
- </view>
- <text class="menu-text">使用指南</text>
- <uni-icons type="right" size="16" color="#cccccc"></uni-icons>
- </view>
- <view class="menu-divider"></view>
- <view class="menu-item" @click="navigateTo('service')">
- <view class="menu-icon-wrapper icon-blue">
- <uni-icons type="paperclip" size="24" color="#4A90E2"></uni-icons>
- </view>
- <text class="menu-text">联系客服</text>
- <uni-icons type="right" size="16" color="#cccccc"></uni-icons>
- </view>
- <view class="menu-divider"></view>
- <view class="menu-item" @click="navigateTo('about')">
- <view class="menu-icon-wrapper icon-blue">
- <uni-icons type="gear" size="24" color="#4A90E2"></uni-icons>
- </view>
- <text class="menu-text">关于我们</text>
- <uni-icons type="right" size="16" color="#cccccc"></uni-icons>
- </view>
- </view>
- <!-- 底部占位 -->
- <view class="bottom-spacer"></view>
- </view>
- </view>
- </template>
- <script setup>
- import {
- ref
- } from 'vue'
- import NavBar from '@/components/nav-bar/index.vue'
- const navigateTo = (page) => {
- uni.showToast({
- title: `功能开发中:${page}`,
- icon: 'none'
- })
- }
- // 显示名片
- const showCard = () => {
- uni.navigateTo({
- url: '/pages/mine/card'
- })
- }
- </script>
- <style lang="scss" scoped>
- .mine-container {
- min-height: 100vh;
- background: #f5f6f8;
- }
- .top-bg {
- width: 750rpx;
- height: 634rpx;
- position: fixed;
- top: 0;
- left: 0;
- z-index: 1;
- }
- // 顶部背景区域
- .header-bg {
- padding: 0 40rpx;
- padding-bottom: 200rpx;
- position: relative;
- overflow: hidden;
- // 背景光效
- .bg-light {
- position: absolute;
- border-radius: 50%;
- background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
- }
- .bg-light-1 {
- top: -150rpx;
- right: -100rpx;
- width: 500rpx;
- height: 500rpx;
- }
- .bg-light-2 {
- top: 200rpx;
- left: -200rpx;
- width: 400rpx;
- height: 400rpx;
- }
- // 顶部状态栏
- .header-top {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 60rpx;
- position: relative;
- z-index: 10;
- .header-left {
- width: 100rpx;
- }
- .header-right {
- display: flex;
- align-items: center;
- .more-btn,
- .refresh-btn {
- width: 64rpx;
- height: 64rpx;
- border-radius: 50%;
- background: rgba(255, 255, 255, 0.15);
- display: flex;
- align-items: center;
- justify-content: center;
- margin-left: 16rpx;
- }
- }
- }
- // 用户信息区域
- .user-info-section {
- display: flex;
- align-items: center;
- position: relative;
- z-index: 10;
- .avatar-wrapper {
- position: relative;
- margin-right: 24rpx;
- .avatar {
- width: 128rpx;
- height: 128rpx;
- border-radius: 50%;
- border: 4rpx solid rgba(255, 255, 255, 0.4);
- background: #ffffff;
- }
- .avatar-badge {
- position: absolute;
- bottom: -18rpx;
- right: -18rpx;
- width: 64rpx;
- height: 64rpx;
- background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
- border-radius: 50%;
- border: 3rpx solid #ffffff;
- }
- }
- .user-details {
- flex: 1;
- .name-row {
- display: flex;
- align-items: center;
- margin-bottom: 12rpx;
- .user-name {
- font-size: 36rpx;
- font-weight: 600;
- color: #ffffff;
- text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
- }
- .user-role {
- font-size: 22rpx;
- color: #ffffff;
- background: rgba(255, 255, 255, 0.25);
- padding: 4rpx 16rpx;
- border-radius: 20rpx;
- margin-left: 16rpx;
- font-weight: 500;
- }
- }
- .company-name {
- font-size: 24rpx;
- color: rgba(255, 255, 255, 0.85);
- display: block;
- text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
- }
- }
- .qr-btn {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- .qr-icon {
- width: 48rpx;
- height: 48rpx;
- }
- .qr-text {
- font-size: 20rpx;
- color: #ffffff;
- margin-top: 4rpx;
- }
- }
- }
- }
- // 内容区域
- .content-section {
- margin-top: -160rpx;
- position: relative;
- z-index: 20;
- padding: 0 40rpx;
- }
- // 数据卡片
- .data-card {
- background: #ffffff;
- margin-bottom: 24rpx;
- padding: 32rpx;
- border-radius: 24rpx;
- box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.06);
- .card-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 24rpx;
- }
- .card-title {
- font-size: 28rpx;
- font-weight: 600;
- color: #333333;
- }
- .data-row {
- display: flex;
- justify-content: space-between;
- .data-item {
- display: flex;
- flex-direction: column;
- align-items: center;
- flex: 1;
- position: relative;
- .data-value {
- font-size: 40rpx;
- font-weight: 600;
- color: #333333;
- margin-bottom: 12rpx;
- font-family: DIN, 'DIN Alternate', sans-serif;
- }
- .data-label {
- font-size: 24rpx;
- color: #999999;
- }
- &.highlight .data-value {
- color: #ff6b35;
- }
- &:not(:last-child)::after {
- content: '';
- position: absolute;
- right: 0;
- top: 50%;
- transform: translateY(-50%);
- width: 1rpx;
- height: 60rpx;
- background: #f0f0f0;
- }
- }
- }
- }
- // 功能菜单卡片
- .menu-card {
- background: #ffffff;
- padding: 0 32rpx;
- border-radius: 24rpx;
- box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.06);
- .menu-item {
- display: flex;
- align-items: center;
- padding: 32rpx 0;
- .menu-icon-wrapper {
- width: 64rpx;
- height: 64rpx;
- border-radius: 16rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- margin-right: 20rpx;
- &.icon-blue {
- background: rgba(74, 144, 226, 0.1);
- }
- }
- .menu-text {
- flex: 1;
- font-size: 28rpx;
- color: #333333;
- }
- }
- .menu-divider {
- height: 1rpx;
- background: #f0f0f0;
- }
- }
- // 底部占位
- .bottom-spacer {
- height: 40rpx;
- }
- </style>
|