|
@@ -75,25 +75,25 @@ export default {
|
75
|
75
|
index: this.currentPage, //页数
|
76
|
76
|
size: this.pageSize //每页个数
|
77
|
77
|
}
|
78
|
|
- xxxxxxx(params).then((res) => {
|
79
|
|
- console.log(res)
|
80
|
|
- this.dataTotal = res.total
|
81
|
|
- //进行判断
|
82
|
|
- if (this.dataTotal <= this.pageSize) {
|
83
|
|
- this.Array = res.data.list
|
84
|
|
- console.log(this.Array)
|
85
|
|
- } else {
|
86
|
|
- this.currentPage++
|
87
|
|
- let arr = res.data.data.list
|
88
|
|
- this.Array = this.Array.concat(arr)
|
89
|
|
- }
|
90
|
|
- // 加载状态结束
|
91
|
|
- this.loading = false
|
92
|
|
- // 数据全部加载完成
|
93
|
|
- if (this.Array.length >= this.dataTotal) {
|
94
|
|
- this.finished = true //结束,显示我也是有底线的
|
95
|
|
- }
|
96
|
|
- })
|
|
78
|
+ // xxxxxxx(params).then((res) => {
|
|
79
|
+ // console.log(res)
|
|
80
|
+ // this.dataTotal = res.total
|
|
81
|
+ // //进行判断
|
|
82
|
+ // if (this.dataTotal <= this.pageSize) {
|
|
83
|
+ // this.Array = res.data.list
|
|
84
|
+ // console.log(this.Array)
|
|
85
|
+ // } else {
|
|
86
|
+ // this.currentPage++
|
|
87
|
+ // let arr = res.data.data.list
|
|
88
|
+ // this.Array = this.Array.concat(arr)
|
|
89
|
+ // }
|
|
90
|
+ // // 加载状态结束
|
|
91
|
+ // this.loading = false
|
|
92
|
+ // // 数据全部加载完成
|
|
93
|
+ // if (this.Array.length >= this.dataTotal) {
|
|
94
|
+ // this.finished = true //结束,显示我也是有底线的
|
|
95
|
+ // }
|
|
96
|
+ // })
|
97
|
97
|
}
|
98
|
98
|
}
|
99
|
99
|
}
|
|
@@ -108,10 +108,10 @@ export default {
|
108
|
108
|
|
109
|
109
|
.Course-box {
|
110
|
110
|
width: 100vw;
|
|
111
|
+ padding-top: 10px;
|
111
|
112
|
|
112
|
113
|
.banner-box-top {
|
113
|
114
|
position: relative;
|
114
|
|
- margin-top: 10px;
|
115
|
115
|
width: calc(100% - 20px);
|
116
|
116
|
|
117
|
117
|
.banner-swipe {
|