入驻表单移除身份证与证件材料(服务城市单选下拉,默认北京),只填姓名/手机/性别/城市/简介即可提交;新增 pages/launch 启动页先解析身份再跳转,无身份直接进申请页不再闪现首页;新增 pages/materials 证件材料补传页;个人资料页支持在职陪诊师修改服务城市;appId 更名为 wxapp_companion。
147 lines
4.8 KiB
Plaintext
147 lines
4.8 KiB
Plaintext
<!--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">{{application.hasQualification && application.hasHealthCertificate ? '已上传' : '待补充'}}</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>
|
||
<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>
|
||
<picker
|
||
class="field-picker"
|
||
mode="selector"
|
||
range="{{cityLabels}}"
|
||
value="{{cityIndex}}"
|
||
bindchange="onCityChange"
|
||
>
|
||
<view class="field-value">
|
||
{{cityLabels[cityIndex]}}
|
||
<text class="arrow">›</text>
|
||
</view>
|
||
</picker>
|
||
</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>
|
||
|
||
<button class="submit-btn" loading="{{submitting}}" disabled="{{submitting}}" bindtap="submit">
|
||
提交申请
|
||
</button>
|
||
|
||
<view class="foot-note">
|
||
当前微信账号:{{accountName}}。如需更换账号,请在微信中切换后重新打开小程序。
|
||
</view>
|
||
</block>
|
||
</view>
|