|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div>
|
|
|
+ <div style="wrap">
|
|
|
<div class="searchSection">
|
|
|
<div class="searchDate">
|
|
|
<div class="date startDate" @click="dateSection.status = true">
|
|
@@ -240,12 +240,17 @@ export default {
|
|
|
this.courseList = [];
|
|
|
this.refreshing = false;
|
|
|
}
|
|
|
- this.loading = false;
|
|
|
+ this.loading = true;
|
|
|
getPracticeGroup(this.search).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
this.page++
|
|
|
- this.courseList = this.courseList.concat(res.data.data.rows)
|
|
|
- this.loading = true;
|
|
|
+ if( this.courseList.length >0){
|
|
|
+ this.courseList = this.courseList.concat(res.data.data.rows)
|
|
|
+ }else {
|
|
|
+ this.courseList = res.data.data.rows;
|
|
|
+ }
|
|
|
+
|
|
|
+ this.loading = false;
|
|
|
if(res.data.data.rows.length == 0){
|
|
|
this.finished = true;
|
|
|
}
|
|
@@ -278,6 +283,9 @@ export default {
|
|
|
</script>
|
|
|
<style lang="less" scoped>
|
|
|
@import url("../../assets/commonLess/variable.less");
|
|
|
+.wrap{
|
|
|
+ min-height: 100vh;
|
|
|
+}
|
|
|
.searchSection {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|