//模态框
showModal: function (msg,title, success,showCancel) {
var app = this;
if (app.empty(title)) {
title = '';
}
if (app.empty(showCancel)){
showCancel = false;
}
wx.showModal({
showCancel: showCancel,
title: title,//标题
content: msg,//消息内容
success: function (res) {
if (res.confirm) {
if (typeof success === 'function'){
success();
}
}
},//成功回调
})
},
小程序模态框
最新推荐文章于 2024-04-08 18:00:21 发布