mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
Merge branch 'stat' of https://codeup.aliyun.com/6265f483e4166464dc2f9c14/boeu/portal into stat
This commit is contained in:
@@ -59,8 +59,8 @@ const ranking = function(data) {
|
|||||||
评分榜
|
评分榜
|
||||||
@param num 要几条传几条 不传默认五条
|
@param num 要几条传几条 不传默认五条
|
||||||
*/
|
*/
|
||||||
const scorelist=function(num){
|
const scorelist=function(num,p){
|
||||||
return ajax.get(`/xboe/m/course/portal/score-list?num=${num}`);
|
return ajax.get(`/xboe/m/course/portal/score-list?num=${num}&index=${p}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="uc-bpttom">
|
<div class="uc-bpttom">
|
||||||
<div class="uc-course-text"> <i class="el-icon-time"></i> 报名时间:{{ item.time || item.favoritesTime}}</div>
|
<div class="uc-course-text"> <i class="el-icon-time"></i> 收藏时间:{{ item.time || item.favoritesTime}}</div>
|
||||||
<div class="uc-coures-button">
|
<div class="uc-coures-button">
|
||||||
<el-button type="primary">去上课</el-button>
|
<el-button type="primary">去上课</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -299,7 +299,7 @@
|
|||||||
<div class="article-info-time"
|
<div class="article-info-time"
|
||||||
style="font-size: 14px;color: #6E7B84;display:flex;justify-content: space-between;margin-top:16px">
|
style="font-size: 14px;color: #6E7B84;display:flex;justify-content: space-between;margin-top:16px">
|
||||||
<span>{{ articleList.first && articleList.first.sysCreateTime && articleList.first.sysCreateTime.substring(0, 10) }}</span>
|
<span>{{ articleList.first && articleList.first.sysCreateTime && articleList.first.sysCreateTime.substring(0, 10) }}</span>
|
||||||
<span>查看详情</span>
|
<span><a :href="`${webBaseUrl}/article/detail?id=${articleList.first.id}`">查看详情</a></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="article-other-info" style="margin-top:17px">
|
<div class="article-other-info" style="margin-top:17px">
|
||||||
<div>
|
<div>
|
||||||
@@ -748,7 +748,7 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
getScoreList() { //课程排行榜
|
getScoreList() { //课程排行榜
|
||||||
apiCourse.scorelist(10).then(res => {
|
apiCourse.scorelist(10,1).then(res => {
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
res.result.forEach(item => {
|
res.result.forEach(item => {
|
||||||
if (item.publishTime != '') {
|
if (item.publishTime != '') {
|
||||||
@@ -1323,7 +1323,7 @@
|
|||||||
border: 1px solid #EDEFF0;
|
border: 1px solid #EDEFF0;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 30px;
|
top: 30px;
|
||||||
right:-70px;
|
right:-22px;
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
|
|
||||||
.list-content {
|
.list-content {
|
||||||
|
|||||||
@@ -80,9 +80,9 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="course-resources"> -->
|
<!-- <div class="course-resources pointer"> -->
|
||||||
<!-- 资源位 -->
|
<!-- 资源位 -->
|
||||||
<!-- <img :src="fileBaseUrl + resonimg.image" alt=""> -->
|
<!-- <img @click="banJump()" :src="fileBaseUrl + resonimg.image" alt=""> -->
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -183,14 +183,16 @@ export default {
|
|||||||
clearInterval(this.setTime);
|
clearInterval(this.setTime);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
banJump() {
|
||||||
|
if(this.resonimg.JumpUrl) {
|
||||||
|
window.open(this.resonimg.JumpUrl);
|
||||||
|
}
|
||||||
|
},
|
||||||
couresreso(){
|
couresreso(){
|
||||||
let key = 'article';
|
let key = 'article';
|
||||||
apiPlace.detail(key).then(res=>{
|
apiPlace.detail(key).then(res=>{
|
||||||
console.log(res)
|
|
||||||
let lmj = JSON.parse(res.result.content)
|
let lmj = JSON.parse(res.result.content)
|
||||||
// console.log(lmj)
|
|
||||||
this.resonimg = lmj[0]
|
this.resonimg = lmj[0]
|
||||||
console.log(this.resonimg.image)
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleScroll() {
|
handleScroll() {
|
||||||
|
|||||||
@@ -102,10 +102,10 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="course-resources"> -->
|
<!-- <div class="course-resources pointer"> -->
|
||||||
<!-- 资源位 -->
|
<!-- 资源位 -->
|
||||||
<!-- <img :src="fileBaseUrl + resonimg.image" alt=""> -->
|
<!-- <img @click="banJump()" :src="fileBaseUrl + resonimg.image" alt="">
|
||||||
<!-- </div> -->
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@@ -207,14 +207,16 @@ export default {
|
|||||||
window.removeEventListener("scroll",this.handleScroll);
|
window.removeEventListener("scroll",this.handleScroll);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
banJump() {
|
||||||
|
if(this.resonimg.JumpUrl) {
|
||||||
|
window.open(this.resonimg.JumpUrl);
|
||||||
|
}
|
||||||
|
},
|
||||||
couresreso(){
|
couresreso(){
|
||||||
let key = 'article';
|
let key = 'article';
|
||||||
apiPlace.detail(key).then(res=>{
|
apiPlace.detail(key).then(res=>{
|
||||||
console.log(res)
|
|
||||||
let lmj = JSON.parse(res.result.content)
|
let lmj = JSON.parse(res.result.content)
|
||||||
// console.log(lmj)
|
|
||||||
this.resonimg = lmj[0]
|
this.resonimg = lmj[0]
|
||||||
console.log(this.resonimg.image)
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
emitInput(val){
|
emitInput(val){
|
||||||
|
|||||||
@@ -151,9 +151,9 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="course-resources"> -->
|
<!-- <div class="course-resources pointer"> -->
|
||||||
<!-- 资源位 -->
|
<!-- 资源位 -->
|
||||||
<!-- <img :src="fileBaseUrl + resonimg.image" alt=""> -->
|
<!-- <img @click="banJump()" :src="fileBaseUrl + resonimg.image" alt=""> -->
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -244,6 +244,11 @@ export default {
|
|||||||
clearInterval(this.setTimeCase);
|
clearInterval(this.setTimeCase);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
banJump() {
|
||||||
|
if(this.resonimg.JumpUrl) {
|
||||||
|
window.open(this.resonimg.JumpUrl);
|
||||||
|
}
|
||||||
|
},
|
||||||
jumecase(item){
|
jumecase(item){
|
||||||
this.$router.push({ path: './Detail.vue', query: { id: item.id } });
|
this.$router.push({ path: './Detail.vue', query: { id: item.id } });
|
||||||
},
|
},
|
||||||
@@ -405,7 +410,7 @@ export default {
|
|||||||
}
|
}
|
||||||
if(scrollTop > 630) {
|
if(scrollTop > 630) {
|
||||||
this.isTopBoxShow = true;
|
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 {
|
} else {
|
||||||
document.querySelector('#fixd-box').style.cssText = "position: static";
|
document.querySelector('#fixd-box').style.cssText = "position: static";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -103,7 +103,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div style="display: flex;justify-content: flex-end;">
|
<div style="display: flex;justify-content: flex-end;">
|
||||||
<div style="margin:8px 0;">
|
<div style="margin:8px 0;">
|
||||||
<interactBar :type="0" :shares="false" :data="item" :readonly="true" :views="false"></interactBar> </div>
|
<interactBar :type="0" :shares="false" :data="item" :readonly="true"></interactBar> </div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -175,9 +175,9 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="course-resources"> -->
|
<!-- <div class="course-resources pointer"> -->
|
||||||
<!-- 资源位 -->
|
<!-- 资源位 -->
|
||||||
<!-- <img :src="fileBaseUrl + resonimg.image" alt=""> -->
|
<!-- <img @click="banJump()" :src="fileBaseUrl + resonimg.image" alt=""> -->
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -332,14 +332,16 @@ export default {
|
|||||||
window.removeEventListener("scroll", this.handleScroll);
|
window.removeEventListener("scroll", this.handleScroll);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
banJump() {
|
||||||
|
if(this.resonimg.JumpUrl) {
|
||||||
|
window.open(this.resonimg.JumpUrl);
|
||||||
|
}
|
||||||
|
},
|
||||||
couresreso(){
|
couresreso(){
|
||||||
let key = 'case';
|
let key = 'case';
|
||||||
apiPlace.detail(key).then(res=>{
|
apiPlace.detail(key).then(res=>{
|
||||||
console.log(res)
|
|
||||||
let lmj = JSON.parse(res.result.content)
|
let lmj = JSON.parse(res.result.content)
|
||||||
// console.log(lmj)
|
|
||||||
this.resonimg = lmj[0]
|
this.resonimg = lmj[0]
|
||||||
console.log(this.resonimg.image)
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
specialized(){
|
specialized(){
|
||||||
@@ -499,7 +501,7 @@ export default {
|
|||||||
}
|
}
|
||||||
if (scrollTop > 630) {
|
if (scrollTop > 630) {
|
||||||
document.querySelector("#fixd-box").style.cssText =
|
document.querySelector("#fixd-box").style.cssText =
|
||||||
"position: fixed;top: -442px;width:"+outerWidth+"px";
|
"position: fixed;top: -400px;width:"+outerWidth+"px";
|
||||||
} else {
|
} else {
|
||||||
document.querySelector("#fixd-box").style.cssText = "position: static";
|
document.querySelector("#fixd-box").style.cssText = "position: static";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -272,9 +272,9 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="course-resources"> -->
|
<!-- <div class="course-resources pointer"> -->
|
||||||
<!-- 资源位 -->
|
<!-- 资源位 -->
|
||||||
<!-- <img :src="fileBaseUrl + resonimg.image" alt=""> -->
|
<!-- <img @click="banJump()" :src="fileBaseUrl + resonimg.image" alt=""> -->
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -448,15 +448,18 @@ export default {
|
|||||||
window.removeEventListener("scroll", this.handleScroll);
|
window.removeEventListener("scroll", this.handleScroll);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
banJump() {
|
||||||
|
if(this.resonimg.JumpUrl) {
|
||||||
|
window.open(this.resonimg.JumpUrl);
|
||||||
|
}
|
||||||
|
},
|
||||||
couresreso(){
|
couresreso(){
|
||||||
let key = 'course';
|
let key = 'course';
|
||||||
apiPlace.detail(key).then(res=>{
|
apiPlace.detail(key).then(res=>{
|
||||||
//console.log(res,'lmj')
|
|
||||||
let resImgList = JSON.parse(res.result.content);
|
let resImgList = JSON.parse(res.result.content);
|
||||||
if(resImgList && resImgList.length>0){
|
if(resImgList && resImgList.length>0){
|
||||||
this.resonimg = resImgList[0]
|
this.resonimg = resImgList[0]
|
||||||
}
|
}
|
||||||
// console.log(this.resonimg,'111')
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
jumUX() {
|
jumUX() {
|
||||||
@@ -488,7 +491,7 @@ export default {
|
|||||||
//if(this.course.pageIndex >1){
|
//if(this.course.pageIndex >1){
|
||||||
if (scrollTop > 830) {
|
if (scrollTop > 830) {
|
||||||
document.querySelector("#fixd-box").style.cssText =
|
document.querySelector("#fixd-box").style.cssText =
|
||||||
"position: fixed;top: -914px;width:"+outerWidth+"px";
|
"position: fixed;top: -885px;width:"+outerWidth+"px";
|
||||||
} else {
|
} else {
|
||||||
document.querySelector("#fixd-box").style.cssText = "position: static";
|
document.querySelector("#fixd-box").style.cssText = "position: static";
|
||||||
}
|
}
|
||||||
@@ -830,7 +833,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
getScoreList() {
|
getScoreList() {
|
||||||
apiCourse.scorelist(5).then(res => {
|
apiCourse.scorelist(5,2).then(res => {
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
res.result.forEach(item=>{
|
res.result.forEach(item=>{
|
||||||
if(item.publishTime != '') {
|
if(item.publishTime != '') {
|
||||||
|
|||||||
@@ -252,9 +252,9 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="course-resources"> -->
|
<!-- <div class="course-resources pointer"> -->
|
||||||
<!-- 资源位 -->
|
<!-- 资源位 -->
|
||||||
<!-- <img :src="fileBaseUrl + resonimg.image" alt=""> -->
|
<!-- <img @click="banJump()" :src="fileBaseUrl + resonimg.image" alt=""> -->
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -372,13 +372,16 @@ export default {
|
|||||||
window.removeEventListener("scroll", this.handleScroll);
|
window.removeEventListener("scroll", this.handleScroll);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
banJump() {
|
||||||
|
if(this.resonimg.JumpUrl) {
|
||||||
|
window.open(this.resonimg.JumpUrl);
|
||||||
|
}
|
||||||
|
},
|
||||||
couresreso(){
|
couresreso(){
|
||||||
let key = 'qa';
|
let key = 'qa';
|
||||||
apiPlace.detail(key).then(res=>{
|
apiPlace.detail(key).then(res=>{
|
||||||
console.log(res)
|
|
||||||
let lmj = JSON.parse(res.result.content)
|
let lmj = JSON.parse(res.result.content)
|
||||||
this.resonimg = lmj[0]
|
this.resonimg = lmj[0]
|
||||||
console.log(this.resonimg.image)
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleScroll() {
|
handleScroll() {
|
||||||
|
|||||||
@@ -106,9 +106,9 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="course-resources"> -->
|
<!-- <div class="course-resources pointer"> -->
|
||||||
<!-- 资源位 -->
|
<!-- 资源位 -->
|
||||||
<!-- <img :src="fileBaseUrl + resonimg.image" alt=""> -->
|
<!-- <img @click="banJump()" :src="fileBaseUrl + resonimg.image" alt=""> -->
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
</div>
|
</div>
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
@@ -215,13 +215,16 @@ export default {
|
|||||||
window.removeEventListener("scroll",this.handleScroll);
|
window.removeEventListener("scroll",this.handleScroll);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
banJump() {
|
||||||
|
if(this.resonimg.JumpUrl) {
|
||||||
|
window.open(this.resonimg.JumpUrl);
|
||||||
|
}
|
||||||
|
},
|
||||||
couresreso(){
|
couresreso(){
|
||||||
let key = 'qa';
|
let key = 'qa';
|
||||||
apiPlace.detail(key).then(res=>{
|
apiPlace.detail(key).then(res=>{
|
||||||
console.log(res)
|
|
||||||
let lmj = JSON.parse(res.result.content)
|
let lmj = JSON.parse(res.result.content)
|
||||||
this.resonimg = lmj[0]
|
this.resonimg = lmj[0]
|
||||||
console.log(this.resonimg.image)
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
emitInput(val){
|
emitInput(val){
|
||||||
|
|||||||
@@ -535,7 +535,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.omit{
|
.omit{
|
||||||
padding-left: 20px;
|
padding-left: 13px;
|
||||||
div{
|
div{
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
line-height: 10px;
|
line-height: 10px;
|
||||||
@@ -550,7 +550,7 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
div{
|
div{
|
||||||
// margin-right: 13%;
|
// margin-right: 13%;
|
||||||
min-width: 52px;
|
min-width: 60px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
|
|||||||
Reference in New Issue
Block a user