export default {
	showToast(title, success) {
		uni.showToast({
			mask: true,
		    title: title,
		    duration: 2000,
			icon: success || 'none'
		});
	},
	showLoading(title) {
		uni.showLoading({
		    title: title || '加载中...',
			mask: true
		});
	},
	hideLoading() {
		uni.hideLoading();
	},
	showTips(el, {title, type}) {
		el.show({
			title: title,
			type: type || 'success',
			duration: '2000'
		})
	}
	
}