增加新入口

cyl/dev
cyl 2 years ago
parent 36e06af024
commit 89da42ca65

@ -102,14 +102,14 @@
<i class="iconfont icon-youjiantou"></i> <i class="iconfont icon-youjiantou"></i>
</div> </div>
</router-link> </router-link>
<router-link to="/merchantBack" v-if="loginValue.agencyName == '郑州一才工作' "> <!-- <router-link to="/merchantBack" v-if="loginValue.agencyName == '郑州一才工作' ">
<div> <div>
<span> <span>
<i class="iconfont icon-shangjiahoutai"></i>商家后台and1.0 <i class="iconfont icon-shangjiahoutai"></i>商家后台and1.0
</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">
@ -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,7 @@ 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') {
// URLtoken // URLtoken
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;
} else { } else {
// //
localStorage.setItem('daotian_to_admin_token', obj.token) localStorage.setItem('daotian_to_admin_token', obj.token)
@ -680,6 +688,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') {
// URLtoken
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>

Loading…
Cancel
Save