Commit b6dbfdd0 authored by raca's avatar raca

Merge branch 'feature/2023-06-12-v1.1' of…

Merge branch 'feature/2023-06-12-v1.1' of https://118.24.71.244/hewenhao/GeekLearnMathWeapp into feature/2023-06-12-v1.1
parents c0cc703f 9ba1f079
......@@ -14,6 +14,11 @@ Component({
value: [],
},
},
observers: {
'list' (val) {
this.reset()
}
},
data: {
styles,
assets,
......@@ -28,6 +33,14 @@ Component({
this.loadMore()
},
methods: {
reset () {
this.setData({ realList: [] }, () => {
this._hasNextPage = true
this._loading = false
this._currentPage = 0
this.loadMore()
})
},
async loadMore () {
if (this._loading || !this._hasNextPage) return
this._loading = true
......
.chapter {
padding: 24px 32px 24px 32px;
background-color: #1786f7;
background-color: #F3B751;
color: #FFFFFF;
display: flex;
align-items: center;
......@@ -16,6 +16,7 @@
left: 0;
right: 0;
z-index: 1;
height: 180px;
}
}
......@@ -123,6 +124,7 @@
bottom: 0;
right: 0;
width: 100%;
height: 400px;
}
}
......
......@@ -4,6 +4,8 @@
z-index: 1;
padding-bottom: 56PX;
background-color: #F3B751;
min-height: 100vh;
box-sizing: border-box;
}
.chapterGap {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment