|
|
@@ -60,7 +60,7 @@ import AppUploader from '@mobile/components/base/uploader/index.vue'
|
|
|
import { useNavigation } from '@mobile/router/navigation'
|
|
|
|
|
|
const componentMap = new Map<string, unknown>([
|
|
|
- ['certification-next', defineAsyncComponent(() => import('./components/certification-next/index.vue'))], // 爱签-实名认证第二步
|
|
|
+ ['certification-next', defineAsyncComponent(() => import('./components/certification-next/Index.vue'))], // 爱签-实名认证第二步
|
|
|
])
|
|
|
|
|
|
const { router } = useNavigation()
|
|
|
@@ -149,12 +149,32 @@ const onCheckCardNum = () => {
|
|
|
cardnum: formData.idCard
|
|
|
}
|
|
|
}).then(() => {
|
|
|
- formSubmit().then(() => {
|
|
|
+ formSubmit().then((res) => {
|
|
|
+ console.log(res)
|
|
|
hideLoading()
|
|
|
- dialog('提交请求成功').then(() => {
|
|
|
- /// 进行下一步
|
|
|
- openComponent('certification-next')
|
|
|
- })
|
|
|
+ switch (res.data.code) {
|
|
|
+ case '0':
|
|
|
+ dialog('提交请求成功').then(() => {
|
|
|
+ /// 进行下一步
|
|
|
+ openComponent('certification-next')
|
|
|
+ })
|
|
|
+ break;
|
|
|
+ case '100020':
|
|
|
+ showFailToast('个人三要素信息验证失败')
|
|
|
+ break;
|
|
|
+ case '100021':
|
|
|
+ showFailToast('用户已存在')
|
|
|
+ break;
|
|
|
+ case '100726':
|
|
|
+ showFailToast('该条实名记录为核验记录,无法用于添加用户')
|
|
|
+ break;
|
|
|
+ case '100727':
|
|
|
+ showFailToast('实名认证类型和添加用户类型不匹配')
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ showFailToast('请求失败,错误码:'+res.data.code)
|
|
|
+ break;
|
|
|
+ }
|
|
|
}).catch((err) => {
|
|
|
hideLoading(err, 'fail')
|
|
|
})
|