fix
Helius
2021-02-20 45fb4b11ad51bb38306765b11a6747402e382cee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
 * Toast 工具类
 * */
 const Toast = {
    info(title){
        uni.showToast({
            title,
            icon: 'none',
            position: 'bottom'
        });
    },
    success(title){
        uni.showToast({
            title,
            position: 'bottom'
        });
    },
    error(title){
        uni.showToast({
            title,
            image: '/static/image/error.png',
            position: 'bottom'
        });
    },
    loading(title){
        uni.showToast({
            title,
            icon: 'loading',
            position: 'bottom'
        });
    }
 }
 export default Toast;