This commit is contained in:
zhangsir
2024-01-10 10:41:56 +08:00
parent 90872938be
commit 8fa0466af7

View File

@@ -41,11 +41,20 @@
<el-dropdown-item command="three" divided>管理者进阶</el-dropdown-item>
<el-dropdown-item command="four" divided>U选小课堂</el-dropdown-item>
<el-dropdown-item command="five" divided>社招新员工</el-dropdown-item>
<el-dropdown-item command="six" divided>贡献者专区</el-dropdown-item>
<!-- <el-dropdown-item command="six" divided>贡献者专区</el-dropdown-item> -->
<el-dropdown-item command="seven" divided>教师专区</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
<div class="top-nav">
<el-dropdown placement="bottom" @command="handleContributor">
<span class="el-dropdown-link" style="font-size:16px;cursor: pointer;" :style="{color:textColor}">贡献者专区</span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="one">2023贡献者大会</el-dropdown-item>
<el-dropdown-item command="two" divided>2022贡献者大会</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
<div class="top-nav" :style="{color:textColor}" :class="current == 'follow' ? activeNav : ''">
<router-link to="/follow">我的关注
@@ -230,6 +239,14 @@ export default {
// }
// });
},
handleContributor(val){
let urlPre = window.location.protocol + "//" + window.location.host;
let obj = {
one: urlPre + "/web/contributornew/index",
two: urlPre + "/web/contributor/index",
};
window.open(obj[val]);
},
handleCommand(val) {
if (val === "four") {
this.$emit('showClass',true)