|
@@ -13,10 +13,12 @@ import {
|
|
|
} from '@/api/common'
|
|
|
import { getUserInfo } from '@/api/personal/user'
|
|
|
import { getEnterpriseUserAccount, getAccountBalance, getUserAccount } from '@/api/common'
|
|
|
+import { getEnterpriseBaseInfo } from '@/api/enterprise'
|
|
|
import Snackbar from '@/plugins/snackbar'
|
|
|
import { timesTampChange } from '@/utils/date'
|
|
|
import { updateEventList } from '@/utils/eventList'
|
|
|
import { getBaseInfoDictOfName } from '@/utils/getText'
|
|
|
+
|
|
|
// import { useIMStore } from './im'
|
|
|
|
|
|
// const useIM = useIMStore()
|
|
@@ -158,6 +160,14 @@ export const useUserStore = defineStore('user',
|
|
|
localStorage.setItem('enterpriseUserAccount', JSON.stringify(data))
|
|
|
return data // 方便直接获取
|
|
|
},
|
|
|
+ // 获取《企业基本信息》
|
|
|
+ async checkEnterpriseBaseInfo () {
|
|
|
+ const data = await getEnterpriseBaseInfo()
|
|
|
+ const keyArr = ['industryId', 'financingStatus', 'scale', 'introduce', 'logoUrl'] // 必填信息
|
|
|
+ const check = Object.keys(data).length && keyArr.every(e => data[e] && data[e] !== 0) // 校验必填人才信息
|
|
|
+ return check
|
|
|
+ },
|
|
|
+
|
|
|
// 获取用户账户信息
|
|
|
async getUserAccountInfo () {
|
|
|
const data = await getUserAccount()
|