![](https://img-blog.csdnimg.cn/c8a0bc7b401e434d8763ea1765307888.png)
![](https://img-blog.csdnimg.cn/54bb7fea6d0f4236a006a6148235854a.png)
uni.showToast({
title: '提交成功',
icon: 'none', //success 等
duration: 1000
});
![](https://img-blog.csdnimg.cn/6e72d622030a4b48a8fcd846762d451f.png)
uni.showLoading({
title: '加载中'
});
setTimeout(function () {
uni.hideLoading();
}, 2000);
![](https://img-blog.csdnimg.cn/cdf0e086980546fc9e42478bae366cac.png)
uni.showModal({
title: '提示',
content: '确认删除该条信息吗?',
success: function(res) {
if (res.confirm) {
// 执行确认后的操作
}
else {
// 执行取消后的操作
}
}
})
![](https://img-blog.csdnimg.cn/a3f15ed3fc2841b2867dc396bc8f387a.png)
uni.showModal({
title: '提示',
// 提示文字
content: '确认删除该条信息吗?',
// 取消按钮的文字自定义
cancelText: "取消",
// 确认按钮的文字自定义
confirmText: "删除",
//删除字体的颜色
confirmColor:'red',
//取消字体的颜色
cancelColor:'#000000',
success: function(res) {
if (res.confirm) {
// 执行确认后的操作
}
else {
// 执行取消后的操作
}
}
})
![](https://img-blog.csdnimg.cn/6ff80682aaf641e88c8f57c1bad3e577.png)
uni.showActionSheet({
itemList: ['选项一', '选项二', '选项三'],
// 字体颜色
itemColor: "#55aaff",
success (res) {
// 选择其中任意一项后,获取其索引(res.tapIndex),从0开始
console.log(res.tapIndex)
},
fail (res) {
// 取消后的操作
}
})