《省钱达人》与《猎豆优选》UI相同版。域名tbk

DRHeader.h 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. //
  2. // DRHeader.h
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/1/16.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #ifndef YHHeader_h
  9. #define YHHeader_h
  10. /**App ID*/
  11. #define APP_ID @"1391124408"
  12. /***/
  13. //阿里百川
  14. #define ALBC_APP_KEY @"24889314"
  15. //淘客pid
  16. #define ALTK_PID @"mm_99506173_0_0"
  17. //友盟key
  18. #define UMAPP_KEY @"5b0d652db27b0a32f8000292"
  19. //bugly id
  20. #define BUGLY_ID @"4908c6e84e"
  21. // 微信appid
  22. #define WX_APPID @"wx86eb866db4b5e8dc"
  23. // 微信app密钥
  24. #define WX_APP_SECRET @"7e078fdac11783c12e9a48772cf0fa12"
  25. /* 微信的的设置在 " WeiXinDefaults.h " 中 **/
  26. //channel_id
  27. #define Channel_id @"2100"
  28. //验证码签名
  29. #define SignCode @"cNHWj7pqBSXTi2DS4uvxqMTzuXOk5xvL"
  30. //UserDafault Key
  31. #define UserSexKey @"userSex"
  32. #define UserPhone @"UserPhone"
  33. #define BrowserHistoryKey @"browserHistory"
  34. #define SchemeKey @"YHProject"
  35. //定义屏幕的宽度
  36. #define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width<[UIScreen mainScreen].bounds.size.height?[UIScreen mainScreen].bounds.size.width:[UIScreen mainScreen].bounds.size.height)
  37. //定义屏幕的高度
  38. #define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.width>[UIScreen mainScreen].bounds.size.height?[UIScreen mainScreen].bounds.size.width:[UIScreen mainScreen].bounds.size.height)
  39. #define iPhone6 (SCREEN_WIDTH==375&&SCREEN_HEIGHT==667)?YES:NO
  40. #define iPhone5 (SCREEN_WIDTH==320)?YES:NO
  41. #define iPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO)
  42. #define Fitsize(X) (SCREEN_WIDTH/375.0) * X
  43. #define KStatusBarHeight (iPhoneX ? 44.f : 20.f)
  44. #define TabbarHeight (iPhoneX ? (49.f+34.f) : 49.f)
  45. #define NavBarHeight (iPhoneX ? 88.f : 64.f)
  46. #define SafeBottomHeight (iPhoneX ? 34.f : 0)
  47. #define SafeTopHeight (iPhoneX ? 20.f : 0)
  48. #define TabbarHeight (iPhoneX ? (49.f+34.f) : 49.f)
  49. #define ChildTableViewHeight SCREEN_HEIGHT-TabbarHeight-NavBarHeight-40
  50. #define BottomMargin (iPhoneX ? 25.f : 0.f)
  51. //弱引用
  52. #define kWeak(self) @autoreleasepool{} __weak typeof(self) self##Weak = self;
  53. #define WeakSelf(weakSelf) __weak __typeof(self) weakSelf = self;
  54. //强引用
  55. #define kStrong(self) @autoreleasepool{} __strong typeof(self##Weak) self = self##Weak;
  56. #define SCREEN_MUTI (SCREEN_WIDTH/375.0)
  57. #define FITSIZE(X) (SCREEN_WIDTH/375.0)*X
  58. #define FITHeightSIZE(X) (SCREEN_HEIGHT/667.0)*X
  59. #define Placehold_Img [UIImage imageNamed:@"placeHolder"]
  60. #ifdef DEBUG
  61. #define NSLog(...) NSLog(__VA_ARGS__)
  62. #else
  63. #define NSLog(...)
  64. #endif
  65. #define JZHomeUPdateApp @"updateApp"
  66. #define APP_STORE_URL [NSString stringWithFormat:@"https://itunes.apple.com/cn/app/id%@?mt=8",APP_ID]
  67. //============友盟事件统计宏==============//
  68. #define home_banner @"home_banner"
  69. #define search_count @"search_count"
  70. #define nine_classify_goods @"nine_classify_goods"
  71. #define nine_classify @"nine_classify"
  72. #define nine_better @"nine_better"
  73. #define nine_top_pic @"nine_top_pic"
  74. #define category_goods @"category_goods"
  75. #define top_classify @"top_classify"
  76. #define home_hot @"home_hot"
  77. #define home_recommend @"home_recommend"
  78. #define pay_count @"pay"
  79. #define collection_count @"collection"
  80. #define Home_Items @"home_items"
  81. #define Find_channel @"find_channel"
  82. #define Find_youLike @"find_youLike"
  83. #define Classify @"classify"
  84. #define Other @"other"
  85. #define OneKeyShareCheats @"oneKeyShareCheats"
  86. #define OneKeyShareRecommend @"oneKeyShareRecommend"
  87. #define Search_History_String @"点击搜索历史"
  88. #define Search_Hot_String @"点击热搜搜索"
  89. #define Search_Normal @"用户输入搜索"
  90. //===============后台行为路径统计宏===========//
  91. #define browsingHistoryAction @"browsingHistoryAction"
  92. #define sameCouponAction @"sameCouponAction"
  93. #define findTicketAction @"findTicketAction"
  94. #define merchantShopAction @"merchantShopAction"
  95. #define goodsDetailRecommendAction @"goodsDetailRecommendAction"
  96. #define ListAction @"ListAction"
  97. #define homeAction @"homeAction"
  98. #define searchAction @"searchAction"
  99. #define collectLikeAction @"collectLikeAction"
  100. #define collectAction @"collectAction"
  101. #define pushAction @"pushAction"
  102. #define ListClassifyAction @"ListClassifyAction"
  103. #endif /* YHHeader_h */