Commit 30a875bf authored by hanfeng zhang's avatar hanfeng zhang

321

parent 8c4793c7
......@@ -66,7 +66,7 @@ export function appNavBack(){
* 获取用户的资料
* @returns
*/
export function getUserInfo():GETUSERINFO {
export function getUserInfo():any {
const data = dsbridge.call(BridgeMethods.GET_USERINFO, {}, (res) => {
return res
})
......
......@@ -101,8 +101,11 @@ export default Vue.extend({
}
},
mounted() {
this.entId = process.env.NODE_EN==='production'? getUserInfo()?.entId : '166961152260050944'
console.log('这里出来了么?',this.entId);
const res = JSON.parse(getUserInfo())
console.log(res,typeof res,'哈哈哈');
this.entId = process.env.NODE_ENV==='production'?res.entId : '166961152260050944'
console.log('这里出来了么?',this.entId, getUserInfo(),'这里呢');
localStorage.setItem('USR_INFO', JSON.stringify(getUserInfo()))
this.getEntInfo()
......@@ -120,8 +123,9 @@ export default Vue.extend({
appNavBack,
getEntInfo() {
this.loading = true
return this.$service.enterprise.getEnterpriseInfo({
id: this.entId
id: this.entId
}).then((res: any) => {
const { data } = res
this.loading = false
......
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