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

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

查看文件

@@ -1,74 +1,89 @@
<!-- 账户 --> <!-- 账户信息 Bento 资产卡片 -->
<template> <template>
<view class="account-card"> <view class="account-card">
<view class="account-card-box"> <!-- 头部:标题与查看明细 -->
<view class="ss-flex ss-row-between card-box-header"> <view class="card-header ss-flex ss-row-between ss-col-center">
<view class="ss-flex"> <view class="header-left ss-flex ss-col-center">
<view class="header-title ss-m-r-16">账户信息</view> <text class="header-title">账户资产</text>
<button <button
class="ss-reset-button look-btn ss-flex" class="ss-reset-button eye-btn ss-flex ss-col-center ss-row-center ss-m-l-12"
@tap="state.showMoney = !state.showMoney" @tap="state.showMoney = !state.showMoney"
> >
<uni-icons <uni-icons
:type="state.showMoney ? 'eye-filled' : 'eye-slash-filled'" :type="state.showMoney ? 'eye-filled' : 'eye-slash-filled'"
color="#A57A55" color="#A57A55"
size="20" size="18"
></uni-icons> ></uni-icons>
</button> </button>
</view>
<view class="header-right ss-flex ss-col-center" @tap="sheep.$router.go('/pages/commission/rewards')">
<text class="detail-link-text">查看明细</text>
<uni-icons type="right" size="12" color="#a17545"></uni-icons>
</view>
</view>
<!-- 2x2 Bento 资产指标大盘 -->
<view class="bento-grid">
<!-- 第一行 -->
<view class="grid-row ss-flex">
<!-- 累计收益 -->
<view
class="bento-cell ss-flex-1 ss-flex-col ss-col-center metric-item"
@tap="sheep.$router.go('/pages/commission/rewards')"
>
<view class="item-title">累计收益(元)</view>
<view class="item-detail text-accent">
{{ state.showMoney ? agentInfo?.total_income || userInfo?.total_income || '0.00' : '***' }}
</view>
</view> </view>
<view class="ss-flex" @tap="sheep.$router.go('/pages/commission/rewards')">
<view class="header-title ss-m-r-4">查看明细</view> <view class="grid-v-divider"></view>
<text class="cicon-play-arrow"></text>
<!-- 商城余额 -->
<view
class="bento-cell ss-flex-1 ss-flex-col ss-col-center metric-item"
@tap="sheep.$router.go('/pages/user/wallet/money')"
>
<view class="item-title">商城余额(元)</view>
<view class="item-detail text-dark">
{{ state.showMoney ? userInfo?.money || '0.00' : '***' }}
</view>
</view> </view>
</view> </view>
<!-- 收益 -->
<view class="card-content"> <view class="grid-h-divider"></view>
<view class="metric-row ss-flex">
<view <!-- 第二行 -->
class="ss-flex-1 ss-flex-col ss-col-center metric-item" <view class="grid-row ss-flex">
@tap="sheep.$router.go('/pages/commission/rewards')" <!-- dmepa价值 -->
> <view
<view class="item-title">累计收益(元)</view> class="bento-cell ss-flex-1 ss-flex-col ss-col-center metric-item"
<view class="item-detail"> @tap="sheep.$router.go('/pages/commission/madow')"
{{ state.showMoney ? agentInfo?.total_income || userInfo?.total_income || '0.00' : '***' }} >
</view> <view class="item-title">dmepa价值(元)</view>
</view> <view class="item-detail text-primary">
<view {{
class="ss-flex-1 ss-flex-col ss-col-center metric-item" state.showMoney
@tap="sheep.$router.go('/pages/user/wallet/money')" ? agentInfo?.madow_value || userInfo?.madow_value || '0.00'
> : '***'
<view class="item-title">商城余额(元)</view> }}
<view class="item-detail">
{{ state.showMoney ? userInfo?.money || '0.00' : '***' }}
</view>
</view> </view>
</view> </view>
<view class="metric-row ss-flex">
<view <view class="grid-v-divider"></view>
class="ss-flex-1 ss-flex-col ss-col-center metric-item"
@tap="sheep.$router.go('/pages/commission/madow')" <!-- 可用兑换券 -->
> <view
<view class="item-title">dmepa价值(元)</view> class="bento-cell ss-flex-1 ss-flex-col ss-col-center metric-item"
<view class="item-detail"> @tap="sheep.$router.go('/pages/commission/voucher')"
{{ >
state.showMoney <view class="item-title">可用兑换券(个)</view>
? agentInfo?.madow_value || userInfo?.madow_value || '0.00' <view class="item-detail text-amber">
: '***' {{
}} state.showMoney
</view> ? formatVoucher(agentInfo?.voucher_available || userInfo?.voucher_available)
</view> : '***'
<view }}
class="ss-flex-1 ss-flex-col ss-col-center metric-item"
@tap="sheep.$router.go('/pages/commission/voucher')"
>
<view class="item-title">可用兑换券(个)</view>
<view class="item-detail">
{{
state.showMoney
? formatVoucher(agentInfo?.voucher_available || userInfo?.voucher_available)
: '***'
}}
</view>
</view> </view>
</view> </view>
</view> </view>
@@ -99,54 +114,109 @@
.account-card { .account-card {
width: 694rpx; width: 694rpx;
margin: 0 auto; margin: 0 auto;
padding: 2rpx; box-sizing: border-box;
background: linear-gradient(180deg, #ffffff 0.88%, #fff9ec 100%); background: #ffffff;
border-radius: 12rpx; border-radius: 20rpx;
border: 1rpx solid rgba(224, 185, 130, 0.3);
box-shadow: 0 6rpx 20rpx rgba(105, 46, 4, 0.05);
z-index: 3; z-index: 3;
position: relative; position: relative;
.account-card-box { overflow: hidden;
background: #ffefd6;
.card-box-header { .card-header {
padding: 0 30rpx; padding: 22rpx 28rpx 18rpx 28rpx;
height: 72rpx; background: linear-gradient(180deg, #fffcf6 0%, #ffffff 100%);
box-shadow: 0px 2px 6px #f2debe; border-bottom: 1rpx solid #f6f0e4;
.header-title {
font-size: 24rpx; .header-title {
font-weight: 500; font-size: 26rpx;
color: #a17545; font-weight: 700;
line-height: 30rpx; color: #522703;
} line-height: 32rpx;
.cicon-play-arrow { }
color: #a17545;
font-size: 24rpx; .eye-btn {
line-height: 30rpx; width: 44rpx;
height: 44rpx;
border-radius: 50%;
background: rgba(165, 122, 85, 0.08);
transition: opacity 0.2s;
&:active {
opacity: 0.7;
} }
} }
.card-content {
min-height: 220rpx; .detail-link-text {
background: #fdfae9; font-size: 22rpx;
padding: 16rpx 0 8rpx; color: #a17545;
.metric-row { font-weight: 500;
padding: 12rpx 0; margin-right: 4rpx;
} }
.metric-item { }
padding: 8rpx 0;
.bento-grid {
padding: 10rpx 0;
.grid-row {
width: 100%;
}
.bento-cell {
padding: 22rpx 20rpx;
box-sizing: border-box;
transition: background-color 0.2s;
&:active {
background-color: #faf7f2;
} }
.item-title { .item-title {
font-size: 24rpx; font-size: 22rpx;
color: #9c7b60;
line-height: 28rpx;
margin-bottom: 10rpx;
font-weight: 500; font-weight: 500;
color: #cba67e;
line-height: 30rpx;
margin-bottom: 16rpx;
} }
.item-detail { .item-detail {
font-size: 36rpx; font-size: 38rpx;
font-family: OPPOSANS; font-family: OPPOSANS, sans-serif;
font-weight: bold; font-weight: 700;
color: #692e04; line-height: 44rpx;
line-height: 30rpx; letter-spacing: 0.5rpx;
&.text-accent {
color: #ff6000;
}
&.text-dark {
color: #222222;
}
&.text-primary {
color: #692e04;
}
&.text-amber {
color: #d97706;
}
} }
} }
.grid-v-divider {
width: 1rpx;
height: 64rpx;
background: #f4ecdf;
align-self: center;
}
.grid-h-divider {
height: 1rpx;
width: 638rpx;
margin: 0 auto;
background: #f4ecdf;
}
} }
} }
</style> </style>

查看文件

@@ -2,15 +2,18 @@
<template> <template>
<!-- 用户资料 --> <!-- 用户资料 -->
<view class="user-card ss-flex ss-col-bottom"> <view class="user-card ss-flex ss-col-bottom">
<view class="card-top ss-flex ss-row-between"> <view class="card-top ss-flex ss-row-between ss-col-center ss-flex-1">
<view class="ss-flex"> <view class="ss-flex ss-col-center">
<view class="head-img-box"> <view class="head-img-box">
<image class="head-img" :src="sheep.$url.cdn(userInfo.avatar)" mode="aspectFill"></image> <image class="head-img" :src="sheep.$url.cdn(userInfo.avatar)" mode="aspectFill"></image>
</view> </view>
<view class="ss-flex-col"> <view class="ss-flex-col user-detail-col">
<view class="user-name">{{ userInfo.nickname }}</view> <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="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 <image
v-if="agentInfo.level_info?.image" v-if="agentInfo.level_info?.image"
class="tag-img" class="tag-img"
@@ -22,9 +25,7 @@
</view> </view>
<view v-if="agentInfo.is_venue || agentInfo.identities?.includes('venue')" class="mini-tag">{{ roleNames.venue || '酒道馆' }}</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_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 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> </view>
</view> </view>
</view> </view>
@@ -34,7 +35,7 @@
<script setup> <script setup>
import sheep from '@/sheep'; import sheep from '@/sheep';
import { computed, reactive } from 'vue'; import { computed } from 'vue';
const userInfo = computed(() => sheep.$store('user').userInfo); const userInfo = computed(() => sheep.$store('user').userInfo);
const agentInfo = computed(() => sheep.$store('user').agentInfo); const agentInfo = computed(() => sheep.$store('user').agentInfo);
@@ -64,102 +65,115 @@
} }
return rawName || ''; return rawName || '';
}); });
const state = reactive({
showMoney: false,
});
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
// 用户资料卡片 // 用户资料卡片
.user-card { .user-card {
width: 690rpx; width: 694rpx;
min-height: 192rpx; min-height: 196rpx;
height: auto; height: auto;
margin: -88rpx 20rpx 0 20rpx; margin: -88rpx auto 0;
padding-top: 88rpx; padding: 92rpx 30rpx 28rpx 30rpx;
box-sizing: border-box;
background: v-bind(headerBg) no-repeat; background: v-bind(headerBg) no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
position: relative;
.head-img-box { z-index: 3;
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%);
}
}
.card-top { .card-top {
box-sizing: border-box; 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 { .head-img-box {
width: 84rpx; margin-right: 22rpx;
height: 42rpx; width: 100rpx;
border: 2rpx solid rgba(#ffffff, 0.33); height: 100rpx;
border-radius: 21rpx; border-radius: 50%;
font-size: 22rpx; position: relative;
font-weight: 400; background: #fce0ad;
color: #ffffff; box-shadow: 0 4rpx 14rpx rgba(105, 46, 4, 0.15);
margin-bottom: 20rpx; flex-shrink: 0;
}
.look-btn { .head-img {
color: #fff; width: 94rpx;
width: 40rpx; height: 94rpx;
height: 40rpx;
}
}
.user-info-box {
.tag-box {
background: #ff6000;
border-radius: 18rpx;
line-height: 36rpx;
.tag-img {
width: 36rpx;
height: 36rpx;
border-radius: 50%; border-radius: 50%;
margin-left: -2rpx; position: absolute;
} top: 50%;
left: 50%;
.tag-title { transform: translate(-50%, -50%);
font-size: 24rpx; border: 2rpx solid #ffffff;
padding: 0 10rpx;
font-weight: 500;
line-height: 36rpx;
color: #fff;
} }
} }
.mini-tag { .user-detail-col {
margin-left: 8rpx; justify-content: center;
padding: 0 12rpx; }
height: 36rpx;
line-height: 36rpx; .name-row {
border-radius: 18rpx; margin-bottom: 12rpx;
background: rgba(255, 255, 255, 0.28);
font-size: 22rpx; .user-name {
color: #692e04; 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);
}
} }
} }
} }

查看文件

@@ -1,64 +1,62 @@
<!-- 分销明细 --> <!-- 分销明细实时动态 -->
<template> <template>
<view class="distribution-log-wrap"> <view class="distribution-log-wrap">
<view class="header-box"> <!-- 头部栏 -->
<image <view class="log-header ss-flex ss-row-between ss-col-center">
class="header-bg" <view class="header-left ss-flex ss-col-center">
:src="sheep.$url.static('/assets/addons/shopro/uniapp/commission/title2.png')" <view class="title-bar"></view>
/> <text class="title">实时动态</text>
<view class="ss-flex header-title">
<view class="title">实时动态</view>
<text class="cicon-forward"></text>
</view> </view>
<text class="sub-hint">团队实时变动</text>
</view> </view>
<!-- 滚动列表 -->
<scroll-view <scroll-view
scroll-y="true" scroll-y="true"
@scrolltolower="loadmore" @scrolltolower="loadmore"
class="scroll-box log-scroll" class="scroll-box log-scroll"
scroll-with-animation="true" scroll-with-animation="true"
> >
<view v-if="state.pagination.data"> <view v-if="state.pagination.data && state.pagination.data.length > 0">
<view <view
class="log-item-box ss-flex ss-row-between" class="log-item-box ss-flex ss-row-between ss-col-center"
v-for="item in state.pagination.data" v-for="item in state.pagination.data"
:key="item.id" :key="item.id"
> >
<view class="log-item-wrap"> <view class="log-item-left ss-flex ss-col-center ss-flex-1 ss-line-1">
<view class="log-item ss-flex ss-ellipsis-1 ss-col-center"> <image
<view class="ss-flex ss-col-center"> v-if="item.oper_type === 'user'"
<image class="log-img"
v-if="item.oper_type === 'user'" :src="sheep.$url.cdn(item.oper?.avatar)"
class="log-img" mode="aspectFill"
:src="sheep.$url.cdn(item.oper?.avatar)" ></image>
mode="aspectFill" <image
></image> v-else-if="item.oper_type === 'admin'"
<image class="log-img"
v-else-if="item.oper_type === 'admin'" :src="sheep.$url.static('/assets/addons/shopro/uniapp/avatar/default_user.png')"
class="log-img" mode="aspectFill"
:src=" ></image>
sheep.$url.static('/assets/addons/shopro/uniapp/avatar/default_user.png') <image
" v-else
mode="aspectFill" class="log-img"
></image> :src="sheep.$url.static('/assets/addons/shopro/uniapp/avatar/notice.png')"
<image mode="aspectFill"
v-else ></image>
class="log-img" <text class="log-text ss-line-1">{{ item.remark }}</text>
:src="sheep.$url.static('/assets/addons/shopro/uniapp/avatar/notice.png')"
mode="aspectFill"
></image>
</view>
<view class="log-text ss-ellipsis-1">{{ item.remark }}</view>
</view>
</view> </view>
<text class="log-time">{{ dayjs(item.createtime).fromNow() }}</text> <text class="log-time ss-m-l-16">{{ dayjs(item.createtime).fromNow() }}</text>
</view> </view>
</view> </view>
<view v-else class="empty-wrap ss-flex ss-row-center ss-col-center">
<text class="empty-text">暂无团队实时动态</text>
</view>
<!-- 加载更多 --> <!-- 加载更多 -->
<uni-load-more <uni-load-more
v-if="state.pagination.total > 0" v-if="state.pagination.total > 0"
:status="state.loadStatus" :status="state.loadStatus"
color="#333333" color="#999999"
@tap="loadmore" @tap="loadmore"
/> />
</scroll-view> </scroll-view>
@@ -67,7 +65,7 @@
<script setup> <script setup>
import sheep from '@/sheep'; import sheep from '@/sheep';
import { computed, reactive } from 'vue'; import { reactive } from 'vue';
import _ from 'lodash'; import _ from 'lodash';
import dayjs from 'dayjs'; import dayjs from 'dayjs';
@@ -98,6 +96,7 @@
} }
} }
} }
getLog(); getLog();
// 加载更多 // 加载更多
@@ -110,80 +109,95 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.distribution-log-wrap { .distribution-log-wrap {
width: 690rpx; width: 694rpx;
margin: 0 auto; margin: 0 auto 30rpx;
margin-bottom: 20rpx; background: #ffffff;
border-radius: 12rpx; border-radius: 20rpx;
border: 1rpx solid rgba(224, 185, 130, 0.3);
box-shadow: 0 6rpx 20rpx rgba(105, 46, 4, 0.05);
z-index: 3; z-index: 3;
position: relative; position: relative;
.header-box { overflow: hidden;
width: 690rpx; box-sizing: border-box;
height: 76rpx; }
position: relative;
.header-bg { .log-header {
width: 690rpx; padding: 22rpx 28rpx 18rpx 28rpx;
height: 76rpx; background: linear-gradient(180deg, #fffcf6 0%, #ffffff 100%);
} border-bottom: 1rpx solid #f6f0e4;
.header-title {
position: absolute; .header-left {
left: 20rpx; .title-bar {
top: 24rpx; width: 6rpx;
height: 24rpx;
border-radius: 4rpx;
background: linear-gradient(180deg, #ff6000 0%, #ff9500 100%);
margin-right: 12rpx;
} }
.title { .title {
font-size: 28rpx; font-size: 26rpx;
font-weight: 500; font-weight: 700;
color: #ffffff; color: #522703;
line-height: 30rpx; line-height: 32rpx;
}
.cicon-forward {
font-size: 30rpx;
font-weight: 400;
color: #ffffff;
line-height: 30rpx;
} }
} }
.log-scroll {
height: 600rpx;
background: #fdfae9;
padding: 10rpx 20rpx 0;
box-sizing: border-box;
border-radius: 0 0 12rpx 12rpx;
.log-item-box { .sub-hint {
margin-bottom: 20rpx; font-size: 22rpx;
.log-time { color: #b5906a;
// margin-left: 30rpx; font-weight: 500;
text-align: right; }
font-size: 24rpx; }
font-family: OPPOSANS;
font-weight: 400; .log-scroll {
color: #c4c4c4; max-height: 520rpx;
} background: #ffffff;
padding: 8rpx 28rpx 20rpx;
box-sizing: border-box;
.log-item-box {
padding: 20rpx 0;
border-bottom: 1rpx solid #faf6f0;
&:last-child {
border-bottom: none;
} }
.loadmore-wrap { .log-item-left {
// line-height: 80rpx;
}
.log-item {
// background: rgba(#ffffff, 0.2);
border-radius: 24rpx;
padding: 6rpx 20rpx 6rpx 12rpx;
.log-img { .log-img {
width: 40rpx; width: 48rpx;
height: 40rpx; height: 48rpx;
border-radius: 50%; border-radius: 50%;
margin-right: 10rpx; margin-right: 14rpx;
flex-shrink: 0;
background: #f5f5f5;
} }
.log-text { .log-text {
max-width: 480rpx;
font-size: 24rpx; font-size: 24rpx;
font-weight: 500;
color: #333333; color: #333333;
font-weight: 500;
line-height: 34rpx;
} }
} }
.log-time {
font-size: 22rpx;
font-family: OPPOSANS, sans-serif;
color: #a1a1aa;
white-space: nowrap;
flex-shrink: 0;
}
}
.empty-wrap {
padding: 60rpx 0;
.empty-text {
font-size: 24rpx;
color: #c4c4c4;
}
} }
} }
</style> </style>

查看文件

@@ -1,13 +1,16 @@
<!-- 分销商菜单栏 --> <!-- 分销商功能专区菜单栏 -->
<template> <template>
<view class="menu-box ss-flex-col"> <view class="menu-box ss-flex-col">
<view class="header-box"> <!-- 头部栏 -->
<image class="header-bg" :src="sheep.$url.static('/assets/addons/shopro/uniapp/commission/title1.png')" /> <view class="menu-header ss-flex ss-row-between ss-col-center">
<view class="ss-flex header-title"> <view class="header-left ss-flex ss-col-center">
<view class="title">功能专区</view> <view class="title-bar"></view>
<text class="cicon-forward"></text> <text class="title">功能专区</text>
</view> </view>
<text class="sub-hint">快捷业务入口</text>
</view> </view>
<!-- 菜单网格 -->
<view class="menu-list ss-flex ss-flex-wrap"> <view class="menu-list ss-flex ss-flex-wrap">
<view <view
v-for="(item, index) in menuList" v-for="(item, index) in menuList"
@@ -15,11 +18,13 @@
class="item-box ss-flex-col ss-col-center" class="item-box ss-flex-col ss-col-center"
@tap="sheep.$router.go(item.path)" @tap="sheep.$router.go(item.path)"
> >
<image <view class="icon-wrap ss-flex ss-row-center ss-col-center">
class="menu-icon ss-m-b-10" <image
:src="sheep.$url.static(item.img)" class="menu-icon"
mode="aspectFill" :src="sheep.$url.static(item.img)"
></image> mode="aspectFill"
></image>
</view>
<view class="menu-title">{{ item.title }}</view> <view class="menu-title">{{ item.title }}</view>
</view> </view>
</view> </view>
@@ -32,58 +37,58 @@
const userInfo = computed(() => sheep.$store('user').userInfo); const userInfo = computed(() => sheep.$store('user').userInfo);
const allMenus = [ const allMenus = [
{ {
img: '/assets/addons/shopro/uniapp/commission/commission_icon1.png', img: '/assets/addons/shopro/uniapp/commission/commission_icon1.png',
title: '我的团队', title: '我的团队',
path: '/pages/commission/team', path: '/pages/commission/team',
}, },
{ {
img: '/assets/addons/shopro/uniapp/commission/commission_icon2.png', img: '/assets/addons/shopro/uniapp/commission/commission_icon2.png',
title: '收益明细', title: '收益明细',
path: '/pages/commission/rewards', path: '/pages/commission/rewards',
}, },
{ {
img: '/assets/addons/shopro/uniapp/commission/commission_icon2.png', img: '/assets/addons/shopro/uniapp/commission/commission_icon2.png',
title: '我的收益', title: '我的收益',
path: '/pages/user/wallet/commission', path: '/pages/user/wallet/commission',
}, },
{ {
img: '/assets/addons/shopro/uniapp/commission/commission_icon3.png', img: '/assets/addons/shopro/uniapp/commission/commission_icon3.png',
title: '我的dmepa', title: '我的dmepa',
path: '/pages/commission/madow', path: '/pages/commission/madow',
}, },
{ {
img: '/assets/addons/shopro/uniapp/commission/commission_icon5.png', img: '/assets/addons/shopro/uniapp/commission/commission_icon5.png',
title: '兑换券', title: '兑换券',
path: '/pages/commission/voucher', path: '/pages/commission/voucher',
}, },
{ {
img: '/assets/addons/shopro/uniapp/commission/commission_icon3.png', img: '/assets/addons/shopro/uniapp/commission/commission_icon3.png',
title: '推广订单', title: '推广订单',
path: '/pages/commission/order', path: '/pages/commission/order',
}, },
{ {
img: '/assets/addons/shopro/uniapp/commission/commission_icon7.png', img: '/assets/addons/shopro/uniapp/commission/commission_icon7.png',
title: '邀请海报', title: '邀请海报',
path: 'action:showShareModal', path: 'action:showShareModal',
}, },
{ {
img: '/assets/addons/shopro/uniapp/commission/commission_icon8.png', img: '/assets/addons/shopro/uniapp/commission/commission_icon8.png',
title: '分享记录', title: '分享记录',
path: '/pages/commission/share-log', path: '/pages/commission/share-log',
}, },
{ {
img: '/assets/addons/shopro/uniapp/commission/commission_icon5.png', img: '/assets/addons/shopro/uniapp/commission/commission_icon5.png',
title: '我的资料', title: '我的资料',
path: '/pages/commission/apply', path: '/pages/commission/apply',
isAgentFrom: true, isAgentFrom: true,
}, },
{ {
img: '/assets/addons/shopro/uniapp/commission/commission_icon4.png', img: '/assets/addons/shopro/uniapp/commission/commission_icon4.png',
title: '推广商品', title: '推广商品',
path: '/pages/commission/goods', path: '/pages/commission/goods',
hideInPartner: true, hideInPartner: true,
}, },
]; ];
const menuList = computed(() => const menuList = computed(() =>
@@ -97,62 +102,82 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.menu-box { .menu-box {
margin: 0 auto; width: 694rpx;
width: 690rpx; margin: 0 auto 20rpx;
margin-bottom: 20rpx; background: #ffffff;
margin-top: 20rpx; border-radius: 20rpx;
border-radius: 12rpx; border: 1rpx solid rgba(224, 185, 130, 0.3);
box-shadow: 0 6rpx 20rpx rgba(105, 46, 4, 0.05);
z-index: 3; z-index: 3;
position: relative; position: relative;
overflow: hidden;
box-sizing: border-box;
} }
.header-box {
width: 690rpx; .menu-header {
height: 76rpx; padding: 22rpx 28rpx 18rpx 28rpx;
position: relative; background: linear-gradient(180deg, #fffcf6 0%, #ffffff 100%);
.header-bg { border-bottom: 1rpx solid #f6f0e4;
width: 690rpx;
height: 76rpx; .header-left {
.title-bar {
width: 6rpx;
height: 24rpx;
border-radius: 4rpx;
background: linear-gradient(180deg, #ff6000 0%, #ff9500 100%);
margin-right: 12rpx;
}
.title {
font-size: 26rpx;
font-weight: 700;
color: #522703;
line-height: 32rpx;
}
} }
.header-title {
position: absolute; .sub-hint {
left: 20rpx; font-size: 22rpx;
top: 24rpx; color: #b5906a;
}
.title {
font-size: 28rpx;
font-weight: 500; font-weight: 500;
color: #ffffff;
line-height: 30rpx;
}
.cicon-forward {
font-size: 30rpx;
font-weight: 400;
color: #ffffff;
line-height: 30rpx;
} }
} }
.menu-list { .menu-list {
padding: 30rpx 0 10rpx 0; padding: 28rpx 12rpx 10rpx 12rpx;
background: #fdfae9; background: #ffffff;
border-radius: 0 0 12rpx 12rpx;
} }
.item-box { .item-box {
width: 25%; width: 25%;
margin-bottom: 30rpx; margin-bottom: 30rpx;
} transition: transform 0.15s ease;
.menu-icon { &:active {
width: 68rpx; transform: scale(0.93);
height: 68rpx; }
border-radius: 50%;
}
.menu-title { .icon-wrap {
font-size: 24rpx; width: 80rpx;
font-weight: 500; height: 80rpx;
color: #595959; border-radius: 50%;
line-height: 32rpx; background: #faf6f0;
text-align: center; box-shadow: 0 2rpx 8rpx rgba(105, 46, 4, 0.06);
}
.menu-icon {
width: 76rpx;
height: 76rpx;
border-radius: 50%;
}
.menu-title {
font-size: 24rpx;
font-weight: 500;
color: #333333;
line-height: 32rpx;
text-align: center;
margin-top: 12rpx;
}
} }
</style> </style>

查看文件

@@ -278,93 +278,94 @@
background-size: 100% 100% !important; background-size: 100% 100% !important;
} }
// 30 天收益保活与预警倒计时看板
.active-countdown-card { .active-countdown-card {
width: 694rpx; width: 694rpx;
margin: 16rpx auto 0; margin: 16rpx auto 20rpx;
padding: 24rpx 28rpx; padding: 22rpx 26rpx;
box-sizing: border-box; box-sizing: border-box;
border-radius: 16rpx; border-radius: 20rpx;
position: relative; position: relative;
z-index: 3; z-index: 3;
transition: all 0.3s ease; transition: all 0.3s ease;
box-shadow: 0 6rpx 20rpx rgba(105, 46, 4, 0.05);
// 正常活跃状态 // 正常活跃状态 (翡翠绿主题)
&.status-active { &.status-active {
background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%); background: linear-gradient(135deg, #f7fdf9 0%, #ffffff 100%);
border: 1rpx solid #bbf7d0; border: 1rpx solid rgba(16, 185, 129, 0.25);
box-shadow: 0 4rpx 16rpx rgba(187, 247, 208, 0.35);
.status-icon-box { .status-icon-box {
background: #dcfce7; background: #ecfdf5;
} }
.status-title-text { .status-title-text {
color: #166534; color: #166534;
} }
.pill-active { .pill-active {
background: #dcfce7; background: #ecfdf5;
color: #15803d; color: #059669;
border: 1rpx solid rgba(16, 185, 129, 0.2);
} }
.btn-active { .btn-active {
background: #059669; background: linear-gradient(135deg, #059669 0%, #10b981 100%);
color: #ffffff; color: #ffffff;
box-shadow: 0 4rpx 12rpx rgba(5, 150, 105, 0.25);
} }
.digit-box { .digit-box {
background: #ecfdf5; background: #ffffff;
border: 1rpx solid #a7f3d0; border: 1rpx solid #bbf7d0;
.num { .num {
color: #059669;
}
.unit {
color: #047857; color: #047857;
} }
.unit {
color: #065f46;
}
} }
.colon { .colon {
color: #059669; color: #10b981;
} }
} }
// 临期预警状态 // 临期预警状态 (琥珀橙主题)
&.status-expiring { &.status-expiring {
background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%); background: linear-gradient(135deg, #fffcf5 0%, #ffffff 100%);
border: 1rpx solid #fed7aa; border: 1rpx solid rgba(245, 158, 11, 0.28);
box-shadow: 0 4rpx 18rpx rgba(253, 186, 116, 0.45);
.status-icon-box { .status-icon-box {
background: #ffedd5; background: #fef3c7;
} }
.status-title-text { .status-title-text {
color: #9a3412; color: #92400e;
} }
.pill-expiring { .pill-expiring {
background: #ffedd5; background: #fffbeb;
color: #c2410c; color: #d97706;
font-weight: bold; border: 1rpx solid rgba(245, 158, 11, 0.25);
} }
.btn-expiring { .btn-expiring {
background: linear-gradient(90deg, #ea580c 0%, #f97316 100%); background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
color: #ffffff; color: #ffffff;
box-shadow: 0 4rpx 12rpx rgba(234, 88, 12, 0.3); box-shadow: 0 4rpx 14rpx rgba(234, 88, 12, 0.28);
} }
.digit-box { .digit-box {
background: #ffedd5; background: #ffffff;
border: 1rpx solid #fdba74; border: 1rpx solid #fed7aa;
.num { .num {
color: #c2410c; color: #ea580c;
} }
.unit { .unit {
color: #9a3412; color: #c2410c;
} }
} }
.colon { .colon {
color: #ea580c; color: #f97316;
} }
} }
// 奖励暂停状态 // 奖励暂停状态 (玫瑰红主题)
&.status-inactive { &.status-inactive {
background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%); background: linear-gradient(135deg, #fdf8f8 0%, #ffffff 100%);
border: 1rpx solid #fecaca; border: 1rpx solid rgba(239, 68, 68, 0.25);
box-shadow: 0 4rpx 16rpx rgba(254, 202, 202, 0.35);
.status-icon-box { .status-icon-box {
background: #fee2e2; background: #fee2e2;
@@ -373,22 +374,24 @@
color: #991b1b; color: #991b1b;
} }
.pill-inactive { .pill-inactive {
background: #fee2e2; background: #fef2f2;
color: #b91c1c; color: #dc2626;
border: 1rpx solid rgba(239, 68, 68, 0.2);
} }
.btn-inactive { .btn-inactive {
background: #dc2626; background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
color: #ffffff; color: #ffffff;
box-shadow: 0 4rpx 12rpx rgba(220, 38, 38, 0.25);
} }
} }
.card-header { .card-header {
.status-icon-box { .status-icon-box {
width: 48rpx; width: 44rpx;
height: 48rpx; height: 44rpx;
border-radius: 24rpx; border-radius: 50%;
.icon-symbol { .icon-symbol {
font-size: 26rpx; font-size: 24rpx;
font-weight: bold; font-weight: bold;
} }
.text-green { color: #059669; } .text-green { color: #059669; }
@@ -397,56 +400,66 @@
} }
.status-title-text { .status-title-text {
font-size: 28rpx; font-size: 26rpx;
font-weight: bold; font-weight: 700;
line-height: 32rpx;
} }
.status-pill { .status-pill {
font-size: 20rpx; font-size: 20rpx;
padding: 4rpx 14rpx; padding: 2rpx 12rpx;
border-radius: 20rpx; border-radius: 12rpx;
font-weight: 500; font-weight: 600;
line-height: 28rpx;
} }
.action-btn { .action-btn {
height: 52rpx; height: 50rpx;
padding: 0 24rpx; padding: 0 24rpx;
border-radius: 26rpx; border-radius: 25rpx;
font-size: 22rpx; font-size: 22rpx;
font-weight: 500; font-weight: 600;
white-space: nowrap; white-space: nowrap;
flex-shrink: 0; flex-shrink: 0;
transition: opacity 0.2s;
&:active {
opacity: 0.85;
}
} }
} }
.card-body { .card-body {
.countdown-row { .countdown-row {
background: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.9);
padding: 12rpx 16rpx; padding: 12rpx 18rpx;
border-radius: 10rpx; border-radius: 14rpx;
border: 1rpx solid rgba(0, 0, 0, 0.03);
.countdown-label { .countdown-label {
.label-prefix { .label-prefix {
font-size: 24rpx; font-size: 22rpx;
color: #64748b; color: #64748b;
font-weight: 500;
} }
.label-days-highlight { .label-days-highlight {
font-size: 30rpx; font-size: 32rpx;
font-weight: bold; font-weight: 700;
color: #0f172a; color: #0f172a;
margin: 0 2rpx; margin: 0 2rpx;
font-family: OPPOSANS; font-family: OPPOSANS, sans-serif;
} }
.label-days-text { .label-days-text {
font-size: 22rpx; font-size: 22rpx;
color: #475569; color: #475569;
font-weight: 500;
} }
} }
.timer-digits { .timer-digits {
.digit-box { .digit-box {
padding: 4rpx 8rpx; padding: 4rpx 10rpx;
border-radius: 6rpx; border-radius: 8rpx;
display: flex; display: flex;
align-items: baseline; align-items: baseline;
min-width: 52rpx; min-width: 52rpx;
@@ -455,31 +468,33 @@
.num { .num {
font-family: OPPOSANS, DIN, monospace; font-family: OPPOSANS, DIN, monospace;
font-size: 24rpx; font-size: 24rpx;
font-weight: bold; font-weight: 700;
} }
.unit { .unit {
font-size: 18rpx; font-size: 18rpx;
margin-left: 2rpx; margin-left: 2rpx;
font-weight: 500;
} }
} }
.colon { .colon {
font-weight: bold; font-weight: 700;
font-size: 24rpx; font-size: 22rpx;
margin: 0 4rpx; margin: 0 4rpx;
} }
} }
} }
.inactive-row { .inactive-row {
background: rgba(254, 226, 226, 0.4); background: rgba(254, 242, 242, 0.6);
padding: 14rpx 18rpx; padding: 14rpx 18rpx;
border-radius: 10rpx; border-radius: 12rpx;
border: 1rpx solid rgba(239, 68, 68, 0.1);
.inactive-desc { .inactive-desc {
font-size: 24rpx; font-size: 22rpx;
color: #991b1b; color: #991b1b;
line-height: 34rpx; line-height: 32rpx;
} }
} }
@@ -494,44 +509,51 @@
} }
.footer-tip-text { .footer-tip-text {
font-size: 22rpx; font-size: 20rpx;
color: #64748b; color: #64748b;
} }
.footer-right-time { .footer-right-time {
font-size: 20rpx; font-size: 20rpx;
color: #94a3b8; color: #94a3b8;
font-family: OPPOSANS; font-family: OPPOSANS, sans-serif;
flex-shrink: 0; flex-shrink: 0;
} }
} }
} }
} }
// 团队作战快捷看板
.team-quick-card { .team-quick-card {
width: 694rpx; width: 694rpx;
margin: 20rpx auto 0; margin: 20rpx auto;
padding: 22rpx 28rpx; padding: 22rpx 26rpx;
box-sizing: border-box; box-sizing: border-box;
background: linear-gradient(135deg, #ffffff 0%, #fffbf0 100%); background: linear-gradient(135deg, #ffffff 0%, #fffdfa 100%);
border-radius: 16rpx; border-radius: 20rpx;
border: 1rpx solid #ffe8c2; border: 1rpx solid rgba(224, 185, 130, 0.3);
box-shadow: 0 4rpx 16rpx rgba(247, 213, 152, 0.25); box-shadow: 0 6rpx 20rpx rgba(105, 46, 4, 0.05);
position: relative; position: relative;
z-index: 3; z-index: 3;
transition: background-color 0.2s;
&:active {
background-color: #faf7f2;
}
.icon-wrap { .icon-wrap {
width: 72rpx; width: 72rpx;
height: 72rpx; height: 72rpx;
border-radius: 36rpx; border-radius: 20rpx;
background: #fff0e6; background: rgba(255, 96, 0, 0.08);
flex-shrink: 0;
} }
.team-quick-info { .team-quick-info {
.title-bold { .title-bold {
font-size: 28rpx; font-size: 28rpx;
font-weight: bold; font-weight: 700;
color: #692e04; color: #522703;
} }
.active-badge { .active-badge {
font-size: 20rpx; font-size: 20rpx;
@@ -539,15 +561,17 @@
border-radius: 12rpx; border-radius: 12rpx;
background: #ecfdf5; background: #ecfdf5;
color: #059669; color: #059669;
font-weight: 500; font-weight: 600;
border: 1rpx solid rgba(16, 185, 129, 0.2);
} }
.amber-badge { .amber-badge {
font-size: 20rpx; font-size: 20rpx;
padding: 2rpx 10rpx; padding: 2rpx 10rpx;
border-radius: 12rpx; border-radius: 12rpx;
background: #ffedd5; background: #fffbeb;
color: #c2410c; color: #d97706;
font-weight: 500; font-weight: 600;
border: 1rpx solid rgba(245, 158, 11, 0.25);
} }
.warn-badge { .warn-badge {
font-size: 20rpx; font-size: 20rpx;
@@ -555,19 +579,22 @@
border-radius: 12rpx; border-radius: 12rpx;
background: #fef2f2; background: #fef2f2;
color: #dc2626; color: #dc2626;
font-weight: 500; font-weight: 600;
border: 1rpx solid rgba(239, 68, 68, 0.2);
} }
.team-sub { .team-sub {
font-size: 22rpx; font-size: 22rpx;
color: #a17545; color: #9c7b60;
font-family: OPPOSANS; font-family: OPPOSANS, sans-serif;
} }
} }
.team-quick-right { .team-quick-right {
flex-shrink: 0;
.manage-text { .manage-text {
font-size: 24rpx; font-size: 22rpx;
font-weight: 500; font-weight: 600;
color: #ff6000; color: #ff6000;
margin-right: 4rpx; margin-right: 4rpx;
} }