|
|
|
@ -109,8 +109,8 @@
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<i class="iconfont icon-youjiantou"></i>
|
|
|
|
<i class="iconfont icon-youjiantou"></i>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</router-link>-->
|
|
|
|
</router-link> -->
|
|
|
|
<!-- 2023-11-29 注释该条件 && (loginValue.agencyRole == 2 || loginValue.agencyRole == 1 ) -->
|
|
|
|
<!-- 2023-11-29 注释该条件 && (loginValue.agencyRole == 2 || loginValue.agencyRole == 1 ) -->
|
|
|
|
<router-link to="###" v-if="loginValue.agencyName == '郑州一才工作'">
|
|
|
|
<router-link to="###" v-if="loginValue.agencyName == '郑州一才工作'">
|
|
|
|
<div @click="goAdmin">
|
|
|
|
<div @click="goAdmin">
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
@ -119,6 +119,14 @@
|
|
|
|
<i class="iconfont icon-youjiantou"></i>
|
|
|
|
<i class="iconfont icon-youjiantou"></i>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</router-link>
|
|
|
|
</router-link>
|
|
|
|
|
|
|
|
<router-link to="###" v-if="loginValue.agencyName == '郑州一才工作'">
|
|
|
|
|
|
|
|
<div @click="goJiaofu">
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
<i class="iconfont icon-shangjiahoutai"></i>交付助手
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<i class="iconfont icon-youjiantou"></i>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</router-link>
|
|
|
|
<!-- <router-link to="/accountsetting"
|
|
|
|
<!-- <router-link to="/accountsetting"
|
|
|
|
><div>
|
|
|
|
><div>
|
|
|
|
<span
|
|
|
|
<span
|
|
|
|
@ -670,7 +678,11 @@ export default {
|
|
|
|
let obj = JSON.parse(localStorage.getItem('LOGIN_DATA'))
|
|
|
|
let obj = JSON.parse(localStorage.getItem('LOGIN_DATA'))
|
|
|
|
if (window.location.hostname == 'localhost') {
|
|
|
|
if (window.location.hostname == 'localhost') {
|
|
|
|
// 测试环境,通过URL获取token
|
|
|
|
// 测试环境,通过URL获取token
|
|
|
|
|
|
|
|
<<<<<<< HEAD
|
|
|
|
window.location.href = '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
|
|
|
|
window.location.href = '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
|
|
|
|
|
|
|
|
=======
|
|
|
|
|
|
|
|
window.location.href = '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;
|
|
|
|
|
|
|
|
>>>>>>> 89da42ca65630e40c2c5790cd453cfb543528a03
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// 正式环境,通过缓存获取
|
|
|
|
// 正式环境,通过缓存获取
|
|
|
|
localStorage.setItem('daotian_to_admin_token', obj.token)
|
|
|
|
localStorage.setItem('daotian_to_admin_token', obj.token)
|
|
|
|
@ -680,6 +692,20 @@ export default {
|
|
|
|
window.location.href = 'http://idaotian.com/dist2.0.0/#/merchantManagement/homePage'
|
|
|
|
window.location.href = 'http://idaotian.com/dist2.0.0/#/merchantManagement/homePage'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
goJiaofu(){
|
|
|
|
|
|
|
|
let obj = JSON.parse(localStorage.getItem('LOGIN_DATA'))
|
|
|
|
|
|
|
|
if (window.location.hostname == 'localhost') {
|
|
|
|
|
|
|
|
// 测试环境,通过URL获取token
|
|
|
|
|
|
|
|
window.location.href = 'http://localhost:3000/#/other/delivery?token=' + obj.token + '&username=' + (obj.user.userName ? obj.user.userName : obj.user.nickName) + '&avatar=' + obj.imgSrc + '&roleid=' + obj.user.agencyRoleId;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
// 正式环境,通过缓存获取
|
|
|
|
|
|
|
|
localStorage.setItem('daotian_to_admin_token', obj.token)
|
|
|
|
|
|
|
|
localStorage.setItem('daotian_to_admin_avatar', obj.imgSrc)
|
|
|
|
|
|
|
|
localStorage.setItem('daotian_to_admin_username', obj.user.userName ? obj.user.userName : obj.user.nickName)
|
|
|
|
|
|
|
|
localStorage.setItem('daotian_to_admin_roleid', obj.user.agencyRoleId)
|
|
|
|
|
|
|
|
window.location.href = 'http://idaotian.com/dist2.0.0/#/other/delivery'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|