|
@ -66,7 +66,7 @@ router.beforeEach((to, from, next) => { |
|
|
store.commit('SET_APP_ID', urlParams.appId) |
|
|
store.commit('SET_APP_ID', urlParams.appId) |
|
|
localStorage.setItem('appId', urlParams.appId) |
|
|
localStorage.setItem('appId', urlParams.appId) |
|
|
} else { |
|
|
} else { |
|
|
store.commit('SET_APP_ID', 'wx1078fa1e99424de9') |
|
|
store.commit('SET_APP_ID', 'wxce2db0866b0698f8') |
|
|
} |
|
|
} |
|
|
if (to.params.type) { |
|
|
if (to.params.type) { |
|
|
document.title = to.params.type === 'edit' ? '编辑' : '注册' |
|
|
document.title = to.params.type === 'edit' ? '编辑' : '注册' |
|
@ -91,7 +91,7 @@ router.beforeEach((to, from, next) => { |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
|
|
|
if (getQueryStringByName('code') && (to.path != '/houseQR' && !specialList.includes(to.path))) { |
|
|
if (getQueryStringByName('code') && (to.path != '/houseQR' && !specialList.includes(to.path))) { |
|
|
login({ wxCode: getQueryStringByName('code'),appId:'wx1078fa1e99424de9'}).then(res => { |
|
|
login({ wxCode: getQueryStringByName('code'),appId:'wxce2db0866b0698f8'}).then(res => { |
|
|
console.log(res,"sdflkjdsjklfljk"); |
|
|
console.log(res,"sdflkjdsjklfljk"); |
|
|
localStorage.setItem('openId', res.data.userH5DTO.openId) |
|
|
localStorage.setItem('openId', res.data.userH5DTO.openId) |
|
|
localStorage.setItem('token', res.data.token) |
|
|
localStorage.setItem('token', res.data.token) |
|
|