style(commission): 重构收益中心首页为现代简约规范排版

这个提交包含在:
chen
2026-09-19 16:04:15 +08:00
父节点 f78d39b060
当前提交 506d931abb
共有 5 个文件被更改,包括 629 次插入 和 479 次删除

查看文件

@@ -2,15 +2,18 @@
<template>
<!-- 用户资料 -->
<view class="user-card ss-flex ss-col-bottom">
<view class="card-top ss-flex ss-row-between">
<view class="ss-flex">
<view class="card-top ss-flex ss-row-between ss-col-center ss-flex-1">
<view class="ss-flex ss-col-center">
<view class="head-img-box">
<image class="head-img" :src="sheep.$url.cdn(userInfo.avatar)" mode="aspectFill"></image>
</view>
<view class="ss-flex-col">
<view class="user-name">{{ userInfo.nickname }}</view>
<view class="ss-flex-col user-detail-col">
<view class="name-row ss-flex ss-col-center">
<text class="user-name">{{ userInfo.nickname || '分销合伙人' }}</text>
<text v-if="userInfo.id" class="user-id-pill">ID: {{ userInfo.id }}</text>
</view>
<view class="user-info-box ss-flex ss-col-center ss-flex-wrap">
<view class="tag-box ss-flex" v-if="agentInfo.level_info">
<view class="tag-box ss-flex ss-col-center" v-if="agentInfo.level_info || levelTitle">
<image
v-if="agentInfo.level_info?.image"
class="tag-img"
@@ -22,9 +25,7 @@
</view>
<view v-if="agentInfo.is_venue || agentInfo.identities?.includes('venue')" class="mini-tag">{{ roleNames.venue || '酒道馆' }}</view>
<view v-if="agentInfo.is_county || agentInfo.identities?.includes('county')" class="mini-tag">{{ roleNames.county || '区县' }}</view>
<view v-if="agentInfo.is_partner || agentInfo.identities?.includes('partner')" class="mini-tag">{{ roleNames.partner || '合伙股东' }}</view>
<view class="ss-iconfont uicon-arrow-right" style="color: #fff; font-size: 28rpx">
</view>
<view v-if="agentInfo.is_partner || agentInfo.identities?.includes('partner')" class="mini-tag">{{ roleNames.partner || '团队成员' }}</view>
</view>
</view>
</view>
@@ -34,7 +35,7 @@
<script setup>
import sheep from '@/sheep';
import { computed, reactive } from 'vue';
import { computed } from 'vue';
const userInfo = computed(() => sheep.$store('user').userInfo);
const agentInfo = computed(() => sheep.$store('user').agentInfo);
@@ -64,102 +65,115 @@
}
return rawName || '';
});
const state = reactive({
showMoney: false,
});
</script>
<style lang="scss" scoped>
// 用户资料卡片
.user-card {
width: 690rpx;
min-height: 192rpx;
width: 694rpx;
min-height: 196rpx;
height: auto;
margin: -88rpx 20rpx 0 20rpx;
padding-top: 88rpx;
margin: -88rpx auto 0;
padding: 92rpx 30rpx 28rpx 30rpx;
box-sizing: border-box;
background: v-bind(headerBg) no-repeat;
background-size: 100% 100%;
.head-img-box {
margin-right: 20rpx;
width: 100rpx;
height: 100rpx;
border-radius: 50%;
position: relative;
background: #fce0ad;
.head-img {
width: 92rpx;
height: 92rpx;
border-radius: 50%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
position: relative;
z-index: 3;
.card-top {
box-sizing: border-box;
padding-bottom: 34rpx;
.user-name {
font-size: 32rpx;
font-weight: bold;
color: #692e04;
line-height: 30rpx;
margin-bottom: 20rpx;
}
.log-btn {
width: 84rpx;
height: 42rpx;
border: 2rpx solid rgba(#ffffff, 0.33);
border-radius: 21rpx;
font-size: 22rpx;
font-weight: 400;
color: #ffffff;
margin-bottom: 20rpx;
}
.head-img-box {
margin-right: 22rpx;
width: 100rpx;
height: 100rpx;
border-radius: 50%;
position: relative;
background: #fce0ad;
box-shadow: 0 4rpx 14rpx rgba(105, 46, 4, 0.15);
flex-shrink: 0;
.look-btn {
color: #fff;
width: 40rpx;
height: 40rpx;
}
}
.user-info-box {
.tag-box {
background: #ff6000;
border-radius: 18rpx;
line-height: 36rpx;
.tag-img {
width: 36rpx;
height: 36rpx;
.head-img {
width: 94rpx;
height: 94rpx;
border-radius: 50%;
margin-left: -2rpx;
}
.tag-title {
font-size: 24rpx;
padding: 0 10rpx;
font-weight: 500;
line-height: 36rpx;
color: #fff;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border: 2rpx solid #ffffff;
}
}
.mini-tag {
margin-left: 8rpx;
padding: 0 12rpx;
height: 36rpx;
line-height: 36rpx;
border-radius: 18rpx;
background: rgba(255, 255, 255, 0.28);
font-size: 22rpx;
color: #692e04;
.user-detail-col {
justify-content: center;
}
.name-row {
margin-bottom: 12rpx;
.user-name {
font-size: 32rpx;
font-weight: 700;
color: #522703;
line-height: 38rpx;
max-width: 360rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.user-id-pill {
margin-left: 14rpx;
font-size: 20rpx;
font-family: OPPOSANS, sans-serif;
color: #8c531b;
background: rgba(255, 255, 255, 0.45);
padding: 2rpx 12rpx;
border-radius: 14rpx;
font-weight: 500;
}
}
.user-info-box {
gap: 8rpx;
.tag-box {
background: linear-gradient(135deg, #ff6b1a 0%, #ff5000 100%);
border-radius: 20rpx;
height: 36rpx;
padding-right: 12rpx;
box-shadow: 0 2rpx 6rpx rgba(255, 80, 0, 0.25);
.tag-img {
width: 36rpx;
height: 36rpx;
border-radius: 50%;
margin-right: 4rpx;
}
.tag-title {
font-size: 22rpx;
padding: 0 4rpx;
font-weight: 600;
line-height: 36rpx;
color: #ffffff;
}
}
.mini-tag {
padding: 0 14rpx;
height: 36rpx;
line-height: 36rpx;
border-radius: 18rpx;
background: rgba(255, 255, 255, 0.55);
backdrop-filter: blur(4px);
font-size: 20rpx;
font-weight: 600;
color: #692e04;
border: 1rpx solid rgba(255, 255, 255, 0.6);
}
}
}
}