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

321

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