Commit 7d92b1ed authored by Damon's avatar Damon

feat: 登录增加机构ID

parent 9f414a5a
......@@ -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()
},
......
......@@ -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: '加载中'
......
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