mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-15 13:56:43 +08:00
Merge branch 'zcwy_0716_learning' into dev0515
This commit is contained in:
@@ -122,7 +122,7 @@
|
|||||||
<div style="font-weight: 400;font-size: 16px; margin-top: 8px;">{{userInfo.name}}</div>
|
<div style="font-weight: 400;font-size: 16px; margin-top: 8px;">{{userInfo.name}}</div>
|
||||||
</div>
|
</div>
|
||||||
<el-dropdown-menu slot="dropdown">
|
<el-dropdown-menu slot="dropdown">
|
||||||
<el-dropdown-item @click.native="setCurIdentity(1)"><a :href="`${webBaseUrl}${isTiao ? '/uc/study/task' : '/uc/study/courses'}`">个人中心</a></el-dropdown-item>
|
<el-dropdown-item @click.native="setCurIdentity(1)"><span @click="goCenter">个人中心</span></el-dropdown-item>
|
||||||
<el-dropdown-item><router-link :to="'/home/'+userInfo.aid">个人主页</router-link></el-dropdown-item>
|
<el-dropdown-item><router-link :to="'/home/'+userInfo.aid">个人主页</router-link></el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
@@ -269,10 +269,19 @@ export default {
|
|||||||
tomy(){
|
tomy(){
|
||||||
console.log('lll')
|
console.log('lll')
|
||||||
},
|
},
|
||||||
|
goCenter(){
|
||||||
|
console.log(this.isTiao,'isTiao')
|
||||||
|
if(this.isTiao){
|
||||||
|
if(this.nums == 0){
|
||||||
|
window.location.href = `${this.webBaseUrl}/uc/study/task?type=9`;
|
||||||
|
}
|
||||||
|
window.location.href = `${this.webBaseUrl}/uc/study/task`;
|
||||||
|
}else{
|
||||||
|
window.location.href = `${this.webBaseUrl}/uc/study/courses`;
|
||||||
|
}
|
||||||
|
},
|
||||||
loadBoeData() {
|
loadBoeData() {
|
||||||
if(this.nums>0){
|
if(this.nums == 0 && this.courseNum>0){
|
||||||
this.isTiao = true;
|
|
||||||
}else if (this.nums == 0 && this.courseNum>0){
|
|
||||||
this.isTiao = false;
|
this.isTiao = false;
|
||||||
}else{
|
}else{
|
||||||
this.isTiao = true;
|
this.isTiao = true;
|
||||||
|
|||||||
@@ -307,7 +307,7 @@
|
|||||||
<span slot="title" class="study textl">自选学习</span>
|
<span slot="title" class="study textl">自选学习</span>
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
</el-submenu>
|
</el-submenu>
|
||||||
<el-menu-item v-else index="/uc/study/courses" v-show="curIdentity == 1">
|
<el-menu-item v-if="!courseNum" index="/uc/study/courses" v-show="curIdentity == 1">
|
||||||
<!-- <svg-icon :icon-class="activeMenu == '/exam/mytask'?'mybiji-active':'mybiji'"></svg-icon> -->
|
<!-- <svg-icon :icon-class="activeMenu == '/exam/mytask'?'mybiji-active':'mybiji'"></svg-icon> -->
|
||||||
<svg-icon icon-class="mystudy"></svg-icon>
|
<svg-icon icon-class="mystudy"></svg-icon>
|
||||||
<span slot="title">我的选修</span>
|
<span slot="title">我的选修</span>
|
||||||
@@ -517,6 +517,7 @@ export default {
|
|||||||
if(sessionStorage.getItem('courseNums') === null || sessionStorage.getItem('courseNums') === ''){
|
if(sessionStorage.getItem('courseNums') === null || sessionStorage.getItem('courseNums') === ''){
|
||||||
apiCourseStudy.myStudysFromES(reqData).then(res=>{
|
apiCourseStudy.myStudysFromES(reqData).then(res=>{
|
||||||
this.courseNum = res.result.count;
|
this.courseNum = res.result.count;
|
||||||
|
sessionStorage.setItem('courseNums',this.courseNum)
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
this.courseNum = sessionStorage.getItem('courseNums')
|
this.courseNum = sessionStorage.getItem('courseNums')
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import top from '../../layout/components/TopNav/Index.vue'
|
import top from '@/components/PortalHeader.vue'
|
||||||
import UcHeader from '@/components/HomePage/homePage.vue'
|
import UcHeader from '@/components/HomePage/homePage.vue'
|
||||||
import MedalImg from '@/components/Portal/medalImg.vue';
|
import MedalImg from '@/components/Portal/medalImg.vue';
|
||||||
import apiStat from '@/api/phase2/stat.js';
|
import apiStat from '@/api/phase2/stat.js';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div style="margin-top: 50px;" v-if="page.count==0">
|
<div style="margin-top: 50px;" v-if="page.count==0">
|
||||||
<el-empty description="您还没有学习数据"></el-empty>
|
<el-empty description="您当前暂无学习数据~"></el-empty>
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<div style="display: flex;justify-content:space-between; padding: 12px 32px 10px 18px;">
|
<div style="display: flex;justify-content:space-between; padding: 12px 32px 10px 18px;">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div style="margin-top: 50px;" v-if="isType == 9||couresList.length == 0">
|
<div style="margin-top: 50px;" v-if="isType == 9||couresList.length == 0">
|
||||||
<el-empty description="您还没有学习数据"></el-empty>
|
<el-empty description="您当前暂无学习数据~"></el-empty>
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<!-- <div style="display:flex; padding-left:20px; width:100%">
|
<!-- <div style="display:flex; padding-left:20px; width:100%">
|
||||||
|
|||||||
Reference in New Issue
Block a user