This commit is contained in:
zjf committed 2026-05-08 23:36:04 +08:00
1 parent d88b995791
commit 26fc9d27ed
1 file changed
+14 -1
+14 -1
View File
@@ -4,6 +4,9 @@ import { onLoad } from "@dcloudio/uni-app"
import { constant } from "@@/index"
import { userApi } from "@@/api"
/** 与后端 ThirdPartyZzdBizCodes.SYS_USER_NOT_FOUND_FOR_ZZD_BIND 一致 */
const CODE_ZZD_SYS_USER_NOT_FOUND = 46001
const bindSessionId = ref("")
const displayName = ref("")
const mobile = ref("")
@@ -47,7 +50,17 @@ async function confirm() {
smsCode: code,
})
if (r?.code !== 0) {
uni.showToast({ title: r?.msg || "核验失败", icon: "none" })
if (r?.code === CODE_ZZD_SYS_USER_NOT_FOUND) {
uni.showModal({
title: "暂无系统账号",
content:
r?.msg ||
"本系统暂无该手机号对应的用户,请联系管理员申请开通账号后,再使用本机号码完成浙政钉绑定登录。",
showCancel: false,
})
} else {
uni.showToast({ title: r?.msg || "核验失败", icon: "none" })
}
return
}
const tokenKey = constant.storageConstant.TOKEN