diff --git a/api/index.js b/api/index.js
index 678aa19..75cb12c 100644
--- a/api/index.js
+++ b/api/index.js
@@ -1,8 +1,8 @@
import {post, upload, uploads} from "../utils/request";
export const submitLogin = (params) => post("/app/admin/check", params) // 登录
-export const getIDCardDeduplication = (params) => post("/app/user/hasCardIdForApp", params) // 身份证去重
-export const getUserDeduplication = (params) => post("/app/user/hasUserNameForApp", params) // 用户名去重
+export const getIDCardDeduplication = (params) => post("/app/user/goCheck", params) // 身份证去重
+export const getUserDeduplication = (params) => post("/app/user/goCheck", params) // 用户名去重
export const getPhoneNumberDeduplication = (params) => post("/app/user/hasPhoneForApp", params) // 手机号去重
export const setRegister = (params) => post("/app/admin/register", params) // 注册
export const setForgotPassword = (params) => post("/app/admin/forgetPassword", params) // 忘记密码
diff --git a/pages/mine/information/index.vue b/pages/mine/information/index.vue
index 6b55625..80aaf8e 100644
--- a/pages/mine/information/index.vue
+++ b/pages/mine/information/index.vue
@@ -16,7 +16,7 @@
-
+
import {
getUserInfo,
- getEmployedBy
+ getEmployedBy, getIDCardDeduplication
} from "../../../api";
import FabButton from "@/components/fab_button/index.vue";
@@ -134,6 +134,14 @@ export default {
}
},
methods: {
+ async fnIDCardDeduplication(CARD_ID = this.form.CARD_ID) {
+ let resData = await getIDCardDeduplication({CARD_ID})
+ if (resData.pd) {
+ uni.$u.toast('身份证号重复')
+ return true
+ }
+ return false
+ },
fnPreview(urls) {
uni.previewImage({
urls