Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
national_museum_vod-H5
Project
Project
Details
Activity
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
fubaole
national_museum_vod-H5
Commits
050b284b
Commit
050b284b
authored
May 31, 2021
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提示语有误
parent
c9c18d87
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
192 additions
and
167 deletions
+192
-167
login.vue
src/views/login.vue
+4
-1
editPsd.vue
src/views/user/editPsd.vue
+188
-166
No files found.
src/views/login.vue
View file @
050b284b
...
@@ -45,6 +45,7 @@ export default {
...
@@ -45,6 +45,7 @@ export default {
let
param
=
{
let
param
=
{
password
:
util
.
encrypt
(
this
.
userInfo
.
password
),
password
:
util
.
encrypt
(
this
.
userInfo
.
password
),
username
:
this
.
userInfo
.
username
,
username
:
this
.
userInfo
.
username
,
// administrator: 2
};
};
vm
.
$https
(
vm
.
$https
(
{
{
...
@@ -79,8 +80,10 @@ export default {
...
@@ -79,8 +80,10 @@ export default {
this
.
$toast
.
fail
(
"您登录的账号既不是运维账号也不是单位用户账号,不能使用H5的功能"
);
this
.
$toast
.
fail
(
"您登录的账号既不是运维账号也不是单位用户账号,不能使用H5的功能"
);
}
}
}
else
{
}
else
if
(
res
.
data
.
resultCode
===
"200"
&&
(
res
.
data
.
user
.
type
!==
'2'
||
res
.
data
.
user
.
type
!==
'4'
))
{
this
.
$toast
.
fail
(
"您登录的账号既不是运维账号也不是单位用户账号,不能使用H5的功能"
);
this
.
$toast
.
fail
(
"您登录的账号既不是运维账号也不是单位用户账号,不能使用H5的功能"
);
}
else
{
this
.
$toast
.
fail
(
res
.
data
.
message
)
}
}
})
})
.
catch
(
function
(
err
)
{
.
catch
(
function
(
err
)
{
...
...
src/views/user/editPsd.vue
View file @
050b284b
...
@@ -60,14 +60,36 @@ export default {
...
@@ -60,14 +60,36 @@ export default {
data
()
{
data
()
{
return
{
return
{
form
:
{
form
:
{
username
:
JSON
.
parse
(
sessionStorage
.
getItem
(
"userInfo"
)).
userName
,
username
:
''
,
},
},
};
};
},
},
mounted
()
{
created
()
{
// 查询管理员信息
this
.
selectUser
()
},
},
methods
:
{
methods
:
{
// 查询当前用户信息
selectUser
(){
console
.
log
(
JSON
.
parse
(
sessionStorage
.
getItem
(
"userInfo"
)).
id
)
let
vm
=
this
;
let
param
=
{
id
:
JSON
.
parse
(
sessionStorage
.
getItem
(
"userInfo"
)).
id
};
vm
.
$https
(
{
url
:
"/tUser/getById"
,
method
:
"get"
,
authType
:
this
.
backToken
,
},
param
)
.
then
((
res
)
=>
{
this
.
form
.
username
=
res
.
data
.
data
.
userName
})
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
});
},
// 提交数据
// 提交数据
onSubmit
()
{
onSubmit
()
{
if
(
this
.
form
.
password
!==
this
.
form
.
againPsd
)
{
if
(
this
.
form
.
password
!==
this
.
form
.
againPsd
)
{
...
...
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