接口调试

This commit is contained in:
huyunkun 2026-05-28 21:18:03 +08:00
parent 22c8c1b920
commit 666ef95713
7 changed files with 2 additions and 91 deletions

View File

@ -113,10 +113,6 @@ const CompanyLogin = () => {
layout="vertical" layout="vertical"
onFinish={onFinish} onFinish={onFinish}
size="large" size="large"
initialValues={{
phone: '13900139000',
password: '123456'
}}
> >
<Form.Item <Form.Item
name="phone" name="phone"

View File

@ -79,25 +79,6 @@ const CompanyRegister = () => {
onFinish={onFinish} onFinish={onFinish}
requiredMark requiredMark
size="large" size="large"
initialValues={{
// 基本信息
name: '李四',
phone: '13900139000',
unitOrOrgType: UnitOrOrgType.ENTERPRISE,
address: '浙江省金华市婺城区八一南街456号',
zipCode: '321000',
// 法人代表
legalPersonName: '王五',
legalPersonPhone: '13800138000',
legalPersonEmail: 'wangwu@example.com',
// 推荐人
referrerName: '张三',
referrerPhone: '13700137000',
referrerEmail: 'zhangsan@example.com',
// 密码
password: '123456',
confirmPassword: '123456',
}}
> >
{/* 基本信息 */} {/* 基本信息 */}
<Card title="基本信息" className="form-card" bordered={false}> <Card title="基本信息" className="form-card" bordered={false}>

View File

@ -253,13 +253,3 @@
background: var(--brand-gradient-hover) !important; background: var(--brand-gradient-hover) !important;
color: var(--text-on-brand) !important; color: var(--text-on-brand) !important;
} }
.alipay-done-btn {
color: var(--brand-color);
font-size: 14px;
height: 36px;
}
.alipay-done-btn:hover {
color: var(--brand-color-dark) !important;
}

View File

@ -99,22 +99,7 @@ const Payment = () => {
} }
} }
// 用户在外部完成支付后,点击"我已完成支付" // TODO: 当后端提供支付结果查询接口后,在这里调用接口验证支付状态再跳转到会员权益页
const handlePaymentDone = () => {
setModalVisible(false)
message.loading({ content: '正在确认支付结果...', key: 'pay-check', duration: 1.2 })
setTimeout(() => {
message.success({ content: '支付成功!', key: 'pay-check' })
setTimeout(() => {
navigate('/member-valid', {
state: {
...orderInfo,
memberId: orderInfo.memberId || 'MEM' + Date.now()
}
})
}, 500)
}, 1200)
}
return ( return (
<div className="payment-page"> <div className="payment-page">
@ -212,15 +197,6 @@ const Payment = () => {
> >
</Button> </Button>
<Button
type="link"
className="alipay-done-btn"
onClick={handlePaymentDone}
block
>
</Button>
</div> </div>
</Modal> </Modal>
</div> </div>

View File

@ -103,11 +103,6 @@ const PersonalLogin = () => {
layout="vertical" layout="vertical"
onFinish={onFinish} onFinish={onFinish}
size="large" size="large"
initialValues={{
// 与个人会员注册默认字段保持一致,方便联调调试
phone: '13800000001',
password: '123456'
}}
> >
<Form.Item <Form.Item
name="phone" name="phone"

View File

@ -4,15 +4,10 @@ import { Form, Input, Select, Button, message, Card } from 'antd'
import { ArrowLeftOutlined } from '@ant-design/icons' import { ArrowLeftOutlined } from '@ant-design/icons'
import { import {
registerPersonal, registerPersonal,
Gender,
GenderLabel, GenderLabel,
PoliticalStatus,
PoliticalStatusLabel, PoliticalStatusLabel,
EducationLevel,
EducationLevelLabel, EducationLevelLabel,
ProfessionalTitle,
ProfessionalTitleLabel, ProfessionalTitleLabel,
RegionOrUnit,
RegionOrUnitLabel, RegionOrUnitLabel,
PersonalMemberType, PersonalMemberType,
PersonalMemberTypeLabel, PersonalMemberTypeLabel,
@ -131,28 +126,6 @@ const PersonalRegister = () => {
onFinish={onFinish} onFinish={onFinish}
requiredMark requiredMark
size="large" size="large"
initialValues={{
// 基本信息
name: '张三',
phone: '13800000001',
email: 'demo@example.com',
zipCode: '321000',
gender: Gender.MALE,
identityCard: '330701199001011234',
politicalStatus: PoliticalStatus.CPC_MEMBER,
educationLevel: EducationLevel.DOCTORAL,
title: ProfessionalTitle.CHIEF_PHYSICIAN,
position: '科室负责人',
regionOrUnit: RegionOrUnit.JINHUA_TCM_HOSPITAL,
unitName: '金华市中医医院',
unitAddress: '金华市婺城区陕西路439号',
// 会员类型
memberType: PersonalMemberType.SPECIAL_COMMITTEE_MEMBER,
specialCommitteeMemberType: '内科分会',
// 密码
password: '123456',
confirmPassword: '123456',
}}
> >
{/* 基本信息 */} {/* 基本信息 */}
<Card title="基本信息" className="form-card" bordered={false}> <Card title="基本信息" className="form-card" bordered={false}>

View File

@ -1 +1 @@
{"root":["./src/app.tsx","./src/main.tsx","./src/vite-env.d.ts","./src/api/auth.ts","./src/api/index.ts","./src/api/member.ts","./src/api/payment.ts","./src/api/types.ts","./src/pages/companylogin.tsx","./src/pages/companyregister.tsx","./src/pages/invoice.tsx","./src/pages/memberrules.tsx","./src/pages/memberservice.tsx","./src/pages/membervalid.tsx","./src/pages/payment.tsx","./src/pages/personallogin.tsx","./src/pages/personalregister.tsx","./src/utils/request.ts"],"version":"5.9.3"} {"root":["./src/app.tsx","./src/main.tsx","./src/vite-env.d.ts","./src/api/auth.ts","./src/api/index.ts","./src/api/member.ts","./src/api/payment.ts","./src/api/types.ts","./src/pages/companylogin.tsx","./src/pages/companyregister.tsx","./src/pages/invoice.tsx","./src/pages/memberrules.tsx","./src/pages/memberservice.tsx","./src/pages/membervalid.tsx","./src/pages/payment.tsx","./src/pages/personallogin.tsx","./src/pages/personalregister.tsx","./src/utils/request.ts"],"errors":true,"version":"5.9.3"}