Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
study
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
Damon
study
Commits
7d92b1ed
Commit
7d92b1ed
authored
Jul 24, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 登录增加机构ID
parent
9f414a5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
App.vue
src/App.vue
+4
-2
index.vue
src/pages/login/index.vue
+3
-1
No files found.
src/App.vue
View file @
7d92b1ed
...
...
@@ -4,9 +4,11 @@ export default {
globalData
:
{
// 开发环境
uniEnv
:
process
.
uniEnv
,
questionList
:
[]
questionList
:
[],
orgId
:
-
1
},
onLaunch
:
function
()
{
onLaunch
:
function
(
options
)
{
this
.
globalData
.
orgId
=
options
?.
orgId
||
-
1
// 版本更新
this
.
updateApp
()
},
...
...
src/pages/login/index.vue
View file @
7d92b1ed
...
...
@@ -17,7 +17,8 @@ export default {
host
:
''
,
//配置为自己的额服务器即可
}
},
onShow
()
{},
onShow
()
{
},
methods
:
{
wxLogin
()
{
// 获取code 小程序专有,用户登录凭证。
...
...
@@ -36,6 +37,7 @@ export default {
code
:
code
,
avatar
:
userInfo
.
avatarUrl
,
nickname
:
userInfo
.
nickName
,
orgId
:
getApp
().
globalData
.
orgId
}
uni
.
showLoading
({
title
:
'加载中'
...
...
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