Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨炀
/
ztx_wx_admin
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
77c7322e
authored
2023-10-09 11:17:29 +0800
by
华明祺
1
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
a7835847
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
common/login.js
common/login.js
View file @
77c7322
...
...
@@ -233,27 +233,27 @@ function getInfo() {
url
:
'/getInfo'
,
method
:
'get'
}).
then
(
res
=>
{
const
app
=
getApp
()
const
user
=
res
.
data
.
user
uni
.
setStorageSync
(
'userName'
,
user
.
userName
)
switch
(
user
.
dept
.
deptType
)
{
case
'1'
:
// 中跆协
uni
.
setStorageSync
(
'userType'
,
'1'
)
break
case
'2'
:
// 省
case
'3'
:
uni
.
setStorageSync
(
'userType'
,
'2'
)
break
case
'6'
:
// 道馆
uni
.
setStorageSync
(
'userType'
,
'4'
)
break
default
:
// 市、区
uni
.
setStorageSync
(
'userType'
,
'3'
)
break
}
delete
user
.
dept
uni
.
setStorageSync
(
'user'
,
JSON
.
stringify
(
user
))
switch
(
user
.
dept
.
deptType
)
{
case
'1'
:
// 中跆协
app
.
globalData
.
userType
=
'1'
break
case
'2'
:
// 省
case
'3'
:
app
.
globalData
.
userType
=
'2'
break
case
'6'
:
// 道馆
app
.
globalData
.
userType
=
'4'
break
default
:
// 市、区
app
.
globalData
.
userType
=
'3'
break
}
app
.
globalData
.
userInfo
=
user
})
}
...
...
杨炀
@yangyang
mentioned in commit
4c11fc3e
2023-10-09 03:18:38 UTC
mentioned in commit
4c11fc3e
Toggle commit list
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment