Commit 319ec225 by 杨北旺

app登录处处理

1 parent 031d7243
...@@ -6,7 +6,7 @@ import { ...@@ -6,7 +6,7 @@ import {
Notify Notify
} from 'vant' } from 'vant'
import store from '@/store' import store from '@/store'
import { common } from '../api/api' import { common,equity } from '../api/api'
Vue.use(VueRouter) Vue.use(VueRouter)
const router = new VueRouter({ const router = new VueRouter({
routes, routes,
...@@ -75,15 +75,14 @@ const getSessionAppId = (sid,status) => { ...@@ -75,15 +75,14 @@ const getSessionAppId = (sid,status) => {
setUserInfo(data); setUserInfo(data);
if(status) { if(status) {
store.commit('reload'); store.commit('reload');
}else {
equity.getCardInfo().then(res => {
let { code } = res;
if (code == 0) {
router.push({name: 'equity.index'})
}
})
} }
// else {
// equity.getCardInfo().then(res => {
// let { code } = res;
// if (code == 0) {
// router.push({name: 'equity.index'})
// }
// })
// }
} }
}) })
} }
......
...@@ -266,6 +266,7 @@ export default { ...@@ -266,6 +266,7 @@ export default {
this.isConcernFn(); this.isConcernFn();
//app那边可能拿不到头像---写这个重新获取一下 //app那边可能拿不到头像---写这个重新获取一下
let { nickName, logo } = this.$store.state; let { nickName, logo } = this.$store.state;
console.log('store',this.$store.state);
this.userInfo.nickName = nickName; this.userInfo.nickName = nickName;
this.userInfo.logo = logo; this.userInfo.logo = logo;
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!