feat(training): 新增培训宣传与考位报名入口

This commit is contained in:
lik
2026-11-03 20:22:57 +08:00
parent 4002ba50b1
commit 31943e9987
17 changed files with 865 additions and 14 deletions
+2
View File
@@ -11,6 +11,8 @@
"pages/health/profilelist", "pages/health/profilelist",
"pages/health/profileedit", "pages/health/profileedit",
"pages/mine/mine", "pages/mine/mine",
"pages/train/index",
"pages/train/apply",
"pages/mine/profileedit", "pages/mine/profileedit",
"pages/mine/about", "pages/mine/about",
"pages/mine/contact", "pages/mine/contact",
+2
View File
@@ -45,6 +45,8 @@ doc/
| `pages/health/profilelist` | 就诊人列表 | | `pages/health/profilelist` | 就诊人列表 |
| `pages/health/profileedit` | 就诊人编辑 | | `pages/health/profileedit` | 就诊人编辑 |
| `pages/mine/mine` | 我的 | | `pages/mine/mine` | 我的 |
| `pages/train/index` | 陪诊师培训宣传页(首页「立即预约」下方横幅进入,底栏转报名) |
| `pages/train/apply` | 2026 考位报名表(考位信息、蓝底照片与身份证电子版上传、提交回执) |
| `pages/mine/about` | 关于 | | `pages/mine/about` | 关于 |
| `pages/mine/contact` | 联系我们 | | `pages/mine/contact` | 联系我们 |
| `pages/mine/business` | 合作与入驻(商务合作 / 陪诊师入驻 / 陪诊师培训,入口自首页与「我的」页页脚) | | `pages/mine/business` | 合作与入驻(商务合作 / 陪诊师入驻 / 陪诊师培训,入口自首页与「我的」页页脚) |
+7
View File
@@ -212,6 +212,13 @@ Page({
}); });
}, },
// 培训考证宣传横幅:直达培训宣传页,再由宣传页转报名
goToTraining() {
wx.navigateTo({
url: '/pages/train/index'
});
},
// 点击陪诊服务,直达服务详情下单 // 点击陪诊服务,直达服务详情下单
goToServiceDetail(e) { goToServiceDetail(e) {
const id = e.currentTarget.dataset.id const id = e.currentTarget.dataset.id
+18
View File
@@ -40,6 +40,24 @@
<t-icon name="chevron-right" size="28rpx" color="#FFFFFF" /> <t-icon name="chevron-right" size="28rpx" color="#FFFFFF" />
</view> </view>
<!-- 培训考证宣传横幅:紧跟主 CTA,承接陪诊师「培训 → 报名」这条 B 端路径。
与上方实心 CTA 区分:本块走浅橙面 + 描边(纸面上靠描边托形、去阴影),
右侧按钮用白底 + 暖橙环,不给首屏增加第二个实心橙色块。
整块可点,按钮是它的点击暗示;真正报名仍进宣传页再转报名页,不在此处直接开表单 -->
<view class="hero-promo" bindtap="goToTraining" hover-class="hero-promo-hover">
<view class="promo-mark">
<t-icon name="education" size="32rpx" color="#9B4508" />
</view>
<view class="promo-body">
<text class="promo-title">陪诊师培训考证</text>
<text class="promo-desc">医疗陪诊顾问(高级)证书</text>
</view>
<view class="promo-btn">
<text class="promo-btn-text">了解详情</text>
<t-icon name="chevron-right" size="24rpx" color="#9B4508" />
</view>
</view>
<!-- 未完成预约预览:不设卡头(无「未完成预约」标题、无数量、无「查看全部」), <!-- 未完成预约预览:不设卡头(无「未完成预约」标题、无数量、无「查看全部」),
每条预约单独一张卡,卡内给出日期 / 就诊人 / 医院 / 服务项目,最多 3 条。 每条预约单独一张卡,卡内给出日期 / 就诊人 / 医院 / 服务项目,最多 3 条。
不把全部未完成预约铺在首屏:首屏优先保住主 CTA 与服务入口, 不把全部未完成预约铺在首屏:首屏优先保住主 CTA 与服务入口,
+91 -11
View File
@@ -64,10 +64,10 @@ page {
} }
/* ===== ① 头部:大字标题直接落在纸面上 ===== */ /* ===== ① 头部:大字标题直接落在纸面上 ===== */
/* 留白加码:44→56rpx 上、+16rpx 下(下方 .section 自带 56rpx,合计 72rpx 到"陪诊服务")。 /* 收紧品牌行与标题、标题与 CTA 之间的空白,让首屏信息更集中。
topbar 的 120rpx 不能动,那是给微信胶囊/状态栏让位的安全距,不是设计留白 */ topbar 的 120rpx 保留用于微信胶囊/状态栏安全距,不作为视觉留白压缩 */
.hero { .hero {
padding: 56rpx 0 16rpx; padding: 32rpx 0 0;
} }
.hero-title { .hero-title {
@@ -80,8 +80,8 @@ page {
font-size: 50rpx; font-size: 50rpx;
font-weight: 700; font-weight: 700;
letter-spacing: 3rpx; letter-spacing: 3rpx;
/* 1.36 → 1.45:标题自身也松一口气,配合下方三段 gap 一起降密度 */ /* 单行标题使用紧凑行高,减少上下附加空白 */
line-height: 1.45; line-height: 1.3;
} }
/* 不用逗号断句:靠「暖橙强调 + 深墨正文」的色差切分两个短句。 /* 不用逗号断句:靠「暖橙强调 + 深墨正文」的色差切分两个短句。
@@ -104,9 +104,8 @@ page {
文字 --brand-ink(纸面 6.10:1,过 AA);整行不可点,靠右侧箭头缺位、 文字 --brand-ink(纸面 6.10:1,过 AA);整行不可点,靠右侧箭头缺位、
竖线分隔与通栏 CTA 的对比来区分「展示」与「行动」 */ 竖线分隔与通栏 CTA 的对比来区分「展示」与「行动」 */
.hero-trust-wrap { .hero-trust-wrap {
/* 16rpx:比常规块间距紧一档,让三项背书贴住标题、 /* 贴住标题,作为标题的补充说明 */
与 CTA 的 40rpx 拉开「说明 → 行动」的层级 */ margin-top: 12rpx;
margin-top: 16rpx;
text-align: center; text-align: center;
} }
@@ -135,13 +134,12 @@ page {
} }
/* 主行动按钮:通栏胶囊,直达服务列表。 /* 主行动按钮:通栏胶囊,直达服务列表。
40rpx 上间距:信任行是一行紧贴标题的小字,CTA 需要与它断开层级, 与信任行保留适度间距,同时避免首屏被空白拉长 */
但不必再拉开一条空带;内边距维持 30rpx 让它在纸面上立得住 */
.hero-cta { .hero-cta {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin-top: 40rpx; margin-top: 28rpx;
padding: 30rpx; padding: 30rpx;
border-radius: 999rpx; border-radius: 999rpx;
background: var(--brand-strong); background: var(--brand-strong);
@@ -161,6 +159,88 @@ page {
margin-right: 6rpx; margin-right: 6rpx;
} }
/* ===== 培训考证宣传横幅 =====
位置:主 CTA 正下方、未完成预约预览之前——它承接首屏的第二条路径
(陪诊师培训 → 报名),与「立即预约」构成「患者端 / 从业者端」两条入口。
配色:浅橙面 + 2rpx --brand-line 描边 + 24rpx 圆角 + 去阴影
(--brand-soft 落纸面只差约 1.03:1,托形全靠描边,配方同 .quick-item-full)。
内部按钮不再铺浅橙:白底 + 2rpx --brand-strong 环,既与浅橙底区分,
又保住非文本 3:1;全页实心橙仍只留给上方「立即预约」一处 */
.hero-promo {
display: flex;
align-items: center;
margin-top: 24rpx;
padding: 24rpx 22rpx;
border-radius: 24rpx;
background: var(--brand-soft);
border: 2rpx solid var(--brand-line);
transition: transform 0.15s ease;
}
.hero-promo:active,
.hero-promo-hover {
transform: scale(0.99);
}
/* 衬底方块走白面:浅橙底上再叠浅橙衬底等于没有衬底(同 .quick-item-full 的处理) */
.promo-mark {
width: 64rpx;
height: 64rpx;
border-radius: 18rpx;
background: var(--white);
border: 2rpx solid var(--brand-line);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.promo-body {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
margin-left: 16rpx;
}
.promo-title {
font-size: 30rpx;
font-weight: 700;
color: var(--ink);
letter-spacing: 1rpx;
}
/* 浅橙底上的次要文字走 --muted(5.24:1,过 AA) */
.promo-desc {
margin-top: 6rpx;
font-size: 24rpx;
color: var(--muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* 按钮:白底 + 暖橙环。2rpx 细环已有 4.66:1,足以在白/浅橙两种底上托出轮廓;
字走 --brand-ink(白底 6.46:1),不用 --brand-strong 以免小字压线 */
.promo-btn {
display: flex;
align-items: center;
flex-shrink: 0;
margin-left: 12rpx;
padding: 12rpx 16rpx;
border-radius: 999rpx;
background: var(--white);
border: 2rpx solid var(--brand-strong);
}
.promo-btn-text {
margin-right: 4rpx;
font-size: 24rpx;
font-weight: 700;
color: var(--brand-ink);
letter-spacing: 1rpx;
}
/* 未完成预约预览:去掉卡头后,每条预约独立成一卡。 /* 未完成预约预览:去掉卡头后,每条预约独立成一卡。
整卡铺淡绿状态底(status-soft)+ 2rpx status-line 描边, 整卡铺淡绿状态底(status-soft)+ 2rpx status-line 描边,
与下方白卡服务宫格明显区分——返回用户一眼先看到「还有事没办完」。 与下方白卡服务宫格明显区分——返回用户一眼先看到「还有事没办完」。
+10 -3
View File
@@ -46,10 +46,11 @@ Page({
points: [ points: [
'培训内容:操作、专业能力、安全应急、心理健康、人文素养', '培训内容:操作、专业能力、安全应急、心理健康、人文素养',
'专业知识:挂号流程、科室分布、设备使用与应急常识', '专业知识:挂号流程、科室分布、设备使用与应急常识',
'培训证书:国家开放大学培训中心《医疗陪诊顾问职业技能培训证书》(培训合格证明,非职业资格证书)', '培训证书:医疗陪诊顾问(高级)证书(国家开放大学培训中心,培训合格证明,非职业资格证书)',
'培训费用:980 元,报名请联系客服确认' '报名材料:2 寸蓝底照片电子版、身份证电子版'
], ],
note: '本页仅作说明,不办理报名与收费' note: '2026 年考位信息可在培训页提交,具体考位与考试安排以客服确认为准',
action: { label: '进入培训页报名', url: '/pages/train/index' }
} }
] ]
}, },
@@ -84,6 +85,12 @@ Page({
}) })
}, },
// 培训卡 → 培训宣传页(再转考位报名);其余卡仍统一联系客服
goToAction(e) {
const { url } = e.currentTarget.dataset
if (url) wx.navigateTo({ url })
},
onShareAppMessage() { onShareAppMessage() {
return { return {
title: '暖橙陪诊 · 合作与入驻', title: '暖橙陪诊 · 合作与入驻',
+4
View File
@@ -31,6 +31,10 @@
<!-- 尾注:与条目用发丝线分开,说明口径而非补充规则 --> <!-- 尾注:与条目用发丝线分开,说明口径而非补充规则 -->
<text class="card-note">{{ item.note }}</text> <text class="card-note">{{ item.note }}</text>
<view class="card-action" wx:if="{{ item.action }}" data-url="{{ item.action.url }}" bindtap="goToAction">
<text class="card-action-text">{{ item.action.label }}</text>
<t-icon name="chevron-right" size="24rpx" color="#9B4508" />
</view>
</view> </view>
<!-- 底部出口:浅橙入口卡(--brand-soft + 2rpx 描边托形 + 去阴影, <!-- 底部出口:浅橙入口卡(--brand-soft + 2rpx 描边托形 + 去阴影,
+23
View File
@@ -113,6 +113,29 @@ page {
line-height: 1.7; line-height: 1.7;
} }
/* 培训卡的报名入口:软填充胶囊,不与其他实心主按钮争层级 */
.card-action {
display: flex;
align-items: center;
justify-content: center;
margin-top: 20rpx;
padding: 18rpx 24rpx;
border-radius: 999rpx;
background: var(--brand-soft);
border: 2rpx solid var(--brand-line);
}
.card-action:active {
transform: scale(0.99);
}
.card-action-text {
margin-right: 6rpx;
font-size: 26rpx;
font-weight: 700;
color: var(--brand-ink);
}
/* ===== 底部出口:浅橙入口卡(同 about 页「联系我们」配方)===== /* ===== 底部出口:浅橙入口卡(同 about 页「联系我们」配方)=====
靠 2rpx --brand-line 描边托形,不加阴影 */ 靠 2rpx --brand-line 描边托形,不加阴影 */
.contact-entry { .contact-entry {
+211
View File
@@ -0,0 +1,211 @@
// pages/train/apply.js
// 2026 医疗陪诊顾问(高级)考位报名。图片 base64 只放实例变量,
// 不进 setData,避免大字符串造成渲染与未保存快照的性能问题。
import API from '../../utils/api'
import { setUnsavedGuard, disableUnsavedGuard } from '../../utils/form'
const MAX_IMAGE_BYTES = 5 * 1024 * 1024
Page({
data: {
educationOptions: ['初中及以下', '高中/中专', '大专', '本科', '硕士及以上'],
educationIndex: -1,
form: {
name: '',
idNumber: '',
mobile: '',
education: '',
examMonth: ''
},
photoPath: '',
idCardPath: '',
errors: {},
saving: false,
submitted: false,
successDesc: '',
application: null
},
onLoad() {
this.materialFiles = { photo: null, idCard: null }
this.captureInitialForm()
// 授权登录后预填姓名和手机号;用户已开始填写则不覆盖
getApp().waitForAuth().then(() => {
if (this.isDirty()) return
const profile = getApp().globalData.user?.profile || {}
this.setData({
'form.name': String(profile.name || '').trim(),
'form.mobile': String(profile.mobile || '').trim()
})
this.captureInitialForm()
}).catch(() => {})
},
onUnload() {
disableUnsavedGuard()
},
getSnapshot() {
const { form, photoPath, idCardPath } = this.data
return JSON.stringify({ form, photoPath, idCardPath })
},
captureInitialForm() {
this.initialSnapshot = this.getSnapshot()
this.syncUnsavedGuard()
},
isDirty() {
return this.getSnapshot() !== this.initialSnapshot
},
syncUnsavedGuard() {
setUnsavedGuard(this.isDirty())
},
onInput(e) {
const { field } = e.currentTarget.dataset
this.setData({
[`form.${field}`]: e.detail.value,
[`errors.${field}`]: ''
})
this.syncUnsavedGuard()
},
onEducationChange(e) {
const index = Number(e.detail.value)
this.setData({
educationIndex: index,
'form.education': this.data.educationOptions[index],
'errors.education': ''
})
this.syncUnsavedGuard()
},
onExamMonthChange(e) {
this.setData({ 'form.examMonth': e.detail.value, 'errors.examMonth': '' })
this.syncUnsavedGuard()
},
onChooseImage(e) {
const { kind } = e.currentTarget.dataset
wx.chooseMedia({
count: 1,
mediaType: ['image'],
sourceType: ['album', 'camera'],
sizeType: ['compressed'],
success: (res) => {
const file = res.tempFiles && res.tempFiles[0]
if (!file) return
if (file.size > MAX_IMAGE_BYTES) {
wx.showToast({ title: '图片不能超过 5MB', icon: 'none' })
return
}
this.materialFiles[kind] = file
this.setData({
[`${kind}Path`]: file.tempFilePath,
[`errors.${kind}`]: ''
})
this.syncUnsavedGuard()
},
fail: () => {}
})
},
readImage(kind) {
const file = this.materialFiles[kind]
if (!file) return Promise.reject(new Error('未选择图片'))
const mime = file.tempFilePath.toLowerCase().endsWith('.png') ? 'image/png' : 'image/jpeg'
return new Promise((resolve, reject) => {
wx.getFileSystemManager().readFile({
filePath: file.tempFilePath,
encoding: 'base64',
success: (res) => resolve(`data:${mime};base64,${res.data}`),
fail: () => reject(new Error('图片读取失败,请重新选择'))
})
})
},
validate() {
const { form, photoPath, idCardPath } = this.data
const errors = {}
if (!form.name.trim()) errors.name = '请填写姓名'
if (!/^\d{17}[\dXx]$/.test(form.idNumber.trim())) errors.idNumber = '请填写 18 位身份证号,末位可为 X'
if (!/^1[3-9]\d{9}$/.test(form.mobile.trim())) errors.mobile = '请填写正确的 11 位手机号'
if (!form.education) errors.education = '请选择学历'
if (!form.examMonth) errors.examMonth = '请选择考试月份'
if (!photoPath) errors.photo = '请上传 2 寸蓝底照片电子版'
if (!idCardPath) errors.idCard = '请上传身份证电子版'
return errors
},
async onSubmit() {
if (this.data.saving) return
const errors = this.validate()
this.setData({ errors })
if (Object.keys(errors).length) {
wx.showToast({ title: Object.values(errors)[0], icon: 'none' })
return
}
this.setData({ saving: true })
wx.showLoading({ title: '提交中...', mask: true })
try {
await getApp().waitForAuth()
const [photo, idCard] = await Promise.all([
this.readImage('photo'),
this.readImage('idCard')
])
const { form } = this.data
const res = await API.training.createApplication({
applicant: {
name: form.name.trim(),
idNumber: form.idNumber.trim().toUpperCase(),
mobile: form.mobile.trim(),
education: form.education
},
examMonth: form.examMonth,
materials: { photo, idCard }
})
if (res.code !== 0) {
wx.showToast({ title: res.msg || '提交失败,请重试', icon: 'none' })
return
}
const serverApplication = res.data?.application
const application = serverApplication || {
applicant: {
name: form.name.trim(),
mobile: form.mobile.trim(),
education: form.education
},
examMonth: form.examMonth,
course: { name: '医疗陪诊顾问(高级)', issuer: '国家开放大学培训中心' }
}
setUnsavedGuard(false)
this.setData({
submitted: true,
application,
successDesc: res.msg === '你已提交过报名,客服会尽快联系你'
? res.msg
: '报名资料已提交,客服会尽快与你核对考位和考试安排,请保持手机畅通。'
})
wx.hideLoading()
wx.showToast({ title: '报名已提交', icon: 'success' })
} catch (err) {
wx.showToast({ title: err?.message || '网络异常,请稍后重试', icon: 'none' })
} finally {
wx.hideLoading()
this.setData({ saving: false })
}
},
goToContact() {
wx.navigateTo({ url: '/pages/mine/contact' })
},
goHome() {
wx.switchTab({ url: '/pages/home/index' })
}
})
+6
View File
@@ -0,0 +1,6 @@
{
"navigationBarTitleText": "考位报名",
"usingComponents": {
"t-icon": "tdesign-miniprogram/icon/icon"
}
}
+130
View File
@@ -0,0 +1,130 @@
<view class="page-bg">
<!-- 提交成功后整页替换为回执,避免用户在表单上重复提交 -->
<view class="container success-page" wx:if="{{submitted && application}}">
<view class="success-mark">
<t-icon name="task-checked" size="64rpx" color="#9B4508" />
</view>
<text class="success-title">考位报名已提交</text>
<text class="success-desc">{{successDesc}}</text>
<view class="success-card">
<view class="success-row"><text class="success-label">姓名</text><text class="success-value">{{application.applicant.name}}</text></view>
<view class="success-row"><text class="success-label">手机号</text><text class="success-value">{{application.applicant.mobile}}</text></view>
<view class="success-row"><text class="success-label">学历</text><text class="success-value">{{application.applicant.education}}</text></view>
<view class="success-row"><text class="success-label">考试月份</text><text class="success-value">{{application.examMonth}}</text></view>
<view class="success-row"><text class="success-label">报考项目</text><text class="success-value">{{application.course.name}}</text></view>
</view>
<view class="success-primary" bindtap="goToContact">联系客服</view>
<view class="success-secondary" bindtap="goHome">返回首页</view>
</view>
<view class="container" wx:else>
<view class="page-header">
<view class="header-accent"></view>
<text class="header-title">考位信息表</text>
<text class="header-subtitle">2026 年国开培训中心 · 医疗陪诊顾问(高级)</text>
</view>
<view class="course-card">
<view class="course-mark"><t-icon name="education" size="34rpx" color="#9B4508" /></view>
<view class="course-body">
<text class="course-name">医疗陪诊顾问(高级)</text>
<text class="course-issuer">培训单位:国家开放大学培训中心</text>
</view>
</view>
<!-- 通栏白表单块:行距、标签与错误态沿用就诊人表单的排版基准 -->
<view class="form-card">
<view class="form-row">
<text class="form-label">姓名</text>
<view class="form-control">
<input class="form-input" placeholder="请填写真实姓名" maxlength="20" value="{{form.name}}" data-field="name" bindinput="onInput" />
<text class="form-error" wx:if="{{errors.name}}">{{errors.name}}</text>
</view>
</view>
<view class="form-row">
<text class="form-label">身份证号</text>
<view class="form-control">
<input class="form-input" placeholder="18 位身份证号" maxlength="18" value="{{form.idNumber}}" data-field="idNumber" bindinput="onInput" />
<text class="form-error" wx:if="{{errors.idNumber}}">{{errors.idNumber}}</text>
</view>
</view>
<view class="form-row">
<text class="form-label">手机号</text>
<view class="form-control">
<input class="form-input" type="number" placeholder="用于客服联系" maxlength="11" value="{{form.mobile}}" data-field="mobile" bindinput="onInput" />
<text class="form-error" wx:if="{{errors.mobile}}">{{errors.mobile}}</text>
</view>
</view>
<view class="form-row">
<text class="form-label">学历</text>
<view class="form-control">
<picker mode="selector" range="{{educationOptions}}" value="{{educationIndex}}" bindchange="onEducationChange">
<view class="form-picker {{form.education ? '' : 'placeholder'}}">{{form.education || '请选择学历'}}</view>
</picker>
<text class="form-error" wx:if="{{errors.education}}">{{errors.education}}</text>
</view>
</view>
<view class="form-row">
<text class="form-label">考试月份</text>
<view class="form-control">
<picker mode="date" fields="month" start="2026-01" end="2026-12" value="{{form.examMonth}}" bindchange="onExamMonthChange">
<view class="form-picker {{form.examMonth ? '' : 'placeholder'}}">{{form.examMonth || '请选择 2026 年考试月份'}}</view>
</picker>
<text class="field-tip">每月 25、26、27 日考试,28、29 日补考</text>
<text class="form-error" wx:if="{{errors.examMonth}}">{{errors.examMonth}}</text>
</view>
</view>
<view class="form-row">
<text class="form-label">报考项目</text>
<text class="form-static">医疗陪诊顾问(高级)</text>
</view>
<view class="form-row">
<text class="form-label">培训单位</text>
<text class="form-static">国家开放大学培训中心</text>
</view>
</view>
<view class="section-head">
<view class="section-bar"></view>
<text class="section-title">报名材料</text>
</view>
<view class="material-tip">请上传清晰的 JPG/PNG 图片,单张不超过 5MB</view>
<view class="material-grid">
<view class="material-item">
<view class="upload-box {{photoPath ? 'has-image' : ''}}" data-kind="photo" bindtap="onChooseImage">
<image wx:if="{{photoPath}}" class="upload-image" src="{{photoPath}}" mode="aspectFill" />
<block wx:else>
<text class="upload-plus">+</text>
<text class="upload-action">上传照片</text>
</block>
</view>
<text class="material-name">2寸蓝底照片电子版</text>
<text class="form-error material-error" wx:if="{{errors.photo}}">{{errors.photo}}</text>
</view>
<view class="material-item">
<view class="upload-box {{idCardPath ? 'has-image' : ''}}" data-kind="idCard" bindtap="onChooseImage">
<image wx:if="{{idCardPath}}" class="upload-image" src="{{idCardPath}}" mode="aspectFill" />
<block wx:else>
<text class="upload-plus">+</text>
<text class="upload-action">上传证件</text>
</block>
</view>
<text class="material-name">身份证电子版</text>
<text class="form-error material-error" wx:if="{{errors.idCard}}">{{errors.idCard}}</text>
</view>
</view>
<view class="privacy-tip">
<t-icon name="lock-on" size="26rpx" color="#A89684" />
<text class="privacy-text">以上信息仅用于考位报名、资料审核与证书办理,我们会严格保密。</text>
</view>
<view class="bottom-placeholder"></view>
</view>
<view class="bottom-bar" wx:if="{{!submitted}}">
<button class="btn-primary" disabled="{{saving}}" bindtap="onSubmit">提交考位报名</button>
</view>
</view>
+71
View File
@@ -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); }
+65
View File
@@ -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 医疗陪诊顾问(高级)培训考证报名' }
}
})
+6
View File
@@ -0,0 +1,6 @@
{
"navigationBarTitleText": "陪诊师培训",
"usingComponents": {
"t-icon": "tdesign-miniprogram/icon/icon"
}
}
+139
View File
@@ -0,0 +1,139 @@
<view class="page-bg">
<view class="container">
<view class="page-header">
<view class="header-accent"></view>
<text class="header-title">陪诊师培训考证</text>
<text class="header-subtitle">2026 年考位报名 · 医疗陪诊顾问(高级)</text>
</view>
<!-- 首屏主卡:课程身份 + 三项核心信息,价格不在这里重复出现 -->
<view class="intro-card">
<text class="intro-kicker">国家开放大学培训中心</text>
<text class="intro-title">把陪诊做成一份专业</text>
<text class="intro-desc">系统学习医院流程、服务规范与安全应急,按标准动作完成每一次陪同就医。</text>
<view class="intro-points">
<text class="intro-point">线上培训</text>
<text class="intro-point">40课时</text>
<text class="intro-point">线上考核</text>
</view>
</view>
<view class="section">
<view class="section-head">
<view class="section-bar"></view>
<text class="section-title">考位与证书</text>
</view>
<view class="list-card info-card">
<view class="info-row">
<text class="info-label">培训形式</text>
<text class="info-value">线上培训</text>
</view>
<view class="info-row">
<text class="info-label">培训时长</text>
<text class="info-value">40 课时</text>
</view>
<view class="info-row">
<text class="info-label">考核形式</text>
<text class="info-value">线上考核</text>
</view>
<view class="info-row">
<text class="info-label">报考项目</text>
<text class="info-value">医疗陪诊顾问(高级)</text>
</view>
<view class="info-row">
<text class="info-label">考试时间</text>
<text class="info-value">每月 25、26、27 日正式考试</text>
</view>
<view class="info-row">
<text class="info-label">补考时间</text>
<text class="info-value">每月 28、29 日</text>
</view>
<view class="info-row">
<text class="info-label">培训单位</text>
<text class="info-value">国家开放大学培训中心</text>
</view>
<view class="info-row">
<text class="info-label">证书名称</text>
<text class="info-value">医疗陪诊顾问(高级)证书</text>
</view>
<view class="info-row">
<text class="info-label">电子证书</text>
<text class="info-value">考核通过后约 1 周下发</text>
</view>
<view class="info-row">
<text class="info-label">纸质证书</text>
<text class="info-value">考核通过后约 30 天下发</text>
</view>
<view class="info-row">
<text class="info-label">证书性质</text>
<text class="info-value">职业技能培训证书,非职业资格证书</text>
</view>
<view class="info-row" bindtap="copyCertificateUrl">
<text class="info-label">证书查询</text>
<text class="info-value info-link">国开享学吧 www.xiangxue8.com(点击复制)</text>
</view>
<text class="card-note">考位、考试安排与证书办理以客服及培训单位确认为准,不作就业或收入承诺。</text>
</view>
</view>
<view class="section">
<view class="section-head">
<view class="section-bar"></view>
<text class="section-title">报名流程</text>
</view>
<view class="list-card step-card">
<view class="step" wx:for="{{steps}}" wx:key="title">
<view class="step-rail">
<view class="step-dot">{{index + 1}}</view>
<view class="step-line" wx:if="{{index < steps.length - 1}}"></view>
</view>
<view class="step-body">
<text class="step-title">{{item.title}}</text>
<text class="step-desc">{{item.desc}}</text>
</view>
</view>
</view>
</view>
<view class="section">
<view class="section-head">
<view class="section-bar"></view>
<text class="section-title">常见问题</text>
</view>
<view class="list-card faq-card">
<view class="faq-item" wx:for="{{faqs}}" wx:key="q">
<text class="faq-q">{{item.q}}</text>
<text class="faq-a">{{item.a}}</text>
</view>
</view>
</view>
<view class="section">
<view class="section-head">
<view class="section-bar"></view>
<text class="section-title">证书样本</text>
</view>
<view class="list-card sample-card">
<image class="sample-image" src="{{certificateSampleUrl}}" mode="widthFix" bindtap="previewCertificateSample" />
<text class="sample-note">证书样本仅供参考,以实际下发证书为准(点击可放大)</text>
</view>
</view>
<view class="contact-entry" bindtap="goToContact">
<text class="entry-prefix">报名前有疑问?</text>
<text class="entry-title">联系客服</text>
<t-icon class="entry-arrow" name="chevron-right" size="28rpx" color="#6F655C" />
</view>
<view class="bottom-placeholder"></view>
</view>
<!-- 全页唯一实心橙块:固定报名入口 -->
<view class="bottom-bar">
<view class="bar-info">
<text class="bar-title">2026 年考位报名</text>
<text class="bar-desc">医疗陪诊顾问(高级)</text>
</view>
<view class="bar-btn" bindtap="goToApply">报名</view>
</view>
</view>
+74
View File
@@ -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); }
+6
View File
@@ -26,6 +26,12 @@ const API = {
getAttendantById: (id) => request.get(`/health/attendant/${id}`), 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 // 就诊人:后端强制以 token 中的用户为准,无需传 userId
healthProfile: { healthProfile: {
getMyProfiles: (params) => request.get('/health/health-profile/mine', params), getMyProfiles: (params) => request.get('/health/health-profile/mine', params),