mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 04:46:44 +08:00
代码清理
This commit is contained in:
@@ -51,39 +51,12 @@
|
||||
<div v-else class="uavatar">
|
||||
<div v-if="sex === 1 "><img src="../../public/images/Avatarman.png" alt=""></div>
|
||||
<div v-else><img src="../../public/images/Avatarwoman.png" alt=""></div>
|
||||
|
||||
</div>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
<el-link type="primary" style="margin-right:10px;" :href="`${webBaseUrl}${isTiao ? '/uc/study/task' : '/uc/study/courses'}`" :underline="false">个人中心</el-link>
|
||||
<!-- <el-button @click="logout()" type="text" icon="el-icon-switch-button">退出</el-button> -->
|
||||
<el-link type="primary" @click="logout()" icon="el-icon-switch-button" :underline="false">退出</el-link>
|
||||
</div>
|
||||
<!-- <div style="margin-left: 60px;margin-right: 30px"> -->
|
||||
<!-- <el-badge :value="userMsg" :hidden="userMsg == 0" class="message-count"> -->
|
||||
<!-- <el-link type="primary" :href="`${webBaseUrl}/message`" icon="el-icon-bell" :underline="false">消息</el-link> -->
|
||||
<!-- <el-link type="primary" :href="`${webBaseUrl}/message`" icon="el-icon-bell" :underline="false"></el-link> -->
|
||||
<!-- </el-badge> -->
|
||||
<!-- </div> -->
|
||||
<!-- <div style="margin-left: 20px;"><el-avatar :src="userInfo.avatar" style="vertical-align: middle;width:28px;height:28px;margin-right:2px;"></el-avatar></div> -->
|
||||
<!-- <div style="margin-left: 5px;"> -->
|
||||
<!-- <el-dropdown @command="handleUcCommand">
|
||||
<span class="el-dropdown-link">
|
||||
{{ userInfo.name }}
|
||||
<i class="el-icon-arrow-down el-icon--right"></i>
|
||||
</span>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item command="uc">个人中心</el-dropdown-item>
|
||||
<el-dropdown-item command="logout" divided>退出</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown> -->
|
||||
<!--管理员-->
|
||||
<!-- <el-link type="primary" :href="`${webBaseUrl}/course/manage`" :underline="false">个人中心</el-link> -->
|
||||
<!--学员-->
|
||||
<!-- <el-link type="primary" :href="`${webBaseUrl}${isTiao ? '/uc/study/task' : '/uc/study/courses'}`" :underline="false">个人中心</el-link> -->
|
||||
<!-- </div> -->
|
||||
<!-- <div style="margin-left: 20px;"><el-button @click="logout()" type="text" icon="el-icon-switch-button">退出</el-button></div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -145,14 +118,11 @@ export default {
|
||||
// cmtask_name:this.cmtask_name,
|
||||
};
|
||||
apiBoeCourse.cmtaskList(params).then(res => {
|
||||
if (res.result.count > 0) {
|
||||
if (res.status == 200 && res.result.count > 0) {
|
||||
this.isTiao = true;
|
||||
// this.$router.push('/uc/study/task');// 学习任务
|
||||
} else {
|
||||
this.isTiao = false;
|
||||
// this.$router.push('/uc/study/courses')// 自主学习
|
||||
}
|
||||
// this.pageData.list = res.result.list;
|
||||
});
|
||||
},
|
||||
handleCommand(val) {
|
||||
@@ -355,21 +325,16 @@ export default {
|
||||
div{
|
||||
border-radius: 50%;
|
||||
img{
|
||||
border-radius: 50%;
|
||||
|
||||
border-radius: 50%;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
}
|
||||
// border: 1px solid #73adfe;
|
||||
// color: #73adfe;
|
||||
// text-align: center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
font-size: 14px;
|
||||
margin-right: 8px;
|
||||
border-radius: 50%;
|
||||
// background: #d9e9ff;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user