uniapp弹窗提示
uniapp确认弹窗,cv大法,直接修改点击事件的函数直接使用,ps:需要传参就传,不需要就不用.
DeleteAdderss(id){
var that = this
uni.showModal({
title: '提示',
content: '是否删除',
confirmColor:'#03D58C',
success: (res)=> {
if (res.confirm) {
console.log('用户点击确定');
//下面这段是执行删除逻辑,需要传参,也可以传参,做其他逻辑处理
getJmVisitorDelete({
id:id
}).then(res=>{
//返回结果
uni.showToast({
title:res[1].msg
})
//其他函数逻辑处理
that.getJmVisitorListApi()
})
} else if (res.cancel) {
console.log('用户点击取消');
}
}
});
}