Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
ybf
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
xulili
ybf
Commits
17c005aa
Commit
17c005aa
authored
5 years ago
by
xd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
e3ad46bf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
26 deletions
+30
-26
changeCounter.vue
wx_application/src/views/counter/changeCounter.vue
+12
-8
index.vue
wx_application/src/views/mainSale/active/main/index.vue
+18
-18
No files found.
wx_application/src/views/counter/changeCounter.vue
View file @
17c005aa
...
...
@@ -36,14 +36,18 @@ export default {
},
methods
:
{
getList
()
{
if
(
this
.
$route
.
query
.
userId
!==
''
)
{
let
params
=
{
user_id
:
this
.
$route
.
query
.
userId
}
}
else
{
let
params
=
{
user_id
:
sessionStorage
.
getItem
(
'userId'
)
}
}
getStoreList
(
params
).
then
(
res
=>
{
console
.
log
(
res
.
data
)
;
console
.
log
(
res
.
data
)
this
.
list
=
res
.
data
})
},
handleStoreChange
(
val
)
{
...
...
This diff is collapsed.
Click to expand it.
wx_application/src/views/mainSale/active/main/index.vue
View file @
17c005aa
...
...
@@ -207,6 +207,8 @@ export default {
};
},
created
()
{
this
.
checkNowMenuBar
()
if
(
sessionStorage
.
getItem
(
'userId'
))
{
if
(
sessionStorage
.
getItem
(
'avatar'
))
{
console
.
log
(
sessionStorage
.
getItem
(
'avatar'
),
'已有头像'
)
this
.
test
.
manInfo
.
logoUrl
=
sessionStorage
.
getItem
(
'avatar'
)
...
...
@@ -219,11 +221,10 @@ export default {
this
.
test
.
manInfo
.
barFrom
=
sessionStorage
.
getItem
(
'barName'
)
console
.
log
(
sessionStorage
.
getItem
(
'barName'
),
'已有专柜名称'
)
}
this
.
checkNowMenuBar
()
}
else
{
this
.
zReadyUserId
()
this
.
zTestGetNowUrlInfo
()
// this.oyStallCode = sessionStorage.getItem('oyStallCode')
// this.userId = sessionStorage.getItem('userId')
}
},
methods
:
{
// 获取用户信息
...
...
@@ -377,7 +378,7 @@ export default {
this
.
zcache
.
preAuthCodeUrl
=
url
;
window
.
location
.
href
=
url
;
},
//
测试-获取用户信息
//
获取userId
zTestGetUserInfoByOldToken
()
{
let
postData
=
{
code
:
this
.
zcache
.
code
...
...
@@ -395,7 +396,6 @@ export default {
headers
:
headerData
})
.
then
(
res
=>
{
// alert('获取用户信息接口成功')
sessionStorage
.
setItem
(
"userId"
,
String
(
res
.
data
.
data
.
userId
));
this
.
zcache
.
userId
=
String
(
res
.
data
.
data
.
userId
);
this
.
getUserFromId
(
this
.
zcache
.
userId
);
...
...
This diff is collapsed.
Click to expand it.
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