mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-09-22 05:16:39 +08:00
31 lines
506 B
JavaScript
31 lines
506 B
JavaScript
export const SmartLoading = {
|
|
show: function (msg) {
|
|
uni.showLoading({ title: msg ? msg : '加载中' });
|
|
},
|
|
|
|
hide: function () {
|
|
uni.hideLoading();
|
|
},
|
|
};
|
|
|
|
export const SmartToast = {
|
|
success: (message) => {
|
|
uni.showToast({
|
|
title: message,
|
|
icon: 'success',
|
|
});
|
|
},
|
|
error: (message) => {
|
|
uni.showToast({
|
|
title: message,
|
|
icon: 'error',
|
|
});
|
|
},
|
|
toast: (message) => {
|
|
uni.showToast({
|
|
title: message,
|
|
icon: 'none',
|
|
});
|
|
},
|
|
};
|