shaogen1995 vor 7 Monaten
Ursprung
Commit
723abbe4b9

+ 3 - 1
展示端/src/pages/A4selectCourse/index.tsx

@@ -62,7 +62,9 @@ function A4selectCourse() {
       const res = await A4_APIcheck()
       if (res.code === 0) {
         // 跳预约页面
-        if (res.data) history.push(`/order/${id}/${urlObj.bookDate}/${urlObj.bookTime}`)
+        // 0:未认证 | 1:已认证 | 2:认证中
+
+        if (res.data === 1) history.push(`/order/${id}/${urlObj.bookDate}/${urlObj.bookTime}`)
         else setTanShow(true) // 打开弹窗 提示去认证页面
       }
     },

+ 9 - 2
展示端/src/pages/A7team/index.tsx

@@ -13,12 +13,19 @@ function A7team() {
     const res = await A4_APIcheck()
 
     if (res.code === 0) {
-      if (res.data) {
+      // 0:未认证 | 1:已认证 | 2:认证中
+
+      if (res.data === 1) {
         setTitPop({
           txt1: '您已完成认证',
           txt2: '无需重复申请'
         })
-      } else {
+      } else if (res.data === 2) {
+        setTitPop({
+          txt1: '申请审核中',
+          txt2: '请勿重复申请'
+        })
+      } else if (res.data === 0) {
         if (can) history.push(`/proof/${can}`)
         else history.push(`/codeAuth`)
       }