修复:认领车辆
This commit is contained in:
@@ -31,6 +31,7 @@ const Header = (props: any) => {
|
||||
})
|
||||
getUserInfo().then((data) => {
|
||||
if (data) {
|
||||
console.log(data.organizationName,'0000')
|
||||
setIsLogin(true);
|
||||
Taro.setStorageSync('UserId', data.userId)
|
||||
Taro.setStorageSync('Phone',data.phone)
|
||||
@@ -40,6 +41,10 @@ const Header = (props: any) => {
|
||||
getOrganization(Number(data.organizationId)).then(res => {
|
||||
Taro.setStorageSync('OrganizationParentId',res.parentId)
|
||||
})
|
||||
// 所属站点名称
|
||||
if(data.organizationName){
|
||||
Taro.setStorageSync('OrganizationName',data.organizationName)
|
||||
}
|
||||
// 是否已认证
|
||||
if(data.certification){
|
||||
Taro.setStorageSync('Certification','1')
|
||||
|
||||
Reference in New Issue
Block a user