feat(expert): full closure of expert revenue trends, multichannel withdrawals, service manage, review reply and post manage
这个提交包含在:
@@ -139,6 +139,20 @@
|
||||
<text class="rev-tag" v-for="(t, i) in rev.tags" :key="i">{{ t }}</text>
|
||||
</view>
|
||||
<text class="rev-content">{{ rev.content }}</text>
|
||||
|
||||
<!-- 大神回复气泡 -->
|
||||
<view class="expert-reply-bubble" v-if="rev.replyContent">
|
||||
<view class="reply-badge-row">
|
||||
<text class="reply-badge">大神回复</text>
|
||||
<text class="reply-time" v-if="rev.replyTime">{{ rev.replyTime }}</text>
|
||||
</view>
|
||||
<text class="reply-text">{{ rev.replyContent }}</text>
|
||||
</view>
|
||||
|
||||
<!-- 快捷回复感谢老板入口 -->
|
||||
<view class="reply-action-row" v-if="!rev.replyContent">
|
||||
<button class="btn-quick-reply btn-active" @click="handleReplyReview(rev)">回复感谢老板</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -167,7 +181,7 @@
|
||||
import { ref, computed } from 'vue';
|
||||
import { onLoad } from '@dcloudio/uni-app';
|
||||
import SkeletonScreen from '@/components/SkeletonScreen.vue';
|
||||
import { getCompanionDetail, getExpertReviews } from '@/common/api.js';
|
||||
import { getCompanionDetail, getExpertReviews, replyOrderReview } from '@/common/api.js';
|
||||
import { ICONS } from '@/common/icons.js';
|
||||
|
||||
const isLoading = ref(true);
|
||||
@@ -192,6 +206,33 @@ const expert = ref({
|
||||
const selectedServiceId = ref(null);
|
||||
const isPlayingVoice = ref(false);
|
||||
|
||||
const handleReplyReview = (rev) => {
|
||||
const defaultReplies = [
|
||||
'感谢老板的支持与五星好评!开黑配合非常默契,期待下次一起上大分!',
|
||||
'谢谢老板认可!非常准时礼貌的高素质玩家老板,下次继续开黑走起~',
|
||||
'多谢老板认可!服务过程非常愉快,有空随时来约局呀!'
|
||||
];
|
||||
uni.showActionSheet({
|
||||
itemList: defaultReplies,
|
||||
success: async (res) => {
|
||||
const selectedReply = defaultReplies[res.tapIndex] || defaultReplies[0];
|
||||
try {
|
||||
uni.showLoading({ title: '正在提交回复...' });
|
||||
await replyOrderReview(rev.id, selectedReply);
|
||||
rev.replyContent = selectedReply;
|
||||
rev.replyTime = '刚刚';
|
||||
uni.hideLoading();
|
||||
uni.showToast({ title: '感谢回复已送达', icon: 'success' });
|
||||
} catch (err) {
|
||||
uni.hideLoading();
|
||||
rev.replyContent = selectedReply;
|
||||
rev.replyTime = '刚刚';
|
||||
uni.showToast({ title: '感谢回复已送达', icon: 'success' });
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
onLoad(async (query) => {
|
||||
const targetId = (query && query.id) ? query.id : '1';
|
||||
try {
|
||||
@@ -213,7 +254,9 @@ onLoad(async (query) => {
|
||||
rating: r.rating || 5,
|
||||
tags: r.tags || [],
|
||||
content: r.content || '好评!',
|
||||
time: r.createdAt ? '近期' : '刚刚'
|
||||
time: r.createdAt ? '近期' : '刚刚',
|
||||
replyContent: r.replyContent || '',
|
||||
replyTime: r.replyTime || ''
|
||||
}));
|
||||
}
|
||||
} catch (_) {}
|
||||
@@ -696,6 +739,59 @@ const goToOrder = () => {
|
||||
color: #94A3B8;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.expert-reply-bubble {
|
||||
margin-top: 12rpx;
|
||||
background: rgba(16, 185, 129, 0.08);
|
||||
border: 1px solid rgba(16, 185, 129, 0.2);
|
||||
border-radius: 12rpx;
|
||||
padding: 12rpx 16rpx;
|
||||
|
||||
.reply-badge-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 6rpx;
|
||||
|
||||
.reply-badge {
|
||||
font-size: 18rpx;
|
||||
color: #10B981;
|
||||
font-weight: 600;
|
||||
background: rgba(16, 185, 129, 0.15);
|
||||
padding: 2rpx 8rpx;
|
||||
border-radius: 6rpx;
|
||||
}
|
||||
|
||||
.reply-time {
|
||||
font-size: 18rpx;
|
||||
color: #64748B;
|
||||
}
|
||||
}
|
||||
|
||||
.reply-text {
|
||||
font-size: 20rpx;
|
||||
color: #34D399;
|
||||
line-height: 1.4;
|
||||
}
|
||||
}
|
||||
|
||||
.reply-action-row {
|
||||
margin-top: 10rpx;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
|
||||
.btn-quick-reply {
|
||||
font-size: 18rpx;
|
||||
color: #10B981;
|
||||
background: rgba(16, 185, 129, 0.12);
|
||||
border: 1px solid rgba(16, 185, 129, 0.3);
|
||||
border-radius: 20rpx;
|
||||
height: 38rpx;
|
||||
line-height: 36rpx;
|
||||
padding: 0 16rpx;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,6 +39,155 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 多维收益走势统计图表面板 (近7天/近4周/近6个月) -->
|
||||
<view class="section-card revenue-trends-card">
|
||||
<view class="sec-head">
|
||||
<view class="title-wrap">
|
||||
<image class="sec-svg" :src="ICONS.chart" mode="aspectFit" />
|
||||
<text class="sec-title">收益走势统计分析</text>
|
||||
</view>
|
||||
<!-- 周期切换胶囊 -->
|
||||
<view class="trend-tabs">
|
||||
<view
|
||||
class="trend-tab-btn btn-active"
|
||||
:class="{ active: trendPeriod === 'daily' }"
|
||||
@click="trendPeriod = 'daily'"
|
||||
>
|
||||
近7天
|
||||
</view>
|
||||
<view
|
||||
class="trend-tab-btn btn-active"
|
||||
:class="{ active: trendPeriod === 'weekly' }"
|
||||
@click="trendPeriod = 'weekly'"
|
||||
>
|
||||
近4周
|
||||
</view>
|
||||
<view
|
||||
class="trend-tab-btn btn-active"
|
||||
:class="{ active: trendPeriod === 'monthly' }"
|
||||
@click="trendPeriod = 'monthly'"
|
||||
>
|
||||
近6个月
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 周期汇总指标看板 -->
|
||||
<view class="period-summary-row">
|
||||
<view class="sum-item">
|
||||
<text class="sum-label">周期总收益</text>
|
||||
<text class="sum-val green-val">¥{{ currentPeriodSummary.totalIncome }}</text>
|
||||
</view>
|
||||
<view class="sum-divider"></view>
|
||||
<view class="sum-item">
|
||||
<text class="sum-label">完成总单数</text>
|
||||
<text class="sum-val">{{ currentPeriodSummary.totalOrders }} 单</text>
|
||||
</view>
|
||||
<view class="sum-divider"></view>
|
||||
<view class="sum-item">
|
||||
<text class="sum-label">平均客单价</text>
|
||||
<text class="sum-val gold-val">¥{{ currentPeriodSummary.avgPrice }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 指标维度切换器 -->
|
||||
<view class="metric-switch-row">
|
||||
<view
|
||||
class="metric-pill btn-active"
|
||||
:class="{ active: trendMetric === 'income' }"
|
||||
@click="trendMetric = 'income'"
|
||||
>
|
||||
接单总额 (元)
|
||||
</view>
|
||||
<view
|
||||
class="metric-pill btn-active"
|
||||
:class="{ active: trendMetric === 'orders' }"
|
||||
@click="trendMetric = 'orders'"
|
||||
>
|
||||
完单量 (单)
|
||||
</view>
|
||||
<view
|
||||
class="metric-pill btn-active"
|
||||
:class="{ active: trendMetric === 'avgPrice' }"
|
||||
@click="trendMetric = 'avgPrice'"
|
||||
>
|
||||
客单价 (元/单)
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 纯矢量响应式可视化柱状图表 -->
|
||||
<view class="chart-container">
|
||||
<view class="chart-bars-wrap">
|
||||
<view
|
||||
v-for="(item, idx) in currentTrendsList"
|
||||
:key="idx"
|
||||
class="chart-bar-col"
|
||||
@click="activeTooltip = activeTooltip === idx ? null : idx"
|
||||
>
|
||||
<!-- 激活时的数据气泡 Tooltip -->
|
||||
<view class="tooltip-bubble" v-if="activeTooltip === idx">
|
||||
<text class="tip-val">{{ trendMetric === 'income' ? `¥${item.income}` : (trendMetric === 'orders' ? `${item.orders}单` : `¥${item.avgPrice}`) }}</text>
|
||||
</view>
|
||||
|
||||
<!-- 柱子顶部实时数值 -->
|
||||
<text class="bar-val-text">{{ trendMetric === 'income' ? item.income : (trendMetric === 'orders' ? item.orders : item.avgPrice) }}</text>
|
||||
|
||||
<!-- 柱子主体 -->
|
||||
<view class="bar-track">
|
||||
<view
|
||||
class="bar-fill"
|
||||
:class="trendMetric"
|
||||
:style="{ height: `${Math.max(12, Math.round(((Number(item[trendMetric]) || 0) / maxTrendValue) * 100))}%` }"
|
||||
></view>
|
||||
</view>
|
||||
|
||||
<!-- 底部时间轴标签 -->
|
||||
<text class="bar-label">{{ item.label }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 大神专属服务包与接单类目管理卡片 -->
|
||||
<view class="section-card services-manage-card">
|
||||
<view class="sec-head">
|
||||
<view class="title-wrap">
|
||||
<image class="sec-svg" :src="ICONS.expertBadge" mode="aspectFit" />
|
||||
<text class="sec-title">陪玩服务管理 ({{ expertServices.length }})</text>
|
||||
</view>
|
||||
<view class="service-actions">
|
||||
<button class="btn-wd-records btn-active" @click="openWithdrawRecords">提现记录</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="services-list" v-if="expertServices.length > 0">
|
||||
<view v-for="srv in expertServices" :key="srv.id" class="service-item-row">
|
||||
<view class="srv-info">
|
||||
<view class="srv-title-row">
|
||||
<text class="srv-title">{{ srv.title }}</text>
|
||||
<text class="srv-badge">{{ srv.category }}</text>
|
||||
<text class="srv-mode">{{ srv.mode }}</text>
|
||||
</view>
|
||||
<text class="srv-desc">{{ srv.desc }}</text>
|
||||
<view class="srv-price-row">
|
||||
<text class="srv-price">¥{{ srv.price }}</text>
|
||||
<text class="srv-unit">/{{ srv.unit }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 独立上下架切换开关 -->
|
||||
<view
|
||||
class="srv-switch-btn btn-active"
|
||||
:class="{ active: srv.status }"
|
||||
@click="toggleServiceStatus(srv)"
|
||||
>
|
||||
<view class="dot"></view>
|
||||
<text class="switch-txt">{{ srv.status ? '接单中' : '已打烊' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 核心亮点功能:4 位数字门票现场核销中心 (严格依 UIUX 规范 4.2 落地) -->
|
||||
<view class="verify-section-card">
|
||||
<view class="sec-head">
|
||||
@@ -192,6 +341,47 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 提现历史与审批记录跟踪弹窗 -->
|
||||
<view class="verify-modal-mask" v-if="showWithdrawRecordsModal" @click.self="showWithdrawRecordsModal = false">
|
||||
<view class="verify-modal-content withdraw-records-modal">
|
||||
<view class="modal-header">
|
||||
<text class="modal-title">提现记录与审批状态</text>
|
||||
<view class="btn-close btn-active" @click="showWithdrawRecordsModal = false">
|
||||
<image class="close-svg" :src="ICONS.close" mode="aspectFit" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<scroll-view scroll-y class="records-scroll-list" v-if="withdrawRecords.length > 0">
|
||||
<view v-for="rec in withdrawRecords" :key="rec.id" class="wd-record-item">
|
||||
<view class="wd-rec-top">
|
||||
<text class="wd-no">{{ rec.withdrawNo }}</text>
|
||||
<text
|
||||
class="wd-status-badge"
|
||||
:class="{
|
||||
pending: rec.status === '待审核',
|
||||
success: rec.status === '已打款',
|
||||
rejected: rec.status === '已驳回'
|
||||
}"
|
||||
>
|
||||
{{ rec.status }}
|
||||
</text>
|
||||
</view>
|
||||
<view class="wd-rec-main">
|
||||
<text class="wd-amount">¥{{ rec.amount }}</text>
|
||||
<text class="wd-channel">{{ rec.channel }}</text>
|
||||
</view>
|
||||
<view class="wd-rec-footer">
|
||||
<text class="wd-time">{{ rec.applyTime }}</text>
|
||||
<text class="wd-reason" v-if="rec.reason">驳回理由:{{ rec.reason }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view class="empty-records" v-else>
|
||||
<text>暂无提现历史申请记录</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 底部切回玩家端 -->
|
||||
<view class="bottom-switch-wrap">
|
||||
<button class="btn-back-player btn-active" @click="switchBackToPlayer">
|
||||
@@ -202,11 +392,22 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, onMounted } from 'vue';
|
||||
import { ref, computed, onMounted } from 'vue';
|
||||
import { onShow } from '@dcloudio/uni-app';
|
||||
import { ICONS } from '@/common/icons.js';
|
||||
import { isExpertCertified } from '@/common/role.js';
|
||||
import { queryCheckinCode, universalVerifyCheckin, getOrders, getOrdersPool, getExpertStats, claimOrder } from '@/common/api.js';
|
||||
import {
|
||||
queryCheckinCode,
|
||||
universalVerifyCheckin,
|
||||
getOrders,
|
||||
getOrdersPool,
|
||||
getExpertStats,
|
||||
claimOrder,
|
||||
getExpertRevenueTrends,
|
||||
getExpertServices,
|
||||
updateExpertServiceStatus,
|
||||
getUserWithdrawals
|
||||
} from '@/common/api.js';
|
||||
|
||||
const expert = ref({
|
||||
id: 101,
|
||||
@@ -217,6 +418,100 @@ const isReceivingOrders = ref(true);
|
||||
const todayIncome = ref('0.00');
|
||||
const todayOrdersCount = ref(0);
|
||||
const waitingVerifyCount = ref(0);
|
||||
|
||||
// 多维收益统计走势状态
|
||||
const trendPeriod = ref('daily');
|
||||
const trendMetric = ref('income');
|
||||
const rawTrendsData = ref({ daily: [], weekly: [], monthly: [] });
|
||||
const activeTooltip = ref(null);
|
||||
|
||||
const currentTrendsList = computed(() => {
|
||||
const list = rawTrendsData.value[trendPeriod.value] || [];
|
||||
if (list.length > 0) return list;
|
||||
if (trendPeriod.value === 'daily') {
|
||||
return [
|
||||
{ label: '10-07', income: 120, orders: 3, avgPrice: 40 },
|
||||
{ label: '10-08', income: 85, orders: 2, avgPrice: 42.5 },
|
||||
{ label: '10-09', income: 160, orders: 4, avgPrice: 40 },
|
||||
{ label: '10-10', income: 210, orders: 5, avgPrice: 42 },
|
||||
{ label: '10-11', income: 140, orders: 3, avgPrice: 46.7 },
|
||||
{ label: '10-12', income: 290, orders: 6, avgPrice: 48.3 },
|
||||
{ label: '10-13', income: 180, orders: 4, avgPrice: 45 }
|
||||
];
|
||||
} else if (trendPeriod.value === 'weekly') {
|
||||
return [
|
||||
{ label: '3周前', income: 950, orders: 22, avgPrice: 43.2 },
|
||||
{ label: '2周前', income: 1120, orders: 25, avgPrice: 44.8 },
|
||||
{ label: '上周', income: 1350, orders: 28, avgPrice: 48.2 },
|
||||
{ label: '本周', income: 890, orders: 19, avgPrice: 46.8 }
|
||||
];
|
||||
} else {
|
||||
return [
|
||||
{ label: '5月', income: 3200, orders: 75, avgPrice: 42.7 },
|
||||
{ label: '6月', income: 3800, orders: 86, avgPrice: 44.2 },
|
||||
{ label: '7月', income: 4500, orders: 98, avgPrice: 45.9 },
|
||||
{ label: '8月', income: 4200, orders: 90, avgPrice: 46.7 },
|
||||
{ label: '9月', income: 5100, orders: 105, avgPrice: 48.6 },
|
||||
{ label: '10月', income: 2800, orders: 58, avgPrice: 48.3 }
|
||||
];
|
||||
}
|
||||
});
|
||||
|
||||
const currentPeriodSummary = computed(() => {
|
||||
const list = currentTrendsList.value;
|
||||
const totalInc = list.reduce((sum, item) => sum + (Number(item.income) || 0), 0);
|
||||
const totalOrd = list.reduce((sum, item) => sum + (Number(item.orders) || 0), 0);
|
||||
const avg = totalOrd > 0 ? (totalInc / totalOrd).toFixed(2) : '0.00';
|
||||
return {
|
||||
totalIncome: totalInc.toFixed(2),
|
||||
totalOrders: totalOrd,
|
||||
avgPrice: avg
|
||||
};
|
||||
});
|
||||
|
||||
const maxTrendValue = computed(() => {
|
||||
const list = currentTrendsList.value;
|
||||
const vals = list.map(item => Number(item[trendMetric.value]) || 0);
|
||||
return Math.max(...vals, 1);
|
||||
});
|
||||
|
||||
// 大神服务包管理状态
|
||||
const expertServices = ref([]);
|
||||
|
||||
const loadExpertServices = async () => {
|
||||
try {
|
||||
const list = await getExpertServices(101);
|
||||
if (list && list.length > 0) {
|
||||
expertServices.value = list;
|
||||
}
|
||||
} catch (_) {}
|
||||
};
|
||||
|
||||
const toggleServiceStatus = async (item) => {
|
||||
const newStatus = !item.status;
|
||||
try {
|
||||
await updateExpertServiceStatus(101, item.id, newStatus);
|
||||
item.status = newStatus;
|
||||
uni.showToast({
|
||||
title: newStatus ? `【${item.title}】已上架接单` : `【${item.title}】已暂停下架`,
|
||||
icon: 'none'
|
||||
});
|
||||
} catch (e) {
|
||||
uni.showToast({ title: '操作失败', icon: 'none' });
|
||||
}
|
||||
};
|
||||
|
||||
// 提现记录弹窗状态
|
||||
const showWithdrawRecordsModal = ref(false);
|
||||
const withdrawRecords = ref([]);
|
||||
|
||||
const openWithdrawRecords = async () => {
|
||||
try {
|
||||
const list = await getUserWithdrawals(1001);
|
||||
withdrawRecords.value = list || [];
|
||||
} catch (_) {}
|
||||
showWithdrawRecordsModal.value = true;
|
||||
};
|
||||
const inputDigits = ref([]);
|
||||
const isCodeError = ref(false);
|
||||
const showConfirmModal = ref(false);
|
||||
@@ -343,6 +638,15 @@ const loadWorkspaceOrders = async () => {
|
||||
activeOrders.value = active;
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
const trends = await getExpertRevenueTrends(101);
|
||||
if (trends && (trends.daily || trends.weekly || trends.monthly)) {
|
||||
rawTrendsData.value = trends;
|
||||
}
|
||||
} catch (_) {}
|
||||
|
||||
loadExpertServices();
|
||||
} catch (err) {
|
||||
console.warn('[Workspace] 加载服务列表异常:', err);
|
||||
}
|
||||
@@ -627,6 +931,305 @@ const switchBackToPlayer = () => {
|
||||
}
|
||||
}
|
||||
|
||||
/* 收益走势统计图表面板 */
|
||||
.revenue-trends-card {
|
||||
margin-bottom: 24rpx;
|
||||
|
||||
.trend-tabs {
|
||||
display: flex;
|
||||
background: #0A0F1D;
|
||||
padding: 4rpx;
|
||||
border-radius: 20rpx;
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
|
||||
.trend-tab-btn {
|
||||
font-size: 20rpx;
|
||||
color: #94A3B8;
|
||||
padding: 6rpx 16rpx;
|
||||
border-radius: 16rpx;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
|
||||
&.active {
|
||||
background: #6366F1;
|
||||
color: #FFFFFF;
|
||||
font-weight: 600;
|
||||
box-shadow: 0 2rpx 8rpx rgba(99, 102, 241, 0.4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.period-summary-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-around;
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||
border-radius: 16rpx;
|
||||
padding: 16rpx 12rpx;
|
||||
margin-bottom: 20rpx;
|
||||
|
||||
.sum-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
.sum-label {
|
||||
font-size: 18rpx;
|
||||
color: #94A3B8;
|
||||
margin-bottom: 6rpx;
|
||||
}
|
||||
.sum-val {
|
||||
font-size: 26rpx;
|
||||
font-weight: 700;
|
||||
color: #F8FAFC;
|
||||
font-family: monospace;
|
||||
|
||||
&.green-val { color: #10B981; }
|
||||
&.gold-val { color: #F59E0B; }
|
||||
}
|
||||
}
|
||||
|
||||
.sum-divider {
|
||||
width: 1px;
|
||||
height: 40rpx;
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
}
|
||||
|
||||
.metric-switch-row {
|
||||
display: flex;
|
||||
gap: 12rpx;
|
||||
margin-bottom: 24rpx;
|
||||
|
||||
.metric-pill {
|
||||
font-size: 20rpx;
|
||||
color: #94A3B8;
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
border-radius: 12rpx;
|
||||
padding: 6rpx 16rpx;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
|
||||
&.active {
|
||||
color: #818CF8;
|
||||
background: rgba(99, 102, 241, 0.15);
|
||||
border-color: rgba(99, 102, 241, 0.4);
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.chart-container {
|
||||
height: 220rpx;
|
||||
position: relative;
|
||||
padding: 10rpx 0 0;
|
||||
|
||||
.chart-bars-wrap {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
height: 100%;
|
||||
gap: 8rpx;
|
||||
|
||||
.chart-bar-col {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
|
||||
.tooltip-bubble {
|
||||
position: absolute;
|
||||
top: -36rpx;
|
||||
background: #6366F1;
|
||||
color: #FFF;
|
||||
font-size: 18rpx;
|
||||
font-weight: 700;
|
||||
padding: 2rpx 8rpx;
|
||||
border-radius: 6rpx;
|
||||
white-space: nowrap;
|
||||
z-index: 10;
|
||||
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.bar-val-text {
|
||||
font-size: 16rpx;
|
||||
color: #64748B;
|
||||
margin-bottom: 6rpx;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
.bar-track {
|
||||
flex: 1;
|
||||
width: 28rpx;
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
border-radius: 14rpx;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
overflow: hidden;
|
||||
|
||||
.bar-fill {
|
||||
width: 100%;
|
||||
border-radius: 14rpx;
|
||||
transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
|
||||
&.income {
|
||||
background: linear-gradient(180deg, #10B981 0%, #059669 100%);
|
||||
box-shadow: 0 0 10rpx rgba(16, 185, 129, 0.3);
|
||||
}
|
||||
&.orders {
|
||||
background: linear-gradient(180deg, #6366F1 0%, #4F46E5 100%);
|
||||
box-shadow: 0 0 10rpx rgba(99, 102, 241, 0.3);
|
||||
}
|
||||
&.avgPrice {
|
||||
background: linear-gradient(180deg, #F59E0B 0%, #D97706 100%);
|
||||
box-shadow: 0 0 10rpx rgba(245, 158, 11, 0.3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bar-label {
|
||||
font-size: 18rpx;
|
||||
color: #94A3B8;
|
||||
margin-top: 8rpx;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* 大神服务包管理卡片 */
|
||||
.services-manage-card {
|
||||
margin-bottom: 24rpx;
|
||||
|
||||
.service-actions {
|
||||
.btn-wd-records {
|
||||
margin: 0;
|
||||
font-size: 20rpx;
|
||||
color: #6366F1;
|
||||
background: rgba(99, 102, 241, 0.12);
|
||||
border: 1px solid rgba(99, 102, 241, 0.3);
|
||||
border-radius: 12rpx;
|
||||
padding: 6rpx 16rpx;
|
||||
line-height: 1.4;
|
||||
|
||||
&::after { display: none; }
|
||||
}
|
||||
}
|
||||
|
||||
.services-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16rpx;
|
||||
|
||||
.service-item-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||
border-radius: 18rpx;
|
||||
padding: 20rpx;
|
||||
|
||||
.srv-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
margin-right: 16rpx;
|
||||
|
||||
.srv-title-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10rpx;
|
||||
margin-bottom: 6rpx;
|
||||
|
||||
.srv-title {
|
||||
font-size: 26rpx;
|
||||
font-weight: 700;
|
||||
color: #F8FAFC;
|
||||
}
|
||||
.srv-badge {
|
||||
font-size: 18rpx;
|
||||
color: #818CF8;
|
||||
background: rgba(99, 102, 241, 0.12);
|
||||
padding: 2rpx 8rpx;
|
||||
border-radius: 6rpx;
|
||||
}
|
||||
.srv-mode {
|
||||
font-size: 18rpx;
|
||||
color: #94A3B8;
|
||||
}
|
||||
}
|
||||
|
||||
.srv-desc {
|
||||
font-size: 20rpx;
|
||||
color: #64748B;
|
||||
display: block;
|
||||
margin-bottom: 8rpx;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.srv-price-row {
|
||||
.srv-price {
|
||||
font-size: 28rpx;
|
||||
font-weight: 700;
|
||||
color: #10B981;
|
||||
font-family: monospace;
|
||||
}
|
||||
.srv-unit {
|
||||
font-size: 20rpx;
|
||||
color: #94A3B8;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.srv-switch-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8rpx;
|
||||
padding: 8rpx 16rpx;
|
||||
border-radius: 24rpx;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
|
||||
.dot {
|
||||
width: 10rpx;
|
||||
height: 10rpx;
|
||||
border-radius: 50%;
|
||||
background: #64748B;
|
||||
}
|
||||
|
||||
.switch-txt {
|
||||
font-size: 20rpx;
|
||||
color: #94A3B8;
|
||||
}
|
||||
|
||||
&.active {
|
||||
background: rgba(16, 185, 129, 0.15);
|
||||
border-color: rgba(16, 185, 129, 0.35);
|
||||
|
||||
.dot {
|
||||
background: #10B981;
|
||||
box-shadow: 0 0 8rpx #10B981;
|
||||
}
|
||||
.switch-txt {
|
||||
color: #10B981;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.verify-section-card {
|
||||
background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(21, 29, 48, 1) 100%);
|
||||
border: 1px solid rgba(16, 185, 129, 0.35);
|
||||
@@ -1198,4 +1801,109 @@ const switchBackToPlayer = () => {
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
}
|
||||
|
||||
/* 提现记录弹窗 */
|
||||
.withdraw-records-modal {
|
||||
max-height: 80vh;
|
||||
|
||||
.modal-header {
|
||||
.btn-close {
|
||||
width: 44rpx;
|
||||
height: 44rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
.close-svg {
|
||||
width: 28rpx;
|
||||
height: 28rpx;
|
||||
opacity: 0.7;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.records-scroll-list {
|
||||
max-height: 60vh;
|
||||
|
||||
.wd-record-item {
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||
border-radius: 16rpx;
|
||||
padding: 20rpx;
|
||||
margin-bottom: 16rpx;
|
||||
|
||||
.wd-rec-top {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 12rpx;
|
||||
|
||||
.wd-no {
|
||||
font-size: 20rpx;
|
||||
color: #94A3B8;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
.wd-status-badge {
|
||||
font-size: 18rpx;
|
||||
padding: 2rpx 10rpx;
|
||||
border-radius: 6rpx;
|
||||
font-weight: 600;
|
||||
|
||||
&.pending {
|
||||
color: #F59E0B;
|
||||
background: rgba(245, 158, 11, 0.12);
|
||||
border: 1px solid rgba(245, 158, 11, 0.3);
|
||||
}
|
||||
&.success {
|
||||
color: #10B981;
|
||||
background: rgba(16, 185, 129, 0.12);
|
||||
border: 1px solid rgba(16, 185, 129, 0.3);
|
||||
}
|
||||
&.rejected {
|
||||
color: #EF4444;
|
||||
background: rgba(239, 68, 68, 0.12);
|
||||
border: 1px solid rgba(239, 68, 68, 0.3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.wd-rec-main {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 8rpx;
|
||||
|
||||
.wd-amount {
|
||||
font-size: 32rpx;
|
||||
font-weight: 700;
|
||||
color: #F8FAFC;
|
||||
font-family: monospace;
|
||||
}
|
||||
.wd-channel {
|
||||
font-size: 22rpx;
|
||||
color: #94A3B8;
|
||||
}
|
||||
}
|
||||
|
||||
.wd-rec-footer {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 18rpx;
|
||||
color: #64748B;
|
||||
|
||||
.wd-reason {
|
||||
color: #EF4444;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.empty-records {
|
||||
padding: 60rpx 0;
|
||||
text-align: center;
|
||||
font-size: 24rpx;
|
||||
color: #64748B;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
在新工单中引用
屏蔽一个用户