Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Athena
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
华国豪
Athena
Commits
ca18248c
Commit
ca18248c
authored
Jul 30, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改判断
parent
be435249
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
HotelSure.vue
src/components/Hotel/HotelSure.vue
+5
-2
newLogin.vue
src/views/newLogin.vue
+4
-0
No files found.
src/components/Hotel/HotelSure.vue
View file @
ca18248c
...
...
@@ -934,14 +934,17 @@ export default {
}
//判断是否为登录状态
if
(
localStorage
.
userInfo
){
sessionStorage
.
removeItem
(
"OpenB2BCode"
);
this
.
sureMsg
.
EmployeeIdStr
=
''
;
//
sessionStorage.removeItem("OpenB2BCode");
//
this.sureMsg.EmployeeIdStr='';
let
userInfo
=
this
.
getLocalStorage
();
this
.
sureMsg
.
CustomerId
=
userInfo
.
customerId
;
}
//判断是否跳过来的
if
(
sessionStorage
.
getItem
(
'OpenB2BCode'
)){
this
.
sureMsg
.
EmployeeIdStr
=
sessionStorage
.
getItem
(
'OpenB2BCode'
);
this
.
sureMsg
.
CustomerId
=
0
;
}
else
{
this
.
sureMsg
.
EmployeeIdStr
=
""
;
}
this
.
sureMsg
.
hotelId
=
this
.
msg
.
hotelId
;
...
...
src/views/newLogin.vue
View file @
ca18248c
...
...
@@ -350,6 +350,10 @@ export default {
let
FromPath
=
sessionStorage
.
getItem
(
"FromPath"
)
?
JSON
.
parse
(
sessionStorage
.
getItem
(
"FromPath"
))
:
''
;
this
.
$store
.
commit
(
"changeLogin"
,
1
);
this
.
$store
.
commit
(
"updateUser"
,
userInfo
);
//登录成功 删除后台传参
sessionStorage
.
removeItem
(
"OpenB2BCode"
);
if
(
FromPath
)
{
this
.
$router
.
push
({
path
:
FromPath
.
path
,
query
:
FromPath
.
query
});
}
else
if
(
this
.
$route
.
query
.
id
&&
this
.
$route
.
query
.
path
)
{
...
...
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