fix(withdraw): remove alipay/bank channels and enhance rules card text contrast in warm theme

这个提交包含在:
xcbyy
2026-10-13 09:58:16 +08:00
父节点 d93a68d47c
当前提交 cf11d5654b
共有 7 个文件被更改,包括 954 次插入 和 691 次删除

查看文件

@@ -57,64 +57,31 @@
</view>
</view>
<!-- 卡片 2: 到账渠道选择矩阵 -->
<view class="content-card">
<!-- 卡片 2: 提现到账方式 (微信零钱专属极速直达通道) -->
<view class="content-card channel-card">
<view class="card-section-head">
<text class="section-title">提现到账方式</text>
<text class="section-sub">支持三种主流渠道结算</text>
<view class="section-badge-green">极速免审核</view>
</view>
<view class="channel-grid">
<!-- 微信零钱 -->
<view
class="channel-item btn-active"
:class="{ active: currentChannel === 'WECHAT' }"
@click="selectChannel('WECHAT')"
>
<view class="channel-badge" v-if="currentChannel === 'WECHAT'">推荐</view>
<view class="channel-icon-wrap wechat">
<image class="channel-svg" :src="ICONS.wechat" mode="aspectFit" />
</view>
<text class="channel-name">微信零钱</text>
<text class="channel-desc">极速到账</text>
<view class="channel-select-mark" v-if="currentChannel === 'WECHAT'">
<image class="check-svg" :src="ICONS.checkCircle" mode="aspectFit" />
</view>
<view class="wechat-channel-box">
<view class="channel-icon-wrap wechat">
<image class="channel-svg" :src="ICONS.wechat" mode="aspectFit" />
</view>
<view class="channel-info-col">
<view class="channel-line-1">
<text class="channel-name">微信零钱钱包</text>
<text class="channel-tag">推荐首选</text>
</view>
<text class="channel-desc">企业付款直达当前微信零钱 · 免手续费</text>
</view>
<view class="channel-check-badge">
<image class="check-svg" :src="ICONS.checkCircle" mode="aspectFit" />
</view>
</view>
<!-- 支付宝 -->
<view
class="channel-item btn-active"
:class="{ active: currentChannel === 'ALIPAY' }"
@click="selectChannel('ALIPAY')"
>
<view class="channel-badge blue" v-if="currentChannel === 'ALIPAY'">大额首选</view>
<view class="channel-icon-wrap alipay">
<image class="channel-svg" :src="ICONS.alipay" mode="aspectFit" />
</view>
<text class="channel-name">支付宝</text>
<text class="channel-desc">支持大额</text>
<view class="channel-select-mark" v-if="currentChannel === 'ALIPAY'">
<image class="check-svg" :src="ICONS.checkCircle" mode="aspectFit" />
</view>
</view>
<!-- 银行卡 -->
<view
class="channel-item btn-active"
:class="{ active: currentChannel === 'BANK' }"
@click="selectChannel('BANK')"
>
<view class="channel-badge gold" v-if="currentChannel === 'BANK'">主流银行</view>
<view class="channel-icon-wrap bank">
<image class="channel-svg" :src="ICONS.bankCard" mode="aspectFit" />
</view>
<text class="channel-name">银行储蓄卡</text>
<text class="channel-desc">全国通用</text>
<view class="channel-select-mark" v-if="currentChannel === 'BANK'">
<image class="check-svg" :src="ICONS.checkCircle" mode="aspectFit" />
</view>
</view>
<view class="wechat-safe-notice">
<text class="notice-desc">系统将通过微信商户企业付款打款到您当前登录小程序的微信零钱账户中,无需额外录入银行卡号,提交申请后预计 1 至 24 小时内由系统自动发放至微信零钱钱包。</text>
</view>
</view>
@@ -154,85 +121,7 @@
</view>
</view>
<!-- 卡片 4: 收款账号资料区 -->
<view class="content-card">
<view class="card-section-head">
<text class="section-title">收款账户资料</text>
<text class="section-sub">请确保实名信息完全一致</text>
</view>
<!-- 微信零钱提示卡 -->
<view v-if="currentChannel === 'WECHAT'" class="wechat-bind-notice">
<view class="notice-head">
<image class="notice-icon" :src="ICONS.wechat" mode="aspectFit" />
<text class="notice-title">自动直达当前微信零钱钱包</text>
</view>
<text class="notice-body">
系统将通过微信商户企业付款打款到您当前登录小程序的微信零钱账户中,无需额外录入卡号,提交申请后预计 1 至 24 小时内由系统自动发放。
</text>
</view>
<!-- 支付宝输入区 -->
<view v-if="currentChannel === 'ALIPAY'" class="form-inputs-wrap">
<view class="form-group">
<text class="form-label">支付宝账号</text>
<input
class="form-input"
v-model="accountForm.alipayAccount"
placeholder="请输入支付宝登录账号 / 手机号 / 邮箱"
placeholder-class="form-ph"
maxlength="50"
/>
</view>
<view class="form-group">
<text class="form-label">收款人真实姓名</text>
<input
class="form-input"
v-model="accountForm.realName"
placeholder="需与支付宝实名认证姓名严格一致"
placeholder-class="form-ph"
maxlength="20"
/>
</view>
</view>
<!-- 银行卡输入区 -->
<view v-if="currentChannel === 'BANK'" class="form-inputs-wrap">
<view class="form-group">
<text class="form-label">储蓄卡卡号</text>
<input
class="form-input"
type="number"
v-model="accountForm.bankCard"
placeholder="请输入收款人储蓄卡卡号"
placeholder-class="form-ph"
maxlength="30"
/>
</view>
<view class="form-group">
<text class="form-label">开户银行名称</text>
<input
class="form-input"
v-model="accountForm.bankName"
placeholder="例如:中国工商银行 / 招商银行 / 建设银行"
placeholder-class="form-ph"
maxlength="40"
/>
</view>
<view class="form-group">
<text class="form-label">持卡人真实姓名</text>
<input
class="form-input"
v-model="accountForm.realName"
placeholder="需与银行卡开户姓名严格一致"
placeholder-class="form-ph"
maxlength="20"
/>
</view>
</view>
</view>
<!-- 卡片 5: 温馨提示与财务规范 -->
<!-- 卡片 4: 温馨提示与财务规范 -->
<view class="rules-card">
<view class="rules-head">
<image class="rules-icon" :src="ICONS.shield" mode="aspectFit" />
@@ -249,7 +138,7 @@
</view>
<view class="rule-line">
<text class="dot">·</text>
<text class="text">请仔细核对支付宝账号、银行卡号与收款人姓名,若信息有误将导致打款驳回原路退回;</text>
<text class="text">资金通过微信商户官方企业付款通道结算,直达您的微信零钱钱包,平台免收任何手续费;</text>
</view>
<view class="rule-line">
<text class="dot">·</text>
@@ -482,41 +371,12 @@ const handleSubmitWithdraw = async () => {
return;
}
// 渠道表单必填项校验
if (currentChannel.value === 'ALIPAY') {
if (!accountForm.value.alipayAccount.trim()) {
uni.showToast({ title: '请输入支付宝账号', icon: 'none' });
return;
}
if (!accountForm.value.realName.trim()) {
uni.showToast({ title: '请输入收款人姓名', icon: 'none' });
return;
}
} else if (currentChannel.value === 'BANK') {
if (!accountForm.value.bankCard.trim()) {
uni.showToast({ title: '请输入银行卡卡号', icon: 'none' });
return;
}
if (!accountForm.value.bankName.trim()) {
uni.showToast({ title: '请输入开户行名称', icon: 'none' });
return;
}
if (!accountForm.value.realName.trim()) {
uni.showToast({ title: '请输入持卡人姓名', icon: 'none' });
return;
}
}
isSubmitting.value = true;
uni.showLoading({ title: '正在提交申请...' });
try {
const payload = {
channel: currentChannel.value,
alipayAccount: accountForm.value.alipayAccount.trim(),
bankCard: accountForm.value.bankCard.trim(),
bankName: accountForm.value.bankName.trim(),
realName: accountForm.value.realName.trim()
channel: 'WECHAT'
};
const res = await withdrawCommission(1001, amt, payload);
@@ -824,275 +684,159 @@ onShow(() => {
}
}
/* 渠道选择九宫格 */
.channel-grid {
display: flex;
gap: 16rpx;
.channel-item {
flex: 1;
position: relative;
background: #0F172A;
border: 1.5px solid rgba(255, 255, 255, 0.08);
/* 微信零钱单渠道专享卡 */
.channel-card {
.section-badge-green {
font-size: 20rpx;
font-weight: 600;
color: #10B981;
background: rgba(16, 185, 129, 0.12);
border: 1px solid rgba(16, 185, 129, 0.3);
padding: 2rpx 14rpx;
border-radius: 20rpx;
padding: 24rpx 12rpx;
}
.wechat-channel-box {
display: flex;
flex-direction: column;
align-items: center;
transition: all 0.2s ease;
border: 1.5px solid rgba(16, 185, 129, 0.4);
background: rgba(16, 185, 129, 0.06);
border-radius: 20rpx;
padding: 24rpx;
margin-bottom: 20rpx;
box-shadow: 0 4rpx 20rpx rgba(16, 185, 129, 0.12);
&.active {
background: rgba(16, 185, 129, 0.08);
border-color: #10B981;
box-shadow: 0 4rpx 20rpx rgba(16, 185, 129, 0.25);
}
.channel-badge {
position: absolute;
top: -12rpx;
right: 12rpx;
font-size: 18rpx;
background: #10B981;
color: #FFFFFF;
padding: 2rpx 10rpx;
border-radius: 12rpx;
font-weight: 600;
&.blue { background: #0284C7; }
&.gold { background: #D97706; }
}
.channel-icon-wrap {
width: 72rpx;
height: 72rpx;
.channel-icon-wrap.wechat {
width: 80rpx;
height: 80rpx;
border-radius: 20rpx;
background: rgba(16, 185, 129, 0.18);
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 12rpx;
&.wechat { background: rgba(16, 185, 129, 0.15); }
&.alipay { background: rgba(2, 132, 199, 0.15); }
&.bank { background: rgba(245, 158, 11, 0.15); }
margin-right: 20rpx;
flex-shrink: 0;
.channel-svg {
width: 44rpx;
height: 44rpx;
width: 48rpx;
height: 48rpx;
}
}
.channel-name {
font-size: 24rpx;
font-weight: 700;
color: #F8FAFC;
margin-bottom: 4rpx;
.channel-info-col {
flex: 1;
.channel-line-1 {
display: flex;
align-items: center;
gap: 12rpx;
margin-bottom: 6rpx;
.channel-name {
font-size: 30rpx;
font-weight: 700;
color: #F8FAFC;
}
.channel-tag {
font-size: 18rpx;
color: #FFFFFF;
background: linear-gradient(135deg, #10B981, #059669);
padding: 2rpx 12rpx;
border-radius: 12rpx;
font-weight: 600;
}
}
.channel-desc {
font-size: 22rpx;
color: #94A3B8;
line-height: 1.4;
display: block;
}
}
.channel-desc {
font-size: 20rpx;
color: #64748B;
}
.channel-select-mark {
position: absolute;
bottom: 8rpx;
right: 8rpx;
.channel-check-badge {
width: 40rpx;
height: 40rpx;
display: flex;
align-items: center;
justify-content: center;
margin-left: 16rpx;
flex-shrink: 0;
.check-svg {
width: 28rpx;
height: 28rpx;
width: 36rpx;
height: 36rpx;
}
}
}
}
/* 提现金额大字输入框 */
.amount-input-box {
display: flex;
align-items: center;
background: #0F172A;
border: 1.5px solid rgba(255, 255, 255, 0.1);
border-radius: 20rpx;
padding: 0 24rpx;
height: 116rpx;
margin-bottom: 14rpx;
transition: all 0.25s ease;
.wechat-safe-notice {
background: rgba(16, 185, 129, 0.05);
border: 1px dashed rgba(16, 185, 129, 0.25);
border-radius: 16rpx;
padding: 18rpx 20rpx;
&:focus-within {
border-color: #10B981;
box-shadow: 0 0 16rpx rgba(16, 185, 129, 0.2);
}
.currency-prefix-box {
display: flex;
align-items: center;
justify-content: center;
padding-right: 12rpx;
flex-shrink: 0;
.input-currency-symbol {
font-size: 50rpx;
font-weight: 800;
color: #10B981;
line-height: 1;
}
}
.amount-field-input {
flex: 1;
height: 100%;
font-size: 50rpx;
font-weight: 800;
color: #FFFFFF;
font-family: -apple-system, BlinkMacSystemFont, 'DIN Alternate', Roboto, sans-serif;
font-variant-numeric: tabular-nums;
padding: 0 10rpx;
line-height: 116rpx;
}
.amount-input-ph {
font-size: 38rpx;
font-weight: 500;
color: #475569;
}
.btn-all-in {
font-size: 24rpx;
font-weight: 700;
color: #10B981;
background: rgba(16, 185, 129, 0.15);
border: 1px solid rgba(16, 185, 129, 0.35);
padding: 10rpx 22rpx;
border-radius: 14rpx;
margin: 0;
line-height: 1.4;
white-space: nowrap;
flex-shrink: 0;
}
}
.amount-tips-row {
.tip-msg {
font-size: 22rpx;
line-height: 1.4;
&.normal { color: #94A3B8; }
&.warning { color: #F59E0B; }
&.error { color: #EF4444; font-weight: 600; }
}
}
/* 账户资料录入与通知卡 */
.wechat-bind-notice {
background: rgba(16, 185, 129, 0.08);
border: 1px dashed rgba(16, 185, 129, 0.3);
border-radius: 18rpx;
padding: 22rpx 24rpx;
.notice-head {
display: flex;
align-items: center;
gap: 12rpx;
margin-bottom: 8rpx;
.notice-icon {
width: 32rpx;
height: 32rpx;
}
.notice-title {
font-size: 24rpx;
font-weight: 700;
color: #34D399;
}
}
.notice-body {
font-size: 22rpx;
color: #94A3B8;
line-height: 1.5;
}
}
.form-inputs-wrap {
display: flex;
flex-direction: column;
gap: 20rpx;
.form-group {
display: flex;
flex-direction: column;
gap: 10rpx;
.form-label {
font-size: 24rpx;
font-weight: 600;
color: #CBD5E1;
}
.form-input {
background: #0F172A;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 16rpx;
padding: 0 20rpx;
height: 84rpx;
font-size: 26rpx;
color: #FFFFFF;
}
.form-ph {
font-size: 24rpx;
color: #64748B;
.notice-desc {
font-size: 22rpx;
color: #94A3B8;
line-height: 1.5;
display: block;
}
}
}
/* 规范说明卡片 */
/* 规范说明卡片 (高对比度深色模式) */
.rules-card {
background: rgba(21, 29, 48, 0.6);
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 20rpx;
padding: 24rpx;
background: rgba(30, 41, 59, 0.65);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 24rpx;
padding: 28rpx 24rpx;
margin-bottom: 30rpx;
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.2);
.rules-head {
display: flex;
align-items: center;
gap: 10rpx;
margin-bottom: 14rpx;
gap: 12rpx;
margin-bottom: 18rpx;
.rules-icon {
width: 28rpx;
height: 28rpx;
width: 32rpx;
height: 32rpx;
}
.rules-title {
font-size: 24rpx;
font-weight: 600;
color: #94A3B8;
font-size: 26rpx;
font-weight: 700;
color: #F8FAFC;
letter-spacing: 0.5rpx;
}
}
.rules-list {
display: flex;
flex-direction: column;
gap: 10rpx;
gap: 14rpx;
.rule-line {
display: flex;
align-items: flex-start;
gap: 8rpx;
gap: 10rpx;
.dot {
font-size: 24rpx;
color: #64748B;
font-size: 28rpx;
font-weight: 800;
color: #10B981;
line-height: 1.4;
}
.text {
font-size: 22rpx;
color: #64748B;
line-height: 1.5;
font-size: 23rpx;
color: #CBD5E1;
line-height: 1.6;
font-weight: 400;
flex: 1;
}
}
@@ -1364,16 +1108,34 @@ onShow(() => {
}
}
.channel-grid .channel-item {
background: #FAFAF9;
border-color: #E7E5E4;
&.active {
.channel-card {
.section-badge-green {
color: #EA580C;
background: #FFF7ED;
border-color: #EA580C;
border-color: #FDBA74;
}
.channel-name { color: #1C1917; }
.wechat-channel-box {
background: #FFF7ED;
border: 1.5px solid #FDBA74;
box-shadow: 0 4rpx 16rpx rgba(234, 88, 12, 0.08);
.channel-info-col .channel-line-1 .channel-name {
color: #1C1917;
}
.channel-info-col .channel-desc {
color: #78716C;
}
}
.wechat-safe-notice {
background: #FAFAF9;
border-color: #E7E5E4;
.notice-desc {
color: #78716C;
}
}
}
.amount-input-box {
@@ -1395,12 +1157,38 @@ onShow(() => {
}
}
.form-inputs-wrap .form-group {
.form-label { color: #44403C; }
.form-input {
background: #FAFAF9;
border-color: #E7E5E4;
color: #1C1917;
/* 规范说明卡片浅色暖阳专属高清晰度适配 (彻底解决图2红圈看不清问题) */
.rules-card {
background: #FFFFFF;
border: 1px solid #FED7AA;
box-shadow: 0 4rpx 20rpx rgba(234, 88, 12, 0.06);
.rules-head {
.rules-icon {
filter: brightness(0) saturate(100%) invert(44%) sepia(76%) saturate(2227%) hue-rotate(357deg) brightness(97%) contrast(93%);
}
.rules-title {
color: #9A3412;
font-weight: 700;
font-size: 26rpx;
}
}
.rules-list {
.rule-line {
.dot {
color: #EA580C;
font-weight: 800;
font-size: 28rpx;
}
.text {
color: #44403C;
font-size: 24rpx;
line-height: 1.6;
font-weight: 500;
}
}
}
}