diff --git a/db/migrations/20261130_clear_service_floor_fee.sql b/db/migrations/20261130_clear_service_floor_fee.sql
new file mode 100644
index 0000000..ed45406
--- /dev/null
+++ b/db/migrations/20261130_clear_service_floor_fee.sql
@@ -0,0 +1,6 @@
+-- 2026-11-30: 清除所有商品的步梯搬运收费配置,步梯/电梯仅作为订单标签展示给师傅,不再加收楼层搬运费
+UPDATE `fa_service`
+SET `floor_fee` = 0.00,
+ `free_floor` = 0
+WHERE `floor_fee` <> 0.00
+ OR `free_floor` <> 0;
diff --git a/db/schema_phase20_finance_config.sql b/db/schema_phase20_finance_config.sql
index a71b17e..7b72e9f 100644
--- a/db/schema_phase20_finance_config.sql
+++ b/db/schema_phase20_finance_config.sql
@@ -29,11 +29,11 @@ INSERT INTO `fa_finance_config` (`name`, `group`, `title`, `value`, `remark`, `u
('withdraw_enabled', 'withdraw', '提现功能总开关', '1', '1=正常开放提现, 0=暂停提现维护', UNIX_TIMESTAMP()),
('withdraw_close_tip', 'withdraw', '暂停提现提示语', '系统正在进行财务结算维护,请稍后再发起提现', '关闭提现开关时向师傅端展示的提示文案', UNIX_TIMESTAMP()),
('withdraw_channels', 'withdraw', '开放提现渠道', 'wechat', 'wechat=微信零钱(官方商家转账), bank=银行储蓄卡;小程序合规建议默认仅开启wechat', UNIX_TIMESTAMP()),
-('withdraw_require_realname', 'withdraw', '强制实名认证方可提现', '1', '1=必须通过师傅实名认证, 0=不强制(注:微信单笔>=2000元强制要求实名)', UNIX_TIMESTAMP()),
-('withdraw_min_amount', 'withdraw', '单笔最低提现金额(元)', '10.00', '微信新版商家转账要求扣除手续费后实际到账净额不低于0.10元', UNIX_TIMESTAMP()),
+('withdraw_require_realname', 'withdraw', '强制实名认证方可提现', '0', '1=必须通过师傅实名认证, 0=不强制(注:微信单笔>=2000元强制要求实名)', UNIX_TIMESTAMP()),
+('withdraw_min_amount', 'withdraw', '单笔最低提现金额(元)', '0.10', '微信新版商家转账要求扣除手续费后实际到账净额不低于0.10元', UNIX_TIMESTAMP()),
('withdraw_max_amount', 'withdraw', '单笔最高提现金额(元)', '200.00', '须与微信商户后台商家转账单笔限额一致(微信官方硬上限20000元)', UNIX_TIMESTAMP()),
('withdraw_daily_amount', 'withdraw', '单人单日累计提现上限(元)', '200.00', '0表示不限;须不超过微信商户单用户日收款限额', UNIX_TIMESTAMP()),
-('withdraw_daily_count', 'withdraw', '单人单日最多提现次数', '3', '0表示不限制每日提现申请笔数', UNIX_TIMESTAMP()),
+('withdraw_daily_count', 'withdraw', '单人单日最多提现次数', '0', '0表示不限制每日提现申请笔数', UNIX_TIMESTAMP()),
('withdraw_allow_weekdays', 'withdraw', '允许提现周期(星期)', '1,2,3,4,5,6,7', '1~7代表周一至周日,逗号分隔', UNIX_TIMESTAMP()),
('withdraw_time_start', 'withdraw', '每日允许提现开始时间', '00:00', '格式 HH:mm', UNIX_TIMESTAMP()),
('withdraw_time_end', 'withdraw', '每日允许提现结束时间', '23:59', '格式 HH:mm', UNIX_TIMESTAMP()),
@@ -43,8 +43,9 @@ INSERT INTO `fa_finance_config` (`name`, `group`, `title`, `value`, `remark`, `u
('withdraw_fee_min', 'withdraw', '单笔最低保底手续费(元)', '0.00', 'percent模式下单笔手续费下限,0表示不保底', UNIX_TIMESTAMP()),
('withdraw_fee_max', 'withdraw', '单笔最高封顶手续费(元)', '0.00', 'percent模式下单笔手续费上限,0表示不封顶', UNIX_TIMESTAMP()),
('withdraw_transfer_mode', 'withdraw', '微信渠道打款执行方式', 'wx_mch_transfer', 'wx_mch_transfer=微信APIv3新版商家转账(小程序确认收款), offline_manual=线下打款人工标记', UNIX_TIMESTAMP()),
-('withdraw_audit_mode', 'withdraw', '提现审核与出款模式', 'manual', 'manual=全部经财务人工审核后打款, auto_small=小额免审自动发起微信商家转账', UNIX_TIMESTAMP()),
-('withdraw_auto_max_amount', 'withdraw', '小额免审自动转账上限(元)', '50.00', 'auto_small模式下单笔不超过该金额且为微信渠道时自动发起转账', UNIX_TIMESTAMP()),
+('withdraw_audit_mode', 'withdraw', '提现审核与出款模式', 'manual', 'manual=全部经财务人工审核后打款', UNIX_TIMESTAMP()),
+('withdraw_audit_sla', 'withdraw', '预计审核处理时效', '24小时内', '向师傅展示的预计财务审核处理时长说明(如:24小时内、1个工作日内)', UNIX_TIMESTAMP()),
+('withdraw_auto_max_amount', 'withdraw', '小额免审自动转账上限(元)', '0.00', '已停用小额免审,固定为0.00(所有金额均需后台审核)', UNIX_TIMESTAMP()),
('wx_transfer_scene_id', 'withdraw', '微信商家转账场景ID', '1005', '微信商户平台已开通的转账场景ID,1005代表佣金报酬', UNIX_TIMESTAMP()),
('wx_recv_perception', 'withdraw', '微信收款用户零钱感知', '劳务报酬', '须与微信商户后台场景1005报备感知文案一致(如:劳务报酬)', UNIX_TIMESTAMP()),
('wx_job_type', 'withdraw', '微信场景报备-岗位类型', '上门安装维修师傅', '微信V3接口必填报备项,不超过32个字符', UNIX_TIMESTAMP()),
diff --git a/db/update_withdraw_rules_20261129.sql b/db/update_withdraw_rules_20261129.sql
new file mode 100644
index 0000000..3bdf215
--- /dev/null
+++ b/db/update_withdraw_rules_20261129.sql
@@ -0,0 +1,21 @@
+-- 对齐微信小程序官方审核规范:
+-- 1. 不设人为起提门槛与额外实名/次数限制(仅遵守微信零钱最小 ¥0.10、单笔/单日上限 ¥200.00)
+-- 2. 所有金额提现均需后台财务审核通过后发起微信商家转账(关闭小额免审)
+-- 3. 免提现手续费
+SET NAMES utf8mb4;
+
+UPDATE `fa_finance_config` SET `value` = '0', `updatetime` = UNIX_TIMESTAMP() WHERE `name` = 'withdraw_require_realname';
+UPDATE `fa_finance_config` SET `value` = '0.10', `updatetime` = UNIX_TIMESTAMP() WHERE `name` = 'withdraw_min_amount';
+UPDATE `fa_finance_config` SET `value` = '200.00', `updatetime` = UNIX_TIMESTAMP() WHERE `name` = 'withdraw_max_amount';
+UPDATE `fa_finance_config` SET `value` = '200.00', `updatetime` = UNIX_TIMESTAMP() WHERE `name` = 'withdraw_daily_amount';
+UPDATE `fa_finance_config` SET `value` = '0', `updatetime` = UNIX_TIMESTAMP() WHERE `name` = 'withdraw_daily_count';
+UPDATE `fa_finance_config` SET `value` = 'free', `updatetime` = UNIX_TIMESTAMP() WHERE `name` = 'withdraw_fee_mode';
+UPDATE `fa_finance_config` SET `value` = 'manual', `updatetime` = UNIX_TIMESTAMP() WHERE `name` = 'withdraw_audit_mode';
+UPDATE `fa_finance_config` SET `value` = '0.00', `updatetime` = UNIX_TIMESTAMP() WHERE `name` = 'withdraw_auto_max_amount';
+
+INSERT INTO `fa_finance_config` (`name`, `group`, `title`, `value`, `remark`, `updatetime`)
+VALUES ('withdraw_audit_sla', 'withdraw', '预计审核处理时效', '24小时内', '向师傅展示的预计财务审核处理时长说明(如:24小时内、1个工作日内)', UNIX_TIMESTAMP())
+ON DUPLICATE KEY UPDATE
+ `title` = VALUES(`title`),
+ `remark` = VALUES(`remark`),
+ `updatetime` = VALUES(`updatetime`);
diff --git a/server/application/admin/controller/Service.php b/server/application/admin/controller/Service.php
index 1c4e6e3..1c41959 100644
--- a/server/application/admin/controller/Service.php
+++ b/server/application/admin/controller/Service.php
@@ -229,30 +229,12 @@ class Service extends Backend
}
$this->error(__('Parameter %s can not be empty', ''));
}
- $this->view->assign(['floorFee' => '10.00', 'freeFloor' => 2]);
return $this->view->fetch();
}
private function normalizeFloorFees(array $params)
{
- $mode = $this->request->post('floor_fee_mode', '');
- if ($mode !== 'free' && $mode !== 'paid') {
- return $params;
- }
- $fee = $mode === 'free' ? 0.0 : filter_var($params['floor_fee'] ?? null, FILTER_VALIDATE_FLOAT);
- if ($fee === false || $fee < 0 || $fee > 99999999.99 || round($fee, 2) !== $fee) {
- throw new ValidateException('每层费用须为 0 元或正数,且最多保留两位小数');
- }
- if ($fee === 0.0) {
- return array_replace($params, ['floor_fee' => 0, 'free_floor' => 0]);
- }
- $freeFloors = filter_var($params['free_floor'] ?? null, FILTER_VALIDATE_INT, [
- 'options' => ['min_range' => 0, 'max_range' => 2147483647],
- ]);
- if ($freeFloors === false) {
- throw new ValidateException('免费楼层数须为非负整数');
- }
- return array_replace($params, ['floor_fee' => $fee, 'free_floor' => $freeFloors]);
+ return array_replace($params, ['floor_fee' => 0, 'free_floor' => 0]);
}
/**
@@ -425,7 +407,6 @@ class Service extends Backend
$this->view->assign("row", $row);
$this->view->assign("catName", $catName);
$this->view->assign("specs", $specs ?: []);
- $this->view->assign(['floorFee' => $row->floor_fee, 'freeFloor' => $row->free_floor]);
return $this->view->fetch();
}
diff --git a/server/application/admin/view/common/meta.html b/server/application/admin/view/common/meta.html
index f2fca45..464033f 100755
--- a/server/application/admin/view/common/meta.html
+++ b/server/application/admin/view/common/meta.html
@@ -14,10 +14,10 @@
{/if}
-
+
-
+
diff --git a/yjyf-master-app/pages/master/detail.vue b/yjyf-master-app/pages/master/detail.vue
index 7c254aa..502b653 100644
--- a/yjyf-master-app/pages/master/detail.vue
+++ b/yjyf-master-app/pages/master/detail.vue
@@ -95,7 +95,7 @@
楼层 {{ order.floor || 1 }} 层
- {{ Number(order.has_elevator) ? '有电梯' : '步梯搬运' }}
+ {{ Number(order.has_elevator) ? '有电梯' : '步梯无电梯' }}
距您 {{ order.distance_km }}km
diff --git a/yjyf-master-app/pages/master/wallet.vue b/yjyf-master-app/pages/master/wallet.vue
index a4cdb32..07b6e8e 100644
--- a/yjyf-master-app/pages/master/wallet.vue
+++ b/yjyf-master-app/pages/master/wallet.vue
@@ -12,16 +12,11 @@
可提现余额(元)
-
-
- {{ heroChannelText }}
-
- {{ formatMoney(income ? income.money : 0) }}
+
+ ¥
+ {{ formatMoney(income ? income.money : 0) }}
+
今日收入
@@ -39,7 +34,7 @@
@@ -60,7 +55,7 @@
点击右侧按钮调起微信确认收款,即刻入账零钱
@@ -68,141 +63,69 @@
-
-
-
+
+
+
+
+ 收支与提现明细
+
+ {{ pendingConfirmList.length }}笔待收款
+ 查看全部流水
+
+
+
+
+
+
+ 客服与帮助
+
+ 规则及到账咨询
+
+
+
+
+
+
+
+
提现规则
-
-
- {{ withdrawEnabled ? '正常开放' : '暂停提现' }}
-
-
+ 暂停提现
-
- {{ withdrawCloseTip }}
-
+ {{ withdrawCloseTip }}
-
-
- {{ item.label }}
- {{ item.value }}
- {{ item.sub }}
+
+
+ {{ idx + 1 }}.
+ {{ item.label }}:{{ item.value }}
+
-
@@ -443,20 +243,16 @@
const navHeight = ref(getNavBarMetrics().totalNavHeight);
const income = ref(null);
- const logs = ref([]);
- const withdrawList = ref([]);
const pendingConfirmList = ref([]);
- const filterType = ref('all');
const showWithdrawDrawer = ref(false);
- const showRuleDetailDrawer = ref(false);
+ const servicePopupVisible = ref(false);
const withdrawAmount = ref('');
const selectedChannel = ref('wechat');
const bankAccount = ref('');
const withdrawing = ref(false);
const confirmingId = ref(0);
- const activeLog = ref(null);
- const activeWithdraw = ref(null);
+ const initialLoading = ref(true);
const ruleLoadFailed = ref(false);
const availMoney = computed(() => Number(income.value?.money || 0));
@@ -472,14 +268,7 @@
const chs = withdrawCfg.value?.channels;
return Array.isArray(chs) && chs.length > 0 ? chs : ['wechat'];
});
- const heroChannelText = computed(() => {
- const chs = withdrawChannels.value;
- if (chs.includes('wechat') && chs.includes('bank')) return '微信零钱 / 银行卡';
- if (chs[0] === 'bank') return '银行储蓄卡到账';
- return '微信零钱到账';
- });
const arrivalDescText = computed(() => withdrawCfg.value?.arrival_desc || '微信零钱(确认收款即到账)');
- const ruleTipText = computed(() => withdrawCfg.value?.rule_tip || '');
function fmtTrimMoney(v) {
const n = Number(v || 0);
@@ -497,77 +286,65 @@
return arr.map(d => map[d]).filter(Boolean).join('、') || '每日';
}
- const ruleGridItems = computed(() => {
+ const plainRuleItems = computed(() => {
const cfg = withdrawCfg.value;
if (!cfg) return [];
- if (Array.isArray(cfg.rule_grid) && cfg.rule_grid.length > 0) {
- return cfg.rule_grid;
- }
- const weekdayLabel = formatWeekdaysLabel(cfg.allow_weekdays);
- const dailyLimitSub = hasDailyAmountLimit.value
- ? `日限 ¥${fmtTrimMoney(cfg.daily_amount)} · 剩 ¥${fmtTrimMoney(todayRemain.value)}`
- : '单日不限累计额度';
- const countMain = hasDailyCountLimit.value ? `每日最多 ${Number(cfg.daily_count)} 次` : '每日不限次数';
- const countSub = hasDailyCountLimit.value ? `今日剩余 ${remainDailyCount.value} 次` : '不限申请笔数';
- const arrivalMain = cfg.transfer_mode === 'wx_mch_transfer'
- ? (cfg.audit_mode === 'auto_small' && Number(cfg.auto_max_amount) > 0 ? '确认收款实时到账' : '审核后实时到账')
- : '财务审核打款';
- const arrivalSub = cfg.transfer_mode === 'wx_mch_transfer'
- ? (cfg.audit_mode === 'auto_small' && Number(cfg.auto_max_amount) > 0
- ? `≤¥${fmtTrimMoney(cfg.auto_max_amount)}免审 · 24h内确认`
- : '转账后24h内确认收款')
- : '财务打款至收款账户';
- return [
- { key: 'amount', label: '可提现额度', value: `¥${fmtTrimMoney(minWithdraw.value)} ~ ¥${fmtTrimMoney(singleLimit.value)}`, sub: dailyLimitSub },
- { key: 'count', label: '每日提现次数', value: countMain, sub: countSub },
- { key: 'time', label: '提现时间', value: `${cfg.time_start || '00:00'} - ${cfg.time_end || '23:59'}`, sub: `${weekdayLabel}开放申请` },
- { key: 'arrival', label: '到账时间', value: arrivalMain, sub: arrivalSub }
+ const amountText = cfg.amount_rule_text || (
+ minWithdraw.value <= 0.1
+ ? '平台不设额外门槛,限额按微信零钱转账规范执行'
+ : (hasDailyAmountLimit.value
+ ? `单笔 ¥${formatMoney(minWithdraw.value)} ~ ¥${formatMoney(singleLimit.value)},每日累计上限 ¥${fmtTrimMoney(cfg.daily_amount)}(今日剩余 ¥${formatMoney(todayRemain.value)})`
+ : `单笔 ¥${formatMoney(minWithdraw.value)} ~ ¥${formatMoney(singleLimit.value)},每日不限累计额度`)
+ );
+ const countText = cfg.daily_count_text || (
+ hasDailyCountLimit.value
+ ? `每日最多 ${Number(cfg.daily_count)} 次(今日剩余 ${remainDailyCount.value} 次)`
+ : '每日不限提现次数'
+ );
+ const timeText = cfg.open_time_text || `${formatWeekdaysLabel(cfg.allow_weekdays)} ${cfg.time_start || '00:00'} - ${cfg.time_end || '23:59'}`;
+ const list = [
+ { key: 'amount', label: '提现额度', value: amountText },
+ { key: 'time', label: '次数与时间', value: `${countText},${timeText} 开放申请` }
];
- });
-
- const ruleFooterSummary = computed(() => {
- const cfg = withdrawCfg.value;
- if (!cfg) return '';
- const parts = [];
- if (cfg.fee_text) parts.push(cfg.fee_text);
- if (cfg.require_realname) {
- parts.push('需完成实名认证');
- } else if (cfg.realname_text) {
- parts.push(cfg.realname_text);
- }
- return parts.join(' · ');
- });
-
- const displayWithdrawRules = computed(() => {
- const cfg = withdrawCfg.value;
- if (!cfg) return [];
if (Array.isArray(cfg.rules) && cfg.rules.length > 0) {
- return cfg.rules;
- }
- const list = [];
- if (cfg.amount_rule_text) {
- list.push({ key: 'amount', label: '可提现额度', value: cfg.amount_rule_text });
- }
- if (cfg.daily_count_text) {
- list.push({ key: 'count', label: '每日提现次数', value: cfg.daily_count_text });
- }
- if (cfg.open_time_text) {
- list.push({ key: 'time', label: '提现时间', value: cfg.open_time_text });
- }
- if (cfg.arrival_time_text || cfg.arrival_desc) {
- list.push({ key: 'arrival', label: '到账时间', value: cfg.arrival_time_text || cfg.arrival_desc });
- }
- if (cfg.fee_text) {
- list.push({ key: 'fee', label: '手续费说明', value: cfg.fee_text });
- }
- if (cfg.realname_text) {
- list.push({ key: 'auth', label: '认证要求', value: cfg.realname_text });
+ list.push(...cfg.rules);
+ } else {
+ if (cfg.fee_text || cfg.arrival_time_text || cfg.arrival_desc) {
+ const parts = [cfg.fee_text, cfg.arrival_time_text || cfg.arrival_desc].filter(Boolean);
+ list.push({ key: 'notice', label: '到账与费用', value: parts.join(';') });
+ }
+ if (cfg.realname_text) {
+ list.push({ key: 'security', label: '安全校验', value: cfg.realname_text });
+ }
}
return list;
});
const drawerWithdrawRules = computed(() => {
- return displayWithdrawRules.value.filter(item => ['count', 'time', 'arrival', 'fee'].includes(item.key));
+ const cfg = withdrawCfg.value;
+ if (!cfg) return [];
+ const amountText = cfg.amount_rule_text || (
+ minWithdraw.value <= 0.1
+ ? '平台不设额外门槛,限额按微信零钱转账规范执行'
+ : (hasDailyAmountLimit.value
+ ? `单笔 ¥${formatMoney(minWithdraw.value)} ~ ¥${formatMoney(singleLimit.value)},每日累计上限 ¥${fmtTrimMoney(cfg.daily_amount)}(今日剩余 ¥${formatMoney(todayRemain.value)})`
+ : `单笔 ¥${formatMoney(minWithdraw.value)} ~ ¥${formatMoney(singleLimit.value)},每日不限累计额度`)
+ );
+ const countText = cfg.daily_count_text || (
+ hasDailyCountLimit.value
+ ? `每日最多 ${Number(cfg.daily_count)} 次(今日剩余 ${remainDailyCount.value} 次)`
+ : '每日不限提现次数'
+ );
+ const timeText = cfg.open_time_text || `${formatWeekdaysLabel(cfg.allow_weekdays)} ${cfg.time_start || '00:00'} - ${cfg.time_end || '23:59'}`;
+ const arrivalText = cfg.arrival_desc || cfg.arrival_time_text || '';
+ const list = [
+ { key: 'amount', label: '提现额度', value: amountText },
+ { key: 'count', label: '每日次数', value: countText },
+ { key: 'time', label: '提现时间', value: timeText }
+ ];
+ if (arrivalText) list.push({ key: 'arrival', label: '到账说明', value: arrivalText });
+ if (cfg.fee_text) list.push({ key: 'fee', label: '手续费', value: cfg.fee_text });
+ return list;
});
const minWithdraw = computed(() => Number(withdrawCfg.value?.min_amount ?? withdrawLimits.value.min_amount ?? 0.1));
@@ -660,47 +437,17 @@
&& (selectedChannel.value !== 'wechat' || feeBreakdown.value.arrive >= 0.1);
});
- const filteredLogs = computed(() => {
- if (filterType.value === 'all') return logs.value;
- return logs.value.filter(l => l.type === filterType.value);
- });
-
function formatMoney(v) {
const num = Number(v || 0);
return Number.isFinite(num) ? num.toFixed(2) : '0.00';
}
- function logTypeText(t) {
- return { settle: '工单结算入账', withdraw: '提现变动', income: '奖励补贴入账', refund: '退款扣减' }[t] || '收支变动';
- }
-
- function withdrawStatusClass(w) {
- if (!w) return 'st-wait';
- if (w.can_confirm) return 'st-confirm';
- if (w.status === 'done') return 'st-done';
- if (w.status === 'reject') return 'st-reject';
- return 'st-wait';
- }
-
- function fullTimeText(ts) {
- if (!ts) return '';
- const d = new Date(Number(ts) * 1000);
- const p = (n) => (n < 10 ? '0' + n : n);
- return `${d.getFullYear()}-${p(d.getMonth() + 1)}-${p(d.getDate())} ${p(d.getHours())}:${p(d.getMinutes())}`;
- }
-
async function load() {
ruleLoadFailed.value = false;
try {
const res = await api.masterIncome();
income.value = res;
- logs.value = res.logs || [];
- withdrawList.value = res.withdraw_list || [];
pendingConfirmList.value = res.pending_confirm_withdraws || [];
- if (activeWithdraw.value) {
- const refreshed = withdrawList.value.find(item => item.id === activeWithdraw.value.id);
- activeWithdraw.value = refreshed || null;
- }
return;
} catch (e) {
try {
@@ -721,6 +468,8 @@
if (!withdrawCfg.value) {
ruleLoadFailed.value = true;
}
+ } finally {
+ initialLoading.value = false;
}
}
@@ -734,7 +483,7 @@
return;
}
if (availMoney.value < minWithdraw.value) {
- uni.showToast({ title: `可提现余额满 ¥${formatMoney(minWithdraw.value)} 方可发起提现`, icon: 'none' });
+ uni.showToast({ title: `余额满 ¥${formatMoney(minWithdraw.value)} 可提现,完工结算后自动入账`, icon: 'none' });
return;
}
if (hasDailyAmountLimit.value && todayRemain.value < minWithdraw.value) {
@@ -784,23 +533,10 @@
});
const arriveVal = res?.arrive_amount ?? res?.arrive ?? withdrawArrive.value;
showWithdrawDrawer.value = false;
- filterType.value = 'withdraw';
await load();
- // 若命中后台「小额免审自动发起转账」,立即拉起微信官方确认收款半屏页;若自动发起失败,必须明确告知真实中文原因
- if (res && res.can_confirm && res.withdraw_id) {
- await handleConfirmReceive({ id: res.withdraw_id });
- } else if (res && res.auto_fail_reason) {
- uni.showModal({
- title: '提现已受理但自动打款失败',
- content: `本次小额免审自动发起微信转账失败:${res.auto_fail_reason}。提现单已保留,请等待或联系平台财务核查处理。`,
- showCancel: false,
- confirmText: '知道了'
- });
- } else {
- const suffix = selectedChannel.value === 'bank' ? '财务审核后打款至银行卡' : '审核后请在此确认收款';
- uni.showToast({ title: `已提交(预计到账 ¥${formatMoney(arriveVal)}),${suffix}`, icon: 'none' });
- }
+ const suffix = selectedChannel.value === 'bank' ? '财务审核后打款至银行卡' : '审核通过后请在钱包确认收款';
+ uni.showToast({ title: `已提交(预计到账 ¥${formatMoney(arriveVal)}),${suffix}`, icon: 'none' });
} catch (e) {
if (e && e.code === undefined && !e.handledToast && e.message) {
uni.showToast({ title: e.message, icon: 'none' });
@@ -810,14 +546,11 @@
}
}
- async function handleConfirmReceive(item, closeDrawerOnDone = false) {
+ async function handleConfirmReceive(item) {
if (!item || !item.id || confirmingId.value > 0) return;
confirmingId.value = item.id;
try {
- const res = await invokeMerchantTransferConfirm(item.id);
- if (closeDrawerOnDone && res && res.done) {
- activeWithdraw.value = null;
- }
+ await invokeMerchantTransferConfirm(item.id);
await load();
} catch (e) {
if (e && e.code === undefined && !e.handledToast && e.message) {
@@ -829,17 +562,11 @@
}
}
- function openLogDetail(item) {
- activeLog.value = item;
- }
-
- function openWithdrawDetail(item) {
- activeWithdraw.value = item;
- }
-
- function goOrderDetail(orderId) {
- activeLog.value = null;
- uni.navigateTo({ url: `/pages/master/detail?id=${orderId}` });
+ function goToBills() {
+ const url = pendingConfirmList.value.length > 0
+ ? '/pages/master/bills?tab=withdraw'
+ : '/pages/master/bills';
+ uni.navigateTo({ url });
}
onShow(() => {
@@ -864,16 +591,16 @@
/* 顶部沉浸式资产卡片 */
.wallet-hero {
- padding-bottom: 36rpx;
+ padding-bottom: 40rpx;
background-color: $yjyf-primary;
background-image: $yjyf-gradient-primary;
- background-size: 100% 620rpx;
+ background-size: 100% 640rpx;
background-repeat: no-repeat;
display: flex;
flex-direction: column;
}
.wallet-body {
- padding: 20rpx $yjyf-space-lg 0;
+ padding: 16rpx $yjyf-space-lg 0;
}
.hero-top {
display: flex;
@@ -884,31 +611,24 @@
font-size: $yjyf-font-sub;
color: rgba(255, 255, 255, 0.92);
}
- .channel-tag {
- display: inline-flex;
- align-items: center;
- height: 44rpx;
- padding: 0 18rpx;
- border-radius: $yjyf-radius-pill;
- background: rgba(255, 255, 255, 0.2);
+ .hero-balance-row {
+ margin-top: 12rpx;
+ display: flex;
+ align-items: baseline;
+ gap: 8rpx;
}
- .wechat-ico {
- width: 26rpx;
- height: 26rpx;
- margin-right: 8rpx;
- }
- .channel-txt {
- font-size: $yjyf-font-micro;
- color: $yjyf-bg-card;
- font-weight: 500;
+ .hero-currency {
+ font-size: 36rpx;
+ font-weight: 700;
+ color: rgba(255, 255, 255, 0.92);
+ line-height: 1;
}
.hero-num {
- display: block;
- margin-top: 14rpx;
- font-size: 68rpx;
+ font-size: 72rpx;
font-weight: 700;
color: $yjyf-bg-card;
- line-height: 1.15;
+ line-height: 1.12;
+ letter-spacing: -1rpx;
font-variant-numeric: tabular-nums;
}
.hero-metrics {
@@ -922,6 +642,7 @@
}
.metric-item {
flex: 1;
+ min-width: 0;
display: flex;
flex-direction: column;
}
@@ -929,14 +650,14 @@
width: 1rpx;
height: 44rpx;
background: rgba(255, 255, 255, 0.24);
- margin: 0 20rpx;
+ margin: 0 16rpx;
}
.metric-lab {
font-size: $yjyf-font-micro;
- color: rgba(255, 255, 255, 0.85);
+ color: rgba(255, 255, 255, 0.88);
}
.metric-val {
- margin-top: 6rpx;
+ margin-top: 8rpx;
font-size: $yjyf-font-body;
font-weight: 700;
color: $yjyf-bg-card;
@@ -944,27 +665,32 @@
}
.withdraw-cta {
margin-top: 28rpx;
- height: 80rpx;
+ height: 88rpx;
border-radius: $yjyf-radius-pill;
background: $yjyf-bg-card;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 8rpx 20rpx rgba(0, 0, 0, 0.1);
+ transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1), opacity 180ms cubic-bezier(0.4, 0, 0.2, 1);
+ }
+ .withdraw-cta:active {
+ transform: scale(0.985);
+ opacity: 0.92;
}
.withdraw-cta.disabled {
opacity: 0.65;
}
.withdraw-cta-txt {
color: $yjyf-primary;
- font-size: $yjyf-font-body;
+ font-size: 30rpx;
font-weight: 700;
}
/* 待确认收款提醒横幅 */
.receive-banner {
- margin: 20rpx $yjyf-space-md 0;
- padding: 20rpx 22rpx;
+ margin: 24rpx $yjyf-space-md 0;
+ padding: 20rpx 24rpx;
background: $yjyf-bg-card;
border: 2rpx solid rgba($yjyf-success, 0.3);
border-radius: $yjyf-radius-md;
@@ -992,14 +718,14 @@
line-height: 1.35;
}
.receive-sub {
- margin-top: 4rpx;
+ margin-top: 6rpx;
font-size: $yjyf-font-micro;
color: $yjyf-text-secondary;
line-height: 1.4;
}
.receive-btn {
- height: 60rpx;
- padding: 0 24rpx;
+ height: 68rpx;
+ padding: 0 26rpx;
border-radius: $yjyf-radius-pill;
background: $yjyf-success;
color: $yjyf-bg-card;
@@ -1009,20 +735,87 @@
align-items: center;
justify-content: center;
flex-shrink: 0;
+ transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1), opacity 180ms cubic-bezier(0.4, 0, 0.2, 1);
+ }
+ .receive-btn:active {
+ transform: scale(0.97);
+ opacity: 0.9;
}
.receive-btn.disabled {
opacity: 0.55;
}
- /* 提现规则紧凑宫格卡片 */
- .rule-card {
- margin: 20rpx $yjyf-space-md 0;
- padding: 22rpx $yjyf-space-md;
+ /* 钱包服务快捷入口(单层纯白圆角菜单组) */
+ .action-group {
+ margin: 24rpx $yjyf-space-md 0;
background: $yjyf-bg-card;
border-radius: $yjyf-radius-md;
box-shadow: $yjyf-shadow-card;
+ overflow: hidden;
}
- .rule-card-head {
+ .action-row {
+ height: 108rpx;
+ padding: 0 24rpx;
+ display: flex;
+ align-items: center;
+ transition: background-color 180ms cubic-bezier(0.4, 0, 0.2, 1);
+ }
+ .action-row:active {
+ background-color: #F7F8FA;
+ }
+ .action-ico {
+ width: 44rpx;
+ height: 44rpx;
+ margin-right: 20rpx;
+ flex-shrink: 0;
+ }
+ .action-label {
+ flex: 1;
+ min-width: 0;
+ font-size: $yjyf-font-body;
+ font-weight: 600;
+ color: $yjyf-text-main;
+ }
+ .action-right {
+ display: inline-flex;
+ align-items: center;
+ gap: 10rpx;
+ flex-shrink: 0;
+ }
+ .action-sub {
+ font-size: $yjyf-font-sub;
+ color: $yjyf-text-secondary;
+ }
+ .action-badge {
+ height: 40rpx;
+ padding: 0 14rpx;
+ border-radius: $yjyf-radius-pill;
+ background: rgba($yjyf-success, 0.12);
+ color: $yjyf-success;
+ font-size: 22rpx;
+ font-weight: 600;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ }
+ .action-arrow {
+ width: 24rpx;
+ height: 24rpx;
+ flex-shrink: 0;
+ }
+ .action-divider {
+ height: 1rpx;
+ margin-left: 88rpx;
+ margin-right: 24rpx;
+ background: $yjyf-border-color;
+ }
+
+ /* 提现规则(严禁卡片化,页面底色直接纯文本排版) */
+ .rule-section {
+ margin: 32rpx $yjyf-space-lg 0;
+ padding-bottom: calc(48rpx + env(safe-area-inset-bottom));
+ }
+ .rule-section-head {
display: flex;
align-items: center;
justify-content: space-between;
@@ -1034,144 +827,78 @@
gap: 10rpx;
}
.rule-head-ico {
- width: 30rpx;
- height: 30rpx;
+ width: 28rpx;
+ height: 28rpx;
flex-shrink: 0;
}
.rule-head-title {
- font-size: $yjyf-font-body;
- font-weight: 700;
- color: $yjyf-text-main;
- }
- .rule-head-right {
- display: flex;
- align-items: center;
- }
- .rule-status-pill {
- height: 38rpx;
- padding: 0 14rpx;
- border-radius: $yjyf-radius-pill;
- background: rgba($yjyf-success, 0.12);
- color: $yjyf-success;
- font-size: $yjyf-font-micro;
+ font-size: $yjyf-font-sub;
font-weight: 600;
- display: inline-flex;
- align-items: center;
+ color: $yjyf-text-regular;
}
- .rule-status-pill.paused {
- background: rgba($yjyf-danger, 0.1);
+ .rule-paused-tag {
+ font-size: $yjyf-font-micro;
color: $yjyf-danger;
+ font-weight: 600;
}
- .rule-pause-bar {
- margin-bottom: 16rpx;
- padding: 14rpx 18rpx;
- border-radius: $yjyf-radius-sm;
- background: rgba($yjyf-danger, 0.08);
- }
- .rule-pause-txt {
+ .rule-pause-line {
+ display: block;
+ margin-bottom: 12rpx;
font-size: $yjyf-font-sub;
color: $yjyf-danger;
- line-height: 1.45;
+ line-height: 1.55;
}
- .rule-grid {
- display: grid;
- grid-template-columns: repeat(2, minmax(0, 1fr));
- gap: 14rpx;
- }
- .rule-tile {
- padding: 18rpx 20rpx;
- border-radius: $yjyf-radius-sm;
- background: $yjyf-bg-page;
+ .rule-plain-list {
display: flex;
flex-direction: column;
- min-width: 0;
+ gap: 12rpx;
}
- .tile-lab {
- font-size: $yjyf-font-micro;
- color: $yjyf-text-secondary;
- line-height: 1.3;
- }
- .tile-val {
- margin-top: 8rpx;
- font-size: $yjyf-font-body;
- font-weight: 700;
- color: $yjyf-text-main;
- line-height: 1.3;
- font-variant-numeric: tabular-nums;
- }
- .tile-sub {
- margin-top: 6rpx;
- font-size: $yjyf-font-micro;
- color: $yjyf-text-regular;
- line-height: 1.35;
- font-variant-numeric: tabular-nums;
- }
- .rule-footer-bar {
- margin-top: 16rpx;
- padding: 14rpx 18rpx;
- border-radius: $yjyf-radius-sm;
- background: $yjyf-primary-bg;
+ .rule-plain-item {
display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 16rpx;
+ align-items: flex-start;
+ gap: 8rpx;
}
- .rule-footer-txt {
+ .rule-plain-idx {
+ font-size: $yjyf-font-sub;
+ color: $yjyf-text-secondary;
+ line-height: 1.65;
+ flex-shrink: 0;
+ font-variant-numeric: tabular-nums;
+ }
+ .rule-plain-txt {
flex: 1;
min-width: 0;
- font-size: $yjyf-font-micro;
- color: $yjyf-text-regular;
- line-height: 1.4;
+ font-size: $yjyf-font-sub;
+ color: #555555;
+ line-height: 1.65;
+ font-variant-numeric: tabular-nums;
}
- .rule-more-btn {
- display: inline-flex;
- align-items: center;
- gap: 4rpx;
- flex-shrink: 0;
- }
- .rule-more-txt {
- font-size: $yjyf-font-micro;
+ .rule-plain-lab {
+ color: $yjyf-text-main;
font-weight: 600;
- color: $yjyf-primary;
}
- .rule-more-ico {
- width: 20rpx;
- height: 20rpx;
- }
- .rule-detail-panel {
- max-height: 82vh;
- overflow-y: auto;
- }
- .rule-detail-list {
+ .rule-skeleton-list {
display: flex;
flex-direction: column;
gap: 16rpx;
}
- .rule-detail-item {
- padding: 18rpx 22rpx;
- border-radius: $yjyf-radius-sm;
- background: $yjyf-bg-page;
- display: flex;
- flex-direction: column;
- gap: 6rpx;
+ .rule-skeleton-line {
+ height: 24rpx;
+ border-radius: 6rpx;
+ background: #E8EAEE;
}
- .rd-lab {
- font-size: $yjyf-font-micro;
- color: $yjyf-text-secondary;
+ .rule-skeleton-line.w-85 {
+ width: 85%;
}
- .rd-val {
- font-size: $yjyf-font-sub;
- color: $yjyf-text-main;
- font-weight: 500;
- line-height: 1.5;
- font-variant-numeric: tabular-nums;
+ .rule-skeleton-line.w-70 {
+ width: 70%;
+ }
+ .rule-skeleton-line.w-92 {
+ width: 92%;
}
.rule-error-bar {
- margin: 20rpx $yjyf-space-md 0;
- padding: 18rpx 22rpx;
- background: $yjyf-bg-card;
- border-radius: $yjyf-radius-md;
- box-shadow: $yjyf-shadow-card;
+ margin: 32rpx $yjyf-space-lg 0;
+ padding-bottom: calc(48rpx + env(safe-area-inset-bottom));
display: flex;
align-items: center;
justify-content: space-between;
@@ -1182,231 +909,20 @@
min-width: 0;
font-size: $yjyf-font-sub;
color: $yjyf-danger;
- line-height: 1.45;
+ line-height: 1.5;
}
.rule-retry-btn {
- height: 52rpx;
- padding: 0 22rpx;
- border-radius: $yjyf-radius-pill;
- background: $yjyf-primary-bg;
- color: $yjyf-primary;
- font-size: $yjyf-font-sub;
- font-weight: 600;
+ height: 64rpx;
+ padding: 0 24rpx;
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
-
- /* 账单卡片 */
- .bill-card {
- margin: 20rpx $yjyf-space-md 48rpx;
- padding: $yjyf-space-md;
- background: $yjyf-bg-card;
- border-radius: $yjyf-radius-md;
- box-shadow: $yjyf-shadow-card;
- }
- .card-head {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding-bottom: 16rpx;
- border-bottom: 1rpx solid $yjyf-border-color;
- }
- .card-title {
- font-size: $yjyf-font-title;
- font-weight: 700;
- color: $yjyf-text-main;
- }
- .filter-tabs {
- display: flex;
- align-items: center;
- gap: 8rpx;
- }
- .ft-item {
- height: 52rpx;
- padding: 0 22rpx;
- border-radius: $yjyf-radius-pill;
- display: inline-flex;
- align-items: center;
- justify-content: center;
+ .rule-retry-link {
font-size: $yjyf-font-sub;
- color: $yjyf-text-secondary;
- background: $yjyf-bg-page;
- }
- .ft-item.on {
- background: $yjyf-primary-bg;
+ font-weight: 600;
color: $yjyf-primary;
- font-weight: 600;
- }
- .ft-badge {
- margin-left: 6rpx;
- min-width: 30rpx;
- height: 30rpx;
- padding: 0 8rpx;
- border-radius: $yjyf-radius-pill;
- background: $yjyf-success;
- color: $yjyf-bg-card;
- font-size: $yjyf-font-micro;
- font-weight: 700;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- }
-
- .wd-row-ico {
- width: 52rpx;
- height: 52rpx;
- margin-right: 16rpx;
- flex-shrink: 0;
- }
- .wd-status-tag {
- height: 36rpx;
- padding: 0 12rpx;
- border-radius: 8rpx;
- font-size: $yjyf-font-micro;
- font-weight: 600;
- display: inline-flex;
- align-items: center;
- }
- .wd-status-tag.st-confirm {
- background: rgba($yjyf-success, 0.12);
- color: $yjyf-success;
- }
- .wd-status-tag.st-done {
- background: $yjyf-bg-page;
- color: $yjyf-text-secondary;
- }
- .wd-status-tag.st-reject {
- background: rgba($yjyf-danger, 0.1);
- color: $yjyf-danger;
- }
- .wd-status-tag.st-wait {
- background: rgba($yjyf-warning, 0.14);
- color: $yjyf-warning;
- }
- .wd-fail-txt {
- margin-top: 6rpx;
- font-size: $yjyf-font-micro;
- color: $yjyf-danger;
- line-height: 1.4;
- }
- .wd-confirm-pill {
- margin-top: 10rpx;
- height: 48rpx;
- padding: 0 20rpx;
- border-radius: $yjyf-radius-pill;
- background: $yjyf-success;
- color: $yjyf-bg-card;
- font-size: $yjyf-font-micro;
- font-weight: 600;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- }
- .wd-confirm-pill.disabled {
- opacity: 0.55;
- }
-
- .log-list {
- display: flex;
- flex-direction: column;
- }
- .log-row {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 24rpx 0;
- border-bottom: 1rpx solid $yjyf-border-color;
- }
- .log-row:last-child {
- border-bottom: none;
- }
- .log-main {
- flex: 1;
- min-width: 0;
- margin-right: 20rpx;
- display: flex;
- flex-direction: column;
- }
- .log-title-line {
- display: flex;
- align-items: center;
- gap: 12rpx;
- }
- .log-type {
- font-size: $yjyf-font-body;
- font-weight: 600;
- color: $yjyf-text-main;
- }
- .log-order-tag {
- height: 36rpx;
- padding: 0 12rpx;
- border-radius: 8rpx;
- background: $yjyf-primary-bg;
- color: $yjyf-primary;
- font-size: $yjyf-font-micro;
- display: inline-flex;
- align-items: center;
- }
- .log-remark {
- margin-top: 8rpx;
- font-size: $yjyf-font-sub;
- color: $yjyf-text-secondary;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- .log-time {
- margin-top: 6rpx;
- font-size: $yjyf-font-micro;
- color: $yjyf-text-muted;
- }
- .log-right {
- display: flex;
- align-items: center;
- flex-shrink: 0;
- }
- .log-amt-wrap {
- display: flex;
- flex-direction: column;
- align-items: flex-end;
- }
- .log-amt {
- font-size: $yjyf-font-title;
- font-weight: 700;
- color: $yjyf-success;
- font-variant-numeric: tabular-nums;
- }
- .log-amt.minus {
- color: $yjyf-danger;
- }
- .log-bal {
- margin-top: 6rpx;
- font-size: $yjyf-font-micro;
- color: $yjyf-text-muted;
- }
- .row-arrow {
- width: 24rpx;
- height: 24rpx;
- margin-left: 12rpx;
- opacity: 0.45;
- }
-
- .empty-box {
- display: flex;
- flex-direction: column;
- align-items: center;
- padding: 72rpx 0 48rpx;
- }
- .empty-img {
- width: 160rpx;
- height: 160rpx;
- margin-bottom: 16rpx;
- }
- .empty-txt {
- font-size: $yjyf-font-sub;
- color: $yjyf-text-secondary;
}
/* 半屏抽屉通用 */
@@ -1613,9 +1129,8 @@
.withdraw-panel .estimate { color: $yjyf-text-regular; }
.drawer-rule-box {
margin-top: 24rpx;
- padding: 18rpx 22rpx;
- border-radius: $yjyf-radius-md;
- background: $yjyf-bg-page;
+ padding-top: 20rpx;
+ border-top: 1rpx solid $yjyf-border-color;
display: flex;
flex-direction: column;
gap: 10rpx;
@@ -1643,56 +1158,6 @@
.withdraw-panel .drawer-submit { margin-top: 32rpx; box-shadow: $yjyf-shadow-button; }
.withdraw-panel .drawer-submit.disabled { box-shadow: none; }
- .detail-hero {
- padding: 24rpx 0 28rpx;
- border-bottom: 1rpx solid $yjyf-border-color;
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- .dh-type {
- font-size: $yjyf-font-sub;
- color: $yjyf-text-secondary;
- }
- .dh-amt {
- margin-top: 12rpx;
- font-size: 56rpx;
- font-weight: 700;
- color: $yjyf-success;
- font-variant-numeric: tabular-nums;
- }
- .dh-amt.minus {
- color: $yjyf-danger;
- }
- .detail-cells {
- padding: 16rpx 0;
- }
- .d-cell {
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- padding: 16rpx 0;
- }
- .d-lab {
- font-size: $yjyf-font-sub;
- color: $yjyf-text-secondary;
- flex-shrink: 0;
- margin-right: 24rpx;
- }
- .d-val {
- font-size: $yjyf-font-sub;
- color: $yjyf-text-main;
- font-weight: 500;
- text-align: right;
- }
- .d-val.multi {
- line-height: 1.5;
- }
- .d-val.highlight {
- color: $yjyf-success;
- font-weight: 700;
- }
-
.drawer-submit {
margin-top: 28rpx;
height: 88rpx;
diff --git a/yjyf-master-app/static/icons/wallet-bills.svg b/yjyf-master-app/static/icons/wallet-bills.svg
new file mode 100644
index 0000000..5847110
--- /dev/null
+++ b/yjyf-master-app/static/icons/wallet-bills.svg
@@ -0,0 +1,7 @@
+
diff --git a/yjyf-master-app/static/icons/wallet-service.svg b/yjyf-master-app/static/icons/wallet-service.svg
new file mode 100644
index 0000000..caccfac
--- /dev/null
+++ b/yjyf-master-app/static/icons/wallet-service.svg
@@ -0,0 +1,7 @@
+
diff --git a/yjyf-master-app/static/icons/wallet-withdraw-log.svg b/yjyf-master-app/static/icons/wallet-withdraw-log.svg
new file mode 100644
index 0000000..c78a5d9
--- /dev/null
+++ b/yjyf-master-app/static/icons/wallet-withdraw-log.svg
@@ -0,0 +1,5 @@
+