Small micro-channel analog program jumps anchor

Using a scroll-view components:

You may be utilized scroll-view assembly scroll-into-view property is achieved.

id scroll-into-view and sub-elements can not start with a number;
the Scroll-View need to set clear height;

Here Insert Picture Description

Issues contained in the pull-down refresh and on ECLAC:

scroll-view component can not use the drop-down refresh and on ECLAC carrier.

Use wx.pageScrollTo ():

id can not start with a number;
the parent element and the ancestor can not use the overflow, it will lead to success success, but the page does not scroll phenomenon.
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description

Issues contained in the pull-down refresh and on ECLAC:

Scroll wx.pageScrollTo () will trigger a default on the drop-down refresh and Raja carrier.

Solution: define a global variable isSearchScroll; if executed wx.pageScrollTo (), is set isSearchScroll is true; in onReachBottom (), it is determined if isSearchScroll is false, it performs an operation to load the next page, or do nothing ; isSearchScroll then set to false in onReachBottom () in.
Here Insert Picture Description
Here Insert Picture Description

Published 258 original articles · won praise 21 · views 50000 +

Guess you like

Origin blog.csdn.net/wsln_123456/article/details/104536806