Recently under development. The bottom loading data of uniapp does not take effect; the official document says to give a fixed height. If it is fixed, there will be adaptation problems. Seeing that most of them are controlled by js on the Internet, I think it is too troublesome. I can control it with css, so I don’t need js.; Next, let’s look at the solution, mainly using elastic layout
Let me talk about the layout introduction and ideas first: We have a page. There may be titles, categories, and scroll-view in the data scrolling area; 1. The overall elastic layout is displayed: flex; flex-flow: column; height: 100%; 2. The scrolling area flex: 1, the height of scroll-view :100%. (Find flex: 1, not the real width or height) Look at the code. Focus on layout and style! !