From af7bd78614f6a7e441d5ae5270e8b70eb0a7eafb Mon Sep 17 00:00:00 2001 From: "pikachu1995@126.com" Date: Thu, 29 Oct 2026 10:55:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(withdrawal):=20=E6=B7=BB=E5=8A=A0=E6=8F=90?= =?UTF-8?q?=E7=8E=B0=E8=A7=84=E5=88=99=E8=AF=B4=E6=98=8E=E4=BB=A5=E6=BB=A1?= =?UTF-8?q?=E8=B6=B3=E5=AE=A1=E6=A0=B8=E8=A6=81=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增提现规则说明卡片组件展示在提现页面底部 - 添加默认规则文本,涵盖提现额度、频次、时间、到账及手续费说明 - 支持从后端接口获取自定义规则,优先展示接口返回内容 - 根据提现渠道动态调整到账账户描述(支付宝/微信零钱) - 补充规则卡片相关样式,包括标题装饰条及正文排版 --- pages/mine/deposit/withdrawal.vue | 61 +++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/pages/mine/deposit/withdrawal.vue b/pages/mine/deposit/withdrawal.vue index 0c8dc3e..0b1edcb 100644 --- a/pages/mine/deposit/withdrawal.vue +++ b/pages/mine/deposit/withdrawal.vue @@ -55,6 +55,17 @@ 提现 + + + + + + 提现规则说明 + + + {{ displayRule }} + + @@ -75,6 +86,7 @@ const minPrice = ref(0) const type = ref('') const connectNumber = ref('') const realName = ref('') +const withdrawRule = ref('') const typeLabel = computed(() => { if (type.value === 'ALI') return '支付宝' @@ -82,12 +94,28 @@ const typeLabel = computed(() => { return '--' }) +const defaultRule = computed(() => { + const minText = minPrice.value ? `单笔最低提现金额为 ${minPrice.value} 元` : '单笔最低提现金额以页面提示为准' + const channelText = typeLabel.value === '支付宝' ? '支付宝账户' : '微信零钱账户' + return `1. 提现额度:${minText},单日累计最高提现 5000 元; +2. 提现频次:每个用户每日最多可申请提现 1 次; +3. 提现时间:支持全天 24 小时随时发起提现申请; +4. 到账时间:提交申请后预计 1~3 个工作日内审核并转账至您的${channelText}; +5. 手续费说明:提现免收手续费; +6. 如有其他疑问或遇到提现未到账,请联系在线客服协助处理。` +}) + +const displayRule = computed(() => { + return withdrawRule.value ? withdrawRule.value : defaultRule.value +}) + onMounted(async () => { const result = await getUserWallet() const res = await withdrawalSettingVO() walletNum.value = result.data.result.memberWallet minPrice.value = res.data.result.minPrice type.value = res.data.result.type + withdrawRule.value = res.data.result.withdrawRule || '' }) function cashd() { @@ -265,4 +293,37 @@ function handleAll() { text-align: center; font-size: 32rpx; } + +.rule-card { + margin-top: 48rpx; + padding: 12rpx; +} + +.rule-title { + display: flex; + flex-direction: row; + align-items: center; + font-size: 28rpx; + font-weight: 600; + color: #333; + margin-bottom: 16rpx; + + .rule-icon { + width: 6rpx; + height: 26rpx; + background: $main-color; + border-radius: 4rpx; + margin-right: 12rpx; + } +} + +.rule-content { + .rule-text { + font-size: 24rpx; + color: #888; + line-height: 1.8; + white-space: pre-wrap; + word-break: break-all; + } +}