Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
pptist
Commits
3f27fdcf
Commit
3f27fdcf
authored
May 28, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设置 邮箱,登录密码
parent
298188ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
UserService.ts
src/services/UserService.ts
+2
-2
Setting.vue
src/views/UserCenter/Setting.vue
+9
-3
InviteMember.vue
src/views/components/Team/InviteMember.vue
+1
-1
No files found.
src/services/UserService.ts
View file @
3f27fdcf
...
...
@@ -113,8 +113,8 @@ class UserServices {
let
msg
=
{}
return
Api
.
Post
(
"travel_sample_count"
,
msg
)
}
static
async
SendRegistCodeAsync
(
mail
:
string
):
Promise
<
HttpResponse
>
{
let
msg
=
{
mail
}
static
async
SendRegistCodeAsync
(
mail
:
string
,
isbind
:
any
):
Promise
<
HttpResponse
>
{
let
msg
=
{
mail
,
isbind
}
return
Api
.
Post
(
"travel_regist_mail"
,
msg
)
}
static
async
NeedVerifyStatusAsync
():
Promise
<
HttpResponse
>
{
...
...
src/views/UserCenter/Setting.vue
View file @
3f27fdcf
...
...
@@ -196,8 +196,14 @@ const bindHandler = async () =>{
if
(
dialogType
.
value
==
2
)
response
=
await
UserServices
.
setModifyUserPwd
(
model
.
value
.
oldpwd
,
model
.
value
.
pwd
)
if
(
response
){
if
(
response
.
data
.
resultCode
==
ApiResult
.
SUCCESS
){
if
(
dialogType
.
value
==
1
)
ElMessage
.
success
({
message
:
'绑定邮箱成功'
})
if
(
dialogType
.
value
==
2
)
ElMessage
.
success
({
message
:
'更换密码成功'
})
if
(
dialogType
.
value
==
1
)
{
ElMessage
.
success
({
message
:
'绑定邮箱成功'
})
getInfo
}
if
(
dialogType
.
value
==
2
)
{
ElMessage
.
success
({
message
:
'更换密码成功'
})
useUser
.
setUserLoginOut
()
}
dialogVisible
.
value
=
false
dialogType
.
value
=
null
return
...
...
@@ -214,7 +220,7 @@ const sendVerifyCode = async () => {
if
(
!
mailRegex
.
test
(
model
.
value
.
mail
)
||
sending
.
value
)
return
sending
.
value
=
true
const
response
=
await
UserServices
.
SendRegistCodeAsync
(
model
.
value
.
mail
)
const
response
=
await
UserServices
.
SendRegistCodeAsync
(
model
.
value
.
mail
,
1
)
if
(
response
.
data
.
resultCode
==
ApiResult
.
SUCCESS
){
ElMessage
.
success
({
message
:
'验证码已发送,请前往邮箱查看'
})
isCountdown
.
value
=
true
...
...
src/views/components/Team/InviteMember.vue
View file @
3f27fdcf
...
...
@@ -81,7 +81,7 @@
<div>
<el-alert
show-icon
title=
"人员总数"
type=
"info"
:closable=
"false"
>
<i
class=
"el-icon-coin"
></i>
<span>
{{UploadResults.totalNum}}
</span>
<span>
{{UploadResults.totalNum
>0?UploadResults.totalNum:0
}}
</span>
</el-alert>
</div>
<div
class=
"q-px-md"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment