| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275 |
- <template>
- <view class="mine-container">
-
- <view class="user-header">
- <StatusBarPlaceholder></StatusBarPlaceholder>
- <view class="header-content">
- <view class="user-info">
- <view class="avatar-wrapper">
- <image class="avatar" src="/static/avatar-default.png" mode="aspectFill" />
- </view>
- <view class="user-details">
- <view class="name-row">
- <text class="user-name">Àƽ</text>
- <text class="user-role">123dasfjsal </text>
- </view>
- <text class="company-name">浙江舒å�šç‰¹ç½‘ç»œç§‘æŠæœ‰é™�å…¬å�¸</text>
- </view>
- </view>
- <view class="qr-btn">
- <uni-icons type="qrcode" size="24" color="#ffffff"></uni-icons>
- <text class="qr-text">我的�片</text>
- </view>
- </view>
- </view>
- <!-- 线索数� -->
- <view class="data-card">
- <view class="card-title">线索数�</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-title">客户数�</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-title">商机数�</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')">
- <uni-icons type="help" size="20" color="#667eea"></uni-icons>
- <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')">
- <uni-icons type="paperclip" size="20" color="#667eea"></uni-icons>
- <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')">
- <uni-icons type="gear" size="20" color="#667eea"></uni-icons>
- <text class="menu-text">关于我们</text>
- <uni-icons type="right" size="16" color="#cccccc"></uni-icons>
- </view>
- </view>
- </view>
- </template>
- <script setup>
- import { ref ,onMounted} from 'vue'
- import StatusBarPlaceholder from "@/components/status-bar-placeholder/index.vue"
- const navigateTo = (page) => {
- uni.showToast({
- title: `功能å¼å�‘ä¸ï¼{page}`,
- icon: 'none'
- })
- }
- </script>
- <style lang="scss" scoped>
- .mine-container {
- min-height: 100vh;
- background: #f5f6f8;
- }
- // 顶部用户信��片
- .user-header {
- background: linear-gradient(180deg, #5B86F5 0%, #36D1DC 100%);
- padding: 40rpx;
- padding-top: calc(var(--status-bar-height) + 20rpx);
- position: relative;
-
- .header-content {
- position: relative;
- z-index: 2;
- }
-
- .user-info {
- display: flex;
- align-items: center;
- margin-bottom: 32rpx;
-
- .avatar-wrapper {
- flex-shrink: 0;
- margin-right: 24rpx;
-
- .avatar {
- width: 120rpx;
- height: 120rpx;
- border-radius: 50%;
- border: 4rpx solid rgba(255, 255, 255, 0.3);
- }
- }
-
- .user-details {
- flex: 1;
-
- .name-row {
- display: flex;
- align-items: center;
- margin-bottom: 12rpx;
-
- .user-name {
- font-size: 36rpx;
- font-weight: 600;
- color: #ffffff;
- }
-
- .user-role {
- font-size: 22rpx;
- color: rgba(255, 255, 255, 0.9);
- background: rgba(255, 255, 255, 0.2);
- padding: 4rpx 12rpx;
- border-radius: 20rpx;
- margin-left: 12rpx;
- }
- }
-
- .company-name {
- font-size: 24rpx;
- color: rgba(255, 255, 255, 0.8);
- display: block;
- }
- }
- }
-
- .qr-btn {
- display: flex;
- align-items: center;
- justify-content: center;
- background: rgba(255, 255, 255, 0.2);
- padding: 12rpx 24rpx;
- border-radius: 24rpx;
- align-self: flex-start;
-
- .qr-text {
- font-size: 22rpx;
- color: #ffffff;
- margin-left: 8rpx;
- }
- }
- }
- // 数��片
- .data-card {
- background: #ffffff;
- margin: 20rpx;
- padding: 32rpx;
- border-radius: 24rpx;
- box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.06);
-
- .card-title {
- font-size: 28rpx;
- color: #666666;
- margin-bottom: 24rpx;
- }
-
- .data-row {
- display: flex;
- justify-content: space-between;
-
- .data-item {
- display: flex;
- flex-direction: column;
- align-items: center;
- flex: 1;
-
- .data-value {
- font-size: 40rpx;
- font-weight: 600;
- color: #333333;
- margin-bottom: 12rpx;
- }
-
- .data-label {
- font-size: 24rpx;
- color: #999999;
- }
-
- &.highlight .data-value {
- color: #ff6b35;
- }
-
- &:not(:last-child) {
- border-right: 1rpx solid #f0f0f0;
- }
- }
- }
- }
- // 功能��
- .menu-card {
- background: #ffffff;
- margin: 20rpx;
- 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-text {
- flex: 1;
- font-size: 28rpx;
- color: #333333;
- margin-left: 20rpx;
- }
- }
-
- .menu-divider {
- height: 1rpx;
- background: #f0f0f0;
- }
- }
- </style>
|