新UI马甲包

HCHeader.h 6.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. //
  2. // HCHeader.h
  3. // hc
  4. //
  5. // Created by hc on 2018/1/16.
  6. // Copyright © 2018年 hc. All rights reserved.
  7. //
  8. #ifndef YHHeader_h
  9. #define YHHeader_h
  10. /**App ID*/
  11. #define APP_ID @"1434650087"
  12. /***/
  13. //阿里百川
  14. #define ALBC_APP_KEY @"25049380"
  15. //淘客pid
  16. #define ALTK_PID @"mm_99506173_0_0"
  17. //友盟key
  18. #define UMAPP_KEY @"5b876b98f43e4803a200017b"
  19. //bugly id
  20. #define BUGLY_ID @"81874f0917"
  21. // 微信appid
  22. #define WX_APPID @"wxba278607407be64c"
  23. // 微信app密钥
  24. #define WX_APP_SECRET @"2c89473b2e6be4c735612b41a9d47c98"
  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 @"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 iPhoneX (SCREEN_HEIGHT>736)
  45. #define Fitsize(X) (SCREEN_WIDTH/375.0) * X
  46. #define KStatusBarHeight (iPhoneX ? 44.f : 20.f)
  47. #define TabbarHeight (iPhoneX ? (49.f+34.f) : 49.f)
  48. #define NavBarHeight (iPhoneX ? 88.f : 64.f)
  49. #define SafeBottomHeight (iPhoneX ? 34.f : 0)
  50. #define SafeTopHeight (iPhoneX ? 20.f : 0)
  51. #define TabbarHeight (iPhoneX ? (49.f+34.f) : 49.f)
  52. #define ChildTableViewHeight SCREEN_HEIGHT-TabbarHeight-NavBarHeight-40
  53. #define BottomMargin (iPhoneX ? 25.f : 0.f)
  54. //弱引用
  55. #define kWeak(self) @autoreleasepool{} __weak typeof(self) self##Weak = self;
  56. #define WeakSelf(weakSelf) __weak __typeof(self) weakSelf = self;
  57. //强引用
  58. #define kStrong(self) @autoreleasepool{} __strong typeof(self##Weak) self = self##Weak;
  59. #define SCREEN_MUTI (SCREEN_WIDTH/375.0)
  60. #define FITSIZE(X) (SCREEN_WIDTH/375.0)*X
  61. #define FITHeightSIZE(X) (SCREEN_HEIGHT/667.0)*X
  62. #define Placehold_Img [UIImage imageNamed:@"placeHolder"]
  63. //#ifdef DEBUG
  64. //#define NSLog(...) NSLog(__VA_ARGS__)
  65. //#else
  66. //#define NSLog(...)
  67. //#endif
  68. #ifndef __OPTIMIZE__
  69. #ifdef DEBUG
  70. #define NSLog(...) printf("%f %s %ld :%s\n",[[NSDate date]timeIntervalSince1970],strrchr(__FILE__,'/'),[[NSNumber numberWithInt:__LINE__] integerValue],[[NSString stringWithFormat:__VA_ARGS__]UTF8String]);
  71. #else
  72. #define NSLog(...)
  73. #endif
  74. #endif
  75. #define JZHomeUPdateApp @"updateApp"
  76. #define APP_STORE_URL [NSString stringWithFormat:@"https://itunes.apple.com/cn/app/id%@?mt=8",APP_ID]
  77. #define ScrollDirectorNoti @"ScrollDirectorNoti"
  78. #define ShowPhoneLogin @"ShowPhoneLogin"
  79. #define YHUserNofi @"userNofi"
  80. #define NotiIndex @"NotiIndex"
  81. #define KGlobalPopQueneKey @"KGlobalPopQueneKey"
  82. #define ShopCarCompleteKey @"ShopCarCompleteKey"
  83. #define ChangeTaoBaoAuthor @"ChangeTaoBaoAuthor"
  84. //============友盟事件统计宏==============//
  85. #define home_banner @"home_banner"
  86. #define search_count @"search_count"
  87. #define nine_classify_goods @"nine_classify_goods"
  88. #define nine_classify @"nine_classify"
  89. #define nine_better @"nine_better"
  90. #define nine_top_pic @"nine_top_pic"
  91. #define category_goods @"category_goods"
  92. #define top_classify @"top_classify"
  93. #define home_hot @"home_hot"
  94. #define home_recommend @"home_recommend"
  95. #define pay_count @"pay"
  96. #define collection_count @"collection"
  97. #define Home_Items @"home_items"
  98. #define Find_channel @"find_channel"
  99. #define Find_youLike @"find_youLike"
  100. #define Classify @"classify"
  101. #define Other @"other"
  102. #define TodayClickTop @"TodayClickTop"
  103. #define TodayClickGoods @"TodayClickGoods"
  104. #define GoodsDetailVipInfo @"GoodsDetailVipInfo"
  105. #define MineVipClick @"MineVipClick"
  106. #define GoodsDetailRecommend @"GoodsDetailRecommend"
  107. #define CategoryRecommend @"CategoryRecommend"
  108. #define MineGetMoneyUrl @"MineGetMoneyUrl"
  109. #define OneKeyShareCheats @"oneKeyShareCheats"
  110. #define OneKeyShareRecommend @"oneKeyShareRecommend"
  111. //
  112. #define BuyLimitGoodClick @"BuyLimitGoodClick"
  113. #define CategoryClassify @"CategoryClassify"
  114. #define popCopySearch @"popCopySearch"
  115. #define AdvClick @"AdvClick"
  116. #define ClickHomeSignIn @"ClickHomeSignIn"
  117. #define ClickMineSignIn @"ClickMineSignIn"
  118. //
  119. #define Search_History_String @"点击搜索历史"
  120. #define Search_Hot_String @"点击热搜搜索"
  121. #define Search_Normal @"用户输入搜索"
  122. //===============后台行为路径统计宏===========//
  123. #define browsingHistoryAction @"browsingHistoryAction"
  124. #define sameCouponAction @"sameCouponAction"
  125. #define findTicketAction @"findTicketAction"
  126. #define merchantShopAction @"merchantShopAction"
  127. #define goodsDetailRecommendAction @"goodsDetailRecommendAction"
  128. #define ListAction @"ListAction"
  129. #define homeAction @"homeAction"
  130. #define searchAction @"searchAction"
  131. #define collectLikeAction @"collectLikeAction"
  132. #define collectAction @"collectAction"
  133. #define pushAction @"pushAction"
  134. #define ListClassifyAction @"ListClassifyAction"
  135. #define AdvertisingAction @"AdvertisingAction"
  136. #define InvateImageWeiXin @"invateImageWeiXin"
  137. #define InvateImageWeiXinCircle @"invateImageWeiXinCircle"
  138. //
  139. #define HotSaleAction @"HotSaleAction"
  140. #define QuickBuyAction @"QuickBuyAction"
  141. #define AdvFourListGoodsAction @"AdvFourListGoodsAction"
  142. #define HomeClassifyAction @"HomeClassifyAction"
  143. #define CategoryRecommendAction @"CategoryRecommendAction"
  144. #define goodsDetailTopRecommendAction @"goodsDetailTopRecommendAction"
  145. #define ShoppingAction @"ShoppingAction"
  146. #define MineRecommendGoodsAction @"MineRecommendGoodsAction"
  147. #endif /* YHHeader_h */