兼兼街租房小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

48 lines
782 B

function showLoading(title= '加载中...'){
uni.showLoading({
title: title,
duration: 10000,
mask: true
})
}
function hideLoading(){
uni.hideLoading();
}
function showToast (title) {
uni.showToast({
title:title,
icon:"none",
duration: 2000,
mask: false
})
}
function showToastSuccess(title){
uni.showToast({
title: title,
icon: "success",
duration: 2000,
mask:false
})
}
function isExist(value) {
if (value !== null && value !== undefined && value !== "undefined" && value !== "null" && value.length > 0) {
return true;
} else {
return false;
}
}
export default {
showToast: showToast,
showLoading: showLoading,
hideLoading: hideLoading,
showToastSuccess: showToastSuccess,
isExist: isExist
}