diff --git a/src/pages/user/zzdSmsVerify.vue b/src/pages/user/zzdSmsVerify.vue index 6865182..b98e1b6 100644 --- a/src/pages/user/zzdSmsVerify.vue +++ b/src/pages/user/zzdSmsVerify.vue @@ -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