|
@@ -109,6 +109,7 @@
|
|
|
<van-button
|
|
<van-button
|
|
|
type="primary"
|
|
type="primary"
|
|
|
block
|
|
block
|
|
|
|
|
+ :disabled="btnDisabled"
|
|
|
round
|
|
round
|
|
|
color="linear-gradient(90deg, #ff7a00, #ffa94d)"
|
|
color="linear-gradient(90deg, #ff7a00, #ffa94d)"
|
|
|
class="next-btn"
|
|
class="next-btn"
|
|
@@ -154,6 +155,7 @@ const params = reactive<PushRecordIdRequest>({
|
|
|
pushRecordId: userStore.pushRecordId,
|
|
pushRecordId: userStore.pushRecordId,
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
+const btnDisabled = ref(false)
|
|
|
const getConfirmInvoiceInfo = async () => {
|
|
const getConfirmInvoiceInfo = async () => {
|
|
|
try {
|
|
try {
|
|
|
loading.value = true
|
|
loading.value = true
|
|
@@ -163,8 +165,10 @@ const getConfirmInvoiceInfo = async () => {
|
|
|
}
|
|
}
|
|
|
} catch (err: any) {
|
|
} catch (err: any) {
|
|
|
const { code, message } = err
|
|
const { code, message } = err
|
|
|
|
|
+ // 如果存在错误码,则显示错误信息,且按钮禁用点击
|
|
|
if (code === 1 && message) {
|
|
if (code === 1 && message) {
|
|
|
showToast(message)
|
|
showToast(message)
|
|
|
|
|
+ // btnDisabled.value = true
|
|
|
}
|
|
}
|
|
|
} finally {
|
|
} finally {
|
|
|
loading.value = false
|
|
loading.value = false
|
|
@@ -174,17 +178,19 @@ const getConfirmInvoiceInfo = async () => {
|
|
|
const handleNext = useDebounceFn(async () => {
|
|
const handleNext = useDebounceFn(async () => {
|
|
|
const res = await getStatusApi(params)
|
|
const res = await getStatusApi(params)
|
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
|
- if (!res.data.eventStatus) {
|
|
|
|
|
|
|
+ // res.data.eventStatus === 'PROCESSED' 去人脸识别页面
|
|
|
|
|
+ if (res.data.eventStatus === 'PROCESSED') {
|
|
|
return router.push({
|
|
return router.push({
|
|
|
path: '/face-recognition',
|
|
path: '/face-recognition',
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
+ return submitInvoiceApply()
|
|
|
// 当前账户没有身份照片,跳转上传证件页面
|
|
// 当前账户没有身份照片,跳转上传证件页面
|
|
|
- if (!res.data.isIdImgReady) {
|
|
|
|
|
- router.push({
|
|
|
|
|
- path: '/identity-upload',
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if (!res.data.isIdImgReady) {
|
|
|
|
|
+ // router.push({
|
|
|
|
|
+ // path: '/identity-upload',
|
|
|
|
|
+ // })
|
|
|
|
|
+ // }
|
|
|
}
|
|
}
|
|
|
}, 1000)
|
|
}, 1000)
|
|
|
|
|
|
|
@@ -205,6 +211,10 @@ const submitInvoiceApply = async () => {
|
|
|
const activeStep = ref(1)
|
|
const activeStep = ref(1)
|
|
|
const onConfirm = () => {
|
|
const onConfirm = () => {
|
|
|
showDialog.value = false
|
|
showDialog.value = false
|
|
|
|
|
+ userStore.LogOut()
|
|
|
|
|
+ router.replace({
|
|
|
|
|
+ path: '/login',
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const toDetail = () => {
|
|
const toDetail = () => {
|