mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-09 02:46:46 +08:00
修改
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
<view class="list-box">
|
<view class="list-box">
|
||||||
<view class="list-box-index">
|
<view class="list-box-index">
|
||||||
<view class="list-box-title course-bg-info">
|
<view class="list-box-title course-bg-info">
|
||||||
课程排行榜
|
热门课程排行榜
|
||||||
</view>
|
</view>
|
||||||
<view class="list-box-text" v-for="(cou,index) in courseRankingList" @click="toCourseDetail(cou)">
|
<view class="list-box-text" v-for="(cou,index) in courseRankingList" @click="toCourseDetail(cou)">
|
||||||
<image v-if="index == 0" style="width:50upx;height: 50upx;vertical-align: middle;" src="../../static/images/ranking/listblue01.png" mode=""></image>
|
<image v-if="index == 0" style="width:50upx;height: 50upx;vertical-align: middle;" src="../../static/images/ranking/listblue01.png" mode=""></image>
|
||||||
|
|||||||
@@ -548,11 +548,19 @@
|
|||||||
url: '/pages/my/message'
|
url: '/pages/my/message'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
toSearch(){
|
toSearch(){
|
||||||
let pageUrl='/pages/resource/search';
|
if(this.conType == 0){
|
||||||
uni.navigateTo({
|
let pageUrl='/pages/resource/search?type=' + 1;
|
||||||
url:pageUrl
|
uni.navigateTo({
|
||||||
})
|
url:pageUrl
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
let pageUrl='/pages/resource/search?type=' + this.conType;
|
||||||
|
uni.navigateTo({
|
||||||
|
url:pageUrl
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
changeList(){
|
changeList(){
|
||||||
this.dataName='list'+this.tabIndex+this.conType;
|
this.dataName='list'+this.tabIndex+this.conType;
|
||||||
@@ -564,6 +572,8 @@
|
|||||||
this.findArticleData();
|
this.findArticleData();
|
||||||
} else if(this.conType == 4) {// 问答
|
} else if(this.conType == 4) {// 问答
|
||||||
this.findQaData();
|
this.findQaData();
|
||||||
|
}else if(this.conType == 0) {// 推荐默认课程
|
||||||
|
this.findCourseData();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
if(this.conType== 1) {//课程
|
if(this.conType== 1) {//课程
|
||||||
@@ -572,6 +582,8 @@
|
|||||||
this.articleList=curData.list;
|
this.articleList=curData.list;
|
||||||
} else if(this.conType == 4) {// 问答
|
} else if(this.conType == 4) {// 问答
|
||||||
this.qaList=curData.list;
|
this.qaList=curData.list;
|
||||||
|
}else if(this.conType == 0) {// 推荐默认课程
|
||||||
|
this.courseList=curData.list;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -580,7 +592,8 @@
|
|||||||
this.noPageList= true,//判断接口是否还有数据
|
this.noPageList= true,//判断接口是否还有数据
|
||||||
this.noDataList= true,//判断接口是否还有数据
|
this.noDataList= true,//判断接口是否还有数据
|
||||||
this.changeList();
|
this.changeList();
|
||||||
},
|
},
|
||||||
|
changeConType(item) {
|
||||||
console.log(item)
|
console.log(item)
|
||||||
this.conType = item.type;
|
this.conType = item.type;
|
||||||
this.changeList();
|
this.changeList();
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<!--搜索页-->
|
<!--搜索页-->
|
||||||
<view style="background-color: #fff;height: 100vh;">
|
<view style="background-color: #fff;height: 100vh;">
|
||||||
<u-toast ref="messager"></u-toast>
|
<u-toast ref="messager"></u-toast>
|
||||||
<view style="margin:30upx 30upx; display: flex;">
|
<view style="padding-top: 30upx; margin: 0upx 30upx; display: flex;">
|
||||||
<u-icon @click="back()" name="arrow-left" color="#383838" size="22" style="margin-right: 10upx;"></u-icon>
|
<u-icon @click="back()" name="arrow-left" color="#383838" size="22" style="margin-right: 10upx;"></u-icon>
|
||||||
<u-search
|
<u-search
|
||||||
bgColor="#F2F5F7"
|
bgColor="#F2F5F7"
|
||||||
|
|||||||
Reference in New Issue
Block a user