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

DRHeader.h 8.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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 @"1347672175"
  12. /***/
  13. //阿里百川
  14. #define ALBC_APP_KEY @"23260542"
  15. //淘客pid
  16. #define ALTK_PID @"mm_99506173_0_0"
  17. //友盟key
  18. #define UMAPP_KEY @"5a7bca3c8f4a9d2d520000a9"
  19. //bugly id
  20. #define BUGLY_ID @"4908c6e84e"
  21. // 微信appid
  22. #define WX_APPID @"wxe398160ce0a14d72"
  23. // 微信app密钥
  24. #define WX_APP_SECRET @"8c6561463d743574093786fad5a2f794"
  25. /* 微信的的设置在 " WeiXinDefaults.h " 中 **/
  26. //channel_id
  27. #define Channel_id @"2000"
  28. //验证码签名
  29. #define SignCode @"cNHWj7pqBSXTi2DS4uvxqMTzuXOk5xvL"
  30. //UserDafault Key
  31. #define UserSexKey @"userSex"
  32. #define UserPhone @"UserPhone"
  33. #define BrowserHistoryKey @"browserHistory"
  34. #define SchemeKey @"YHProject2100"
  35. //定义分享页面是否点击知道了
  36. #define YHSharePageGetFriend @"YHSharePageGetFriend"
  37. //当前版本号
  38. #define VERSION_INFO_CURRENT @"currentversion"
  39. //定义屏幕的宽度
  40. #define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width<[UIScreen mainScreen].bounds.size.height?[UIScreen mainScreen].bounds.size.width:[UIScreen mainScreen].bounds.size.height)
  41. //定义屏幕的高度
  42. #define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.width>[UIScreen mainScreen].bounds.size.height?[UIScreen mainScreen].bounds.size.width:[UIScreen mainScreen].bounds.size.height)
  43. #define iPhone6 (SCREEN_WIDTH==375&&SCREEN_HEIGHT==667)?YES:NO
  44. #define iPhone5 (SCREEN_WIDTH==320)?YES:NO
  45. //#define iPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO)
  46. #define iPhoneX (SCREEN_HEIGHT>736)
  47. #define Fitsize(X) (SCREEN_WIDTH/375.0) * X
  48. #define KStatusBarHeight (iPhoneX ? 44.f : 20.f)
  49. #define TabbarHeight (iPhoneX ? (49.f+34.f) : 49.f)
  50. #define NavBarHeight (iPhoneX ? 88.f : 64.f)
  51. #define SafeBottomHeight (iPhoneX ? 34.f : 0)
  52. #define SafeTopHeight (iPhoneX ? 20.f : 0)
  53. #define TabbarHeight (iPhoneX ? (49.f+34.f) : 49.f)
  54. #define ChildTableViewHeight SCREEN_HEIGHT-TabbarHeight-NavBarHeight-40
  55. #define BottomMargin (iPhoneX ? 25.f : 0.f)
  56. //弱引用
  57. #define kWeak(self) @autoreleasepool{} __weak typeof(self) self##Weak = self;
  58. #define WeakSelf(weakSelf) __weak __typeof(self) weakSelf = self;
  59. //强引用
  60. #define kStrong(self) @autoreleasepool{} __strong typeof(self##Weak) self = self##Weak;
  61. #define SCREEN_MUTI (SCREEN_WIDTH/375.0)
  62. #define FITSIZE(X) (SCREEN_WIDTH/375.0)*X
  63. #define FITHeightSIZE(X) (SCREEN_HEIGHT/667.0)*X
  64. #define Placehold_Img [UIImage imageNamed:@"placeHolder"]
  65. #ifdef DEBUG
  66. #define NSLog(...) NSLog(__VA_ARGS__)
  67. #else
  68. #define NSLog(...)
  69. #endif
  70. #define JZHomeUPdateApp @"updateApp"
  71. #define RefreshWithDrawHistory @"refreshWithDrawHistory"
  72. #define APP_STORE_URL [NSString stringWithFormat:@"https://itunes.apple.com/cn/app/id%@?mt=8",APP_ID]
  73. #define ScrollDirectorNoti @"ScrollDirectorNoti"
  74. #define ShowPhoneLogin @"ShowPhoneLogin"
  75. #define KXAlertTextDate @"LDAlertTextDateKey"
  76. #define ShopCarCompleteKey @"ShopCarCompleteKey"
  77. #define ChangeTaoBaoAuthor @"ChangeTaoBaoAuthor"
  78. #define KGlobalPopQueneKey @"KGlobalPopQueneKey"
  79. #define ShopCarCompleteKey @"ShopCarCompleteKey"
  80. #define ChangeTaoBaoAuthor @"ChangeTaoBaoAuthor"
  81. //============友盟事件统计宏==============//
  82. #define home_banner @"home_banner"
  83. #define search_count @"search_count"
  84. #define nine_classify_goods @"nine_classify_goods"
  85. #define nine_classify @"nine_classify"
  86. #define nine_better @"nine_better"
  87. #define nine_top_pic @"nine_top_pic"
  88. #define category_goods @"category_goods"
  89. #define top_classify @"top_classify"
  90. #define home_hot @"home_hot"
  91. #define home_recommend @"home_recommend"
  92. #define pay_count @"pay"
  93. #define collection_count @"collection"
  94. #define Home_Items @"home_items"
  95. #define Find_channel @"find_channel"
  96. #define Find_youLike @"find_youLike"
  97. #define Classify @"classify"
  98. #define Other @"other"
  99. #define TodayClickTop @"TodayClickTop"
  100. #define TodayClickGoods @"TodayClickGoods"
  101. #define GoodsDetailVipInfo @"GoodsDetailVipInfo"
  102. #define MineVipClick @"MineVipClick"
  103. #define GoodsDetailRecommend @"GoodsDetailRecommend"
  104. #define CategoryRecommend @"CategoryRecommend"
  105. #define MineGetMoneyUrl @"MineGetMoneyUrl"
  106. #define OneKeyShareCheats @"oneKeyShareCheats"
  107. #define OneKeyShareRecommend @"oneKeyShareRecommend"
  108. #define BuyLimitGoodClick @"BuyLimitGoodClick"
  109. #define ComunityGoodClick @"ComunityGoodClick"
  110. #define CategoryClassify @"CategoryClassify"
  111. #define popCopySearch @"popCopySearch"
  112. #define ExclusiveServiceCopy @"ExclusiveServiceCopy"
  113. #define ExclusiveServiceOpen @"ExclusiveServiceOpen"
  114. #define ImpowerShopping @"ImpowerShopping"
  115. #define goodDetailShare @"goodDetailShare"
  116. #define FaddishTopItemClick @"FaddishTopItemClick"
  117. #define FaddishNormalItemClick @"FaddishNormalItemClick"
  118. #define FaddishNormalCopyContent @"FaddishNormalCopyContent"
  119. #define AdvClick @"AdvClick"
  120. #define EveryDayMorningFriendShare @"EveryDayMorningFriendShare"
  121. #define EveryDayMorningCircleShare @"EveryDayMorningCircleShare"
  122. #define NewGoodDetailCircleShare @"NewGoodDetailCircleShare"
  123. #define NewGoodDetailFriendShare @"NewGoodDetailFriendShare"
  124. #define OptimizingCircleLabelClick @"OptimizingCircleLabelClick"
  125. #define OptimizingCircleListClick @"OptimizingCircleListClick"
  126. #define OptimizingCircleMorningClick @"OptimizingCircleMorningClick"
  127. #define OptimizingCircleShareClick @"OptimizingCircleShareClick"
  128. #define OptimizingCircleCopyTopContent @"OptimizingCircleCopyTopContent"
  129. #define OptimizingCircleCopyBottomContent @"OptimizingCircleCopyBottomContent"
  130. #define HomeLoginBottomClick @"HomeLoginBottomClick"
  131. #define Search_History_String @"点击搜索历史"
  132. #define Search_Hot_String @"点击热搜搜索"
  133. #define Search_Normal @"用户输入搜索"
  134. //===============后台行为路径统计宏===========//
  135. #define browsingHistoryAction @"browsingHistoryAction"
  136. #define sameCouponAction @"sameCouponAction"
  137. #define findTicketAction @"findTicketAction"
  138. #define merchantShopAction @"merchantShopAction"
  139. #define goodsDetailRecommendAction @"goodsDetailRecommendAction"
  140. #define ListAction @"ListAction"
  141. #define homeAction @"homeAction"
  142. #define searchAction @"searchAction"
  143. #define HaoListsSearchAction @"HaoListsSearchAction"
  144. #define collectLikeAction @"collectLikeAction"
  145. #define collectAction @"collectAction"
  146. #define pushAction @"pushAction"
  147. #define ListClassifyAction @"ListClassifyAction"
  148. #define AdvertisingAction @"AdvertisingAction"
  149. #define InvateImageWeiXin @"invateImageWeiXin"
  150. #define InvateImageWeiXinCircle @"invateImageWeiXinCircle"
  151. #define HotSaleAction @"HotSaleAction"
  152. #define QuickBuyAction @"QuickBuyAction"
  153. #define AdvFourListGoodsAction @"AdvFourListGoodsAction"
  154. #define HomeClassifyAction @"HomeClassifyAction"
  155. #define CategoryRecommendAction @"CategoryRecommendAction"
  156. #define goodsDetailTopRecommendAction @"goodsDetailTopRecommendAction"
  157. #define ShoppingAction @"ShoppingAction"
  158. #define MineRecommendGoodsAction @"MineRecommendGoodsAction"
  159. #define TodayFaddishTopAction @"TodayFaddishTopAction"
  160. #define TodayFaddishAction @"TodayFaddishAction"
  161. #pragma mark--保存本地key名
  162. #endif /* YHHeader_h */