From 3be949f95baaeebef21615ab0db82b7dae043217 Mon Sep 17 00:00:00 2001 From: xiayebo <364530740@qq.com> Date: Sun, 30 Nov 2025 00:21:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mock/index.ts | 1 + src/mock/loan-application.ts | 141 +++++ src/pages.json | 150 ----- src/pages/me/loan-application-records.vue | 654 ++++++++++++++++++++++ src/pages/me/me.vue | 5 + src/typings/mall.ts | 47 ++ uno.config.ts | 2 +- 7 files changed, 849 insertions(+), 151 deletions(-) create mode 100644 src/mock/loan-application.ts delete mode 100644 src/pages.json create mode 100644 src/pages/me/loan-application-records.vue diff --git a/src/mock/index.ts b/src/mock/index.ts index 34ff8e0..daf1b7a 100644 --- a/src/mock/index.ts +++ b/src/mock/index.ts @@ -8,3 +8,4 @@ export * from './finance' export * from './member' export * from './banner' export * from './address' +export * from './loan-application' diff --git a/src/mock/loan-application.ts b/src/mock/loan-application.ts new file mode 100644 index 0000000..c491f2f --- /dev/null +++ b/src/mock/loan-application.ts @@ -0,0 +1,141 @@ +import { LoanApplicationStatus } from '@/typings/mall' +import type { LoanApplicationRecord } from '@/typings/mall' + +/** + * 助贷申请记录模拟数据 + */ +export const mockLoanApplicationRecords: LoanApplicationRecord[] = [ + { + applicationId: "AP20230815001", + loanType: "ENTERPRISE", + loanTitle: "经营贷", + dateLabel: "申请时间", + dateValue: "2023-08-15", + status: LoanApplicationStatus.PROCESSING, + statusText: "处理中", + progress: { + show: true, + steps: ["提交申请", "资料审核", "风险评估", "审批完成"], + currentStepIndex: 2, + stepStatus: "active" + }, + alertInfo: { + show: true, + type: "info", + content: "您的申请正在风控部门审核中,预计还需要1-2个工作日完成评估" + }, + actions: [ + { + code: "VIEW_DETAIL", + text: "查看详情", + style: "primary-blue" + } + ] + }, + { + applicationId: "AP20230810002", + loanType: "ENTERPRISE", + loanTitle: "经营贷", + dateLabel: "申请时间", + dateValue: "2023-08-10", + status: LoanApplicationStatus.COMPLETED, + statusText: "已完成", + actions: [ + { + code: "DOWNLOAD_CONTRACT", + text: "下载合同", + style: "text-link" + }, + { + code: "VIEW_RESULT", + text: "查看结果", + style: "primary-green" + } + ] + }, + { + applicationId: "AP20230805003", + loanType: "REVITALIZATION", + loanTitle: "振兴贷", + dateLabel: "创建时间", + dateValue: "2023-08-05", + status: LoanApplicationStatus.PENDING, + statusText: "待提交", + progress: { + show: true, + steps: ["提交申请", "资料审核", "风险评估", "审批完成"], + currentStepIndex: 0, + stepStatus: "active" + }, + alertInfo: { + show: true, + type: "warning", + content: "您的申请资料尚未完整,请尽快完善资料后提交" + }, + actions: [ + { + code: "DELETE", + text: "删除", + style: "text-link" + }, + { + code: "CONTINUE_FILL", + text: "继续填写", + style: "primary-yellow" + } + ] + }, + { + applicationId: "AP20230728004", + loanType: "HOUSING", + loanTitle: "安居贷", + dateLabel: "申请时间", + dateValue: "2023-07-28", + status: LoanApplicationStatus.PROCESSING, + statusText: "处理中", + progress: { + show: true, + steps: ["提交申请", "资料审核", "风险评估", "审批完成"], + currentStepIndex: 1, + stepStatus: "active" + }, + alertInfo: { + show: true, + type: "info", + content: "您的申请已进入资料审核阶段,请耐心等待" + }, + actions: [ + { + code: "CANCEL", + text: "取消申请", + style: "text-link" + }, + { + code: "VIEW_DETAIL", + text: "查看详情", + style: "primary-blue" + } + ] + }, + { + applicationId: "AP20230720005", + loanType: "ENTERPRISE", + loanTitle: "经营贷", + dateLabel: "申请时间", + dateValue: "2023-07-20", + status: LoanApplicationStatus.COMPLETED, + statusText: "已完成", + actions: [ + { + code: "DOWNLOAD_CONTRACT", + text: "下载合同", + style: "text-link" + }, + { + code: "VIEW_RESULT", + text: "查看结果", + style: "primary-green" + } + ] + } +] \ No newline at end of file diff --git a/src/pages.json b/src/pages.json deleted file mode 100644 index 1c87b8d..0000000 --- a/src/pages.json +++ /dev/null @@ -1,150 +0,0 @@ -{ - "globalStyle": { - "navigationStyle": "default", - "navigationBarTitleText": "unibest", - "navigationBarBackgroundColor": "#f8f8f8", - "navigationBarTextStyle": "black", - "backgroundColor": "#FFFFFF" - }, - "easycom": { - "autoscan": true, - "custom": { - "^fg-(.*)": "@/components/fg-$1/fg-$1.vue", - "^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)": "z-paging/components/z-paging$1/z-paging$1.vue", - "^wd-(.*)": "wot-design-uni/components/wd-$1/wd-$1.vue" - } - }, - "pages": [ - // GENERATED BY UNI-PAGES, PLATFORM: H5 - { - "path": "pages/index/index", - "type": "home", - "style": { - "navigationBarTitleText": "首页", - "navigationStyle": "custom" - } - }, - { - "path": "pages/finance/credit", - "type": "page", - "style": { - "navigationBarTitleText": "信用额度", - "enablePullDownRefresh": true - } - }, - { - "path": "pages/finance/settlement", - "type": "page", - "style": { - "navigationBarTitleText": "应结账款", - "enablePullDownRefresh": true - } - }, - { - "path": "pages/goods/cart", - "type": "page", - "style": { - "navigationBarTitleText": "购物车" - } - }, - { - "path": "pages/goods/detail", - "type": "page", - "style": { - "navigationBarTitleText": "商品详情", - "navigationBarBackgroundColor": "#ffffff", - "navigationBarTextStyle": "black" - } - }, - { - "path": "pages/login/index", - "type": "page", - "style": { - "navigationBarTitleText": "登录", - "navigationBarBackgroundColor": "#ffffff", - "navigationStyle": "custom" - } - }, - { - "path": "pages/me/me", - "type": "page", - "style": { - "navigationBarTitleText": "我的", - "navigationBarBackgroundColor": "#fff", - "navigationBarTextStyle": "black", - "navigationStyle": "custom" - } - }, - { - "path": "pages/member/index", - "type": "page", - "style": { - "navigationBarTitleText": "会员中心", - "navigationBarBackgroundColor": "#1a1a1a", - "navigationBarTextStyle": "white" - } - }, - { - "path": "pages/order/confirm", - "type": "page", - "style": { - "navigationBarTitleText": "确认订单" - } - }, - { - "path": "pages/order/detail", - "type": "page", - "style": { - "navigationBarTitleText": "订单详情" - } - }, - { - "path": "pages/order/list", - "type": "page", - "style": { - "navigationBarTitleText": "我的订单", - "enablePullDownRefresh": true - } - }, - { - "path": "pages/sort/index", - "type": "page", - "style": { - "navigationBarTitleText": "分类", - "disableScroll": true, - "navigationStyle": "custom" - } - } - ], - "subPackages": [], - "tabBar": { - "custom": true, - "color": "#999999", - "selectedColor": "#018d71", - "backgroundColor": "#F8F8F8", - "borderStyle": "black", - "height": "50px", - "fontSize": "10px", - "iconWidth": "24px", - "spacing": "3px", - "list": [ - // GENERATED BY UNI-PAGES, PLATFORM: H5 - { - "text": "首页", - "pagePath": "pages/index/index" - }, - { - "text": "分类", - "pagePath": "pages/sort/index" - }, - { - "text": "购物车", - "pagePath": "pages/goods/cart" - }, - { - "text": "我的", - "pagePath": "pages/me/me" - } - ] - } -} \ No newline at end of file diff --git a/src/pages/me/loan-application-records.vue b/src/pages/me/loan-application-records.vue new file mode 100644 index 0000000..8c739a1 --- /dev/null +++ b/src/pages/me/loan-application-records.vue @@ -0,0 +1,654 @@ + + + + + \ No newline at end of file diff --git a/src/pages/me/me.vue b/src/pages/me/me.vue index 7513eaf..50d8de1 100644 --- a/src/pages/me/me.vue +++ b/src/pages/me/me.vue @@ -210,6 +210,11 @@ function handleLogout() { 会员中心 + + + 助贷申请记录 + + 地址管理 diff --git a/src/typings/mall.ts b/src/typings/mall.ts index fe8f45e..1e63043 100644 --- a/src/typings/mall.ts +++ b/src/typings/mall.ts @@ -205,3 +205,50 @@ export interface Banner { link?: string // 跳转链接 goodsId?: string // 关联商品ID } + +/** + * 助贷申请记录相关类型定义 + */ + +// 助贷申请状态 +export enum LoanApplicationStatus { + PROCESSING = 'PROCESSING', // 处理中 + COMPLETED = 'COMPLETED', // 已完成 + PENDING = 'PENDING', // 待提交 +} + +// 进度条数据 +export interface LoanApplicationProgress { + show: boolean + steps: string[] // 步骤名称数组 + currentStepIndex: number // 当前步骤索引 (从0开始) + stepStatus: string // 当前步骤状态 +} + +// 提示信息框 +export interface LoanApplicationAlertInfo { + show: boolean + type: 'info' | 'warning' // info(蓝), warning(黄) + content: string +} + +// 底部按钮配置 +export interface LoanApplicationAction { + code: string + text: string + style: string // text-link, primary-blue, primary-green, primary-yellow +} + +// 助贷申请记录 +export interface LoanApplicationRecord { + applicationId: string // 申请编号 + loanType: string // 贷款类型:ENTERPRISE, 其他 + loanTitle: string // 显示标题 + dateLabel: string // 动态标签:申请时间 / 创建时间 + dateValue: string // 日期值 + status: LoanApplicationStatus // 状态枚举 + statusText: string // 状态中文文案 + progress?: LoanApplicationProgress // 进度条数据 (仅Processing和Pending状态需要) + alertInfo?: LoanApplicationAlertInfo // 提示信息框 (可空) + actions: LoanApplicationAction[] // 底部按钮配置 +} diff --git a/uno.config.ts b/uno.config.ts index 012abff..9f58365 100644 --- a/uno.config.ts +++ b/uno.config.ts @@ -73,7 +73,7 @@ export default defineConfig({ // 动态图标需要在这里配置,或者写在vue页面中注释掉 safelist: ['i-carbon-code', 'i-carbon-home', 'i-carbon-user','i-carbon-shopping-cart','i-carbon-view-mode-2','i-carbon-webhook', 'i-carbon-restaurant','i-carbon-crop','i-carbon-ibm-deployable-architecture', - 'i-carbon-edge-device','i-carbon-ibm-cloud-direct-link-1-dedicated-hosting','i-carbon-face-satisfied'], + 'i-carbon-edge-device','i-carbon-ibm-cloud-direct-link-1-dedicated-hosting','i-carbon-face-satisfied','i-carbon-document-attachment'], rules: [ [ 'p-safe',