重庆迈尖科技有限公司
2018-08-14 9f7120c19dc83e5d13edd105f1bd855a494927bb
no message
6个文件已修改
128 ■■■■■ 已修改文件
MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/UserInterfaceState.xcuserstate 补丁 | 查看 | 原始文档 | blame | 历史
MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/数据/lib/EasyJSWebView-master/MyJSInterface.m 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/网页视图/商品详情/GoodDeTrViewController.m 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/邀请/商品分享/ShonpingShareViewController.h 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/邀请/商品分享/ShonpingShareViewController.m 89 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/UserInterfaceState.xcuserstate
Binary files differ
MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
@@ -10,7 +10,7 @@
            ignoreCount = "0"
            continueAfterRunningActions = "No"
            filePath = "MIduo/界面/SJBaseViewController.m"
            timestampString = "555922344.171823"
            timestampString = "555928501.777197"
            startingColumnNumber = "9223372036854775807"
            endingColumnNumber = "9223372036854775807"
            startingLineNumber = "253"
@@ -26,7 +26,7 @@
            ignoreCount = "0"
            continueAfterRunningActions = "No"
            filePath = "MIduo/界面/SJBaseViewController.m"
            timestampString = "555922344.1718791"
            timestampString = "555928501.777253"
            startingColumnNumber = "9223372036854775807"
            endingColumnNumber = "9223372036854775807"
            startingLineNumber = "263"
@@ -42,7 +42,7 @@
            ignoreCount = "0"
            continueAfterRunningActions = "No"
            filePath = "MIduo/界面/SJBaseViewController.m"
            timestampString = "555922344.171919"
            timestampString = "555928501.777293"
            startingColumnNumber = "9223372036854775807"
            endingColumnNumber = "9223372036854775807"
            startingLineNumber = "268"
@@ -58,7 +58,7 @@
            ignoreCount = "0"
            continueAfterRunningActions = "No"
            filePath = "MIduo/界面/SJBaseViewController.m"
            timestampString = "555922344.171954"
            timestampString = "555928501.7773269"
            startingColumnNumber = "9223372036854775807"
            endingColumnNumber = "9223372036854775807"
            startingLineNumber = "269"
@@ -72,7 +72,7 @@
            ignoreCount = "0"
            continueAfterRunningActions = "No"
            filePath = "MIduo/界面/SJBaseViewController.m"
            timestampString = "555922344.1719871"
            timestampString = "555928501.77736"
            startingColumnNumber = "9223372036854775807"
            endingColumnNumber = "9223372036854775807"
            startingLineNumber = "255"
@@ -88,12 +88,28 @@
            ignoreCount = "0"
            continueAfterRunningActions = "No"
            filePath = "MIduo/界面/SJBaseViewController.m"
            timestampString = "555922344.172021"
            timestampString = "555928501.7773941"
            startingColumnNumber = "9223372036854775807"
            endingColumnNumber = "9223372036854775807"
            startingLineNumber = "269"
            endingLineNumber = "269">
         </BreakpointContent>
      </BreakpointProxy>
      <BreakpointProxy
         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
         <BreakpointContent
            shouldBeEnabled = "Yes"
            ignoreCount = "0"
            continueAfterRunningActions = "No"
            filePath = "MIduo/&#x754c;&#x9762;/&#x9080;&#x8bf7;/&#x5546;&#x54c1;&#x5206;&#x4eab;/ShonpingShareViewController.m"
            timestampString = "555928501.7774301"
            startingColumnNumber = "9223372036854775807"
            endingColumnNumber = "9223372036854775807"
            startingLineNumber = "512"
            endingLineNumber = "512"
            landmarkName = "-dealloc"
            landmarkType = "7">
         </BreakpointContent>
      </BreakpointProxy>
   </Breakpoints>
</Bucket>
MIduo/Êý¾Ý/lib/EasyJSWebView-master/MyJSInterface.m
@@ -28,8 +28,8 @@
}
- (void)toast:(NSString *)string{
    [SVProgressHUD setContainerView:[UIApplication sharedApplication].delegate.window];
    [SVProgressHUD showInfoWithStatus:string];
    ALToastCenter(string);
}
- (void)jumpGoodsSplash:(NSString *)string{
MIduo/½çÃæ/ÍøÒ³ÊÓͼ/ÉÌÆ·ÏêÇé/GoodDeTrViewController.m
@@ -620,14 +620,16 @@
#pragma mark - ButtomCarViewDelegate
- (void)shareClicked:(ButtomCarView *)view {
    if ([YTHsharedManger startManger].networkStatus == 0) {
      
        [CustomProgressHUD showNormal:@"网络未连接,请检测网络设置"];
        ALToastBottom(@"网络未连接,请检测网络设置");
        return;
    }
    if ([YTHsharedManger startManger].isCheckNetCanUse == -2) {
   
        [CustomProgressHUD showNormal:@"网络连接异常,请检测网络设置"];
         ALToastBottom(@"网络连接异常,请检测网络设置");
        return ;
    }
    if (![[NSUserDefaults standardUserDefaults] objectForKey:@"userId"]) {
@@ -654,7 +656,6 @@
    [JYNetWorking Post:[NSString stringWithFormat:@"%@/%@",domainHTTP,@"share/getGoodsShareUrl"]
                 param:dictionary
               success:^(NSDictionary *object) {
                   
                   ShonpingShareViewController *shopVC = [[ShonpingShareViewController alloc]init];
                   shopVC.urlString = object[@"data"];
MIduo/½çÃæ/ÑûÇë/ÉÌÆ··ÖÏí/ShonpingShareViewController.h
MIduo/½çÃæ/ÑûÇë/ÉÌÆ··ÖÏí/ShonpingShareViewController.m
@@ -29,11 +29,13 @@
@implementation ShonpingShareViewController
- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.navigationController.navigationBar.translucent = NO;
    
    self.navigationController.navigationBar.barTintColor = [UIColor whiteColor];
    
    self.tabBarController.tabBar.hidden = YES;
    self.navigationController.navigationBar.titleTextAttributes=@{NSForegroundColorAttributeName:XYRMainColor,NSFontAttributeName:[UIFont boldSystemFontOfSize:17]};
    UIImage *image = [UIImage imageNamed:@"F72A37B3-8434-44EE-A2BA-BDCEB598C99F"];
@@ -45,13 +47,22 @@
    [backbutton addTarget:self action:@selector(back:) forControlEvents:UIControlEventTouchUpInside];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:backbutton];
    
    [self.webView removeFromSuperview];
    self.webView.delegate = self;
    self.webView = nil;
    [self.view addSubview:self.webView];
    _interface = [[MyJSInterface alloc] init];
    [self.webView addJavascriptInterfaces:_interface WithName:@"yestv"];
    [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.urlString]]];
}
- (void)back:(UIButton *)sender {
    if (self.isHelpBack) {
        [self.webView removeFromSuperview];
        self.webView.delegate = self;
        self.webView = nil;
        [self.view addSubview:self.webView];
        _interface = [MyJSInterface new];
        _interface = [[MyJSInterface alloc] init];
        [self.webView addJavascriptInterfaces:_interface WithName:@"yestv"];
        [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.urlString]]];
        self.isHelpBack = NO;
@@ -72,15 +83,10 @@
    [self.view addSubview:self.webView];
    [self.view addSubview:self.loadingProgressView];
     _interface = [MyJSInterface new];
    [self.webView addJavascriptInterfaces:_interface WithName:@"yestv"];
    [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.urlString]]];
}
- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    
}
@@ -139,20 +145,6 @@
    }
    [shareView tappedCancel];
}
- (UIImage*)imageWithImageSimple:(UIImage*)image scaledToSize:(CGSize)newSize
{
    // Create a graphics image context
    UIGraphicsBeginImageContext(newSize);
    // Tell the old image to draw in this new context, with the desired
    // new size
    [image drawInRect:CGRectMake(0,0,newSize.width,newSize.height)];
    // Get the new image from the context
    UIImage* newImage = UIGraphicsGetImageFromCurrentImageContext();
    // End the context
    UIGraphicsEndImageContext();
    // Return the new image.
    return newImage;
}
/**
 åˆ†äº«
@@ -188,19 +180,20 @@
    if (shareType == SSDKPlatformSubTypeWechatTimeline || shareType == SSDKPlatformSubTypeWechatSession) {
        if (![WXApi isWXAppInstalled]) {
            [SVProgressHUD setContainerView:[UIApplication sharedApplication].delegate.window];
            [SVProgressHUD showInfoWithStatus:@"微信未安装"];
            ALToastCenter(@"微信未安装");
            return;
        }
    }
    if ( SSDKPlatformSubTypeQQFriend == shareType || shareType == SSDKPlatformSubTypeQZone ) {
        if (![[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"mqq://"]]) {
            [SVProgressHUD setContainerView:[UIApplication sharedApplication].delegate.window];
            [SVProgressHUD showInfoWithStatus:@"QQ未安装"];
            ALToastCenter(@"QQ未安装");
            return;
        }
    }
    if (shareType == SSDKPlatformSubTypeQZone) {
        type = SSDKContentTypeImage;
    }
@@ -276,14 +269,14 @@
    if ( [urlString containsString:@"yeshitv://fanli_invite"]) {
        if ([YTHsharedManger startManger].networkStatus == 0) {
    
            [CustomProgressHUD showNormal:@"网络未连接,请检测网络设置"];
            ALToastCenter(@"网络未连接,请检测网络设置");
            
            return NO;
        }
        
        if ([YTHsharedManger startManger].isCheckNetCanUse == -2) {
     
            [CustomProgressHUD showNormal:@"网络连接异常,请检测网络设置"];
            ALToastCenter(@"网络连接异常,请检测网络设置");
            
            return NO;
        }
@@ -307,7 +300,8 @@
            NSLog(@"%@",decodedString);
            UIPasteboard*pasteboard = [UIPasteboard generalPasteboard];
            pasteboard.string=decodedString;
            [SVProgressHUD showSuccessWithStatus:@"复制成功!"];
        }else if([array[0] isEqualToString:@"yestv://share"]){
            NSData *decodedData = [[NSData alloc] initWithBase64EncodedString:array[2] options:0];
            NSString *decodedString = [[NSString alloc] initWithData:decodedData encoding:NSUTF8StringEncoding];
@@ -358,8 +352,7 @@
    };
}
- (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString
{
- (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString {
    if (jsonString == nil) {
        return nil;
    }
@@ -369,8 +362,7 @@
    NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:jsonData
                                                        options:NSJSONReadingMutableContainers
                                                          error:&err];
    if(err)
    {
    if (err) {
        NSLog(@"json解析失败:%@",err);
        return nil;
    }
@@ -384,7 +376,7 @@
        decisionHandler(WKNavigationActionPolicyCancel);
        NSArray *array = [url componentsSeparatedByString:@"#"];
       if([array[0] isEqualToString:@"fanli://yaoqin"]){
            //            shareMeassageArr=array;
            NSArray *shareAry = @[
                                  @{@"image":@"new微信",
                                    @"title":@"微信"},
@@ -438,9 +430,9 @@
- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error{
    NSLog(@"%@",error);
    self.isField = YES;
    self.title = @"网页无法打开";
    NSNotification *notice = [[NSNotification alloc]initWithName:@"netWorkChangeEventNotification" object:@([YTHsharedManger startManger].networkStatus) userInfo:nil];
    [self NetWorkStatesChange:notice];
//    self.title = @"网页无法打开";
//    NSNotification *notice = [[NSNotification alloc]initWithName:@"netWorkChangeEventNotification" object:@([YTHsharedManger startManger].networkStatus) userInfo:nil];
//    [self NetWorkStatesChange:notice];
}
- (void)loadData {
    
@@ -454,7 +446,7 @@
        [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.urlString]]];
        
        if (!self.urlString) {
//            [CustomProgressHUD showNormal:@"网络连接异常,请检测网络设置"];
            [self.navigationController popViewControllerAnimated:YES];
        }
    }
@@ -487,7 +479,7 @@
    if (self.isHelpBack) {
        height = 0;
    }
    _webView = [[EasyJSWebView alloc]initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, self.view.bounds.size.height - height)];
    _webView = [[EasyJSWebView alloc]initWithFrame:CGRectMake(0, 0, KScreenW, KScreenH - height)];
    _webView.scalesPageToFit = YES;
    _webView.delegate = self;
     //加载进度监听
@@ -508,14 +500,29 @@
- (void)webViewReload {
    if (!self.isshareType) {
        [_webView reload];
        [self.webView reload];
    }
   
}
- (void)dealloc{
    [[NSNotificationCenter defaultCenter] removeObserver:self];
    [_webView removeObserver:self forKeyPath:@"estimatedProgress"];
    [self.webView removeObserver:self forKeyPath:@"estimatedProgress"];
    self.webView.delegate = self;
    [self.webView removeFromSuperview];
    self.webView = nil;
    [[NSNotificationCenter defaultCenter] removeObserver:self];
    NSHTTPCookie *cookie;
    NSHTTPCookieStorage *storage = [NSHTTPCookieStorage sharedHTTPCookieStorage];
    for (cookie in [storage cookies]) {
        [storage deleteCookie:cookie];
    }
    // 清除webView的缓存
    [[NSURLCache sharedURLCache] removeAllCachedResponses];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];