app.js
// 提示 showToast(text, time, icon) { // console.log(text, time, icon) wx.showToast({ title: text, duration: time, icon: icon != undefined && icon != NaN && icon != ''&&icon != 'none' ? icon : 'none' }) },使用页
(‘提示语’,时长,'图标')
时长:1000为1秒
1.
getApp().showToast('没有更多数据啦!!!', 1000, '')
2.
getApp().showToast('没有更多数据啦!!!', 1000, 'success')
success, success_no_circle, info, warn, waiting, cancel, download, search, clear
详细介绍请参考官网:https://developers.weixin.qq.com/miniprogram/dev/component/icon.html