天天省钱快报

KBHeader.h 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. //
  2. // KBHeader.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 @"1416438252"
  12. /***/
  13. //阿里百川
  14. #define ALBC_APP_KEY @"24905815"
  15. //淘客pid
  16. #define ALTK_PID @"mm_99506173_0_0"
  17. //友盟key
  18. #define UMAPP_KEY @"5b35ab7a8f4a9d6abc00009f"
  19. //bugly id
  20. #define BUGLY_ID @"079304b659"
  21. // 微信appid
  22. #define WX_APPID @"wx4973c870b6f00f01"
  23. // 微信app密钥
  24. #define WX_APP_SECRET @"0a4c0777ca75f89e6e1e81be9f579d0d"
  25. /* 微信的的设置在 " WeiXinDefaults.h " 中 **/
  26. //channel_id
  27. #define Channel_id @"5000"
  28. //验证码签名
  29. #define SignCode @"cNHWj7pqBSXTi2DS4uvxqMTzuXOk5xvL"
  30. //UserDafault Key
  31. #define UserSexKey @"userSex"
  32. #define UserPhone @"UserPhone"
  33. #define BrowserHistoryKey @"browserHistory"
  34. #define SchemeKey @"YHProject4000"
  35. //定义分享页面是否点击知道了
  36. #define YHSharePageGetFriend @"YHSharePageGetFriend"
  37. //定义屏幕的宽度
  38. #define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width<[UIScreen mainScreen].bounds.size.height?[UIScreen mainScreen].bounds.size.width:[UIScreen mainScreen].bounds.size.height)
  39. //定义屏幕的高度
  40. #define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.width>[UIScreen mainScreen].bounds.size.height?[UIScreen mainScreen].bounds.size.width:[UIScreen mainScreen].bounds.size.height)
  41. #define iPhone6 (SCREEN_WIDTH==375&&SCREEN_HEIGHT==667)?YES:NO
  42. #define iPhone5 (SCREEN_WIDTH==320)?YES:NO
  43. #define iPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO)
  44. #define Fitsize(X) (SCREEN_WIDTH/375.0) * X
  45. #define KStatusBarHeight (iPhoneX ? 44.f : 20.f)
  46. #define TabbarHeight (iPhoneX ? (49.f+34.f) : 49.f)
  47. #define NavBarHeight (iPhoneX ? 88.f : 64.f)
  48. #define SafeBottomHeight (iPhoneX ? 34.f : 0)
  49. #define SafeTopHeight (iPhoneX ? 20.f : 0)
  50. #define TabbarHeight (iPhoneX ? (49.f+34.f) : 49.f)
  51. #define ChildTableViewHeight SCREEN_HEIGHT-TabbarHeight-NavBarHeight-40
  52. #define BottomMargin (iPhoneX ? 25.f : 0.f)
  53. //弱引用
  54. #define kWeak(self) @autoreleasepool{} __weak typeof(self) self##Weak = self;
  55. #define WeakSelf(weakSelf) __weak __typeof(self) weakSelf = self;
  56. //强引用
  57. #define kStrong(self) @autoreleasepool{} __strong typeof(self##Weak) self = self##Weak;
  58. #define SCREEN_MUTI (SCREEN_WIDTH/375.0)
  59. #define FITSIZE(X) (SCREEN_WIDTH/375.0)*X
  60. #define FITHeightSIZE(X) (SCREEN_HEIGHT/667.0)*X
  61. #define Placehold_Img [UIImage imageNamed:@"placeHolder"]
  62. #ifdef DEBUG
  63. #define NSLog(...) NSLog(__VA_ARGS__)
  64. #else
  65. #define NSLog(...)
  66. #endif
  67. #define JZHomeUPdateApp @"updateApp"
  68. #define APP_STORE_URL [NSString stringWithFormat:@"https://itunes.apple.com/cn/app/id%@?mt=8",APP_ID]
  69. #define ScrollDirectorNoti @"ScrollDirectorNoti"
  70. #define ShowPhoneLogin @"ShowPhoneLogin"
  71. //============友盟事件统计宏==============//
  72. #define home_banner @"home_banner"
  73. #define search_count @"search_count"
  74. #define nine_classify_goods @"nine_classify_goods"
  75. #define nine_classify @"nine_classify"
  76. #define nine_better @"nine_better"
  77. #define nine_top_pic @"nine_top_pic"
  78. #define category_goods @"category_goods"
  79. #define top_classify @"top_classify"
  80. #define home_hot @"home_hot"
  81. #define home_recommend @"home_recommend"
  82. #define pay_count @"pay"
  83. #define collection_count @"collection"
  84. #define Home_Items @"home_items"
  85. #define Find_channel @"find_channel"
  86. #define Find_youLike @"find_youLike"
  87. #define Classify @"classify"
  88. #define Other @"other"
  89. #define TodayClickTop @"TodayClickTop"
  90. #define TodayClickGoods @"TodayClickGoods"
  91. #define GoodsDetailVipInfo @"GoodsDetailVipInfo"
  92. #define MineVipClick @"MineVipClick"
  93. #define GoodsDetailRecommend @"GoodsDetailRecommend"
  94. #define CategoryRecommend @"CategoryRecommend"
  95. #define MineGetMoneyUrl @"MineGetMoneyUrl"
  96. #define OneKeyShareCheats @"oneKeyShareCheats"
  97. #define OneKeyShareRecommend @"oneKeyShareRecommend"
  98. //
  99. #define BuyLimitGoodClick @"BuyLimitGoodClick"
  100. #define CategoryClassify @"CategoryClassify"
  101. #define popCopySearch @"popCopySearch"
  102. //
  103. #define Search_History_String @"点击搜索历史"
  104. #define Search_Hot_String @"点击热搜搜索"
  105. #define Search_Normal @"用户输入搜索"
  106. //===============后台行为路径统计宏===========//
  107. #define browsingHistoryAction @"browsingHistoryAction"
  108. #define sameCouponAction @"sameCouponAction"
  109. #define findTicketAction @"findTicketAction"
  110. #define merchantShopAction @"merchantShopAction"
  111. #define goodsDetailRecommendAction @"goodsDetailRecommendAction"
  112. #define ListAction @"ListAction"
  113. #define homeAction @"homeAction"
  114. #define searchAction @"searchAction"
  115. #define collectLikeAction @"collectLikeAction"
  116. #define collectAction @"collectAction"
  117. #define pushAction @"pushAction"
  118. #define ListClassifyAction @"ListClassifyAction"
  119. #define AdvertisingAction @"AdvertisingAction"
  120. #define InvateImageWeiXin @"invateImageWeiXin"
  121. #define InvateImageWeiXinCircle @"invateImageWeiXinCircle"
  122. //
  123. #define HotSaleAction @"HotSaleAction"
  124. #define QuickBuyAction @"QuickBuyAction"
  125. #define AdvFourListGoodsAction @"AdvFourListGoodsAction"
  126. #define HomeClassifyAction @"HomeClassifyAction"
  127. #define CategoryRecommendAction @"CategoryRecommendAction"
  128. #define goodsDetailTopRecommendAction @"goodsDetailTopRecommendAction"
  129. #endif /* YHHeader_h */