//点击关闭弹窗
UITapGestureRecognizer *tapShadow = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(closeChargeView)];
[self.shadowView addGestureRecognizer:tapShadow];
//隐藏窗口
-(void)closeChargeView {
self.shadowView.hidden = YES;
self.chargeView.hidden = YES;
self.chargeAlphaView.hidden = YES;
// [self.view endEditing:YES];
}