diff --git a/app/api/auth/index.js b/app/api/auth/index.js index b1056b6..87fdd22 100644 --- a/app/api/auth/index.js +++ b/app/api/auth/index.js @@ -36,4 +36,11 @@ export async function userCaptchaValidate(data) { method: 'POST', data }) +} +export async function contractUserinfo(data) { + return await request( { + url:'/api/v1/contract/userinfo', + method: 'POST', + data + }) } \ No newline at end of file diff --git a/app/components/puzzleComponent/index.vue b/app/components/puzzleComponent/index.vue index c031771..a95cfde 100644 --- a/app/components/puzzleComponent/index.vue +++ b/app/components/puzzleComponent/index.vue @@ -148,11 +148,13 @@ >
- {{ verifyStatus.message }} + {{ isVerifying ? '验证中...' : verifyStatus.message }}
diff --git a/app/pages/publicLiveRoom/components/broadcast/index.vue b/app/pages/publicLiveRoom/components/broadcast/index.vue index 9c4235c..0f3de41 100644 --- a/app/pages/publicLiveRoom/components/broadcast/index.vue +++ b/app/pages/publicLiveRoom/components/broadcast/index.vue @@ -42,7 +42,7 @@ onMounted(async()=>{ await fetchBuyList() timer.value = setInterval(async () => { await fetchBuyList() - }, 10000) + }, 5000) }) onUnmounted(() => { diff --git a/app/pages/signature/protocol/index.vue b/app/pages/signature/protocol/index.vue index 718c49a..da3c71f 100644 --- a/app/pages/signature/protocol/index.vue +++ b/app/pages/signature/protocol/index.vue @@ -5,6 +5,7 @@ import { signOnline } from "~/api/goods/index.js" import { authStore } from "~/stores/auth/index.js" import {useI18n} from "vue-i18n"; import { useThrottleFn } from '@vueuse/core' +import { contractUserinfo } from "@/api/auth/index.js" definePageMeta({ layout: 'default', i18n: 'signature.protocol.title' @@ -47,7 +48,17 @@ const handleCollapseChange = (name) => { } const goSignature =useThrottleFn(async () => { - if(userInfo.value.userExtend.isMainland===1){ + //先走特殊验证接口 + const res1 = await contractUserinfo({phone:userInfo.value.telNum}) + if(res1.status===0){ + //特殊验证通过 + if(res1.data.specialType===1){ + router.push({ + path: '/signature/panel' + }) + }else if(res1.data.specialType===0){ + //特殊验证不通过 + if(userInfo.value.userExtend.isMainland===1){ const res = await signOnline({ auctionArtworkUuid:payment.value.auctionArtworkUuid }) @@ -66,6 +77,10 @@ const goSignature =useThrottleFn(async () => { path: '/signature/panel' }) } + } + } + + },2000)