// 双按钮dialog
setDoubleDialog: function(dialogContent, dialogType, title, sure, cancel) {
this.setData({
dialogContent: dialogContent,
isShown: true,
dialogType: dialogType,
title: title,
confirmText: sure,
cancelText: cancel
})
},
// 新增模板
addMb: function() {
this.setDoubleDialog("", ‘1’, ‘新增模板’, ‘确认’, ‘取消’)
},
外部需要一个dialog文件
微信小程序弹框封装
最新推荐文章于 2024-08-15 23:28:06 发布