mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 12:26:44 +08:00
提交
This commit is contained in:
@@ -986,14 +986,17 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.gui-box-left{
|
||||||
|
width: 160px;
|
||||||
|
}
|
||||||
.gui-box-right{//资源引导位宽度
|
.gui-box-right{//资源引导位宽度
|
||||||
width: 697px;
|
width: 742px;
|
||||||
.swiper-slide{
|
.swiper-slide{
|
||||||
width: 576px;
|
width: 500px;
|
||||||
height: 500px;
|
height: 400px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
.banner-img{
|
.banner-img{
|
||||||
width: 576px;
|
width: 500px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1001,7 +1004,7 @@
|
|||||||
.gui-box{
|
.gui-box{
|
||||||
.close-right{
|
.close-right{
|
||||||
right:28px;
|
right:28px;
|
||||||
top:25px;
|
top:28px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.medal-index{ // 勋章规则控制
|
.medal-index{ // 勋章规则控制
|
||||||
|
|||||||
@@ -369,7 +369,7 @@ export default {
|
|||||||
content: "编辑了笔记",//this.mynoteData.content,//事件的内容
|
content: "编辑了笔记",//this.mynoteData.content,//事件的内容
|
||||||
objId: res.result.id,//关联的id
|
objId: res.result.id,//关联的id
|
||||||
objType: "6",//关联的类型
|
objType: "6",//关联的类型
|
||||||
objInfo: this.data.name +''+ this.score,
|
objInfo: this.data.name +'&'+ this.score,
|
||||||
aid: this.userInfo.aid, //当前登录人的id
|
aid: this.userInfo.aid, //当前登录人的id
|
||||||
aname: this.userInfo.name,//当前人的姓名
|
aname: this.userInfo.name,//当前人的姓名
|
||||||
status: 1 //状态,直接写1
|
status: 1 //状态,直接写1
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
<h6 class="course-tit portal-title-tow">{{item.info.name || item.contentInfo}} <span class="score-info">{{toScore(item.info.score)}}分</span> </h6>
|
<h6 class="course-tit portal-title-tow">{{item.info.name || item.contentInfo}} <span class="score-info">{{toScore(item.info.score)}}分</span> </h6>
|
||||||
<p class="title-info">{{item.info.summary}}</p>
|
<p class="title-info">{{item.info.summary}}</p>
|
||||||
<div class="pro-line"> <div>当前进度:</div> <div style="width:200px"><el-progress :percentage="50"></el-progress></div></div>
|
<div class="pro-line"> <div>当前进度:</div> <div style="width:200px"><el-progress :percentage="50"></el-progress></div></div>
|
||||||
<p class="portal-time">最新一次学习时间:2022-5-28 22:30:28</p>
|
<p class="portal-time">最新一次学习时间:{{item.eventTime}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div style="width:150px">
|
<div style="width:150px">
|
||||||
<div class="follow-hide" style="text-align: right;" v-if="!isDynamic && personal && !item.hidden" @click="emitHide(item.id)">
|
<div class="follow-hide" style="text-align: right;" v-if="!isDynamic && personal && !item.hidden" @click="emitHide(item.id)">
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<svg-icon style="margin-right: 10px;font-size:22px;padding-top: 4px;" icon-class="eyes"></svg-icon>隐藏
|
<svg-icon style="margin-right: 10px;font-size:22px;padding-top: 4px;" icon-class="eyes"></svg-icon>隐藏
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<h6 class="note-title-info follow-home-title pointer" @click="jumpDetail(item)">{{item.contentInfo}} <span style="color: #333333;font-weight: 400;font-size: 14px;margin-left: 20px;"></span> <span class="score-info" style="margin-left:22px">{{toScore(item.score)}}分</span>
|
<h6 class="note-title-info follow-home-title pointer" @click="jumpDetail(item)">{{processNoteTitles(item.contentInfo, 1)}} <span style="color: #333333;font-weight: 400;font-size: 14px;margin-left: 20px;"></span> <span class="score-info" style="margin-left:22px">{{processNoteTitles(item.contentInfo, 2)}}分</span>
|
||||||
<span class="follow-hide" style="float:right" v-if="!isDynamic && personal && !item.hidden" @click="emitHide(item.id)">
|
<span class="follow-hide" style="float:right" v-if="!isDynamic && personal && !item.hidden" @click="emitHide(item.id)">
|
||||||
<svg-icon style="margin-right: 10px;font-size:22px;padding-top: 4px;" icon-class="eyes"></svg-icon>隐藏
|
<svg-icon style="margin-right: 10px;font-size:22px;padding-top: 4px;" icon-class="eyes"></svg-icon>隐藏
|
||||||
</span>
|
</span>
|
||||||
@@ -62,6 +62,14 @@
|
|||||||
mounted() {
|
mounted() {
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
processNoteTitles(info,num) {
|
||||||
|
let data = info.split('&');
|
||||||
|
if(num ==1) {
|
||||||
|
return data[0];
|
||||||
|
} else {
|
||||||
|
return this.toScore(Number(data[1]));
|
||||||
|
}
|
||||||
|
},
|
||||||
jumpDetail(item){
|
jumpDetail(item){
|
||||||
this.$router.push('/course/detail?id='+item.info.courseId)
|
this.$router.push('/course/detail?id='+item.info.courseId)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -74,10 +74,10 @@
|
|||||||
created() {
|
created() {
|
||||||
let width = document.body.clientWidth;
|
let width = document.body.clientWidth;
|
||||||
console.log(width,'width');
|
console.log(width,'width');
|
||||||
if(width > 1920) {
|
if(width > 1921) {
|
||||||
this.clientWidth = '1088px';
|
this.clientWidth = '1088px';
|
||||||
}
|
}
|
||||||
if(width > 1681 && width < 1920) {
|
if(width > 1681 && width < 1921) {
|
||||||
this.clientWidth = '888px';
|
this.clientWidth = '888px';
|
||||||
}
|
}
|
||||||
if(width > 1367 && width < 1680) {
|
if(width > 1367 && width < 1680) {
|
||||||
@@ -181,9 +181,10 @@
|
|||||||
}
|
}
|
||||||
.gui-box-left{
|
.gui-box-left{
|
||||||
padding-top: 90px;
|
padding-top: 90px;
|
||||||
width: 190px;
|
// width: 190px;
|
||||||
// background: #387DF7;
|
// background: #387DF7;
|
||||||
background: url('../../../public/images/homeWu/guide-bg.png') no-repeat 101% / 101%;
|
background: url('../../../public/images/homeWu/guide-bg.png') no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
border-radius: 10px 0 0 10px;
|
border-radius: 10px 0 0 10px;
|
||||||
.left-title{
|
.left-title{
|
||||||
width: 190px;
|
width: 190px;
|
||||||
|
|||||||
@@ -342,11 +342,6 @@
|
|||||||
apiNote.ids(ids).then(res=>{
|
apiNote.ids(ids).then(res=>{
|
||||||
if(res.status == 200) {
|
if(res.status == 200) {
|
||||||
list.forEach((item, index) => {
|
list.forEach((item, index) => {
|
||||||
let score = item.contentInfo.substr(item.contentInfo.length -1,1);
|
|
||||||
if(Number(score) > 0) {
|
|
||||||
item.score = score;
|
|
||||||
}
|
|
||||||
|
|
||||||
res.result.some(con => {
|
res.result.some(con => {
|
||||||
if (con.id == item.contentId) {
|
if (con.id == item.contentId) {
|
||||||
item.info = con;
|
item.info = con;
|
||||||
@@ -355,8 +350,6 @@
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
item.contentInfo = item.contentInfo.slice(0,item.contentInfo.length -1);
|
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user