HappyJob-Prefix.pch 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. //
  2. // HappyJob-Prefix.pch
  3. // HappyJob
  4. //
  5. // Created by Bob on 2019/3/13.
  6. // Copyright © 2019 Bob. All rights reserved.
  7. //
  8. #ifndef HappyJob_Prefix_pch
  9. #define HappyJob_Prefix_pch
  10. #import <Masonry/Masonry.h>
  11. #import "HJConfig.h"
  12. #import "AppDelegate.h"
  13. #import "HJAppService.h"
  14. #import "HJAppUserType.h"//用户类型
  15. #import "UIColor+Palette.h"//设置颜色的
  16. #import "UIImage+FitSize.h"
  17. #import "UIButton+WebCache.h"
  18. #import "UIView+FBProgressHUD.h"
  19. #import "UIImageView+WebCache.h"
  20. #import "UIButton+ImageTitleSpace.h"
  21. #import "UIButton+HJGradientButton.h"
  22. #import "UIViewController+HJNavBar.h"//导航
  23. #import "UIView+HJLoadingViewAndErrorView.h"
  24. #import "UIViewController+FBNavBarRightButtonItems.h"//导航栏按钮
  25. #import "CalendarView.h"//日历
  26. #import "HJPageListView.h"//tableview
  27. #import "ValuePickerView.h"
  28. #import "HJUserInfoModel.h"//用户数据
  29. #import "HeaderSelectView.h"
  30. #import "FBFlowLayoutView.h"//布局
  31. #import "HJLabelRightContentView.h"
  32. #import "HJUserResumeModel.h"//用户简历
  33. #import "HJMemberInfoModel.h"//member信息
  34. #import "TableViewListView.h"//tableview
  35. #import "HJCompanyInfoModel.h"//公司
  36. #import "FBScrollLayoutView.h"//布局
  37. #import "HJRefreshHeaderView.h"//头部刷新
  38. #import "HJRefreshFooterView.h"//尾部刷新
  39. #import "HeaderViewSelectButton.h"
  40. #import "HJConfirmPanelInputView.h"
  41. #import "HJConfirmPanelSingleView.h"
  42. #import "HJConfirmPanelViewController.h"
  43. #import <TZImagePickerController.h>//图片
  44. #import <DZNEmptyDataSet/UIScrollView+EmptyDataSet.h>//空白页
  45. /* 打印日志 */
  46. #define LOG_LEVEL_DEF ddLogLevel
  47. #import <CocoaLumberjack/CocoaLumberjack.h>
  48. #ifdef DEBUG
  49. static const DDLogLevel ddLogLevel = DDLogLevelVerbose;
  50. #else
  51. static const DDLogLevel ddLogLevel = DDLogLevelWarning;
  52. #endif /* DEBUG */
  53. /* 用户类型 YES 企业 0 非企业 */
  54. #define USERTYPE [[NSUserDefaults standardUserDefaults] boolForKey:@"userType"]
  55. /* APP 是否登录 */
  56. #define ISLOGIN [[HJMemberInfoModel memberInfo].memberId length]
  57. /* 获取当前版本号 */
  58. #define APP_VERSION [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]
  59. /* 系统版本判断 */
  60. #define IOSSYS [[[UIDevice currentDevice] systemVersion] floatValue]
  61. /* 屏幕的宽度和高度 */
  62. #define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
  63. #define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height
  64. /* 导航栏高度 */
  65. #define NAVIGATION_BAR_H self.navigationController.navigationBar.frame.size.height
  66. /* 状态栏高度 */
  67. #define STATUS_BAR_H [[UIApplication sharedApplication] statusBarFrame].size.height
  68. /* Plus和非Plus屏幕宽度(水平)和高度(垂直)的缩放比 */
  69. #define HJHorizontalScale(pt) ceilf(SCREEN_WIDTH/375*pt)
  70. #define HJVerticalScale(pt) ceilf(SCREEN_HEIGHT/667*pt)
  71. #define HJXVerticalScale(pt) ceilf(SCREEN_HEIGHT/812*pt)
  72. /* 头部自定义导航栏默认高度 */
  73. #define HJNavBarDefaultHeight (STATUS_BAR_H + 44)
  74. /* 导航栏的返回按钮 */
  75. #define NAVI_BACK_TITLE UIBarButtonItem *barItem = [[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStylePlain target:nil action:nil];\
  76. self.navigationItem.backBarButtonItem = barItem;
  77. /* 颜色 */
  78. #define COLOR_999999 [UIColor colorFromHexString:@"999999"]
  79. #define COLOR_888888 [UIColor colorFromHexString:@"888888"]
  80. #define COLOR_666666 [UIColor colorFromHexString:@"666666"]
  81. #define COLOR_555555 [UIColor colorFromHexString:@"555555"]
  82. #define COLOR_444444 [UIColor colorFromHexString:@"444444"]
  83. #define COLOR_333333 [UIColor colorFromHexString:@"333333"]
  84. #define COLOR_000000 [UIColor colorFromHexString:@"000000"]
  85. #define COLOR_DDDDDD [UIColor colorFromHexString:@"DDDDDD"]
  86. #define COLOR_D8D8D8 [UIColor colorFromHexString:@"D8D8D8"]
  87. #define COLOR_BBBBBB [UIColor colorFromHexString:@"BBBBBB"]
  88. #define COLOR_CCCCCC [UIColor colorFromHexString:@"CCCCCC"]
  89. #define COLOR_EEEEEE [UIColor colorFromHexString:@"EEEEEE"]
  90. #define COLOR_F5F5F5 [UIColor colorFromHexString:@"F5F5F5"]
  91. #define COLOR_0177FF [UIColor colorFromHexString:@"0177FF"]
  92. #define COLOR_007AFF [UIColor colorFromHexString:@"007AFF"]
  93. #define COLOR_FF401A [UIColor colorFromHexString:@"FF401A"]
  94. #define COLOR_FF7D0B [UIColor colorFromHexString:@"FF7D0B"]
  95. #define COLOR_FE7235 [UIColor colorFromHexString:@"FE7235"]
  96. #define COLOR_C8C6D2 [UIColor colorFromHexString:@"C8C6D2"]
  97. #define COLOR_4EAAE1 [UIColor colorFromHexString:@"4EAAE1"]
  98. #define COLOR_327AE1 [UIColor colorFromHexString:@"327AE1"]
  99. /*
  100. *通知
  101. */
  102. /* 实名认证通知 */
  103. #define HJRealNameAuthenticationNotification @"realNameAuthenticationNotification"
  104. /* 登录成功通知 */
  105. #define HJLoginRefreshNotification @"loginRefreshNotification"
  106. /* 积分改变通知 */
  107. #define HJIntegralChangeNotification @"integralChangeNotification"
  108. /* 积分任务通知 */
  109. #define HJIntegralTaskNotification @"integralTaskNotification"
  110. /* 入职奖励通知 */
  111. #define HJReturnFeeConfirmNotification @"returnFeeConfirmNotification"
  112. /* 发布职位成功通知 */
  113. #define HJReleaseSuccessfulRefreshNotification @"releaseSuccessfulRefreshNotification"
  114. /* 企业认证结果通知 */
  115. #define HJEnterpriseAuthResultNotification @"enterpriseAuthResultNotification"
  116. /*
  117. *支付的
  118. */
  119. /* 支付宝支付回调通知 */
  120. #define kNotifiAliPaySucceed @"HCNOTIAliPaySucceed"
  121. #define kNotifiAliPayFailed @"HCNOTIAliPayFailed"
  122. #define kNotifiAliPayCancel @"HCNOTIAliPayCancel"
  123. /* 微信支付回调通知 */
  124. #define kNotifiWeChatPaySucceed @"HCNOTIWeChatPaySucceed"
  125. #define kNotifiWeChatPayFailed @"HCNOTIWeChatPayFailed"
  126. #define kNotifiWeChatPayCancel @"HCNOTIWeChatPayCancel"
  127. /* 支付结果枚举类 */
  128. typedef enum
  129. {
  130. Pay_result_type_failed = 0, //支付失败
  131. Pay_result_type_cancel, //支付取消
  132. Pay_result_type_succeed, //支付成功
  133. }PayReultType;
  134. /* 支付回调block */
  135. typedef void(^UnionPayResult)(PayReultType reslutType);
  136. #endif /* HappyJob_Prefix_pch */