This commit is contained in:
2025-10-22 13:06:50 +08:00
parent 192f00c069
commit e7f3cc7c65
12 changed files with 17368 additions and 19576 deletions

View File

@@ -6,14 +6,12 @@
"request": 15000 "request": 15000
}, },
"transformPx": false, "transformPx": false,
"icons" : [ "icons": [{
{
"sizes": "分辨率192x192", "sizes": "分辨率192x192",
"src": "图片路径" "src": "图片路径"
} }],
], "versionName": "2.0.27",
"versionName" : "2.0.26", "versionCode": 2027,
"versionCode" : 2026,
"app-plus": { "app-plus": {
"nvueCompiler": "uni-app", "nvueCompiler": "uni-app",
"compatible": { "compatible": {
@@ -439,4 +437,3 @@
} }
} }
// //

6764
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -554,7 +554,7 @@
{ {
"path": "pages/course/vipCourse", "path": "pages/course/vipCourse",
"style": { "style": {
"navigationBarTitleText": "超V课程", "navigationBarTitleText": "免费课程",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },

View File

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

View File

@@ -50,8 +50,9 @@
class="item flexbox" class="item flexbox"
@click="onPageJump('/pages/course/vipCourse')" @click="onPageJump('/pages/course/vipCourse')"
> >
<image src="../../static/my_06.png" mode="aspectFit"></image> <!-- ../../static/my_06.png -->
<text>超V专享</text> <image src="../../static/my_05.png" mode="aspectFit"></image>
<text>免费课程</text>
</div> </div>
<!-- <div class="item flexbox" @click="onPageJump()"> <!-- <div class="item flexbox" @click="onPageJump()">
<image src="../../static/my_03.png" mode="aspectFit"></image> <image src="../../static/my_03.png" mode="aspectFit"></image>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long