feat(split): 新增分账订单线下结案功能 - 添加 SplitCloseService 类用于处理订单结案逻辑 - 实现订单结案状态检查和标记功能 - 在汇付分账重试逻辑中加入结案状态验证,防止已结案订单继续重试 - 更新分账手动服务,添加结案操作类型 - 扩展钱包结算类,增加结案相关诊断方法 - 修改测试脚本,支持批量标记订单为已结案状态 - 添加数据库升级脚本,增加结案相关字段和菜单权限 ```
1044 行
24 KiB
Vue
1044 行
24 KiB
Vue
<template>
|
||
<view>
|
||
<view class="sh-userinfo-box">
|
||
<view class="head-wrap" :style="headWrapStyle">
|
||
<shopro-navbar
|
||
backIconName=""
|
||
:backTextStyle="{ color: '#FFFFFF', fontSize: '34rpx', fontWeight: '600' }"
|
||
backText="个人中心"
|
||
:background="navBackground"
|
||
></shopro-navbar>
|
||
|
||
<view class="user-head u-flex u-row-between u-col-center">
|
||
<view class="info-box u-flex u-col-center" @tap="onProfileTap">
|
||
<view class="head-img-wrap">
|
||
<image
|
||
class="head-img"
|
||
:src="userInfo.avatar || $IMG_URL + '/imgs/base_avatar.png'"
|
||
mode="aspectFill"
|
||
></image>
|
||
<button
|
||
v-if="showRefresh"
|
||
@tap.stop="showModal = true"
|
||
class="u-reset-button refresh-btn u-flex u-row-center u-col-center"
|
||
>
|
||
<text class="u-iconfont uicon-reload"></text>
|
||
</button>
|
||
</view>
|
||
<view class="user-meta">
|
||
<text class="user-name u-ellipsis-1">{{ userInfo.nickname || '请登录' }}</text>
|
||
<view v-if="isLogin" class="user-sub-row u-flex u-col-center">
|
||
<text class="user-id">ID: {{ userInfo.id }}</text>
|
||
<text class="user-referrer u-ellipsis-1">推荐人: {{ referrerText }}</text>
|
||
</view>
|
||
<view v-if="isLogin && roleTags.length" class="user-role-tags u-flex u-flex-wrap">
|
||
<view
|
||
class="role-tag"
|
||
v-for="(tag, index) in roleTags"
|
||
:key="`${tag}-${index}`"
|
||
>{{ tag }}</view>
|
||
</view>
|
||
<text v-else-if="!isLogin" class="user-desc">登录享受更多会员权益</text>
|
||
</view>
|
||
</view>
|
||
<view v-if="isLogin" class="user-head__actions">
|
||
<button class="u-reset-button action-icon-btn" @tap="jump('/pages/user/set')">
|
||
<text class="u-iconfont uicon-setting"></text>
|
||
</button>
|
||
<button class="u-reset-button sign-btn u-flex u-row-center u-col-center" @tap="jump('/pages/activity/sign/index')">
|
||
<text class="u-iconfont uicon-calendar sign-btn__icon"></text>
|
||
<text class="sign-btn__text">签到</text>
|
||
</button>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 普通用户:余额 / 积分 / 优惠券 -->
|
||
<view class="asset-bar u-flex" v-if="!showIncomePanel">
|
||
<view
|
||
class="asset-item u-flex-1 u-flex-col u-col-center"
|
||
v-for="item in walletItems"
|
||
:key="item.key"
|
||
@tap="onAssetTap(item)"
|
||
>
|
||
<text class="asset-value font-OPPOSANS">{{ item.displayValue }}</text>
|
||
<text class="asset-label">{{ item.label }}</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 分销商 / 区域代理:汇付分账收益面板 -->
|
||
<view class="split-income-card brand-card" v-if="showIncomePanel">
|
||
<view class="split-income-card__head u-flex u-row-between u-col-center">
|
||
<view>
|
||
<text class="split-income-card__title">分账收益</text>
|
||
<text class="split-income-card__sub">平台钱包可提现 · 汇付已进件走子户</text>
|
||
</view>
|
||
<text class="split-income-card__role">{{ incomeRoleText }}</text>
|
||
</view>
|
||
|
||
<!-- 平台钱包余额(兜底入账部分) -->
|
||
<view class="split-wallet" @tap="onAssetTap(balanceItem)">
|
||
<view class="split-wallet__top u-flex u-row-between u-col-center">
|
||
<text class="split-wallet__label">平台钱包 · 可提现(元)</text>
|
||
<text class="split-wallet__state">余额</text>
|
||
</view>
|
||
<text class="split-wallet__amount font-OPPOSANS">¥{{ balanceItem.displayValue }}</text>
|
||
<view class="split-wallet__foot u-flex u-row-between u-col-center">
|
||
<text class="split-wallet__tip">含未进件/分账失败的兜底入账;已进件部分直达汇付子户</text>
|
||
<text class="u-iconfont uicon-arrow-right split-wallet__arrow"></text>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 已结算:累计收益(非钱包余额) -->
|
||
<view class="split-settled u-flex" v-if="showCommissionMetric || showRegionalMetric">
|
||
<view
|
||
class="split-settled__item u-flex-1"
|
||
v-if="showCommissionMetric"
|
||
@tap="onAssetTap(commissionItem)"
|
||
>
|
||
<text class="split-settled__label">分销收益</text>
|
||
<text class="split-settled__value font-OPPOSANS">¥{{ commissionItem.displayValue }}</text>
|
||
<text class="split-settled__hint">累计已结算(含汇付子户,非可提现余额)</text>
|
||
</view>
|
||
<view
|
||
class="split-settled__item u-flex-1"
|
||
v-if="showRegionalMetric"
|
||
:class="{ 'split-settled__item--solo': !showCommissionMetric }"
|
||
@tap="onAssetTap(regionalItem)"
|
||
>
|
||
<text class="split-settled__label">区县收益</text>
|
||
<text class="split-settled__value font-OPPOSANS">¥{{ regionalItem.displayValue }}</text>
|
||
<text class="split-settled__hint">累计已结算(含汇付子户)</text>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 非终态:分账待到账 -->
|
||
<view class="split-pending u-flex u-row-between u-col-center" @tap="onAssetTap(pendingItem)">
|
||
<view class="split-pending__main">
|
||
<view class="split-pending__title-row u-flex u-col-center">
|
||
<text class="split-pending__dot"></text>
|
||
<text class="split-pending__title">待入账收益</text>
|
||
</view>
|
||
<text class="split-pending__desc">订单已产生,等待结算或汇付分账确认</text>
|
||
</view>
|
||
<view class="split-pending__right u-flex u-col-center">
|
||
<text class="split-pending__amount font-OPPOSANS">¥{{ pendingItem.displayValue }}</text>
|
||
<text class="u-iconfont uicon-arrow-right split-pending__arrow"></text>
|
||
</view>
|
||
</view>
|
||
|
||
<view
|
||
class="split-onboard-nudge u-flex u-row-between u-col-center"
|
||
v-if="showOnboardNudge"
|
||
@tap="jump('/pages/user/wallet/onboard-bind')"
|
||
>
|
||
<view class="split-onboard-nudge__text">
|
||
<text class="split-onboard-nudge__title">有待入账收益,建议完成汇付进件</text>
|
||
<text class="split-onboard-nudge__sub">进件通过后新单收益直达汇付子户;未完成时走平台钱包兜底</text>
|
||
</view>
|
||
<text class="split-onboard-nudge__link">去进件 ›</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<!-- 绑定手机 -->
|
||
<!-- <view class="notice-box u-flex u-row-between u-p-30"
|
||
v-if="userInfo.verification && !userInfo.verification.mobile" @tap="bindMobile">
|
||
<view class="notice-detail">点击绑定手机号,确保账户安全</view>
|
||
<button class="u-reset-button bindPhone">去绑定</button>
|
||
</view> -->
|
||
<!-- <view class="notice-box u-flex u-row-between u-p-30"
|
||
v-if="userInfo.verification && !userInfo.verification.mobile" @tap="bindMobile">
|
||
<view class="notice-detail" v-if="!userInfo.mobile">点击绑定手机号,确保账户安全</view>
|
||
<view class="notice-detail" v-if="userInfo.mobile">当前手机号 {{userInfo.mobile}}</view>
|
||
<button class="u-reset-button bindPhone" v-if="!userInfo.mobile">去绑定</button>
|
||
<button class="u-reset-button bindPhone" v-if="userInfo.mobile">重新绑定</button>
|
||
</view> -->
|
||
<!-- 更新信息 -->
|
||
<view class="cu-modal" :class="{ show: showModal }" @tap="showModal = false">
|
||
<view class="cu-dialog" style="width: 600rpx;">
|
||
<view class="modal-box">
|
||
<view class="modal-head">提示</view>
|
||
<view class="modal-content">更新微信信息?</view>
|
||
<view class="modal-bottom u-flex u-col-center">
|
||
<button class="u-reset-button modal-btn cancel-btn" :hover-stay-time="100"
|
||
hover-class="btn-hover" @tap="showModal = false">取消</button>
|
||
<button class="u-reset-button modal-btn save-btn" :hover-stay-time="100"
|
||
hover-class="btn-hover" @tap="refreshWechatUser">确定</button>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
/**
|
||
* 自定义之个人信息
|
||
* @property {Object} detail - 个人信息
|
||
*/
|
||
import {
|
||
mapMutations,
|
||
mapActions,
|
||
mapState,
|
||
mapGetters
|
||
} from 'vuex';
|
||
import wechat from '@/shopro/wechat/wechat';
|
||
import theme from '@/shopro/config/theme.js';
|
||
|
||
const LEGACY_HEADER_COLORS = ['#FFA33E', '#ff1926', '#FF0e25', '#ff0e25', '#EFC480', '#001F54', '#003399', '#0066CC', '#0055AA'];
|
||
export default {
|
||
components: {},
|
||
data() {
|
||
return {
|
||
showModal: false,
|
||
platform: this.$platform.get(), //当前平台。
|
||
isFixed: false,
|
||
navBackground: {
|
||
background: 'none'
|
||
},
|
||
regionalIncome: '0.00',
|
||
regionalDelayMoney: '0.00',
|
||
hasRegionalAgent: false,
|
||
huifuOnboard: null
|
||
};
|
||
},
|
||
mounted() {
|
||
if (this.isLogin) {
|
||
this.loadRegionalIncome();
|
||
this.loadHuifuOnboardHint();
|
||
}
|
||
},
|
||
props: {
|
||
detail: {},
|
||
scrollTop: {
|
||
type: Number,
|
||
default: 0
|
||
},
|
||
refreshKey: {
|
||
type: Number,
|
||
default: 0
|
||
}
|
||
},
|
||
watch: {
|
||
scrollTop(val) {
|
||
this.isFixed = val > 50;
|
||
this.navBackground.background = val > 50
|
||
? `linear-gradient(180deg, ${theme.navy} 0%, ${theme.navyLight} 100%)`
|
||
: 'none';
|
||
},
|
||
isLogin(val) {
|
||
if (val) {
|
||
this.loadRegionalIncome();
|
||
this.loadHuifuOnboardHint();
|
||
} else {
|
||
this.regionalIncome = '0.00';
|
||
this.regionalDelayMoney = '0.00';
|
||
this.hasRegionalAgent = false;
|
||
this.huifuOnboard = null;
|
||
}
|
||
},
|
||
refreshKey() {
|
||
if (this.isLogin) {
|
||
this.loadRegionalIncome();
|
||
this.loadHuifuOnboardHint();
|
||
}
|
||
}
|
||
},
|
||
computed: {
|
||
...mapGetters(['isLogin', 'userInfo', 'userOtherData', 'agentInfo']),
|
||
headBackgroundColor() {
|
||
const color = (this.detail && this.detail.color) || '';
|
||
if (!color || LEGACY_HEADER_COLORS.includes(color.toUpperCase()) || LEGACY_HEADER_COLORS.includes(color)) {
|
||
return theme.headerGradient;
|
||
}
|
||
return color;
|
||
},
|
||
headWrapStyle() {
|
||
if (this.detail && this.detail.image) {
|
||
return {
|
||
background: `url(${this.detail.image}) no-repeat center / 100% 100%`
|
||
};
|
||
}
|
||
return {
|
||
background: `linear-gradient(180deg, ${theme.navy} 0%, ${theme.navyLight} 100%)`
|
||
};
|
||
},
|
||
showRefresh() {
|
||
if (this.isLogin) {
|
||
if (this.platform === 'wxOfficialAccount') {
|
||
return this.userInfo.verification?.wxOfficialAccount;
|
||
}
|
||
if (this.platform === 'wxMiniProgram') {
|
||
return this.userInfo.verification.wxMiniProgram;
|
||
}
|
||
if (this.platform === 'App') {
|
||
return this.userInfo.verification.wxOpenPlatform;
|
||
}
|
||
}
|
||
return false;
|
||
},
|
||
referrerText() {
|
||
if (!this.isLogin) {
|
||
return '';
|
||
}
|
||
const parent = this.userInfo.parent_user;
|
||
if (parent && parent.nickname) {
|
||
return parent.nickname;
|
||
}
|
||
if (!this.userInfo.parent_user_id) {
|
||
return '无';
|
||
}
|
||
return '暂无';
|
||
},
|
||
roleTags() {
|
||
if (Array.isArray(this.userInfo.role_tags) && this.userInfo.role_tags.length) {
|
||
return this.userInfo.role_tags;
|
||
}
|
||
const tags = [];
|
||
if (this.userInfo.group && this.userInfo.group.name) {
|
||
tags.push(this.userInfo.group.name);
|
||
}
|
||
if (this.agentInfo && this.agentInfo.agent_level && this.agentInfo.agent_level.name) {
|
||
tags.push(this.agentInfo.agent_level.name);
|
||
}
|
||
return tags;
|
||
},
|
||
isCommissionAgent() {
|
||
return !!(this.agentInfo && this.agentInfo.agent_level);
|
||
},
|
||
showIncomePanel() {
|
||
return this.isLogin && (this.isCommissionAgent || this.hasRegionalAgent);
|
||
},
|
||
incomeRoleText() {
|
||
if (this.isCommissionAgent && this.hasRegionalAgent) {
|
||
return '分销商 · 区域代理';
|
||
}
|
||
if (this.isCommissionAgent) {
|
||
return '分销商';
|
||
}
|
||
if (this.hasRegionalAgent) {
|
||
return '区域代理';
|
||
}
|
||
return '';
|
||
},
|
||
walletItems() {
|
||
return [{
|
||
key: 'money',
|
||
label: '余额(元)',
|
||
displayValue: this.formatMoney(this.userInfo.money),
|
||
path: '/pages/user/wallet/index'
|
||
}, {
|
||
key: 'score',
|
||
label: '积分',
|
||
displayValue: String(this.userInfo.score || '0'),
|
||
path: '/pages/user/wallet/score-balance'
|
||
}, {
|
||
key: 'coupon',
|
||
label: '优惠券',
|
||
displayValue: String(this.userOtherData.coupons_num || '0'),
|
||
path: '/pages/app/coupon/list'
|
||
}];
|
||
},
|
||
pendingIncome() {
|
||
const commissionPending = parseFloat(this.agentInfo?.delay_money || 0) || 0;
|
||
const regionalPending = parseFloat(this.regionalDelayMoney || 0) || 0;
|
||
return this.formatMoney(commissionPending + regionalPending);
|
||
},
|
||
showCommissionMetric() {
|
||
return this.isCommissionAgent;
|
||
},
|
||
showRegionalMetric() {
|
||
return this.hasRegionalAgent;
|
||
},
|
||
balanceItem() {
|
||
return {
|
||
key: 'balance',
|
||
displayValue: this.formatMoney(this.userInfo.money),
|
||
path: '/pages/user/wallet/index'
|
||
};
|
||
},
|
||
commissionItem() {
|
||
return {
|
||
key: 'commission',
|
||
displayValue: this.formatMoney(this.agentInfo?.total_income),
|
||
path: '/pages/app/commission/index'
|
||
};
|
||
},
|
||
regionalItem() {
|
||
return {
|
||
key: 'regional',
|
||
displayValue: this.formatMoney(this.regionalIncome),
|
||
path: '/pages/app/regional-agent/index'
|
||
};
|
||
},
|
||
pendingItem() {
|
||
return {
|
||
key: 'pending',
|
||
displayValue: this.pendingIncome,
|
||
path: this.pendingIncomePath
|
||
};
|
||
},
|
||
pendingIncomePath() {
|
||
const commissionPending = parseFloat(this.agentInfo?.delay_money || 0) || 0;
|
||
const regionalPending = parseFloat(this.regionalDelayMoney || 0) || 0;
|
||
if (regionalPending > 0 && commissionPending <= 0) {
|
||
return '/pages/app/regional-agent/rewards';
|
||
}
|
||
return '/pages/app/commission/commission-log';
|
||
},
|
||
showOnboardNudge() {
|
||
if (!this.showIncomePanel || !this.isCommissionAgent) {
|
||
return false;
|
||
}
|
||
const pending = parseFloat(this.pendingIncome) || 0;
|
||
if (pending <= 0) {
|
||
return false;
|
||
}
|
||
const h = this.huifuOnboard;
|
||
if (!h || !h.required) {
|
||
return false;
|
||
}
|
||
if (h.status === 'approved') {
|
||
return false;
|
||
}
|
||
return !!h.can_submit || !h.status;
|
||
}
|
||
},
|
||
methods: {
|
||
...mapActions(['getUserInfo', 'showAuthModal']),
|
||
formatMoney(value) {
|
||
const num = parseFloat(value);
|
||
if (Number.isNaN(num)) {
|
||
return '0.00';
|
||
}
|
||
return num.toFixed(2);
|
||
},
|
||
loadHuifuOnboardHint() {
|
||
if (!this.isCommissionAgent) {
|
||
this.huifuOnboard = null;
|
||
return;
|
||
}
|
||
this.$http('commission.auth').then(res => {
|
||
if (res.code === 1 && res.data) {
|
||
this.huifuOnboard = res.data.huifu_onboard || null;
|
||
}
|
||
}).catch(() => {});
|
||
},
|
||
loadRegionalIncome() {
|
||
this.$http('regionalAgent.info').then(res => {
|
||
if (res.code !== 1 || !res.data || res.data.status === 'close') {
|
||
this.regionalIncome = '0.00';
|
||
this.regionalDelayMoney = '0.00';
|
||
this.hasRegionalAgent = false;
|
||
return;
|
||
}
|
||
this.regionalDelayMoney = res.data.delay_money || '0.00';
|
||
const agents = Array.isArray(res.data.agents) ? res.data.agents : [];
|
||
this.hasRegionalAgent = agents.some(item => item.status === 'normal');
|
||
const total = agents.reduce((sum, item) => {
|
||
return sum + (parseFloat(item.total_income) || 0);
|
||
}, 0);
|
||
if (total > 0) {
|
||
this.regionalIncome = total.toFixed(2);
|
||
return;
|
||
}
|
||
this.loadRegionalSummary();
|
||
}).catch(() => {
|
||
this.regionalIncome = '0.00';
|
||
this.regionalDelayMoney = '0.00';
|
||
this.hasRegionalAgent = false;
|
||
});
|
||
},
|
||
loadRegionalSummary() {
|
||
this.$http('regionalAgent.stats').then(res => {
|
||
if (res.code === 1) {
|
||
const summary = (res.data && res.data.summary) || {};
|
||
this.regionalIncome = this.formatMoney(summary.total_income);
|
||
}
|
||
}).catch(() => {});
|
||
},
|
||
onAssetTap(item) {
|
||
if (!this.isLogin) {
|
||
this.showAuthModal('accountLogin');
|
||
return;
|
||
}
|
||
this.jump(item.path);
|
||
},
|
||
onProfileTap() {
|
||
if (this.isLogin) {
|
||
this.$Router.push('/pages/user/info');
|
||
return;
|
||
}
|
||
this.showAuthModal('accountLogin');
|
||
},
|
||
jump(path, query) {
|
||
this.$Router.push({
|
||
path: path,
|
||
query: query
|
||
});
|
||
},
|
||
// 点击分享
|
||
onShare() {
|
||
this.$emit('onShare');
|
||
},
|
||
// 同步用户信息
|
||
async refreshWechatUser() {
|
||
this.showModal = false;
|
||
let token = await wechat.refresh();
|
||
token && this.getUserInfo(token);
|
||
},
|
||
// 跳转门店(功能已关闭)
|
||
goStore() {
|
||
return;
|
||
},
|
||
// 绑定手机号
|
||
bindMobile() {
|
||
this.showAuthModal('bindMobile');
|
||
}
|
||
}
|
||
};
|
||
</script>
|
||
|
||
<style lang="scss">
|
||
// 更新信息
|
||
.modal-box {
|
||
width: 600rpx;
|
||
|
||
.btn-hover {
|
||
background-color: rgb(230, 230, 230);
|
||
}
|
||
|
||
.modal-head {
|
||
padding-top: 48rpx;
|
||
font-weight: 500;
|
||
text-align: center;
|
||
color: $u-main-color;
|
||
}
|
||
|
||
.modal-content {
|
||
padding: 48rpx;
|
||
font-size: 30rpx;
|
||
text-align: center;
|
||
color: $u-content-color;
|
||
}
|
||
|
||
.modal-bottom {
|
||
.modal-btn {
|
||
flex: 1;
|
||
height: 100rpx;
|
||
line-height: 100rpx;
|
||
font-size: 32rpx;
|
||
box-sizing: border-box;
|
||
cursor: pointer;
|
||
text-align: center;
|
||
border-radius: 4rpx;
|
||
}
|
||
|
||
.cancel-btn {
|
||
color: #666666;
|
||
}
|
||
|
||
.save-btn {
|
||
color: $brand-primary;
|
||
}
|
||
}
|
||
}
|
||
|
||
.sh-userinfo-box {
|
||
position: relative;
|
||
padding-bottom: 8rpx;
|
||
|
||
.head-wrap {
|
||
width: 100%;
|
||
padding: 0 $brand-page-gutter 20rpx;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.asset-bar {
|
||
margin-top: 28rpx;
|
||
padding: 8rpx 0 4rpx;
|
||
}
|
||
|
||
.asset-item {
|
||
min-width: 0;
|
||
|
||
& + .asset-item {
|
||
border-left: 1rpx solid rgba(255, 255, 255, 0.28);
|
||
}
|
||
}
|
||
|
||
.asset-value {
|
||
font-size: 36rpx;
|
||
font-weight: 600;
|
||
color: #fff;
|
||
line-height: 1.2;
|
||
}
|
||
|
||
.asset-label {
|
||
margin-top: 8rpx;
|
||
font-size: 22rpx;
|
||
color: rgba(255, 255, 255, 0.88);
|
||
}
|
||
|
||
.split-income-card {
|
||
margin: 16rpx $brand-page-gutter 0;
|
||
padding: 28rpx 24rpx 24rpx;
|
||
background: #ffffff;
|
||
box-shadow: 0 12rpx 40rpx rgba(10, 36, 99, 0.12);
|
||
}
|
||
|
||
.split-income-card__head {
|
||
margin-bottom: 24rpx;
|
||
}
|
||
|
||
.split-income-card__title {
|
||
display: block;
|
||
font-size: 32rpx;
|
||
font-weight: 600;
|
||
color: #1D2129;
|
||
line-height: 1.4;
|
||
}
|
||
|
||
.split-income-card__sub {
|
||
display: block;
|
||
margin-top: 6rpx;
|
||
font-size: 22rpx;
|
||
color: #86909C;
|
||
line-height: 1.4;
|
||
}
|
||
|
||
.split-income-card__role {
|
||
flex-shrink: 0;
|
||
padding: 6rpx 16rpx;
|
||
border-radius: 20rpx;
|
||
font-size: 22rpx;
|
||
font-weight: 500;
|
||
color: #1677FF;
|
||
background: #E8F3FF;
|
||
}
|
||
|
||
.split-wallet {
|
||
padding: 28rpx;
|
||
border-radius: 20rpx;
|
||
background: $brand-primary-gradient;
|
||
margin-bottom: 20rpx;
|
||
|
||
&:active {
|
||
opacity: 0.92;
|
||
}
|
||
}
|
||
|
||
.split-wallet__label {
|
||
font-size: 24rpx;
|
||
color: rgba(255, 255, 255, 0.88);
|
||
}
|
||
|
||
.split-wallet__state {
|
||
padding: 4rpx 14rpx;
|
||
border-radius: 16rpx;
|
||
font-size: 20rpx;
|
||
font-weight: 500;
|
||
color: #1677FF;
|
||
background: rgba(255, 255, 255, 0.92);
|
||
}
|
||
|
||
.split-wallet__amount {
|
||
display: block;
|
||
margin-top: 16rpx;
|
||
font-size: 56rpx;
|
||
font-weight: 700;
|
||
color: #ffffff;
|
||
line-height: 1.2;
|
||
}
|
||
|
||
.split-wallet__foot {
|
||
margin-top: 16rpx;
|
||
}
|
||
|
||
.split-wallet__tip {
|
||
font-size: 22rpx;
|
||
color: rgba(255, 255, 255, 0.78);
|
||
line-height: 1.4;
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
|
||
.split-wallet__arrow {
|
||
font-size: 22rpx;
|
||
color: rgba(255, 255, 255, 0.72);
|
||
margin-left: 8rpx;
|
||
}
|
||
|
||
.split-settled {
|
||
margin-bottom: 20rpx;
|
||
border: 1rpx solid #E5E7EB;
|
||
border-radius: 16rpx;
|
||
overflow: hidden;
|
||
background: #F7F8FA;
|
||
}
|
||
|
||
.split-settled__item {
|
||
min-width: 0;
|
||
padding: 24rpx 20rpx;
|
||
text-align: center;
|
||
background: #ffffff;
|
||
|
||
& + .split-settled__item {
|
||
border-left: 1rpx solid #E5E7EB;
|
||
}
|
||
|
||
&--solo {
|
||
border-left: none;
|
||
}
|
||
|
||
&:active {
|
||
background: #F7F8FA;
|
||
}
|
||
}
|
||
|
||
.split-settled__label {
|
||
display: block;
|
||
font-size: 24rpx;
|
||
font-weight: 600;
|
||
color: #1D2129;
|
||
}
|
||
|
||
.split-settled__value {
|
||
display: block;
|
||
margin-top: 12rpx;
|
||
font-size: 36rpx;
|
||
font-weight: 700;
|
||
color: #1677FF;
|
||
line-height: 1.2;
|
||
}
|
||
|
||
.split-settled__hint {
|
||
display: block;
|
||
margin-top: 8rpx;
|
||
font-size: 20rpx;
|
||
color: #86909C;
|
||
}
|
||
|
||
.split-pending {
|
||
padding: 24rpx;
|
||
border-radius: 16rpx;
|
||
background: linear-gradient(135deg, #FFF7E6 0%, #FFFBF0 100%);
|
||
border: 1rpx solid rgba(212, 107, 8, 0.22);
|
||
|
||
&:active {
|
||
opacity: 0.92;
|
||
}
|
||
}
|
||
|
||
.split-pending__main {
|
||
flex: 1;
|
||
min-width: 0;
|
||
padding-right: 16rpx;
|
||
}
|
||
|
||
.split-pending__title-row {
|
||
margin-bottom: 8rpx;
|
||
}
|
||
|
||
.split-pending__dot {
|
||
width: 12rpx;
|
||
height: 12rpx;
|
||
border-radius: 50%;
|
||
background: #D46B08;
|
||
margin-right: 10rpx;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.split-pending__title {
|
||
font-size: 28rpx;
|
||
font-weight: 600;
|
||
color: #1D2129;
|
||
}
|
||
|
||
.split-pending__desc {
|
||
display: block;
|
||
font-size: 22rpx;
|
||
color: #86909C;
|
||
line-height: 1.45;
|
||
}
|
||
|
||
.split-pending__right {
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.split-pending__amount {
|
||
font-size: 36rpx;
|
||
font-weight: 700;
|
||
color: #D46B08;
|
||
line-height: 1.2;
|
||
}
|
||
|
||
.split-pending__arrow {
|
||
font-size: 22rpx;
|
||
color: rgba(212, 107, 8, 0.55);
|
||
margin-left: 8rpx;
|
||
}
|
||
|
||
.split-onboard-nudge {
|
||
margin-top: 20rpx;
|
||
padding: 20rpx 24rpx;
|
||
border-radius: 12rpx;
|
||
background: rgba(116, 56, 213, 0.08);
|
||
border: 1rpx solid rgba(116, 56, 213, 0.18);
|
||
}
|
||
|
||
.split-onboard-nudge__text {
|
||
flex: 1;
|
||
min-width: 0;
|
||
padding-right: 16rpx;
|
||
}
|
||
|
||
.split-onboard-nudge__title {
|
||
display: block;
|
||
font-size: 26rpx;
|
||
font-weight: 600;
|
||
color: #1D2129;
|
||
line-height: 1.4;
|
||
}
|
||
|
||
.split-onboard-nudge__sub {
|
||
display: block;
|
||
margin-top: 6rpx;
|
||
font-size: 22rpx;
|
||
color: #86909C;
|
||
line-height: 1.45;
|
||
}
|
||
|
||
.split-onboard-nudge__link {
|
||
flex-shrink: 0;
|
||
font-size: 26rpx;
|
||
font-weight: 600;
|
||
color: #7438D5;
|
||
}
|
||
|
||
.user-head {
|
||
width: 100%;
|
||
padding-top: 8rpx;
|
||
align-items: flex-start;
|
||
|
||
.info-box {
|
||
flex: 1;
|
||
min-width: 0;
|
||
align-items: flex-start;
|
||
|
||
.head-img-wrap {
|
||
position: relative;
|
||
flex-shrink: 0;
|
||
|
||
.refresh-btn {
|
||
position: absolute;
|
||
padding: 0;
|
||
width: 36rpx;
|
||
height: 36rpx;
|
||
border-radius: 50%;
|
||
background: $brand-primary;
|
||
top: -4rpx;
|
||
right: -4rpx;
|
||
|
||
.uicon-reload {
|
||
font-size: 20rpx;
|
||
color: #fff;
|
||
}
|
||
}
|
||
}
|
||
|
||
.head-img {
|
||
width: 112rpx;
|
||
height: 112rpx;
|
||
border-radius: 50%;
|
||
background: #eee;
|
||
border: 3rpx solid rgba(255, 255, 255, 0.35);
|
||
}
|
||
|
||
.user-meta {
|
||
margin-left: 20rpx;
|
||
min-width: 0;
|
||
flex: 1;
|
||
padding-top: 4rpx;
|
||
}
|
||
|
||
.user-name {
|
||
display: block;
|
||
font-size: 34rpx;
|
||
font-weight: 600;
|
||
line-height: 1.3;
|
||
color: $brand-text-on-primary;
|
||
max-width: 420rpx;
|
||
}
|
||
|
||
.user-sub-row {
|
||
margin-top: 10rpx;
|
||
max-width: 100%;
|
||
}
|
||
|
||
.user-id,
|
||
.user-referrer {
|
||
font-size: 22rpx;
|
||
color: rgba(255, 255, 255, 0.78);
|
||
line-height: 1.3;
|
||
}
|
||
|
||
.user-id {
|
||
flex-shrink: 0;
|
||
margin-right: 20rpx;
|
||
}
|
||
|
||
.user-referrer {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
|
||
.user-role-tags {
|
||
margin-top: 12rpx;
|
||
gap: 10rpx;
|
||
}
|
||
|
||
.role-tag {
|
||
padding: 4rpx 14rpx;
|
||
border-radius: 8rpx;
|
||
font-size: 20rpx;
|
||
line-height: 1.4;
|
||
color: rgba(255, 255, 255, 0.92);
|
||
background: rgba(255, 255, 255, 0.14);
|
||
border: 1rpx solid rgba(255, 255, 255, 0.22);
|
||
}
|
||
|
||
.user-desc {
|
||
display: block;
|
||
margin-top: 10rpx;
|
||
font-size: 22rpx;
|
||
color: rgba(255, 255, 255, 0.72);
|
||
line-height: 1.3;
|
||
}
|
||
}
|
||
|
||
.user-head__actions {
|
||
flex-shrink: 0;
|
||
margin-left: 12rpx;
|
||
padding-top: 4rpx;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
}
|
||
|
||
.action-icon-btn {
|
||
width: 56rpx;
|
||
height: 56rpx;
|
||
border-radius: 50%;
|
||
background: transparent;
|
||
|
||
.uicon-setting {
|
||
font-size: 40rpx;
|
||
color: rgba(255, 255, 255, 0.92);
|
||
}
|
||
}
|
||
|
||
.sign-btn {
|
||
margin-top: 16rpx;
|
||
min-width: 108rpx;
|
||
height: 52rpx;
|
||
padding: 0 18rpx;
|
||
border-radius: 26rpx;
|
||
background: rgba(255, 255, 255, 0.92);
|
||
|
||
&__icon {
|
||
font-size: 24rpx;
|
||
color: $brand-primary;
|
||
margin-right: 6rpx;
|
||
}
|
||
|
||
&__text {
|
||
font-size: 24rpx;
|
||
color: $brand-primary;
|
||
font-weight: 500;
|
||
}
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
// 绑定微信公众号
|
||
.notice-box {
|
||
width: 750rpx;
|
||
height: 70rpx;
|
||
background: rgba(253, 239, 216, 1);
|
||
padding: 0 35rpx;
|
||
|
||
.notice-detail {
|
||
font-size: 24rpx;
|
||
|
||
font-weight: 400;
|
||
color: rgba(204, 149, 59, 1);
|
||
}
|
||
|
||
.bindPhone {
|
||
width: 135rpx;
|
||
line-height: 52rpx;
|
||
background: linear-gradient(90deg, #1677FF, #4096FF);
|
||
border-radius: 26rpx;
|
||
padding: 0;
|
||
font-size: 26rpx;
|
||
|
||
font-weight: 500;
|
||
color: rgba(255, 255, 255, 1);
|
||
}
|
||
}
|
||
</style>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|