1. The pull-down refresh concepts and application scenarios.
Concept: drop-down list to refresh the mobile client update data interactions, user by sliding your finger on the screen the child down, and can trigger pull down to refresh the page, update the list data.
Scenario: In the mobile terminal, data lists are common results page, the update page list data is the most basic needs, compared to the Refresh button, regularly updated, the pull-down refresh convenient and friendly user experience, has become a mobile terminal to refresh the list the best solution for the data.
Small micro-channel pull-down refresh program starts:
In two ways:
1. The need to open the configuration page or enablePullDownRefresh in app.json of window options, but, in general, it is recommended to open a separate pull-down refresh behavior for the desired page in the page configuration.
2. Can () is triggered by the drop-down refresh wx.startPullDownRefresh, after calling the drop-down refresh trigger animations, effects and consistent user manual pull-down refresh.
Configuration pull-down pattern refresh the window:
You need to modify or page configuration options app.json backbroundColor and backgroundTextStyle of window options.
backgroundColor: used to configure the drop-down refresh the window's background color, only supports hexadecimal color value.
backgroundTextStyle to refresh loading configuration drop-down style, only support dark and light
On Raja upload more