diff --git a/src/api/modules/coursePortal.js b/src/api/modules/coursePortal.js index 2fe2d9bf..3af8fd4f 100644 --- a/src/api/modules/coursePortal.js +++ b/src/api/modules/coursePortal.js @@ -59,8 +59,8 @@ const ranking = function(data) { 评分榜 @param num 要几条传几条 不传默认五条 */ -const scorelist=function(num){ - return ajax.get(`/xboe/m/course/portal/score-list?num=${num}`); +const scorelist=function(num,p){ + return ajax.get(`/xboe/m/course/portal/score-list?num=${num}&index=${p}`); } diff --git a/src/components/Course/collectItem.vue b/src/components/Course/collectItem.vue index 6f633313..7aab31d5 100644 --- a/src/components/Course/collectItem.vue +++ b/src/components/Course/collectItem.vue @@ -19,7 +19,7 @@
-
报名时间:{{ item.time || item.favoritesTime}}
+
收藏时间:{{ item.time || item.favoritesTime}}
去上课
diff --git a/src/views/Index.vue b/src/views/Index.vue index 194de15a..6381fcaa 100644 --- a/src/views/Index.vue +++ b/src/views/Index.vue @@ -299,7 +299,7 @@
{{ articleList.first && articleList.first.sysCreateTime && articleList.first.sysCreateTime.substring(0, 10) }} - 查看详情 + 查看详情
@@ -748,7 +748,7 @@ }); }, getScoreList() { //课程排行榜 - apiCourse.scorelist(10).then(res => { + apiCourse.scorelist(10,1).then(res => { if (res.status == 200) { res.result.forEach(item => { if (item.publishTime != '') { @@ -1323,7 +1323,7 @@ border: 1px solid #EDEFF0; position: absolute; top: 30px; - right:-70px; + right:-22px; z-index: 999; .list-content { diff --git a/src/views/portal/article/Detail.vue b/src/views/portal/article/Detail.vue index 2550b612..9bb2fb76 100644 --- a/src/views/portal/article/Detail.vue +++ b/src/views/portal/article/Detail.vue @@ -80,9 +80,9 @@
- + - +
@@ -183,14 +183,16 @@ export default { clearInterval(this.setTime); }, methods: { + banJump() { + if(this.resonimg.JumpUrl) { + window.open(this.resonimg.JumpUrl); + } + }, couresreso(){ let key = 'article'; apiPlace.detail(key).then(res=>{ - console.log(res) let lmj = JSON.parse(res.result.content) - // console.log(lmj) this.resonimg = lmj[0] - console.log(this.resonimg.image) }) }, handleScroll() { diff --git a/src/views/portal/article/Index.vue b/src/views/portal/article/Index.vue index b9577bbc..63a7fbfc 100644 --- a/src/views/portal/article/Index.vue +++ b/src/views/portal/article/Index.vue @@ -102,10 +102,10 @@ - + - - + @@ -207,14 +207,16 @@ export default { window.removeEventListener("scroll",this.handleScroll); }, methods: { + banJump() { + if(this.resonimg.JumpUrl) { + window.open(this.resonimg.JumpUrl); + } + }, couresreso(){ let key = 'article'; apiPlace.detail(key).then(res=>{ - console.log(res) let lmj = JSON.parse(res.result.content) - // console.log(lmj) this.resonimg = lmj[0] - console.log(this.resonimg.image) }) }, emitInput(val){ diff --git a/src/views/portal/case/Detail.vue b/src/views/portal/case/Detail.vue index 4b9310f2..c483eba5 100644 --- a/src/views/portal/case/Detail.vue +++ b/src/views/portal/case/Detail.vue @@ -151,9 +151,9 @@ - + - + @@ -244,6 +244,11 @@ export default { clearInterval(this.setTimeCase); }, methods: { + banJump() { + if(this.resonimg.JumpUrl) { + window.open(this.resonimg.JumpUrl); + } + }, jumecase(item){ this.$router.push({ path: './Detail.vue', query: { id: item.id } }); }, @@ -405,7 +410,7 @@ export default { } if(scrollTop > 630) { this.isTopBoxShow = true; - document.querySelector('#fixd-box').style.cssText = "position: fixed;top: -442px;width:"+outerWidth+"px"; + document.querySelector('#fixd-box').style.cssText = "position: fixed;top: -400px;width:"+outerWidth+"px"; } else { document.querySelector('#fixd-box').style.cssText = "position: static"; } diff --git a/src/views/portal/case/Index.vue b/src/views/portal/case/Index.vue index acef6fa8..81b3f74c 100644 --- a/src/views/portal/case/Index.vue +++ b/src/views/portal/case/Index.vue @@ -103,7 +103,7 @@
-
+
@@ -175,9 +175,9 @@ - + - + @@ -332,14 +332,16 @@ export default { window.removeEventListener("scroll", this.handleScroll); }, methods: { + banJump() { + if(this.resonimg.JumpUrl) { + window.open(this.resonimg.JumpUrl); + } + }, couresreso(){ let key = 'case'; apiPlace.detail(key).then(res=>{ - console.log(res) let lmj = JSON.parse(res.result.content) - // console.log(lmj) this.resonimg = lmj[0] - console.log(this.resonimg.image) }) }, specialized(){ @@ -499,7 +501,7 @@ export default { } if (scrollTop > 630) { document.querySelector("#fixd-box").style.cssText = - "position: fixed;top: -442px;width:"+outerWidth+"px"; + "position: fixed;top: -400px;width:"+outerWidth+"px"; } else { document.querySelector("#fixd-box").style.cssText = "position: static"; } diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index f9fc376d..864afef3 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -272,9 +272,9 @@ - + - + @@ -448,15 +448,18 @@ export default { window.removeEventListener("scroll", this.handleScroll); }, methods: { + banJump() { + if(this.resonimg.JumpUrl) { + window.open(this.resonimg.JumpUrl); + } + }, couresreso(){ let key = 'course'; apiPlace.detail(key).then(res=>{ - //console.log(res,'lmj') let resImgList = JSON.parse(res.result.content); if(resImgList && resImgList.length>0){ this.resonimg = resImgList[0] } - // console.log(this.resonimg,'111') }) }, jumUX() { @@ -488,7 +491,7 @@ export default { //if(this.course.pageIndex >1){ if (scrollTop > 830) { document.querySelector("#fixd-box").style.cssText = - "position: fixed;top: -914px;width:"+outerWidth+"px"; + "position: fixed;top: -885px;width:"+outerWidth+"px"; } else { document.querySelector("#fixd-box").style.cssText = "position: static"; } @@ -830,7 +833,7 @@ export default { }); }, getScoreList() { - apiCourse.scorelist(5).then(res => { + apiCourse.scorelist(5,2).then(res => { if (res.status == 200) { res.result.forEach(item=>{ if(item.publishTime != '') { diff --git a/src/views/portal/qa/Answer.vue b/src/views/portal/qa/Answer.vue index 905983d7..93c6bcc4 100644 --- a/src/views/portal/qa/Answer.vue +++ b/src/views/portal/qa/Answer.vue @@ -252,9 +252,9 @@ - + - + @@ -372,13 +372,16 @@ export default { window.removeEventListener("scroll", this.handleScroll); }, methods: { + banJump() { + if(this.resonimg.JumpUrl) { + window.open(this.resonimg.JumpUrl); + } + }, couresreso(){ let key = 'qa'; apiPlace.detail(key).then(res=>{ - console.log(res) let lmj = JSON.parse(res.result.content) this.resonimg = lmj[0] - console.log(this.resonimg.image) }) }, handleScroll() { diff --git a/src/views/portal/qa/Index.vue b/src/views/portal/qa/Index.vue index fe08c7d7..a74d313d 100644 --- a/src/views/portal/qa/Index.vue +++ b/src/views/portal/qa/Index.vue @@ -106,9 +106,9 @@ - + - + @@ -215,13 +215,16 @@ export default { window.removeEventListener("scroll",this.handleScroll); }, methods: { + banJump() { + if(this.resonimg.JumpUrl) { + window.open(this.resonimg.JumpUrl); + } + }, couresreso(){ let key = 'qa'; apiPlace.detail(key).then(res=>{ - console.log(res) let lmj = JSON.parse(res.result.content) this.resonimg = lmj[0] - console.log(this.resonimg.image) }) }, emitInput(val){ diff --git a/src/views/user/ranking.vue b/src/views/user/ranking.vue index 8fd48c0c..a8d96f7e 100644 --- a/src/views/user/ranking.vue +++ b/src/views/user/ranking.vue @@ -535,7 +535,7 @@ export default { } .omit{ - padding-left: 20px; + padding-left: 13px; div{ font-size: 30px; line-height: 10px; @@ -550,7 +550,7 @@ export default { display: flex; div{ // margin-right: 13%; - min-width: 52px; + min-width: 60px; font-size: 14px; font-weight: 400; color: #999999;