Forráskód Böngészése

Merge branch 'feature-btnDisabked-260917' into pre

yuanmingze 2 napja
szülő
commit
ccccf4cdff
1 módosított fájl, 6 hozzáadás és 6 törlés
  1. 6 6
      src/views/invoice-information/index.vue

+ 6 - 6
src/views/invoice-information/index.vue

@@ -113,7 +113,7 @@
 
       <van-button
         type="primary"
-        :disabled="btnDisabled"
+        :disabled="loading"
         round
         class="next-btn btn"
         @click="handleNextDebounced"
@@ -154,9 +154,8 @@ import { useInvoice } from '@/hooks/useInvoice'
 // --- 初始化 Hooks ---
 const {
   getStatus,
-  submitInvoiceWithGuard,
+  submitInvoiceForce,
   getFaceAuthResult,
-  btnDisabled,
   statusMap,
   faceAuthResult,
   needFaceAuth,
@@ -192,10 +191,11 @@ const getConfirmInvoiceInfo = async () => {
 
 /**
  * 下一步逻辑
- * 使用 hooks 提供的状态进行判断
+ * 按钮只受开票信息加载状态限制,其他状态用于决定后续流程
  */
 const handleNext = async () => {
-  if (btnDisabled.value) return
+  // 当前页面只等待开票信息加载完成,不受开票状态及人脸状态接口就绪状态限制
+  if (loading.value) return
 
   // 未上传身份证,跳转上传页
   if (!statusMap.value.isIdImgReady) {
@@ -208,7 +208,7 @@ const handleNext = async () => {
   }
 
   // 不需要人脸,或者人脸已完成,直接提交
-  await submitInvoiceWithGuard()
+  await submitInvoiceForce()
 }
 
 const rejectAndReturnDialog = ref(false)