JXXMGMyVc.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //
  2. // JXXMGMyVc.h
  3. // shiku_im
  4. //
  5. // Created by 123 on 2020/5/15.
  6. // Copyright © 2020 Reese. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface JXXMGMyVc : UIViewController<JXServerResult,JXActionSheetVCDelegate,UIScrollViewDelegate>
  10. @property (nonatomic,assign) BOOL isRefresh;
  11. @property (nonatomic,strong) UILabel * moneyLabel;
  12. @property (nonatomic,strong) NSDictionary *videoDict;
  13. @property (nonatomic, assign) BOOL isGetUser;
  14. @property (nonatomic,strong) NSDictionary * getUserDict;
  15. @end
  16. /**
  17. return;
  18. NSString *url = @"mqqwpa://im/chat?chat_type=crm&uin=3448439998&version=1&src_type=web&web_src=http:://wpa.b.qq.com";
  19. NSURL *qqURL = [NSURL URLWithString:url];
  20. [[UIApplication sharedApplication] openURL:qqURL];
  21. return;
  22. NSMutableString* str=[[NSMutableString alloc] initWithFormat:@"tel:%@",@"17826730204"];
  23. UIWebView * callWebview = [[UIWebView alloc] init];
  24. [callWebview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:str]]];
  25. [self.view addSubview:callWebview];
  26. return;
  27. BOOL hasInstalled = [[UIApplication sharedApplication] canOpenURL:qqURL];
  28. if (!hasInstalled) {
  29. UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@" 提示 " message:@" 请先安装 QQ" delegate:nil cancelButtonTitle:@" 确定 " otherButtonTitles:nil, nil];
  30. [alert show];
  31. } else {
  32. }17826730204
  33. // NSString *qqNumber = @"511525004";
  34. // NSString *openQQUrl = [NSString stringWithFormat:@"mqq://im/chat?chat_type=wpa&uin=%@&version=1&src_type=web",qqNumber];
  35. // UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectZero];
  36. // NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:openQQUrl]];
  37. // [webView loadRequest:request];
  38. // [self.view addSubview:webView];
  39. // NSString *openQQUrl = [NSString stringWithFormat:@"mqq://im/chat?chat_type=wpa&uin=%@&version=1&src_type=web",qqNumber];
  40. // NSURL *url = [NSURL URLWithString:openQQUrl];
  41. // [[UIApplication sharedApplication] openURL:url];
  42. */