submit
This commit is contained in:
parent
f3d0135cfe
commit
f57bf1ac2f
@ -44,3 +44,10 @@ export const check_by_phone = (data) => {
|
||||
data
|
||||
})
|
||||
}
|
||||
export const check_id_card = (data) => {
|
||||
return request({
|
||||
url: '/register/check_id_card',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
@ -3,12 +3,15 @@ import {useUserStore} from '@/stores/userStore.js'
|
||||
import {storeToRefs} from "pinia";
|
||||
const userStore = useUserStore()
|
||||
const {submitReturnData} = storeToRefs(userStore);
|
||||
const linkUrl='https://cnisakncsncs.com.cn'
|
||||
const goLink=()=>{
|
||||
window.open(linkUrl)
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="content1">
|
||||
<div class="wrap1">恭喜<span class="wrap1_1">{{submitReturnData.artistName}}</span>{{submitReturnData.gender===1?'先生':'女士'}}完成国展报名登记,报名日期为:{{submitReturnData.createdAt}}。请在会场入口处使用身份识别(人像)进入展会,详情请查看官网已了解更多资讯。</div>
|
||||
<div class="wrap2">前往:https://cnisakncsncs.com.cn</div>
|
||||
<div class="wrap2" @click="goLink">前往:{{linkUrl}}</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -9,7 +9,7 @@ import {computed, ref,watch} from "vue";
|
||||
import {storeToRefs} from "pinia";
|
||||
import {useUserStore} from "@/stores/userStore.js";
|
||||
import {showToast} from "vant";
|
||||
import {save_register_info} from "@/apis/index.js";
|
||||
import {check_id_card, save_register_info} from "@/apis/index.js";
|
||||
const userStore = useUserStore()
|
||||
const {idCardInfo,iDCardImage,recentPhoto,telNum,selectAddress,detailAddress,submitReturnData} = storeToRefs(userStore);
|
||||
const route = useRoute()
|
||||
@ -63,7 +63,7 @@ watch(active,()=>{
|
||||
},{
|
||||
immediate:true
|
||||
})
|
||||
const stepsClick = (item) => {
|
||||
const stepsClick =async (item) => {
|
||||
switch (active.value) {
|
||||
case 0:
|
||||
if (!iDCardImage.value.front||!iDCardImage.value.back){
|
||||
@ -71,9 +71,16 @@ const stepsClick = (item) => {
|
||||
message:'请上传完整的身份证图片',
|
||||
className:'particulars-detail-popup'
|
||||
});
|
||||
|
||||
return
|
||||
}
|
||||
const res=await check_id_card({
|
||||
idCard:idCardInfo.value.iDNum
|
||||
})
|
||||
if (res.status===0){
|
||||
}else {
|
||||
return
|
||||
}
|
||||
|
||||
active.value=1
|
||||
router.replace(`/title-forward/upload-id-card/${1}`)
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user