Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
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
Apr 08, 2020
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 {
...
@@ -36,14 +36,18 @@ export default {
},
},
methods
:
{
methods
:
{
getList
()
{
getList
()
{
if
(
this
.
$route
.
query
.
userId
!==
''
)
{
let
params
=
{
let
params
=
{
user_id
:
this
.
$route
.
query
.
userId
user_id
:
this
.
$route
.
query
.
userId
}
}
}
else
{
let
params
=
{
user_id
:
sessionStorage
.
getItem
(
'userId'
)
}
}
getStoreList
(
params
).
then
(
res
=>
{
getStoreList
(
params
).
then
(
res
=>
{
console
.
log
(
res
.
data
)
;
console
.
log
(
res
.
data
)
this
.
list
=
res
.
data
this
.
list
=
res
.
data
})
})
},
},
handleStoreChange
(
val
)
{
handleStoreChange
(
val
)
{
...
...
wx_application/src/views/mainSale/active/main/index.vue
View file @
17c005aa
...
@@ -207,6 +207,8 @@ export default {
...
@@ -207,6 +207,8 @@ export default {
};
};
},
},
created
()
{
created
()
{
this
.
checkNowMenuBar
()
if
(
sessionStorage
.
getItem
(
'userId'
))
{
if
(
sessionStorage
.
getItem
(
'avatar'
))
{
if
(
sessionStorage
.
getItem
(
'avatar'
))
{
console
.
log
(
sessionStorage
.
getItem
(
'avatar'
),
'已有头像'
)
console
.
log
(
sessionStorage
.
getItem
(
'avatar'
),
'已有头像'
)
this
.
test
.
manInfo
.
logoUrl
=
sessionStorage
.
getItem
(
'avatar'
)
this
.
test
.
manInfo
.
logoUrl
=
sessionStorage
.
getItem
(
'avatar'
)
...
@@ -219,11 +221,10 @@ export default {
...
@@ -219,11 +221,10 @@ export default {
this
.
test
.
manInfo
.
barFrom
=
sessionStorage
.
getItem
(
'barName'
)
this
.
test
.
manInfo
.
barFrom
=
sessionStorage
.
getItem
(
'barName'
)
console
.
log
(
sessionStorage
.
getItem
(
'barName'
),
'已有专柜名称'
)
console
.
log
(
sessionStorage
.
getItem
(
'barName'
),
'已有专柜名称'
)
}
}
this
.
checkNowMenuBar
()
}
else
{
this
.
zReadyUserId
()
this
.
zReadyUserId
()
this
.
zTestGetNowUrlInfo
()
this
.
zTestGetNowUrlInfo
()
// this.oyStallCode = sessionStorage.getItem('oyStallCode')
}
// this.userId = sessionStorage.getItem('userId')
},
},
methods
:
{
methods
:
{
// 获取用户信息
// 获取用户信息
...
@@ -377,7 +378,7 @@ export default {
...
@@ -377,7 +378,7 @@ export default {
this
.
zcache
.
preAuthCodeUrl
=
url
;
this
.
zcache
.
preAuthCodeUrl
=
url
;
window
.
location
.
href
=
url
;
window
.
location
.
href
=
url
;
},
},
//
测试-获取用户信息
//
获取userId
zTestGetUserInfoByOldToken
()
{
zTestGetUserInfoByOldToken
()
{
let
postData
=
{
let
postData
=
{
code
:
this
.
zcache
.
code
code
:
this
.
zcache
.
code
...
@@ -395,7 +396,6 @@ export default {
...
@@ -395,7 +396,6 @@ export default {
headers
:
headerData
headers
:
headerData
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
// alert('获取用户信息接口成功')
sessionStorage
.
setItem
(
"userId"
,
String
(
res
.
data
.
data
.
userId
));
sessionStorage
.
setItem
(
"userId"
,
String
(
res
.
data
.
data
.
userId
));
this
.
zcache
.
userId
=
String
(
res
.
data
.
data
.
userId
);
this
.
zcache
.
userId
=
String
(
res
.
data
.
data
.
userId
);
this
.
getUserFromId
(
this
.
zcache
.
userId
);
this
.
getUserFromId
(
this
.
zcache
.
userId
);
...
...
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