style(commission): 重构收益中心首页为现代简约规范排版
这个提交包含在:
@@ -1,74 +1,89 @@
|
||||
<!-- 账户 -->
|
||||
<!-- 账户信息 Bento 资产卡片 -->
|
||||
<template>
|
||||
<view class="account-card">
|
||||
<view class="account-card-box">
|
||||
<view class="ss-flex ss-row-between card-box-header">
|
||||
<view class="ss-flex">
|
||||
<view class="header-title ss-m-r-16">账户信息</view>
|
||||
<button
|
||||
class="ss-reset-button look-btn ss-flex"
|
||||
@tap="state.showMoney = !state.showMoney"
|
||||
>
|
||||
<uni-icons
|
||||
:type="state.showMoney ? 'eye-filled' : 'eye-slash-filled'"
|
||||
color="#A57A55"
|
||||
size="20"
|
||||
></uni-icons>
|
||||
</button>
|
||||
<!-- 头部:标题与查看明细 -->
|
||||
<view class="card-header ss-flex ss-row-between ss-col-center">
|
||||
<view class="header-left ss-flex ss-col-center">
|
||||
<text class="header-title">账户资产</text>
|
||||
<button
|
||||
class="ss-reset-button eye-btn ss-flex ss-col-center ss-row-center ss-m-l-12"
|
||||
@tap="state.showMoney = !state.showMoney"
|
||||
>
|
||||
<uni-icons
|
||||
:type="state.showMoney ? 'eye-filled' : 'eye-slash-filled'"
|
||||
color="#A57A55"
|
||||
size="18"
|
||||
></uni-icons>
|
||||
</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 class="ss-flex" @tap="sheep.$router.go('/pages/commission/rewards')">
|
||||
<view class="header-title ss-m-r-4">查看明细</view>
|
||||
<text class="cicon-play-arrow"></text>
|
||||
|
||||
<view class="grid-v-divider"></view>
|
||||
|
||||
<!-- 商城余额 -->
|
||||
<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 class="card-content">
|
||||
<view class="metric-row ss-flex">
|
||||
<view
|
||||
class="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">
|
||||
{{ state.showMoney ? agentInfo?.total_income || userInfo?.total_income || '0.00' : '***' }}
|
||||
</view>
|
||||
</view>
|
||||
<view
|
||||
class="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">
|
||||
{{ state.showMoney ? userInfo?.money || '0.00' : '***' }}
|
||||
</view>
|
||||
|
||||
<view class="grid-h-divider"></view>
|
||||
|
||||
<!-- 第二行 -->
|
||||
<view class="grid-row ss-flex">
|
||||
<!-- dmepa价值 -->
|
||||
<view
|
||||
class="bento-cell ss-flex-1 ss-flex-col ss-col-center metric-item"
|
||||
@tap="sheep.$router.go('/pages/commission/madow')"
|
||||
>
|
||||
<view class="item-title">dmepa价值(元)</view>
|
||||
<view class="item-detail text-primary">
|
||||
{{
|
||||
state.showMoney
|
||||
? agentInfo?.madow_value || userInfo?.madow_value || '0.00'
|
||||
: '***'
|
||||
}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="metric-row ss-flex">
|
||||
<view
|
||||
class="ss-flex-1 ss-flex-col ss-col-center metric-item"
|
||||
@tap="sheep.$router.go('/pages/commission/madow')"
|
||||
>
|
||||
<view class="item-title">dmepa价值(元)</view>
|
||||
<view class="item-detail">
|
||||
{{
|
||||
state.showMoney
|
||||
? agentInfo?.madow_value || userInfo?.madow_value || '0.00'
|
||||
: '***'
|
||||
}}
|
||||
</view>
|
||||
</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 class="grid-v-divider"></view>
|
||||
|
||||
<!-- 可用兑换券 -->
|
||||
<view
|
||||
class="bento-cell 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 text-amber">
|
||||
{{
|
||||
state.showMoney
|
||||
? formatVoucher(agentInfo?.voucher_available || userInfo?.voucher_available)
|
||||
: '***'
|
||||
}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -99,54 +114,109 @@
|
||||
.account-card {
|
||||
width: 694rpx;
|
||||
margin: 0 auto;
|
||||
padding: 2rpx;
|
||||
background: linear-gradient(180deg, #ffffff 0.88%, #fff9ec 100%);
|
||||
border-radius: 12rpx;
|
||||
box-sizing: border-box;
|
||||
background: #ffffff;
|
||||
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;
|
||||
position: relative;
|
||||
.account-card-box {
|
||||
background: #ffefd6;
|
||||
.card-box-header {
|
||||
padding: 0 30rpx;
|
||||
height: 72rpx;
|
||||
box-shadow: 0px 2px 6px #f2debe;
|
||||
.header-title {
|
||||
font-size: 24rpx;
|
||||
font-weight: 500;
|
||||
color: #a17545;
|
||||
line-height: 30rpx;
|
||||
}
|
||||
.cicon-play-arrow {
|
||||
color: #a17545;
|
||||
font-size: 24rpx;
|
||||
line-height: 30rpx;
|
||||
overflow: hidden;
|
||||
|
||||
.card-header {
|
||||
padding: 22rpx 28rpx 18rpx 28rpx;
|
||||
background: linear-gradient(180deg, #fffcf6 0%, #ffffff 100%);
|
||||
border-bottom: 1rpx solid #f6f0e4;
|
||||
|
||||
.header-title {
|
||||
font-size: 26rpx;
|
||||
font-weight: 700;
|
||||
color: #522703;
|
||||
line-height: 32rpx;
|
||||
}
|
||||
|
||||
.eye-btn {
|
||||
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;
|
||||
background: #fdfae9;
|
||||
padding: 16rpx 0 8rpx;
|
||||
.metric-row {
|
||||
padding: 12rpx 0;
|
||||
}
|
||||
.metric-item {
|
||||
padding: 8rpx 0;
|
||||
|
||||
.detail-link-text {
|
||||
font-size: 22rpx;
|
||||
color: #a17545;
|
||||
font-weight: 500;
|
||||
margin-right: 4rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.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 {
|
||||
font-size: 24rpx;
|
||||
font-size: 22rpx;
|
||||
color: #9c7b60;
|
||||
line-height: 28rpx;
|
||||
margin-bottom: 10rpx;
|
||||
font-weight: 500;
|
||||
color: #cba67e;
|
||||
line-height: 30rpx;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
|
||||
.item-detail {
|
||||
font-size: 36rpx;
|
||||
font-family: OPPOSANS;
|
||||
font-weight: bold;
|
||||
color: #692e04;
|
||||
line-height: 30rpx;
|
||||
font-size: 38rpx;
|
||||
font-family: OPPOSANS, sans-serif;
|
||||
font-weight: 700;
|
||||
line-height: 44rpx;
|
||||
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>
|
||||
|
||||
在新工单中引用
屏蔽一个用户