| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- //
- // HappyJob-Prefix.pch
- // HappyJob
- //
- // Created by Bob on 2019/3/13.
- // Copyright © 2019 Bob. All rights reserved.
- //
- #ifndef HappyJob_Prefix_pch
- #define HappyJob_Prefix_pch
- #import <Masonry/Masonry.h>
- #import "HJConfig.h"
- #import "AppDelegate.h"
- #import "HJAppService.h"
- #import "HJAppUserType.h"//用户类型
- #import "UIColor+Palette.h"//设置颜色的
- #import "UIImage+FitSize.h"
- #import "UIButton+WebCache.h"
- #import "UIView+FBProgressHUD.h"
- #import "UIImageView+WebCache.h"
- #import "UIButton+ImageTitleSpace.h"
- #import "UIButton+HJGradientButton.h"
- #import "UIViewController+HJNavBar.h"//导航
- #import "UIView+HJLoadingViewAndErrorView.h"
- #import "UIViewController+FBNavBarRightButtonItems.h"//导航栏按钮
- #import "CalendarView.h"//日历
- #import "HJPageListView.h"//tableview
- #import "ValuePickerView.h"
- #import "HJUserInfoModel.h"//用户数据
- #import "HeaderSelectView.h"
- #import "FBFlowLayoutView.h"//布局
- #import "HJLabelRightContentView.h"
- #import "HJUserResumeModel.h"//用户简历
- #import "HJMemberInfoModel.h"//member信息
- #import "TableViewListView.h"//tableview
- #import "HJCompanyInfoModel.h"//公司
- #import "FBScrollLayoutView.h"//布局
- #import "HJRefreshHeaderView.h"//头部刷新
- #import "HJRefreshFooterView.h"//尾部刷新
- #import "HeaderViewSelectButton.h"
- #import "HJConfirmPanelInputView.h"
- #import "HJConfirmPanelSingleView.h"
- #import "HJConfirmPanelViewController.h"
- #import <TZImagePickerController.h>//图片
- #import <DZNEmptyDataSet/UIScrollView+EmptyDataSet.h>//空白页
- /* 打印日志 */
- #define LOG_LEVEL_DEF ddLogLevel
- #import <CocoaLumberjack/CocoaLumberjack.h>
- #ifdef DEBUG
- static const DDLogLevel ddLogLevel = DDLogLevelVerbose;
- #else
- static const DDLogLevel ddLogLevel = DDLogLevelWarning;
- #endif /* DEBUG */
- /* 用户类型 YES 企业 0 非企业 */
- #define USERTYPE [[NSUserDefaults standardUserDefaults] boolForKey:@"userType"]
- /* APP 是否登录 */
- #define ISLOGIN [[HJMemberInfoModel memberInfo].memberId length]
- /* 获取当前版本号 */
- #define APP_VERSION [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]
- /* 系统版本判断 */
- #define IOSSYS [[[UIDevice currentDevice] systemVersion] floatValue]
- /* 屏幕的宽度和高度 */
- #define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
- #define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height
- /* 导航栏高度 */
- #define NAVIGATION_BAR_H self.navigationController.navigationBar.frame.size.height
- /* 状态栏高度 */
- #define STATUS_BAR_H [[UIApplication sharedApplication] statusBarFrame].size.height
- /* Plus和非Plus屏幕宽度(水平)和高度(垂直)的缩放比 */
- #define HJHorizontalScale(pt) ceilf(SCREEN_WIDTH/375*pt)
- #define HJVerticalScale(pt) ceilf(SCREEN_HEIGHT/667*pt)
- #define HJXVerticalScale(pt) ceilf(SCREEN_HEIGHT/812*pt)
- /* 头部自定义导航栏默认高度 */
- #define HJNavBarDefaultHeight (STATUS_BAR_H + 44)
- /* 导航栏的返回按钮 */
- #define NAVI_BACK_TITLE UIBarButtonItem *barItem = [[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStylePlain target:nil action:nil];\
- self.navigationItem.backBarButtonItem = barItem;
- /* 颜色 */
- #define COLOR_999999 [UIColor colorFromHexString:@"999999"]
- #define COLOR_888888 [UIColor colorFromHexString:@"888888"]
- #define COLOR_666666 [UIColor colorFromHexString:@"666666"]
- #define COLOR_555555 [UIColor colorFromHexString:@"555555"]
- #define COLOR_444444 [UIColor colorFromHexString:@"444444"]
- #define COLOR_333333 [UIColor colorFromHexString:@"333333"]
- #define COLOR_000000 [UIColor colorFromHexString:@"000000"]
- #define COLOR_DDDDDD [UIColor colorFromHexString:@"DDDDDD"]
- #define COLOR_D8D8D8 [UIColor colorFromHexString:@"D8D8D8"]
- #define COLOR_BBBBBB [UIColor colorFromHexString:@"BBBBBB"]
- #define COLOR_CCCCCC [UIColor colorFromHexString:@"CCCCCC"]
- #define COLOR_EEEEEE [UIColor colorFromHexString:@"EEEEEE"]
- #define COLOR_F5F5F5 [UIColor colorFromHexString:@"F5F5F5"]
- #define COLOR_0177FF [UIColor colorFromHexString:@"0177FF"]
- #define COLOR_007AFF [UIColor colorFromHexString:@"007AFF"]
- #define COLOR_FF401A [UIColor colorFromHexString:@"FF401A"]
- #define COLOR_FF7D0B [UIColor colorFromHexString:@"FF7D0B"]
- #define COLOR_FE7235 [UIColor colorFromHexString:@"FE7235"]
- #define COLOR_C8C6D2 [UIColor colorFromHexString:@"C8C6D2"]
- #define COLOR_4EAAE1 [UIColor colorFromHexString:@"4EAAE1"]
- #define COLOR_327AE1 [UIColor colorFromHexString:@"327AE1"]
- /*
- *通知
- */
- /* 实名认证通知 */
- #define HJRealNameAuthenticationNotification @"realNameAuthenticationNotification"
- /* 登录成功通知 */
- #define HJLoginRefreshNotification @"loginRefreshNotification"
- /* 积分改变通知 */
- #define HJIntegralChangeNotification @"integralChangeNotification"
- /* 积分任务通知 */
- #define HJIntegralTaskNotification @"integralTaskNotification"
- /* 入职奖励通知 */
- #define HJReturnFeeConfirmNotification @"returnFeeConfirmNotification"
- /* 发布职位成功通知 */
- #define HJReleaseSuccessfulRefreshNotification @"releaseSuccessfulRefreshNotification"
- /* 企业认证结果通知 */
- #define HJEnterpriseAuthResultNotification @"enterpriseAuthResultNotification"
- /*
- *支付的
- */
- /* 支付宝支付回调通知 */
- #define kNotifiAliPaySucceed @"HCNOTIAliPaySucceed"
- #define kNotifiAliPayFailed @"HCNOTIAliPayFailed"
- #define kNotifiAliPayCancel @"HCNOTIAliPayCancel"
- /* 微信支付回调通知 */
- #define kNotifiWeChatPaySucceed @"HCNOTIWeChatPaySucceed"
- #define kNotifiWeChatPayFailed @"HCNOTIWeChatPayFailed"
- #define kNotifiWeChatPayCancel @"HCNOTIWeChatPayCancel"
- /* 支付结果枚举类 */
- typedef enum
- {
- Pay_result_type_failed = 0, //支付失败
- Pay_result_type_cancel, //支付取消
- Pay_result_type_succeed, //支付成功
-
- }PayReultType;
- /* 支付回调block */
- typedef void(^UnionPayResult)(PayReultType reslutType);
- #endif /* HappyJob_Prefix_pch */
|