Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨炀
/
ztx_wx_gzt
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
8d9389d9
authored
2026-06-02 10:34:47 +0800
by
lttnew
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
申请考点提示
1 parent
4eb1ea9e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
24 deletions
login/register.vue
pages/index/daoGuanPerson.vue
login/register.vue
View file @
8d9389d
...
...
@@ -191,20 +191,24 @@ function register() {
return
}
groupMemberRegister
(
registerForm
.
value
)
.
then
((
res
)
=>
{
showModal
({
title
:
'提示'
,
content
:
`恭喜你,您的账号
${
registerForm
.
value
.
telNo
}
注册成功!`
,
groupMemberRegister
(
registerForm
.
value
)
.
then
((
res
)
=>
{
showModal
({
title
:
'提示'
,
content
:
`恭喜你,您的账号
${
registerForm
.
value
.
telNo
}
注册成功!`
,
cancelText
:
'取消'
,
confirmText
:
'去登录'
,
onConfirm
:
()
=>
{
registerForm
.
value
=
{}
goLogin
()
}
})
})
}
goLogin
()
}
})
}).
catch
((
err
)
=>
{
if
(
isServer500
(
err
))
{
getCode
()
}
})
}
// 密码校验:8~18位大小写字母加数字加特殊符号组合
function
validPassword
(
pwd
)
{
...
...
@@ -278,15 +282,23 @@ function goLogin() {
});
}
function
getCode
()
{
getCodeImg
().
then
((
res
)
=>
{
codeUrl
.
value
=
'data:image/gif;base64,'
+
res
.
data
.
img
registerForm
.
value
.
uuid
=
res
.
data
.
uuid
})
}
// 发送短信验证码
function
getCaptchaSms
()
{
function
getCode
()
{
getCodeImg
().
then
((
res
)
=>
{
codeUrl
.
value
=
'data:image/gif;base64,'
+
res
.
data
.
img
registerForm
.
value
.
uuid
=
res
.
data
.
uuid
})
}
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
)
{
uni
.
showToast
({
title
:
'手机号不能为空'
,
...
...
@@ -443,4 +455,4 @@ function timeup() {
width
:
100vw
;
justify-content
:
center
;
}
</
style
>
\ No newline at end of file
</
style
>
...
...
pages/index/daoGuanPerson.vue
View file @
8d9389d
...
...
@@ -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
&&
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment