mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-14 05:16: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) {
|
||||
|
||||
Reference in New Issue
Block a user