Selaa lähdekoodia

Merge branch 'master' of http://47.101.159.18:3000/Muchinfo/MTP20_WEB_GLOBAL

li.shaoyi 2 vuotta sitten
vanhempi
commit
2d0b5ae3cc

+ 1 - 1
public/config/appconfig.json

@@ -1,6 +1,6 @@
 {
   "version": "1.0.0",
   "versionCode": "100000",
-  "apiUrl": "http://192.168.31.175:8080/cfg?key=test_175",
+  "apiUrl": "http://8.130.72.213:8280/cfg?key=mtp_20",
   "shwoRegister": true
 }

+ 2 - 1
src/business/user/account.ts

@@ -45,9 +45,10 @@ export function adddUserReq() {
     const formSubmit = async () => {
         try {
             loading.value = true
-            await requestAddUser({
+            const res = await requestAddUser({
                 data: formData
             })
+            return res
         } finally {
             loading.value = false
         }

+ 2 - 2
src/packages/mobile/views/bank/sign/components/edit/Index.vue

@@ -162,8 +162,8 @@ const formSubmit = () => {
         })
         /// 如果需要短信验证码
         if (CenterErrMsg.value != '') {
-                obj['smsSerialNo'] = CenterErrMsg.value
-            }
+            obj['smsSerialNo'] = CenterErrMsg.value
+        }
         formData.extend_info = JSON.stringify(obj)
 
         onSubmit().then(() => {

+ 5 - 1
src/packages/pc/views/account/sign/components/certification/index.vue

@@ -83,7 +83,11 @@ const onCancel = (isRefresh = false) => {
 const onSubmit = () => {
     formRef.value?.validate((valid) => {
         if (valid) {
-            formSubmit().then(() => {
+            formSubmit().then((res) => {
+                if (res.code != '0') {
+                    ElMessage.error('实名认证提交请求失败:' + res.message)
+                    return
+                }
                 ElMessage.success('实名认证提交请求成功')
                 onCancel(true)
             }).catch((err) => {

+ 1 - 1
src/packages/qxst/router/index.ts

@@ -110,7 +110,7 @@ const routes: Array<RouteRecordRaw> = [
       {
         path: 'certification',
         name: 'account-certification',
-        component: () => import('../views/account/certification/index.vue'),
+        component: () => import('../views/account/certification/Index.vue'),
       },
     ],
   },

+ 26 - 6
src/packages/qxst/views/account/certification/Index.vue

@@ -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')
             })