Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
47cfc660
Commit
47cfc660
authored
Jan 19, 2020
by
刘泽奇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
685e98ab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
8 deletions
+20
-8
igirl-channel-web/app/front/entry/index.ejs
+1
-1
igirl-channel-web/app/front/entry/public/js/index.js
+17
-2
igirl-channel-web/app/front/vues/pages/login/login.js
+2
-5
No files found.
igirl-channel-web/app/front/entry/index.ejs
View file @
47cfc660
...
...
@@ -64,7 +64,7 @@
</div>
<!-- 启服通公共头 -->
<div
class=
"commonchannel"
v-if=
"channelName == 'bw'
&& !isLogin
"
>
<div
class=
"commonchannel"
v-if=
"channelName == 'bw'"
>
<div>
<div
@
click=
"goHome"
>
<img
:src=
"logoImg"
alt=
""
>
...
...
igirl-channel-web/app/front/entry/public/js/index.js
View file @
47cfc660
...
...
@@ -202,9 +202,9 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => {
console
.
log
(
$
.
fn
.
jquery
,
"vvvvvvvvvvvvvvvvv"
);
var
self
=
this
;
if
(
$
.
cookie
(
'userpin'
))
{
this
.
user_Name
=
$
.
cookie
(
'userName'
);
this
.
channelUserId
=
$
.
cookie
(
'channelUserId'
);
this
.
getUserInfo
();
}
},
watch
:
{
// 监听路由变化
...
...
@@ -221,6 +221,21 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => {
}
},
methods
:
{
// 获取用户信息
getUserInfo
()
{
var
userPin
=
$
.
cookie
(
'userpin'
);
this
.
$root
.
postReq
(
"/web/trademark/tmqueryCtl/getUserByPin"
,
{
userpin
:
userPin
}).
then
((
d
)
=>
{
this
.
$root
.
loading
=
false
;
if
(
d
.
status
==
0
)
{
this
.
$root
.
user_Name
=
d
.
data
.
userName
;
this
.
$root
.
channelUserId
=
d
.
data
.
encryptChannelUserId
;
d
.
data
.
isAdmin
?
this
.
superAdmin
=
true
:
this
.
superAdmin
=
false
;
}
else
{
console
.
log
(
d
.
msg
);
this
.
$message
(
"请重试"
);
}
});
},
accessTitle
()
{
// 渠道标题
var
title
=
document
.
getElementById
(
'idtitle'
);
...
...
igirl-channel-web/app/front/vues/pages/login/login.js
View file @
47cfc660
...
...
@@ -102,7 +102,6 @@
if
(
this
.
$route
.
query
.
reqUrl
!=
""
)
{
this
.
reqUrl
=
this
.
$route
.
query
.
reqUrl
;
};
this
.
$root
.
isLogin
=
false
;
},
created
:
function
()
{
...
...
@@ -111,7 +110,6 @@
}
},
destroyed
()
{
this
.
$root
.
isLogin
=
false
;
},
methods
:
{
handleSelect
(
key
,
keyPath
)
{
...
...
@@ -232,7 +230,7 @@
console
.
log
(
d
.
msg
);
this
.
$root
.
loading
=
false
;
if
(
d
.
status
==
0
)
{
if
(
d
.
data
.
isAdmin
)
this
.
$root
.
superAdmin
=
d
.
data
.
isAdmin
;
d
.
data
.
isAdmin
?
this
.
$root
.
superAdmin
=
d
.
data
.
isAdmin
:
this
.
$root
.
superAdmin
=
null
;
$
.
cookie
(
'channelUserId'
,
d
.
data
.
channelUserId
);
$
.
cookie
(
'userName'
,
d
.
data
.
userName
);
$
.
cookie
(
'userpin'
,
d
.
data
.
userpin
);
...
...
@@ -298,8 +296,7 @@
this
.
$root
.
loading
=
false
;
console
.
log
(
d
.
msg
);
if
(
d
.
status
==
0
)
{
if
(
d
.
data
.
isAdmin
)
this
.
$root
.
superAdmin
=
d
.
data
.
isAdmin
;
localStorage
.
superAdmin
=
d
.
data
.
userpin
;
d
.
data
.
isAdmin
?
this
.
$root
.
superAdmin
=
d
.
data
.
isAdmin
:
this
.
$root
.
superAdmin
=
null
;
$
.
cookie
(
'channelUserId'
,
d
.
data
.
channelUserId
);
$
.
cookie
(
'userName'
,
d
.
data
.
userName
);
$
.
cookie
(
'userpin'
,
d
.
data
.
userpin
);
...
...
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