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({ ...@@ -14,6 +14,11 @@ Component({
value: [], value: [],
}, },
}, },
observers: {
'list' (val) {
this.reset()
}
},
data: { data: {
styles, styles,
assets, assets,
...@@ -28,6 +33,14 @@ Component({ ...@@ -28,6 +33,14 @@ Component({
this.loadMore() this.loadMore()
}, },
methods: { methods: {
reset () {
this.setData({ realList: [] }, () => {
this._hasNextPage = true
this._loading = false
this._currentPage = 0
this.loadMore()
})
},
async loadMore () { async loadMore () {
if (this._loading || !this._hasNextPage) return if (this._loading || !this._hasNextPage) return
this._loading = true this._loading = true
......
.chapter { .chapter {
padding: 24px 32px 24px 32px; padding: 24px 32px 24px 32px;
background-color: #1786f7; background-color: #F3B751;
color: #FFFFFF; color: #FFFFFF;
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
left: 0; left: 0;
right: 0; right: 0;
z-index: 1; z-index: 1;
height: 180px;
} }
} }
...@@ -123,6 +124,7 @@ ...@@ -123,6 +124,7 @@
bottom: 0; bottom: 0;
right: 0; right: 0;
width: 100%; width: 100%;
height: 400px;
} }
} }
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
z-index: 1; z-index: 1;
padding-bottom: 56PX; padding-bottom: 56PX;
background-color: #F3B751; background-color: #F3B751;
min-height: 100vh;
box-sizing: border-box;
} }
.chapterGap { .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