uni.showToast({
title: "正在打开...",
icon: 'loading',
duration:10000,
mask: true
})
下面二者需要配合使用
uni.showLoading({
title:'操作超过300秒系统自动退出...'
})
uni.hideLoading()
提示框(包含确认取消功能)
uni.showModal({
title: '警告信息',
content: '已超出最大盖印次数,请联系管理员',
showCancel:false,
success: function (res) {
if (res.confirm) {
console.log('用户点击确定');
} else if (res.cancel) {
console.log('用户点击取消');
}
}
});