超V课程

This commit is contained in:
@fawn-nine
2024-06-25 13:18:58 +08:00
parent 2215068cc1
commit 7018a5c242
10 changed files with 139 additions and 34 deletions

View File

@@ -2,7 +2,7 @@
<view>
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<z-nav-bar :title="pageTitle"></z-nav-bar>
<z-nav-bar title="超V专享课程"></z-nav-bar>
<view class="learnBox box" >
<view class="newBox">
<view class="item flexbox" v-for="(item, index) in courseList" :key="index" @click="onPageJump('/pages/course/courseDetail',item.id, item.title)">
@@ -102,10 +102,9 @@
this.status = 1
this.flag = false
$http.request({
url: "medical/home/getMarketCourseList",
url: "medical/course/getCourseByVip",
method: "POST", // POST、GET、PUT、DELETE具体说明查看官方文档
data: {
"id": this.tagId,
data: {
"limit": 12,
"page": this.page
},
@@ -115,10 +114,10 @@
})
.then(res => {
if (res.code == 0) {
if (res.courseList.records.length > 0) {
var list = res.courseList.records
if (res.data.records.length > 0) {
var list = res.data.records
this.courseList = this.courseList.concat(list)
if(res.courseList.pages > this.page){
if(res.data.pages > this.page){
this.status = 0
}else{
this.status = 2