mini add tips
v0.0.1
Used to prompt the user to click the menu in the upper right corner to perform the [Add to My Mini Program] operation when entering the mini program for the first time.
The style is consistent with Alipay's original collection component (added to the homepage), and supports consistent effects in customized navigation bar scenarios.
Preview in developer tools
latest release
git clone https://github.com/MakerGYT/mini-add-tips.git
Copy the components/add-tips folder in the project to the component path
Add the following to the json file corresponding to the page using this component:
{
"usingComponents" : {
"add-tips" : " /components/add-tips/index "
}
}
<!-- index.wxml -->
< add-tips name ="示例" />
To customize the navigation bar, please refer to /pages/index
property | type | default value | Required | illustrate |
---|---|---|---|---|
name | String | test | no | Mini program name |
logo | String | no | Mini program logo | |
duration | Number | 10 | no | Continuous display time (s) |
delay | Number | 2 | no | Enter page delay time (s) to start displaying |
custom | Boolean | false | no | Whether the current page is {"navigationStyle": "custom"} |
In view of the current design of WeChat basic library:
MIT © MakerGYT