|
|
export const toast = (title)=> uni.showToast({title,icon:'none'})
|
|
|
export const success = (title)=> uni.showToast({title})
|
|
|
export const loading = (title)=> uni.showLoading({title:'加载中'})
|
|
|
export const hideLoading = ()=> uni.hideLoading()
|
|
|
|
|
|
export const toa = {
|
|
|
toast : (title) => uni.showToast({title,icon:'none'}),
|
|
|
success : (title)=> uni.showToast({title}),
|
|
|
loading : (title)=> uni.showLoading({title: title || '加载中',mask:true}),
|
|
|
hideLoading : ()=> uni.hideLoading(),
|
|
|
}
|
|
|
|
|
|
export const router = {
|
|
|
back : (num)=> uni.navigateBack({delta: num || 1})
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|