|
|
<view class="authentication">
|
|
|
<form bindsubmit="onSubmit" bindreset="onReset">
|
|
|
<view class="form-item">
|
|
|
<text class="key">职业</text>
|
|
|
<picker class="value" id="identity" range="{{identities}}" bindchange="onIdentityChange" range-key="text" value="{{identity_index}}">{{identities[identity_index].text||'请选择'}}</picker>
|
|
|
<input hidden="1" name="identity" disabled="1" value="{{identities[identity_index].value}}" />
|
|
|
</view>
|
|
|
<view wx:if="{{identity_index==1}}" class="form-item">
|
|
|
<text class="key">学号</text>
|
|
|
<input class="value" id="school_id" type="number" name="extra" placeholder="输入学号" cursor-spacing="100" value="{{student_id}}"></input>
|
|
|
</view>
|
|
|
<view wx:else class="form-item">
|
|
|
<text class="key">职称</text>
|
|
|
<picker class="value" id="technical_title" bindchange="onTechnicalChange" range="{{technicalTitles[identity_index]}}" value="{{technical_index}}">{{technicalTitles[identity_index][technical_index]||'请选择'}}</picker>
|
|
|
<input hidden="1" disabled="1" name="extra" value="{{technicalTitles[identity_index][technical_index]}}"></input>
|
|
|
</view>
|
|
|
<view class="form-item">
|
|
|
<text class="key">{{identity_index<0?'学校/单位':identity_index==2?'单位':'学校'}}</text>
|
|
|
<input hidden="1" disabled="1" name="school_id" type="number" value="{{school_id}}"></input>
|
|
|
<navigator class="value" id="school" hover-class="none" url="/account/pages/profile/school_select/school_select">{{school_name||'请选择'}}</navigator>
|
|
|
</view>
|
|
|
<view class="form-item">
|
|
|
<text class="key">{{identity_index<0?'院系/部门':identity_index==2?'部门':'院系'}}</text>
|
|
|
<picker class="value" id="department" range="{{departments}}" range-key="name" bindchange="onDepartmentChange" value="{{department_index}}">{{departments[department_index].name||department_name||'请选择'}}</picker>
|
|
|
<input hidden="1" disabled="1" name="department_id" type="number" value="{{departments[department_index].id}}"></input>
|
|
|
</view>
|
|
|
<view class="idcard-wrap">
|
|
|
<view class="key">职业证上传</view>
|
|
|
<view class="idcards">
|
|
|
<image class="idcard" mode="aspectFit" src="{{imgDir}}svg/procard.svg"></image>
|
|
|
<image wx:if="{{image_path}}" bindtap="upload" class="idcard" mode="aspectFit" src="{{image_path}}"></image>
|
|
|
<view wx:else bindtap="upload" class="idcard upload">
|
|
|
<view class="photo">
|
|
|
<iconfont type="paizhao" color="white" />
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="tips">
|
|
|
<view>png/jpg/bmp格式,不超过2MB</view>
|
|
|
<view>上传职业证正面</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<checkbox-group name="attachment_ids" hidden="1">
|
|
|
<checkbox value="{{attachment_id}}" checked="{{attachment_id}}"></checkbox>
|
|
|
</checkbox-group>
|
|
|
<input name="user_id" hidden="1" disabled="1" value="{{user_id}}"></input>
|
|
|
<button class="submit" type="main" form-type="submit">提交</button>
|
|
|
<view class="footer-tip">
|
|
|
*提交前请检查信息并阅读认证须知
|
|
|
</view>
|
|
|
</form>
|
|
|
<rich-md nodes="{{information}}" type="markdown" />
|
|
|
</view> |