Commit 7d92b1ed authored by Damon's avatar Damon

feat: 登录增加机构ID

parent 9f414a5a
...@@ -4,9 +4,11 @@ export default { ...@@ -4,9 +4,11 @@ export default {
globalData: { globalData: {
// 开发环境 // 开发环境
uniEnv: process.uniEnv, uniEnv: process.uniEnv,
questionList: [] questionList: [],
orgId: -1
}, },
onLaunch: function() { onLaunch: function(options) {
this.globalData.orgId = options?.orgId || -1
// 版本更新 // 版本更新
this.updateApp() this.updateApp()
}, },
......
...@@ -17,7 +17,8 @@ export default { ...@@ -17,7 +17,8 @@ export default {
host: '', //配置为自己的额服务器即可 host: '', //配置为自己的额服务器即可
} }
}, },
onShow() {}, onShow() {
},
methods: { methods: {
wxLogin() { wxLogin() {
// 获取code 小程序专有,用户登录凭证。 // 获取code 小程序专有,用户登录凭证。
...@@ -36,6 +37,7 @@ export default { ...@@ -36,6 +37,7 @@ export default {
code: code, code: code,
avatar: userInfo.avatarUrl, avatar: userInfo.avatarUrl,
nickname: userInfo.nickName, nickname: userInfo.nickName,
orgId: getApp().globalData.orgId
} }
uni.showLoading({ uni.showLoading({
title: '加载中' title: '加载中'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment