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.
 
 
 
 
 

17 lines
286 B

//用户二次确认
function showConfirm(title, callback) {
uni.showModal({
title,
cancelText : '取消',
confirmText : '确认',
success: function(res) {
if (res.confirm) {
callback && callback()
} else if (res.cancel) {}
}
});
}
export default {
showConfirm
}