diff --git a/api/phase2/index.js b/api/phase2/index.js index 11db0aa..932de18 100644 --- a/api/phase2/index.js +++ b/api/phase2/index.js @@ -56,6 +56,10 @@ const scorelist=function(num,p){ const indexList=function(query) { return ajax.post('/xboe/m/qa/question/query-random',query); } +// 1最新 2最热 +const mobieArticle=function (type){ + return ajax.get('/xboe/portal/index/mobile-article?type='+type); +} export default { cases, @@ -65,5 +69,6 @@ export default { courselist, mobileIndex, scorelist, - indexList + indexList, + mobieArticle } diff --git a/components/course-list/course-list.vue b/components/course-list/course-list.vue index 7cc6ca9..4449c1d 100644 --- a/components/course-list/course-list.vue +++ b/components/course-list/course-list.vue @@ -95,7 +95,7 @@ bottom: -2upx; color: #FFFFFF; font-size: 28upx; - z-index: 99999; + z-index: 99; width: 136upx; height: 44upx; background: #1767FF; diff --git a/components/data-filter/data-filter.vue b/components/data-filter/data-filter.vue index b6a2d2d..d1e60cf 100644 --- a/components/data-filter/data-filter.vue +++ b/components/data-filter/data-filter.vue @@ -4,9 +4,13 @@ - - + + + + + 课程分类 + 排序 @@ -15,28 +19,28 @@ 授课方式 - 录播课 线下课 学习项目 - - 内容分类 + 内容分类 {{sysType.name}} - - U选小课堂 + + + + + {{course.sysType1.name}} + + {{tow.name}} + + + {{three.name}} + @@ -69,8 +73,8 @@ - 重 置 - 确 定 + + 选择好了,返回课程列表页 @@ -89,21 +93,27 @@ type: { type: Number, required:true - } + }, + filterWidth:{ + type:String, + default:'100%' + } }, data(){ return{ courseSysTypeTree:[], courseScenceList:[], - filterShow:false,//是否显示过虑器 - filterWidth:'300px', + filterShow:true,//是否显示过虑器 + // filterWidth:'300px', + sysTypeTow:[], + sysTypeThree:[], course:{ orderType:-1,//表未选中,排序,最新,最热 courseType:-1,//表未选中 scenes:[], - sysType1:'', - sysType2:'', - sysType3:'' + sysType1:{}, + sysType2:{}, + sysType3:{} }, article:{ orderType:-1 @@ -116,7 +126,7 @@ } }, mounted() { - this.filterWidth=(this.$width-100)+'px'; //右边出来的抽屉宽度控制 + // this.filterWidth=(this.$width-100)+'px'; //右边出来的抽屉宽度控制 this.loadData(); }, computed:{ @@ -249,6 +259,15 @@ }else if(strType=='sysType1'){ this.course.sysType1=value; + this.sysTypeTow = value.children; + this.course.sysType2 = {}; + this.course.sysType3={}; + }else if(strType=='sysType2'){ + this.course.sysType2=value; + this.sysTypeThree = value.children; + this.course.sysType3={}; + }else if(strType=='sysType3'){ + this.course.sysType3=value; } }, moreFilters(){ @@ -368,56 +387,117 @@ diff --git a/components/recommend-index/recommend-index.vue b/components/recommend-index/recommend-index.vue index 47fbc3d..1648c22 100644 --- a/components/recommend-index/recommend-index.vue +++ b/components/recommend-index/recommend-index.vue @@ -217,7 +217,7 @@ }, //推荐文章 getArtData() { - apiIndex.articlelist(2).then(res=>{ + apiIndex.mobieArticle(2).then(res=>{ if(res.status == 200) { let ids = []; res.result.forEach(item=>{ diff --git a/pages/index/index.vue b/pages/index/index.vue index d49242c..cc9a87e 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -38,7 +38,7 @@ - +