parent
0b6c61b5b3
commit
fa39606861
|
@ -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) // 忘记密码
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
</u-cell>
|
||||
<u-cell title="出生年月" :value="info.DATE_OF_BIRTH"></u-cell>
|
||||
<u-cell title="年龄" :value="info.AGE"></u-cell>
|
||||
<u-cell title="身份证" :value="info.CARD_ID"></u-cell>
|
||||
<u-cell title="身份证" :value="info.CARD_ID" @blur="fnIDCardDeduplication"></u-cell>
|
||||
<u-cell title="身份证照片">
|
||||
<template #value>
|
||||
<view v-for="(item,index) in userCardIDPhotoFile" :key="index"
|
||||
|
@ -107,7 +107,7 @@
|
|||
<script>
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue