controller控制器加入以下代码
var alertPopup = $ionicPopup.alert({
template: '<p style="color:red;padding:20px">超过30天未排单会员、注册超过15天且用户资料未完善会员,系统将会对此部分会员进行永久清理并且不能再注册!</p>',
buttons:[]
});
var htmlEl = angular.element(document.querySelector('html'));
htmlEl.on('click', function (event) {
if (event.target.nodeName === 'HTML') {
if (alertPopup) {
alertPopup.close();
}
}
});