Files
wxapp_companion/pages/apply/index.wxml
T
lik 51b6ef497b feat(attendant): 展示实习/正式身份与实习只读提示
- 角色解析缓存陪诊师阶段与等级,实习仍可进入工作台

- 首页与个人中心展示身份文案,实习期给出不能接单的提示

- 申请页文案说明审核通过后为实习陪诊师、转正后可接单
2026-11-10 12:02:08 +08:00

206 lines
6.8 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!--pages/apply/index.wxml-->
<view class="apply-page">
<view class="loading-box" wx:if="{{loading}}">
<text class="loading-text">加载中…</text>
</view>
<!-- 待审核 -->
<block wx:elif="{{view === 'pending'}}">
<view class="hero">
<view class="hero-badge">待审核</view>
<text class="hero-title">申请已提交</text>
<text class="hero-desc">审核通过后成为实习陪诊师,可先查看订单;管理员转正后即可接单。期间无需重复提交。</text>
</view>
<view class="card">
<view class="row">
<text class="row-label">申请人</text>
<text class="row-value">{{application.applicant.name}}</text>
</view>
<view class="row">
<text class="row-label">手机号</text>
<text class="row-value">{{application.applicant.mobile}}</text>
</view>
<view class="row">
<text class="row-label">服务城市</text>
<text class="row-value">{{serviceAreaText}}</text>
</view>
<view class="row">
<text class="row-label">提交时间</text>
<text class="row-value">{{submitTimeText}}</text>
</view>
</view>
<view class="foot-note">当前微信账号:{{accountName}}</view>
</block>
<!-- 审核已通过但角色还没刷新(多为瞬时接口异常) -->
<block wx:elif="{{view === 'approved'}}">
<view class="hero">
<view class="hero-badge hero-badge-ok">已通过</view>
<text class="hero-title">审核已通过</text>
<text class="hero-desc">你已成为实习陪诊师,权限正在同步,点击下方按钮进入工作台。</text>
</view>
<button class="submit-btn" bindtap="onRetry">重新进入</button>
<view class="foot-note">当前微信账号:{{accountName}}</view>
</block>
<!-- 填写申请表 -->
<block wx:else>
<view class="hero">
<text class="hero-title">成为陪诊师</text>
<text class="hero-desc">提交资料并通过审核后成为实习陪诊师,可先查看订单;管理员转正后即可接单。</text>
</view>
<view class="reject-box" wx:if="{{rejectReason}}">
<text class="reject-title">上次申请未通过</text>
<text class="reject-text">原因:{{rejectReason}}</text>
<text class="reject-hint">修改后可重新提交,已上传的证件照无需重复上传。</text>
</view>
<view class="card">
<text class="card-title">基本信息</text>
<view class="field">
<text class="field-label">姓名</text>
<input
class="field-input"
value="{{form.name}}"
data-key="name"
maxlength="20"
placeholder="请输入真实姓名"
bindinput="onInput"
/>
</view>
<view class="field">
<text class="field-label">手机号</text>
<input
class="field-input"
type="number"
value="{{form.mobile}}"
data-key="mobile"
maxlength="11"
placeholder="用于审核联系"
bindinput="onInput"
/>
</view>
<view class="field">
<text class="field-label">身份证号</text>
<input
class="field-input"
value="{{form.idNumber}}"
data-key="idNumber"
maxlength="18"
placeholder="18 位身份证号"
bindinput="onInput"
/>
</view>
<view class="field">
<text class="field-label">性别</text>
<picker
class="field-picker"
mode="selector"
range="{{sexLabels}}"
value="{{sexIndex}}"
bindchange="onSexChange"
>
<view class="field-value {{form.sex ? '' : 'placeholder'}}">
{{form.sex ? sexLabels[sexIndex] : '请选择性别'}}
<text class="arrow">›</text>
</view>
</picker>
</view>
<view class="field">
<text class="field-label">服务城市</text>
<input
class="field-input"
value="{{form.serviceAreas}}"
data-key="serviceAreas"
placeholder="多个城市用逗号分隔"
bindinput="onInput"
/>
</view>
<view class="field field-block">
<text class="field-label">个人简介</text>
<textarea
class="field-textarea"
value="{{form.introduction}}"
data-key="introduction"
maxlength="200"
placeholder="介绍一下你的陪诊经验、擅长科室等"
bindinput="onInput"
/>
</view>
</view>
<view class="card">
<text class="card-title">证件材料</text>
<view class="upload-row">
<view class="upload-tile" data-field="qualification" bindtap="pickImage">
<image
wx:if="{{photos.qualification}}"
class="upload-img"
src="{{photos.qualification}}"
mode="aspectFill"
/>
<view wx:else class="upload-empty">
<text class="upload-plus">+</text>
</view>
</view>
<view class="upload-meta">
<text class="upload-name">资质证书照片</text>
<text class="upload-tip">{{photos.qualification ? '已选择,点击可重新上传' : 'JPG / PNG,单张不超过 3MB'}}</text>
</view>
</view>
<view class="upload-row">
<view class="upload-tile" data-field="healthCertificate" bindtap="pickImage">
<image
wx:if="{{photos.healthCertificate}}"
class="upload-img"
src="{{photos.healthCertificate}}"
mode="aspectFill"
/>
<view wx:else class="upload-empty">
<text class="upload-plus">+</text>
</view>
</view>
<view class="upload-meta">
<text class="upload-name">健康证明照片</text>
<text class="upload-tip">{{photos.healthCertificate ? '已选择,点击可重新上传' : 'JPG / PNG,单张不超过 3MB'}}</text>
</view>
</view>
<view class="field">
<text class="field-label">健康证有效期</text>
<picker
class="field-picker"
mode="date"
value="{{healthExpireDate}}"
start="{{today}}"
bindchange="onExpireChange"
>
<view class="field-value {{healthExpireDate ? '' : 'placeholder'}}">
{{healthExpireDate || '请选择到期日期'}}
<text class="arrow">›</text>
</view>
</picker>
</view>
</view>
<button class="submit-btn" loading="{{submitting}}" disabled="{{submitting}}" bindtap="submit">
提交申请
</button>
<view class="foot-note">
当前微信账号:{{accountName}}。如需更换账号,请在微信中切换后重新打开小程序。
</view>
</block>
</view>