|
|
|
@ -89,7 +89,7 @@
|
|
|
|
<span class="fsa fsa-box">
|
|
|
|
<span class="fsa fsa-box">
|
|
|
|
<span class="iconfont icon-morentouxiang mr4 f32" v-if="!userbaseInfo.imgSrc"></span>
|
|
|
|
<span class="iconfont icon-morentouxiang mr4 f32" v-if="!userbaseInfo.imgSrc"></span>
|
|
|
|
<img :src="userbaseInfo.imgSrc" class="mr4" style="border-radius:50%;width:28px;height:28px;" alt v-else />
|
|
|
|
<img :src="userbaseInfo.imgSrc" class="mr4" style="border-radius:50%;width:28px;height:28px;" alt v-else />
|
|
|
|
<div class="ml4 f14 c6">{{ userbaseInfo.userName || '-' }}</div>
|
|
|
|
<div class="ml4 f14 c6">{{ userbaseInfo.userName || userbaseInfo.nickName || '-' }}</div>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<div class="loginbox" slot="overlay">
|
|
|
|
<div class="loginbox" slot="overlay">
|
|
|
|
<router-link to="/accountsetting">
|
|
|
|
<router-link to="/accountsetting">
|
|
|
|
@ -619,7 +619,7 @@ export default {
|
|
|
|
console.log(JSON.stringify(obj.user))
|
|
|
|
console.log(JSON.stringify(obj.user))
|
|
|
|
if (window.location.hostname == 'localhost') {
|
|
|
|
if (window.location.hostname == 'localhost') {
|
|
|
|
// 测试环境,通过URL获取token
|
|
|
|
// 测试环境,通过URL获取token
|
|
|
|
window.open('http://localhost:3000/#/merchantManagement/homePage?token=' + obj.token + '&username=' + (obj.user.userName ? obj.user.userName : obj.user.nickName) + '&avatar=' + obj.imgSrc + '&roleid=' + obj.user.agencyRoleId + '&agencyid=' + obj.user.agencyId + '&userInfo=' + JSON.stringify(obj))
|
|
|
|
window.open('http://localhost:3000/#/main?token=' + obj.token + '&username=' + (obj.user.userName ? obj.user.userName : obj.user.nickName) + '&avatar=' + obj.imgSrc + '&roleid=' + obj.user.agencyRoleId + '&agencyid=' + obj.user.agencyId + '&userInfo=' + JSON.stringify(obj))
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// 正式环境,通过缓存获取
|
|
|
|
// 正式环境,通过缓存获取
|
|
|
|
localStorage.setItem('daotian_to_admin', JSON.stringify(obj))
|
|
|
|
localStorage.setItem('daotian_to_admin', JSON.stringify(obj))
|
|
|
|
@ -629,9 +629,9 @@ export default {
|
|
|
|
localStorage.setItem('daotian_to_admin_roleid', obj.user.agencyRoleId)
|
|
|
|
localStorage.setItem('daotian_to_admin_roleid', obj.user.agencyRoleId)
|
|
|
|
localStorage.setItem('daotian_to_admin_agencyid', obj.user.agencyId)
|
|
|
|
localStorage.setItem('daotian_to_admin_agencyid', obj.user.agencyId)
|
|
|
|
if (window.location.origin.indexOf('www') > -1) {
|
|
|
|
if (window.location.origin.indexOf('www') > -1) {
|
|
|
|
window.open('http://www.idaotian.com/dist2.0.0/#/merchantManagement/homePage')
|
|
|
|
window.open('http://www.idaotian.com/dist2.0.0/#/main')
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
window.open('http://idaotian.com/dist2.0.0/#/merchantManagement/homePage')
|
|
|
|
window.open('http://idaotian.com/dist2.0.0/#/main')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|