77c7322e by 华明祺

no message

1 parent a7835847
......@@ -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
})
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!