|
@@ -182,28 +182,17 @@ NSString *const new_AesKey_4 = @"mGlAgnIBB8bx2nch";
|
|
|
-(void)paningGestureReceive:(UIPanGestureRecognizer *)recoginzer
|
|
|
{
|
|
|
NSString *current_url = [self stringByEvaluatingJavaScriptFromString:@"document.location.href"];
|
|
|
- NSLog(@"当前页面:%@",current_url);
|
|
|
+// NSLog(@"当前页面:%@",current_url);
|
|
|
CGRect rect = self.view.bounds;
|
|
|
CGFloat width = CGRectGetWidth(rect);
|
|
|
- if (![self.webView canGoBack]) {
|
|
|
+ if (![self.webView canGoBack]||[current_url containsString:@"jyapp/free/login"]) {
|
|
|
NSLog(@"不可返回");
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
- if([current_url containsString:@"jyapp/free/login"]) {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- // NSString *current_url = self.webView.request.URL.absoluteString;
|
|
|
if([current_url isEqualToString:[NSString stringWithFormat:@"%@jyapp/free/me",kHost]]||[current_url isEqualToString:[NSString stringWithFormat:@"%@jyapp/jylab/index",kHost]]||[current_url isEqualToString:[NSString stringWithFormat:@"%@jyapp/swordfish/historypush",kHost]]||[current_url isEqualToString:[NSString stringWithFormat:@"%@jyapp/jylab/mainSearch",kHost]]){
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
- //https://www.jianyu360.com/jyapp/free/me
|
|
|
- //https://www.jianyu360.com/jyapp/jylab/index
|
|
|
- //https://www.jianyu360.com/jyapp/wxkeyset/keyset/index
|
|
|
- //https://www.jianyu360.com/jyapp/jylab/mainSearch
|
|
|
-
|
|
|
+
|
|
|
CGPoint touchPoint = [recoginzer locationInView:[UIApplication sharedApplication].keyWindow];
|
|
|
if (recoginzer.state==UIGestureRecognizerStateBegan) {
|
|
|
_isMoving = YES;
|