1.uni.showModal
uni.showModal({
title: '提示', //标题
content: `${res.data.msg}`, //提示内容
showCancel: false //不显示取消按钮
})
2.uni.showToast
uni.showToast({
icon: 'none',
duration: 3000,
title: `${res.data.msg}`
});
3.u-toast
<u-toast ref="uToast"></u-toast>
this.$refs.uToast.show({
type: 'error',
message: '请稍后再试'
});