You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
4.0 KiB
73 lines
4.0 KiB
<!--pages/home/authory/index.wxml-->
|
|
<cu-custom bgColor="bg-white" isBack="{{true}}">
|
|
<view slot="content">实名认证</view>
|
|
</cu-custom>
|
|
|
|
<view class="cu-bar bg-white" style="min-height:90rpx" wx:if="{{step == 0}}">
|
|
<view class="action" style="color:#333333">
|
|
<!-- <text class="text-red" style="padding-top: 20rpx;font-size: 40rpx;">*</text> -->
|
|
<text>请拍摄/上传本人身份证(头像面)</text>
|
|
</view>
|
|
</view>
|
|
<view class="cu-form-group" wx:if="{{step == 0}}">
|
|
<view class="flex flex-justify" style="width:100%;">
|
|
<view class="image-reader-item" bindtap="chooseImage" data-index="0" wx:if="{{!imgList[0]}}">
|
|
<image style="width:100%;height:400rpx" mode="aspectFill" src="https://pic.downk.cc/item/5fdad3433ffa7d37b32a97b7.png"></image>
|
|
</view>
|
|
<view class="image-reader-item" bindtap="viewImage" data-url="{{imgList[0]}}" wx:else>
|
|
<image style="width:100%;height: 400rpx" src="{{imgList[0]}}" mode="aspectFill"></image>
|
|
<view class="delete" catchtap="deleteImg" data-index="0" wx:if="{{!flag}}">
|
|
<text class="cuIcon-close {{pathList[0].status===-1?'text-red':'text-white'}}"></text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="cu-bar bg-white" style="min-height:90rpx" wx:if="{{step == 0}}">
|
|
<view class="action" style="color:#333333">
|
|
<!-- <text class="text-red" style="padding-top: 20rpx;font-size: 40rpx;">*</text> -->
|
|
<text>请拍摄/上传本人身份证(国徽面)</text>
|
|
</view>
|
|
</view>
|
|
<view class="cu-form-group" style="border-top: 0rpx solid #eee" wx:if="{{step == 0}}">
|
|
<view class="flex flex-justify" style="width:100%;padding-bottom:30rpx">
|
|
<view class="image-reader-item" bindtap="chooseImage" data-index="1" wx:if="{{!imgList[1]}}">
|
|
<image style="width:100%;height:400rpx" mode="aspectFill" src="https://pic.downk.cc/item/5fdad3673ffa7d37b32ab850.png"></image>
|
|
</view>
|
|
<view class="image-reader-item" bindtap="viewImage" data-url="{{imgList[1]}}" wx:else>
|
|
<image style="width:100%;height: 400rpx" src="{{imgList[1]}}" mode="aspectFill"></image>
|
|
<view class="delete" catchtap="deleteImg" data-index="1" wx:if="{{!flag}}">
|
|
<text class="cuIcon-close {{pathList[1].status===-1?'text-red':'text-white'}}"></text>
|
|
</view>
|
|
<!-- <view class="md-load load-spinner text-white" wx:if="{{pathList[1].status===1}}"/> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view style="padding:0rpx 32rpx;margin-top:24rpx" wx:if="{{step == 1}}">
|
|
<view class="cu-form-group margin-top" style="min-height:100rpx;padding:0rpx;">
|
|
<view class="label flex flex-center" style="margin-left:12rpx;margin-right:24rpx;width:200rpx;justify-content: flex-start">
|
|
<text class="text-red" style="padding-top: 20rpx;font-size: 40rpx;">*</text>
|
|
<text>姓名:</text>
|
|
</view>
|
|
<input id="realName" placeholder="请输入真实姓名" placeholder-style="color:#aaa" value="{{form.realName}}" bind:input="bindInput"/>
|
|
</view>
|
|
<view class="cu-form-group" style="min-height:100rpx;padding:0rpx;border-bottom: 1px solid #eee">
|
|
<view class="label flex flex-center" style="margin-left:12rpx;margin-right:24rpx;width:200rpx;justify-content: flex-start">
|
|
<text class="text-red" style="padding-top: 20rpx;font-size: 40rpx;">*</text>
|
|
<text>身份证号码:</text>
|
|
</view>
|
|
<input id="certificateNo" placeholder="请输入身份证号码" placeholder-style="color:#aaa" value="{{form.certificateNo}}" bind:input="bindInput"/>
|
|
</view>
|
|
</view>
|
|
|
|
<view style="padding: 36rpx 32rpx" wx:if="{{step == 0}}">
|
|
<van-button block bind:click="nextStep">手动输入</van-button>
|
|
<view style="margin-top:48rpx"></view>
|
|
<van-button block type="info" loading="{{loging}}" bind:click="submitImage">提交</van-button>
|
|
</view>
|
|
<view class="flex flex-direction" style="padding: 36rpx 32rpx;margin-top:96rpx" wx:if="{{step == 1}}">
|
|
<van-button block type="info" loading="{{loging}}" bind:click="submitForm">进行认证</van-button>
|
|
</view>
|
|
|
|
<van-dialog id="van-dialog" />
|
|
<notification id="qn-notification"/>
|