master
xingyy 2 months ago
parent 1c6e8e2f0f
commit 2fa7641c1b

@ -4,7 +4,7 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"test": "vite",
"test": "vite --mode test",
"prod": "vite --mode prod",
"build-test": "vite build --mode test",
"build-prod": "vite build --mode prod",

@ -10,8 +10,11 @@ const goLink=()=>{
</script>
<template>
<div class="content1">
<div class="wrap1">恭喜<span class="wrap1_1">{{submitReturnData.artistName}}</span>{{submitReturnData.gender===1?'先生':'女士'}}完成国展报名登记报名日期为{{submitReturnData.createdAt}}请在会场入口处使用身份识别(人像)进入展会详情请查看官网已了解更多资讯</div>
<div class="wrap2" @click="goLink">{{linkUrl}}</div>
<div class="wrap1">恭喜<span class="wrap1_1">{{submitReturnData.artistName}}</span>{{submitReturnData.gender===1?'先生':'女士'}}完成国展报名登记报名日期为{{submitReturnData.createdAt}}
<!-- 请在会场入口处使用身份识别(人像)进入展会详情请查看官网已了解更多资讯--></div>
<!-- <div class="wrap2" @click="goLink">{{linkUrl}}</div>-->
</div>
</template>
@ -20,7 +23,7 @@ const goLink=()=>{
margin-bottom: 340px;
box-sizing: border-box;
width: 333px;
height: 198px;
background-color: #fff;
border-radius: 10px;
padding: 23px 34px 28px;

@ -9,7 +9,9 @@ import dayjs from "dayjs";
const userStore = useUserStore()
const {idCardInfo,iDCardImage} = storeToRefs(userStore);
const Num=ref(0)
const afterRead = async (file, num) => {
Num.value=num
const res = await upload_img({
file: file.file,
source: "artwork",
@ -27,7 +29,6 @@ const afterRead = async (file, num) => {
const compareDate=(givenDate)=> {
const inputDate = dayjs(givenDate);
const now = dayjs();
if (inputDate.isBefore(now)) {
return '证件已到期,请尽快更新,否则将影响部分功能使用!';
} else if (inputDate.isBefore(now.add(3, 'month'))) {
@ -48,6 +49,12 @@ const cardFace = async (img, num) => {
idCardInfo.value.expirationDate=res.data.expirationDate
idCardInfo.value.issueDate=res.data.issueDate
}
}else if (res.status === 1) {
if(Num.value===0){
iDCardImage.value.front=''
}else if(Num.value===1){
iDCardImage.value.back=''
}
}
}
</script>

Loading…
Cancel
Save