Commit ca4c5f58 by 杨北旺

去掉routerjs里的权益查询请求

1 parent b735a708
...@@ -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,equity } from '../api/api' import { common } from '../api/api'
Vue.use(VueRouter) Vue.use(VueRouter)
const router = new VueRouter({ const router = new VueRouter({
routes, routes,
...@@ -75,14 +75,15 @@ const getSessionAppId = (sid,status) => { ...@@ -75,14 +75,15 @@ 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'})
// }
// })
// }
} }
}) })
} }
......
...@@ -146,7 +146,7 @@ export default { ...@@ -146,7 +146,7 @@ export default {
window.myjs.jumpNativeApp(JSON.stringify({ type: 7, homePage: 'equity' })) window.myjs.jumpNativeApp(JSON.stringify({ type: 7, homePage: 'equity' }))
} }
}else{ }else{
self.setLocalStorage('reLoadIndex',self.sessionId) // self.setLocalStorage('reLoadIndex',self.sessionId)
if (self.checkPhoneType() == 'ios') { if (self.checkPhoneType() == 'ios') {
window.webkit.messageHandlers.jumpNativeApp.postMessage(JSON.stringify({ type: 1, reloadView: 'equity' })) window.webkit.messageHandlers.jumpNativeApp.postMessage(JSON.stringify({ type: 1, reloadView: 'equity' }))
} else { } else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!