本帖最后由 470772345 于 2017-3-7 11:48 编辑
二次确认弹框: 用于需要谨慎操作的功能 再次确认后执行,能在一定程度上避免用户大意失误操作。
步骤一:引入 --------- MsgDialog = require('$UI/system/components/justep/messageDialog/messageDialog');
步骤二:需要二次确认后执行的事件 --------- //重置密码再次确认事件
Model.prototype.comfirmResetPswClick = function(event) { var self = this; if (!this.msg) this.msg = new MsgDialog({ parentNode : this.getElementByXid('row1') //相应的父级节点 }); this.msg.on('onOK', function(event) { self.resetPassword(); //确认后 执行的操作 }, this); this.msg.show({ type : 'OKCancel', title : '再次确认', message : '确定需要密码重置?' });
};
|