guren-cloud / Weplug Add Tips
微信小程序UI组件:用户首次进入进行【添加到我的小程序】操作提示
Stars: ✭ 159
Programming Languages
javascript
184084 projects - #8 most used programming language
add-tips
微信小程序UI插件 用于提示用户首次进入小程序时,点击右上角菜单进行【添加到我的小程序】操作
文档
首先,把这个仓库下载/克隆到你的小程序目录,比如/components/weplug-add-tips/
然后,在首页index.json
配置文件中,引入该组件:
{
"usingComponents": {
"add-tips": "/components/weplug-add-tips/index"
}
}
最后,在首页index.wxml
文件中,调用该组件即可:
<add-tips />
参数
你可以传递两个参数进行自定义操作:
1. text:提示的文字内容
<add-tips text="点击添加到小程序" />
2. duration:提示关闭时间(单位秒)
<add-tips duration="10" />
截图
你也可以扫一扫小程序进行体验效果:
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].