mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-19 07:46:43 +08:00
提交
This commit is contained in:
@@ -18,8 +18,8 @@
|
||||
<h6>{{userInfo.name}}</h6>
|
||||
<span>{{orgInfo}}</span>
|
||||
<div class="grade">
|
||||
<div>LV.1</div>
|
||||
<span>经验值:367</span>
|
||||
<div>{{userData.level}}</div>
|
||||
<span>经验值:{{userData.evalue}}</span>
|
||||
</div>
|
||||
<el-link @click="toPage('/user/Setting')" type="info" :underline="false"> <el-button class="editbutt">编辑资料</el-button></el-link>
|
||||
</div>
|
||||
@@ -29,7 +29,7 @@
|
||||
<img src="../../../public/images/grade.png" alt="">
|
||||
<img src="../../../public/images/grade.png" alt="">
|
||||
</div>
|
||||
<el-button class="medalbutt" type="text">更多 <i class="el-icon-d-arrow-right"></i> </el-button>
|
||||
<el-button class="medalbutt" type="text" @click="toPage('/user/medal')">更多 <i class="el-icon-d-arrow-right"></i> </el-button>
|
||||
<div style="margin-top:10px">
|
||||
<router-link to="/study/index"><span :class="{identity:true,active:curIdentity==1}" @click="setCurIdentity(1)">学员</span></router-link>
|
||||
<router-link to="/teacher/index"><span v-if="identity == 2 || identity == 5" :class="{identity:true,active:curIdentity==2}" @click="setCurIdentity(2)">教师</span></router-link>
|
||||
@@ -141,6 +141,10 @@ import {userAvatarText,cutFullName} from "@/utils/tools.js";
|
||||
},
|
||||
orgInfo:'',
|
||||
sex:'',
|
||||
userData:{
|
||||
evalue: 0,
|
||||
level: "",
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -153,8 +157,17 @@ import {userAvatarText,cutFullName} from "@/utils/tools.js";
|
||||
//this.orgInfo=cutFullName(testName,1);
|
||||
this.orgInfo=cutFullName(this.userInfo.departFullName,1);
|
||||
this.getInfo();
|
||||
this.getLevel();
|
||||
},
|
||||
methods:{
|
||||
getLevel(){//获取经验值和等级
|
||||
apiStart.getUserEValueAndLevel(this.userInfo.aid).then(res=>{
|
||||
if(res.status == 200) {
|
||||
this.userData.evalue = res.result.evalue;
|
||||
this.userData.level = res.result.level;
|
||||
}
|
||||
});
|
||||
},
|
||||
getInfo(){
|
||||
apiStart.userTotal(this.userInfo.aid,[10,11,30]).then(res=>{
|
||||
if(res.status == 200 && res.result.length > 0) {
|
||||
|
||||
@@ -218,7 +218,7 @@
|
||||
<svg-icon :icon-class="activeMenu == '/user/ucurrency'?'myubi-active':'myubi'"></svg-icon>
|
||||
<span slot="title">我的U币</span>
|
||||
</el-menu-item>
|
||||
<el-menu-item index="/user/medal">
|
||||
<el-menu-item index="/user/medal" v-show="curIdentity == 1">
|
||||
<svg-icon :icon-class="activeMenu == '/user/medal'?'myxunzhang-active':'myxunzhang'"></svg-icon>
|
||||
<span slot="title">我的勋章</span>
|
||||
</el-menu-item>
|
||||
@@ -247,7 +247,7 @@
|
||||
<!-- <span slot="title" class="textl">历史记录</span>
|
||||
</el-menu-item> -->
|
||||
</el-submenu>
|
||||
<el-menu-item index="/user/Mynotes">
|
||||
<el-menu-item index="/user/Mynotes" v-show="curIdentity == 1">
|
||||
<svg-icon icon-class="mybiji"></svg-icon>
|
||||
<span slot="title">我的笔记</span>
|
||||
</el-menu-item>
|
||||
@@ -276,7 +276,7 @@
|
||||
<svg-icon :icon-class="activeMenu == '/user/favorites'?'myart':'myart-active'"></svg-icon>
|
||||
<span slot="title">我的文章</span>
|
||||
</el-menu-item>
|
||||
<el-submenu index="/article/contactme">
|
||||
<el-submenu index="/article/contactme" v-show="curIdentity == 1">
|
||||
<template slot="title">
|
||||
<svg-icon icon-class="qita"></svg-icon>
|
||||
<span>其他通知</span>
|
||||
|
||||
Reference in New Issue
Block a user