47 lines
2.0 KiB
XML
47 lines
2.0 KiB
XML
<view class="page-body">
|
|
<view class="container">
|
|
<view class="inner">
|
|
<l-input required value="{{ name }}" label="{{ t('user:attr.name') }}" disabled="{{ idState !== 'unverified' }}"
|
|
placeholder="{{ t('please input name') }}" bind:lininput="setNameMp" />
|
|
<l-picker required label="{{ t('user:attr.idCardType') }}"
|
|
placeholder="{{ t('please choose idCardType') }}" range="{{ idCardTypeArr }}" disabled="{{ idState !== 'unverified' }}"
|
|
rangeKey="label" value="{{idCardType}}" bind:linchange="setIdCardTypeMp" />
|
|
|
|
<l-input required value="{{ idNumber }}"
|
|
disabled="{{!idCardType || idState !== 'unverified'}}"
|
|
type="{{ idCardType === 'ID-Card' ? 'idcard' : 'text' }}"
|
|
label="{{ t('user:attr.idNumber') }}"
|
|
placeholder="{{ t('please input idNumber') }}" bind:lininput="setIdNumberMp" />
|
|
|
|
<block wx:if="{{oakId && idCardType && needUploadPhotos}}">
|
|
<idCard disabled="{{ idState !== 'unverified' }}" entity="user" entityId="{{oakId}}" origin="{{origin}}"
|
|
idCardType="{{idCardType}}"
|
|
oakPath="{{ oakFullpath + '.extraFile$entity' }}" />
|
|
</block>
|
|
</view>
|
|
</view>
|
|
<block wx:if="{{ idState === 'verified' }}">
|
|
<view class="info">
|
|
{{idStateStr}}
|
|
</view>
|
|
</block>
|
|
<block wx:elif="{{ idState === 'verifying' }}">
|
|
<view class="info">
|
|
{{idStateStr}}
|
|
</view>
|
|
</block>
|
|
<block wx:else>
|
|
<block wx:if="{{ autoUpload || !needUploadPhotos }}">
|
|
<l-button type="default" block size="long" bind:lintap="onConfirm">
|
|
提交认证
|
|
</l-button>
|
|
</block>
|
|
<block wx:else>
|
|
<extraFile-commit executeText="提交认证" type="default" block size="long"
|
|
oakPath="{{oakFullpath}}"
|
|
afterCommit="{{afterCommitMp}}">
|
|
</extraFile-commit>
|
|
</block>
|
|
</block>
|
|
</view>
|