|
@@ -16,20 +16,33 @@
|
|
|
<card v-model="item.p1" text="点击拍摄/上传人像面" icon="" :read="item.isAuthentication === 1" side="face" @success="success"></card>
|
|
|
</view>
|
|
|
<view class="r50">
|
|
|
- <card v-model="item.p2" text="点击拍摄/上传国徽面" icon="" :read="item.isAuthentication === 1" side="back"></card>
|
|
|
+ <card v-model="item.p2" text="点击拍摄/上传国徽面" icon="" :read="item.isAuthentication === 1" side="back" @success="success"></card>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="form" v-else>
|
|
|
- <view class="form_group">
|
|
|
- <view class="lable re">姓名</view>
|
|
|
- <input type="text" placeholder="请输入姓名" v-model="item.name" :disabled="item.isAuthentication === 1" />
|
|
|
+ <view v-else>
|
|
|
+ <view class="form">
|
|
|
+ <view class="form_group">
|
|
|
+ <view class="lable re">姓名</view>
|
|
|
+ <input type="text" placeholder="请输入姓名" v-model="item.name" :disabled="item.isAuthentication === 1" />
|
|
|
+ </view>
|
|
|
+ <view class="form_group">
|
|
|
+ <view class="lable re">身份证</view>
|
|
|
+ <input type="text" placeholder="请输入身份证" v-model="item.idCard" :disabled="item.isAuthentication === 1" />
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class="form_group">
|
|
|
- <view class="lable re">身份证</view>
|
|
|
- <input type="text" placeholder="请输入姓名" v-model="item.idCard" :disabled="item.isAuthentication === 1" />
|
|
|
+ <view class="form" style="margin-top: 15px">
|
|
|
+ <view class="form_group">
|
|
|
+ <view class="lable re">手机号</view>
|
|
|
+ <input type="text" placeholder="请输入手机号" v-model="item.phone" :disabled="item.isAuthentication === 1" />
|
|
|
+ </view>
|
|
|
+ <view class="form_group">
|
|
|
+ <view class="lable re">支付宝账号</view>
|
|
|
+ <input type="text" placeholder="请输入支付宝账号" v-model="item.alipay" :disabled="item.isAuthentication === 1" />
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+
|
|
|
<button class="btn" @click="next()" v-if="step === 1">下一步</button>
|
|
|
<button class="btn" @click="save()" v-if="step === 2 && item.isAuthentication != 1">确定</button>
|
|
|
</view>
|
|
@@ -81,20 +94,22 @@ export default {
|
|
|
{ name: 'name', checkType: 'notnull', errorMsg: '请输入姓名' },
|
|
|
{ name: 'idCard', checkType: 'notnull', errorMsg: '请输入身份证' },
|
|
|
{ name: 'p1', checkType: 'notnull', errorMsg: '请上传身份证人面像' },
|
|
|
- { name: 'p2', checkType: 'notnull', errorMsg: '请上传身份证人徽面' }
|
|
|
+ { name: 'p2', checkType: 'notnull', errorMsg: '请上传身份证人徽面' },
|
|
|
+ { name: 'phone', checkType: 'phone', errorMsg: '请请输入手机号' },
|
|
|
+ { name: 'alipay', checkType: 'notnull', errorMsg: '请输入支付宝账号' }
|
|
|
];
|
|
|
if (!this.verify.check(this.item, rule)) {
|
|
|
uni.showModal({ content: this.verify.error, showCancel: false });
|
|
|
return false;
|
|
|
}
|
|
|
this.http.request({
|
|
|
- url: '/app/user/authentication',
|
|
|
+ url: '/app/user/auth',
|
|
|
data: this.item,
|
|
|
method: 'POST',
|
|
|
success: (res) => {
|
|
|
uni.showModal({
|
|
|
title: '提示',
|
|
|
- content: '提交成功,等待后台审核。',
|
|
|
+ content: '实名认证成功。',
|
|
|
showCancel: false,
|
|
|
success: (res) => {
|
|
|
uni.navigateBack();
|