diff --git a/app.json b/app.json
index dfd0929..b35564c 100644
--- a/app.json
+++ b/app.json
@@ -11,6 +11,8 @@
"pages/health/profilelist",
"pages/health/profileedit",
"pages/mine/mine",
+ "pages/train/index",
+ "pages/train/apply",
"pages/mine/profileedit",
"pages/mine/about",
"pages/mine/contact",
diff --git a/doc/PROJECT_GUIDE.md b/doc/PROJECT_GUIDE.md
index 01ff8e6..03efbed 100644
--- a/doc/PROJECT_GUIDE.md
+++ b/doc/PROJECT_GUIDE.md
@@ -45,6 +45,8 @@ doc/
| `pages/health/profilelist` | 就诊人列表 |
| `pages/health/profileedit` | 就诊人编辑 |
| `pages/mine/mine` | 我的 |
+| `pages/train/index` | 陪诊师培训宣传页(首页「立即预约」下方横幅进入,底栏转报名) |
+| `pages/train/apply` | 2026 考位报名表(考位信息、蓝底照片与身份证电子版上传、提交回执) |
| `pages/mine/about` | 关于 |
| `pages/mine/contact` | 联系我们 |
| `pages/mine/business` | 合作与入驻(商务合作 / 陪诊师入驻 / 陪诊师培训,入口自首页与「我的」页页脚) |
diff --git a/pages/home/index.js b/pages/home/index.js
index 055f401..538ea9a 100644
--- a/pages/home/index.js
+++ b/pages/home/index.js
@@ -212,6 +212,13 @@ Page({
});
},
+ // 培训考证宣传横幅:直达培训宣传页,再由宣传页转报名
+ goToTraining() {
+ wx.navigateTo({
+ url: '/pages/train/index'
+ });
+ },
+
// 点击陪诊服务,直达服务详情下单
goToServiceDetail(e) {
const id = e.currentTarget.dataset.id
diff --git a/pages/home/index.wxml b/pages/home/index.wxml
index b9d5da4..f6bb5dd 100644
--- a/pages/home/index.wxml
+++ b/pages/home/index.wxml
@@ -40,6 +40,24 @@
+
+
+
+
+
+
+ 陪诊师培训考证
+ 医疗陪诊顾问(高级)证书
+
+
+ 了解详情
+
+
+
+
{{ item.note }}
+
+ {{ item.action.label }}
+
+
+
+
+
+
+ 考位报名已提交
+ {{successDesc}}
+
+
+ 姓名{{application.applicant.name}}
+ 手机号{{application.applicant.mobile}}
+ 学历{{application.applicant.education}}
+ 考试月份{{application.examMonth}}
+ 报考项目{{application.course.name}}
+
+
+ 联系客服
+ 返回首页
+
+
+
+
+
+
+
+
+ 医疗陪诊顾问(高级)
+ 培训单位:国家开放大学培训中心
+
+
+
+
+
+
+ 姓名
+
+
+ {{errors.name}}
+
+
+
+ 身份证号
+
+
+ {{errors.idNumber}}
+
+
+
+ 手机号
+
+
+ {{errors.mobile}}
+
+
+
+ 学历
+
+
+ {{form.education || '请选择学历'}}
+
+ {{errors.education}}
+
+
+
+ 考试月份
+
+
+ {{form.examMonth || '请选择 2026 年考试月份'}}
+
+ 每月 25、26、27 日考试,28、29 日补考
+ {{errors.examMonth}}
+
+
+
+ 报考项目
+ 医疗陪诊顾问(高级)
+
+
+ 培训单位
+ 国家开放大学培训中心
+
+
+
+
+
+ 报名材料
+
+ 请上传清晰的 JPG/PNG 图片,单张不超过 5MB
+
+
+
+
+
+ +
+ 上传照片
+
+
+ 2寸蓝底照片电子版
+ {{errors.photo}}
+
+
+
+
+
+ +
+ 上传证件
+
+
+ 身份证电子版
+ {{errors.idCard}}
+
+
+
+
+
+ 以上信息仅用于考位报名、资料审核与证书办理,我们会严格保密。
+
+
+
+
+
+
+
+
+
diff --git a/pages/train/apply.wxss b/pages/train/apply.wxss
new file mode 100644
index 0000000..41dbcee
--- /dev/null
+++ b/pages/train/apply.wxss
@@ -0,0 +1,71 @@
+/* pages/train/apply.wxss:配色令牌来自 app.wxss,本页不留副本 */
+page { background-color: var(--paper); }
+.page-bg { min-height: 100vh; background: var(--paper); }
+.container { padding: 32rpx 32rpx 0; }
+
+.page-header { padding: 24rpx 0 8rpx; }
+.header-accent { width: 64rpx; height: 8rpx; border-radius: 4rpx; background: var(--brand-strong); }
+.header-title { display: block; margin-top: 20rpx; font-size: 46rpx; font-weight: 700; color: var(--ink); }
+.header-subtitle { display: block; margin-top: 12rpx; font-size: 26rpx; color: var(--muted); }
+
+.course-card,
+.form-card,
+.success-card {
+ background: var(--white);
+ border: 2rpx solid var(--line);
+ border-radius: 28rpx;
+ box-shadow: var(--shadow-card);
+}
+.course-card { display: flex; align-items: center; margin-top: 32rpx; padding: 24rpx 26rpx; }
+.course-mark { width: 64rpx; height: 64rpx; border-radius: 18rpx; background: var(--brand-soft); border: 2rpx solid var(--brand-line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
+.course-body { flex: 1; min-width: 0; margin-left: 20rpx; }
+.course-name { display: block; font-size: 30rpx; font-weight: 700; color: var(--ink); }
+.course-issuer { display: block; margin-top: 6rpx; font-size: 24rpx; color: var(--muted); }
+
+.form-card { margin-top: 24rpx; padding: 6rpx 26rpx; }
+.form-row { display: flex; align-items: flex-start; padding: 24rpx 0; border-bottom: 2rpx solid var(--line); }
+.form-row:last-child { border-bottom: none; }
+.form-label { width: 168rpx; flex-shrink: 0; padding-top: 8rpx; font-size: 28rpx; color: var(--ink-2); }
+.form-control { flex: 1; min-width: 0; }
+.form-input { height: 48rpx; font-size: 28rpx; color: var(--ink); text-align: right; }
+.form-picker { min-height: 48rpx; font-size: 28rpx; color: var(--ink); text-align: right; line-height: 48rpx; }
+.form-picker.placeholder { color: var(--faint); }
+.field-tip { display: block; margin-top: 8rpx; font-size: 24rpx; color: var(--muted); line-height: 1.5; text-align: right; }
+.form-static { flex: 1; min-width: 0; padding-top: 8rpx; font-size: 28rpx; font-weight: 700; color: var(--ink); text-align: right; line-height: 1.6; }
+.form-error { display: block; margin-top: 8rpx; font-size: 24rpx; color: var(--danger); line-height: 1.5; text-align: right; }
+
+.section-head { display: flex; align-items: center; margin-top: 40rpx; }
+.section-bar { width: 8rpx; height: 34rpx; border-radius: 4rpx; background: var(--brand-strong); }
+.section-title { margin-left: 16rpx; font-size: 34rpx; font-weight: 700; color: var(--ink); }
+.material-tip { margin-top: 12rpx; font-size: 24rpx; color: var(--muted); line-height: 1.6; }
+.material-grid { display: flex; gap: 24rpx; margin-top: 20rpx; }
+.material-item { flex: 1; min-width: 0; }
+.upload-box { height: 300rpx; border-radius: 24rpx; border: 2rpx dashed var(--brand-strong); background: var(--brand-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
+.upload-box:active { transform: scale(0.99); }
+.upload-box.has-image { border-style: solid; border-color: var(--line); background: var(--white); }
+.upload-image { width: 100%; height: 100%; }
+.upload-plus { font-size: 52rpx; font-weight: 300; color: var(--brand-ink); line-height: 1; }
+.upload-action { margin-top: 16rpx; font-size: 26rpx; font-weight: 700; color: var(--brand-ink); }
+.material-name { display: block; margin-top: 14rpx; font-size: 26rpx; color: var(--ink-2); text-align: center; }
+.material-error { text-align: center; }
+
+.privacy-tip { display: flex; align-items: flex-start; gap: 10rpx; margin-top: 32rpx; padding: 0 4rpx; }
+.privacy-text { flex: 1; font-size: 24rpx; color: var(--muted); line-height: 1.6; }
+.bottom-placeholder { height: calc(170rpx + env(safe-area-inset-bottom)); }
+.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 20rpx 32rpx calc(20rpx + env(safe-area-inset-bottom)); background: var(--white); box-shadow: 0 -2rpx 8rpx rgba(63, 43, 25, 0.07); }
+.btn-primary { width: 100%; padding: 26rpx 0; border-radius: 999rpx; background: var(--brand-strong); box-shadow: var(--shadow-cta); font-size: 32rpx; font-weight: 700; color: var(--white); letter-spacing: 2rpx; border: none; line-height: 1.5; }
+.btn-primary::after { border: none; }
+.btn-primary:active { transform: scale(0.99); }
+
+/* 提交回执 */
+.success-page { display: flex; flex-direction: column; align-items: center; padding-top: 100rpx; }
+.success-mark { width: 112rpx; height: 112rpx; border-radius: 50%; background: var(--brand-soft); border: 2rpx solid var(--brand-line); display: flex; align-items: center; justify-content: center; }
+.success-title { margin-top: 28rpx; font-size: 42rpx; font-weight: 700; color: var(--ink); }
+.success-desc { margin-top: 16rpx; max-width: 580rpx; font-size: 26rpx; color: var(--muted); line-height: 1.7; text-align: center; }
+.success-card { width: 100%; box-sizing: border-box; margin-top: 40rpx; padding: 6rpx 26rpx; }
+.success-row { display: flex; padding: 22rpx 0; border-bottom: 2rpx solid var(--line); }
+.success-row:last-child { border-bottom: none; }
+.success-label { width: 160rpx; flex-shrink: 0; font-size: 26rpx; color: var(--muted); }
+.success-value { flex: 1; font-size: 28rpx; font-weight: 700; color: var(--ink); text-align: right; }
+.success-primary { width: 100%; box-sizing: border-box; margin-top: 40rpx; padding: 24rpx 0; border-radius: 999rpx; background: var(--brand-strong); box-shadow: var(--shadow-cta); font-size: 30rpx; font-weight: 700; color: var(--white); text-align: center; }
+.success-secondary { margin-top: 24rpx; padding: 16rpx 32rpx; font-size: 28rpx; color: var(--muted); }
diff --git a/pages/train/index.js b/pages/train/index.js
new file mode 100644
index 0000000..cdc51b6
--- /dev/null
+++ b/pages/train/index.js
@@ -0,0 +1,65 @@
+// pages/train/index.js
+// 陪诊师培训宣传页:只陈述课程、考位、证书性质与所需材料;
+// 班期与审核结果以客服确认为准,不作职业资格或就业承诺。
+const config = require('../../utils/config.js')
+
+Page({
+ data: {
+ certificateSampleUrl: `${config.BASE_URL}/health/static/certificate_sample.jpg`,
+ steps: [
+ { title: '提交考位报名', desc: '填写考位信息,上传照片与身份证电子版' },
+ { title: '客服审核确认', desc: '核对报名资料、考试月份与相关事项' },
+ { title: '参加培训考核', desc: '按通知完成课程学习与结业考核' },
+ { title: '领取培训证书', desc: '考核通过后,按培训单位流程办理证书' }
+ ],
+ faqs: [
+ {
+ q: '证书是职业资格证书吗?',
+ a: '不是。本证书的培训单位为国家开放大学培训中心,属于职业技能培训证书,用于证明完成相应培训与考核。'
+ },
+ {
+ q: '报名需要准备哪些材料?',
+ a: '需要姓名、身份证号、手机号、学历、考试月份,以及 2 寸蓝底照片电子版和身份证电子版。'
+ },
+ {
+ q: '报名后什么时候考试?',
+ a: '报名时选择 2026 年的意向考试月份。每月 25、26、27 日为正式考试,28、29 日为补考;具体考位与安排以客服审核确认为准。'
+ }
+ ]
+ },
+
+ goToApply() {
+ wx.navigateTo({ url: '/pages/train/apply' })
+ },
+
+ goToContact() {
+ wx.navigateTo({ url: '/pages/mine/contact' })
+ },
+
+ // 证书样本支持放大查看
+ previewCertificateSample() {
+ wx.previewImage({
+ current: this.data.certificateSampleUrl,
+ urls: [this.data.certificateSampleUrl]
+ })
+ },
+
+ // 小程序内不能直接打开外部网页,复制官方查询地址后可在浏览器访问
+ copyCertificateUrl() {
+ wx.setClipboardData({
+ data: 'https://www.xiangxue8.com',
+ success: () => wx.showToast({ title: '查询网址已复制', icon: 'success' })
+ })
+ },
+
+ onShareAppMessage() {
+ return {
+ title: '2026 医疗陪诊顾问(高级)培训考证报名',
+ path: '/pages/train/index'
+ }
+ },
+
+ onShareTimeline() {
+ return { title: '2026 医疗陪诊顾问(高级)培训考证报名' }
+ }
+})
diff --git a/pages/train/index.json b/pages/train/index.json
new file mode 100644
index 0000000..76ef69a
--- /dev/null
+++ b/pages/train/index.json
@@ -0,0 +1,6 @@
+{
+ "navigationBarTitleText": "陪诊师培训",
+ "usingComponents": {
+ "t-icon": "tdesign-miniprogram/icon/icon"
+ }
+}
diff --git a/pages/train/index.wxml b/pages/train/index.wxml
new file mode 100644
index 0000000..34e4bcc
--- /dev/null
+++ b/pages/train/index.wxml
@@ -0,0 +1,139 @@
+
+
+
+
+
+
+ 国家开放大学培训中心
+ 把陪诊做成一份专业
+ 系统学习医院流程、服务规范与安全应急,按标准动作完成每一次陪同就医。
+
+ 线上培训
+ 40课时
+ 线上考核
+
+
+
+
+
+
+ 考位与证书
+
+
+
+ 培训形式
+ 线上培训
+
+
+ 培训时长
+ 40 课时
+
+
+ 考核形式
+ 线上考核
+
+
+ 报考项目
+ 医疗陪诊顾问(高级)
+
+
+ 考试时间
+ 每月 25、26、27 日正式考试
+
+
+ 补考时间
+ 每月 28、29 日
+
+
+ 培训单位
+ 国家开放大学培训中心
+
+
+ 证书名称
+ 医疗陪诊顾问(高级)证书
+
+
+ 电子证书
+ 考核通过后约 1 周下发
+
+
+ 纸质证书
+ 考核通过后约 30 天下发
+
+
+ 证书性质
+ 职业技能培训证书,非职业资格证书
+
+
+ 证书查询
+ 国开享学吧 www.xiangxue8.com(点击复制)
+
+ 考位、考试安排与证书办理以客服及培训单位确认为准,不作就业或收入承诺。
+
+
+
+
+
+
+ 报名流程
+
+
+
+
+ {{index + 1}}
+
+
+
+ {{item.title}}
+ {{item.desc}}
+
+
+
+
+
+
+
+
+ 常见问题
+
+
+
+ {{item.q}}
+ {{item.a}}
+
+
+
+
+
+
+
+ 证书样本
+
+
+
+ 证书样本仅供参考,以实际下发证书为准(点击可放大)
+
+
+
+
+ 报名前有疑问?
+ 联系客服
+
+
+
+
+
+
+
+
+
+ 2026 年考位报名
+ 医疗陪诊顾问(高级)
+
+ 报名
+
+
diff --git a/pages/train/index.wxss b/pages/train/index.wxss
new file mode 100644
index 0000000..4d22467
--- /dev/null
+++ b/pages/train/index.wxss
@@ -0,0 +1,74 @@
+/* pages/train/index.wxss:配色令牌来自 app.wxss,本页不留副本 */
+page { background-color: var(--paper); }
+.page-bg { min-height: 100vh; background: var(--paper); }
+.container { padding: 32rpx 32rpx 0; }
+
+.page-header { padding: 24rpx 0 8rpx; }
+.header-accent { width: 64rpx; height: 8rpx; border-radius: 4rpx; background: var(--brand-strong); }
+.header-title { display: block; margin-top: 20rpx; font-size: 46rpx; font-weight: 700; color: var(--ink); letter-spacing: 1rpx; }
+.header-subtitle { display: block; margin-top: 12rpx; font-size: 26rpx; color: var(--muted); }
+
+.intro-card,
+.list-card {
+ background: var(--white);
+ border: 2rpx solid var(--line);
+ box-shadow: var(--shadow-card);
+}
+.intro-card { margin-top: 32rpx; padding: 32rpx 28rpx; border-radius: 28rpx; }
+.intro-kicker { display: block; font-size: 24rpx; font-weight: 700; color: var(--brand-ink); letter-spacing: 1rpx; }
+.intro-title { display: block; margin-top: 16rpx; font-size: 42rpx; font-weight: 700; color: var(--ink); line-height: 1.4; }
+.intro-desc { display: block; margin-top: 16rpx; font-size: 28rpx; color: var(--ink-2); line-height: 1.7; }
+.intro-points { display: flex; flex-wrap: wrap; gap: 16rpx; margin-top: 24rpx; }
+.intro-point { padding: 10rpx 18rpx; border-radius: 999rpx; background: var(--brand-soft); border: 2rpx solid var(--brand-line); font-size: 24rpx; font-weight: 700; color: var(--brand-ink); }
+
+.section { margin-top: 48rpx; }
+.section-head { display: flex; align-items: center; margin-bottom: 22rpx; }
+.section-bar { width: 8rpx; height: 34rpx; border-radius: 4rpx; background: var(--brand-strong); }
+.section-title { margin-left: 16rpx; font-size: 34rpx; font-weight: 700; color: var(--ink); letter-spacing: 1rpx; }
+
+.list-card { padding: 8rpx 26rpx; border-radius: 28rpx; }
+.step-dot {
+ width: 44rpx; height: 44rpx; border-radius: 50%; flex-shrink: 0;
+ display: flex; align-items: center; justify-content: center;
+ background: var(--brand-soft); border: 2rpx solid var(--brand-line);
+ font-size: 24rpx; font-weight: 700; color: var(--brand-ink);
+}
+.info-card { padding-top: 4rpx; }
+.info-row { display: flex; align-items: flex-start; padding: 22rpx 0; border-bottom: 2rpx solid var(--line); }
+.info-label { width: 144rpx; flex-shrink: 0; font-size: 26rpx; color: var(--muted); line-height: 1.6; }
+.info-value { flex: 1; min-width: 0; font-size: 28rpx; font-weight: 700; color: var(--ink); line-height: 1.6; text-align: right; }
+.info-link { color: var(--brand-ink); text-decoration: underline; }
+.card-note { display: block; padding: 22rpx 0; font-size: 24rpx; color: var(--muted); line-height: 1.7; }
+
+.step-card { padding-top: 28rpx; padding-bottom: 28rpx; }
+.step { display: flex; }
+.step-rail { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
+.step-line { width: 2rpx; flex: 1; min-height: 34rpx; background: var(--sep); }
+.step-body { flex: 1; min-width: 0; margin-left: 20rpx; padding-bottom: 28rpx; }
+.step:last-child .step-body { padding-bottom: 0; }
+.step-title { display: block; font-size: 28rpx; font-weight: 700; color: var(--ink); line-height: 44rpx; }
+.step-desc { display: block; margin-top: 8rpx; font-size: 24rpx; color: var(--muted); line-height: 1.6; }
+
+.faq-card { padding-top: 4rpx; padding-bottom: 4rpx; }
+.faq-item { padding: 24rpx 0; border-bottom: 2rpx solid var(--line); }
+.faq-item:last-child { border-bottom: none; }
+.faq-q { display: block; font-size: 28rpx; font-weight: 700; color: var(--ink); line-height: 1.6; }
+.faq-a { display: block; margin-top: 10rpx; font-size: 26rpx; color: var(--ink-2); line-height: 1.7; }
+
+.sample-card { padding: 20rpx; }
+.sample-image { display: block; width: 100%; border-radius: 16rpx; background: var(--brand-soft); }
+.sample-note { display: block; margin-top: 16rpx; font-size: 24rpx; color: var(--muted); line-height: 1.6; text-align: center; }
+
+.contact-entry { position: relative; display: flex; align-items: center; justify-content: center; margin-top: 48rpx; padding: 28rpx 26rpx; border-radius: 28rpx; background: var(--brand-soft); border: 2rpx solid var(--brand-line); }
+.contact-entry:active { transform: scale(0.99); }
+.entry-prefix { font-size: 26rpx; color: var(--muted); }
+.entry-title { margin-left: 8rpx; font-size: 30rpx; font-weight: 700; color: var(--brand-ink); }
+.entry-arrow { position: absolute; right: 26rpx; top: 50%; transform: translateY(-50%); }
+
+.bottom-placeholder { height: calc(170rpx + env(safe-area-inset-bottom)); }
+.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 20rpx 32rpx calc(20rpx + env(safe-area-inset-bottom)); background: var(--white); box-shadow: 0 -2rpx 8rpx rgba(63, 43, 25, 0.07); }
+.bar-info { display: flex; flex-direction: column; }
+.bar-title { font-size: 28rpx; font-weight: 700; color: var(--ink); }
+.bar-desc { margin-top: 4rpx; font-size: 24rpx; color: var(--muted); }
+.bar-btn { padding: 24rpx 48rpx; border-radius: 999rpx; background: var(--brand-strong); box-shadow: var(--shadow-cta); font-size: 30rpx; font-weight: 700; color: var(--white); letter-spacing: 2rpx; }
+.bar-btn:active { transform: scale(0.98); }
diff --git a/utils/api.js b/utils/api.js
index 01918aa..b01a3ab 100644
--- a/utils/api.js
+++ b/utils/api.js
@@ -26,6 +26,12 @@ const API = {
getAttendantById: (id) => request.get(`/health/attendant/${id}`),
},
+ // 陪诊师培训考证报名
+ training: {
+ createApplication: (data) => request.post('/health/training-application', data),
+ getMyApplication: () => request.get('/health/training-application/mine'),
+ },
+
// 就诊人:后端强制以 token 中的用户为准,无需传 userId
healthProfile: {
getMyProfiles: (params) => request.get('/health/health-profile/mine', params),