1 | // export const tip = type => text => wx.showToast({
|
2 | // title: text.toString(),
|
3 | // icon: type,
|
4 | // duration: 1000
|
5 | // })
|
6 | // export const success = tip('success')
|
7 | // export const loading = tip('loading')
|
8 | // export const toast = tip('none')
|
9 |
|
10 | module.exports = {
|
11 | toast: (text) => {
|
12 | wx.showToast({
|
13 | title: text.toString(),
|
14 | icon: 'none',
|
15 | duration: 1000
|
16 | })
|
17 | }
|
18 | } |
\ | No newline at end of file |