8d9389d9 by lttnew

申请考点提示

1 parent 4eb1ea9e
......@@ -203,6 +203,10 @@ function register() {
goLogin()
}
})
}).catch((err) => {
if (isServer500(err)) {
getCode()
}
})
}
......@@ -285,6 +289,14 @@ function getCode() {
})
}
function isServer500(err) {
const message = String(err?.message || err?.errMsg || '')
return err?.statusCode === 500 ||
err?.code === 500 ||
err?.data?.code === 500 ||
message.includes('HTTP 500')
}
// 发送短信验证码
function getCaptchaSms() {
if (!registerForm.value.telNo) {
......
......@@ -405,11 +405,14 @@ function checkDialogs() {
async function checkExamPointDialog() {
console.log('checkExamPointDialog', app.globalData.userInfo.hintFlag )
// const [err, res] = await to(api.getMyRecentExam())
// if (err || !res?.data) return
// const status = res.data?.auditStatus
const [err, res] = await to(api.getMyRecentExam())
if (err) return
const examData = res?.data
const status = examData?.auditStatus
const canShowByExamStatus = examData == null || status == 0 || status == 3
// (status == 0 || status == 3) &&
if (
console.log('122', app.globalData.memberInfo?.activeStatus,app.globalData.authenticationStatus,app.globalData.deptType,app.globalData.userInfo.hintFlag, app.globalData.memberInfo?.isPoints)
if (canShowByExamStatus &&
app.globalData.memberInfo?.activeStatus == 1 &&
app.globalData.authenticationStatus == 2 &&
app.globalData.deptType == 6 &&
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!