feat(withdraw): convert withdraw records modal into dedicated independent page

这个提交包含在:
xcbyy
2026-10-13 10:06:15 +08:00
父节点 cf11d5654b
当前提交 661d0d2589
共有 8 个文件被更改,包括 1907 次插入 和 229 次删除

查看文件

@@ -166,49 +166,6 @@
{{ isSubmitting ? '正在提交申请...' : '确认申请提现' }}
</button>
</view>
<!-- 提现历史审批记录抽屉弹窗 (Drawer / Modal) -->
<view class="records-modal-mask" v-if="showRecordsDrawer" @click="showRecordsDrawer = false">
<view class="records-drawer-box" @click.stop>
<view class="drawer-header">
<text class="drawer-title">提现审批记录 ({{ withdrawalsList.length }})</text>
<view class="btn-drawer-close btn-active" @click="showRecordsDrawer = false">
<image class="close-svg" :src="ICONS.close" mode="aspectFit" />
</view>
</view>
<scroll-view scroll-y class="drawer-scroll-body" v-if="withdrawalsList.length > 0">
<view v-for="rec in withdrawalsList" :key="rec.id" class="record-row-card">
<view class="rec-top">
<text class="rec-no">{{ rec.withdrawNo }}</text>
<text
class="rec-status-tag"
:class="{
pending: rec.status === '待审核',
processing: rec.status === '处理中',
success: rec.status === '已打款',
rejected: rec.status === '已驳回'
}"
>
{{ rec.status }}
</text>
</view>
<view class="rec-center">
<text class="rec-amount">¥{{ rec.amount }}</text>
<text class="rec-channel">{{ rec.channel }}</text>
</view>
<view class="rec-bottom">
<text class="rec-time">{{ rec.applyTime }}</text>
<text class="rec-reason" v-if="rec.reason">驳回理由:{{ rec.reason }}</text>
</view>
</view>
</scroll-view>
<view class="empty-drawer" v-else>
<text class="empty-txt">暂无提现申请记录</text>
</view>
</view>
</view>
</view>
</template>
@@ -347,7 +304,9 @@ const loadPageData = async () => {
};
const openRecordsDrawer = () => {
showRecordsDrawer.value = true;
uni.navigateTo({
url: '/pages/user/withdraw-records'
});
};
const handleSubmitWithdraw = async () => {
@@ -399,7 +358,9 @@ const handleSubmitWithdraw = async () => {
success: (mRes) => {
loadPageData();
if (mRes.confirm) {
showRecordsDrawer.value = true;
uni.navigateTo({
url: '/pages/user/withdraw-records'
});
}
}
});