feat: 认证页发起人脸前先查中奖预检,未中奖提示「您暂未中奖,请中奖后再进入认证」,避免过度消耗实名认证费用(需先发布后端 checkWinner 接口)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
jacobxu666
2026-10-19 12:21:38 +08:00
co-authored by Claude Fable 5
parent f6c282237d
commit 8ec4ef304f
2 changed files with 34 additions and 0 deletions
+5
View File
@@ -12,6 +12,8 @@ const StoreDetailUrl = 'mp-api/hhrsStore/detail'
const RightsListUrl = 'mp-api/hhrsRights/list'
const RightsDetailUrl = 'mp-api/hhrsRights/detail'
const EligibilityUrl = 'mp-api/hhrsRights/eligibility'
// xuchao: 认证前中奖预检(未中奖拦截人脸核验,省认证费)
const WinnerCheckUrl = 'mp-api/hhrsRights/checkWinner'
const AppointmentListUrl = 'mp-api/hhrsRights/appointment/list'
const CheckListUrl = 'mp-api/hhrsRights/check/list'
// 实名人脸认证(阿里云)
@@ -45,6 +47,8 @@ const install = (Vue, vm) => {
const getRightsDetail = (params = {}) => vm.$u.post(RightsDetailUrl, params)
// xuchao: 注意 identityNo 会触发后端“被动认证”回写,仅在认证流程中传
const getEligibility = (params = {}) => vm.$u.post(EligibilityUrl, params)
// xuchao: 发起人脸前查证件号是否在中奖名单,返回 data.isWinner
const checkWinner = (params = {}) => vm.$u.post(WinnerCheckUrl, params)
const getAppointmentList = (params = {}) => vm.$u.post(AppointmentListUrl, params)
const getCheckList = (params = {}) => vm.$u.post(CheckListUrl, params)
const doAppoint = (params = {}) => vm.$u.post(AppointUrl, params)
@@ -72,6 +76,7 @@ const install = (Vue, vm) => {
getRightsList,
getRightsDetail,
getEligibility,
checkWinner,
getAppointmentList,
getCheckList,
doAppoint,