123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- //
- // DRHeader.h
- // YouHuiProject
- //
- // Created by 小花 on 2018/1/16.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- #ifndef YHHeader_h
- #define YHHeader_h
- /**App ID*/
- #define APP_ID @"1347672175"
- /***/
- //阿里百川
- #define ALBC_APP_KEY @"23260542"
- //淘客pid
- #define ALTK_PID @"mm_99506173_0_0"
- //友盟key
- #define UMAPP_KEY @"5a7bca3c8f4a9d2d520000a9"
- //bugly id
- #define BUGLY_ID @"4908c6e84e"
- // 微信appid
- #define WX_APPID @"wxe398160ce0a14d72"
- // 微信app密钥
- #define WX_APP_SECRET @"8c6561463d743574093786fad5a2f794"
- /* 微信的的设置在 " WeiXinDefaults.h " 中 **/
- //channel_id
- #define Channel_id @"2000"
- //验证码签名
- #define SignCode @"cNHWj7pqBSXTi2DS4uvxqMTzuXOk5xvL"
- //UserDafault Key
- #define UserSexKey @"userSex"
- #define UserPhone @"UserPhone"
- #define BrowserHistoryKey @"browserHistory"
- #define SchemeKey @"YHProject2100"
- //定义分享页面是否点击知道了
- #define YHSharePageGetFriend @"YHSharePageGetFriend"
- //当前版本号
- #define VERSION_INFO_CURRENT @"currentversion"
- //定义屏幕的宽度
- #define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width<[UIScreen mainScreen].bounds.size.height?[UIScreen mainScreen].bounds.size.width:[UIScreen mainScreen].bounds.size.height)
- //定义屏幕的高度
- #define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.width>[UIScreen mainScreen].bounds.size.height?[UIScreen mainScreen].bounds.size.width:[UIScreen mainScreen].bounds.size.height)
- #define iPhone6 (SCREEN_WIDTH==375&&SCREEN_HEIGHT==667)?YES:NO
- #define iPhone5 (SCREEN_WIDTH==320)?YES:NO
- //#define iPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO)
- #define iPhoneX (SCREEN_HEIGHT>736)
- #define Fitsize(X) (SCREEN_WIDTH/375.0) * X
- #define KStatusBarHeight (iPhoneX ? 44.f : 20.f)
- #define TabbarHeight (iPhoneX ? (49.f+34.f) : 49.f)
- #define NavBarHeight (iPhoneX ? 88.f : 64.f)
- #define SafeBottomHeight (iPhoneX ? 34.f : 0)
- #define SafeTopHeight (iPhoneX ? 20.f : 0)
- #define TabbarHeight (iPhoneX ? (49.f+34.f) : 49.f)
- #define ChildTableViewHeight SCREEN_HEIGHT-TabbarHeight-NavBarHeight-40
- #define BottomMargin (iPhoneX ? 25.f : 0.f)
- //弱引用
- #define kWeak(self) @autoreleasepool{} __weak typeof(self) self##Weak = self;
- #define WeakSelf(weakSelf) __weak __typeof(self) weakSelf = self;
- //强引用
- #define kStrong(self) @autoreleasepool{} __strong typeof(self##Weak) self = self##Weak;
- #define SCREEN_MUTI (SCREEN_WIDTH/375.0)
- #define FITSIZE(X) (SCREEN_WIDTH/375.0)*X
- #define FITHeightSIZE(X) (SCREEN_HEIGHT/667.0)*X
- #define Placehold_Img [UIImage imageNamed:@"placeHolder"]
- #ifdef DEBUG
- #define NSLog(...) NSLog(__VA_ARGS__)
- #else
- #define NSLog(...)
- #endif
- #define JZHomeUPdateApp @"updateApp"
- #define RefreshWithDrawHistory @"refreshWithDrawHistory"
- #define APP_STORE_URL [NSString stringWithFormat:@"https://itunes.apple.com/cn/app/id%@?mt=8",APP_ID]
- #define ScrollDirectorNoti @"ScrollDirectorNoti"
- #define ShowPhoneLogin @"ShowPhoneLogin"
- #define KXAlertTextDate @"LDAlertTextDateKey"
- #define ShopCarCompleteKey @"ShopCarCompleteKey"
- #define ChangeTaoBaoAuthor @"ChangeTaoBaoAuthor"
- #define KGlobalPopQueneKey @"KGlobalPopQueneKey"
- #define ShopCarCompleteKey @"ShopCarCompleteKey"
- #define ChangeTaoBaoAuthor @"ChangeTaoBaoAuthor"
- //============友盟事件统计宏==============//
- #define home_banner @"home_banner"
- #define search_count @"search_count"
- #define nine_classify_goods @"nine_classify_goods"
- #define nine_classify @"nine_classify"
- #define nine_better @"nine_better"
- #define nine_top_pic @"nine_top_pic"
- #define category_goods @"category_goods"
- #define top_classify @"top_classify"
- #define home_hot @"home_hot"
- #define home_recommend @"home_recommend"
- #define pay_count @"pay"
- #define collection_count @"collection"
- #define Home_Items @"home_items"
- #define Find_channel @"find_channel"
- #define Find_youLike @"find_youLike"
- #define Classify @"classify"
- #define Other @"other"
- #define TodayClickTop @"TodayClickTop"
- #define TodayClickGoods @"TodayClickGoods"
- #define GoodsDetailVipInfo @"GoodsDetailVipInfo"
- #define MineVipClick @"MineVipClick"
- #define GoodsDetailRecommend @"GoodsDetailRecommend"
- #define CategoryRecommend @"CategoryRecommend"
- #define MineGetMoneyUrl @"MineGetMoneyUrl"
- #define OneKeyShareCheats @"oneKeyShareCheats"
- #define OneKeyShareRecommend @"oneKeyShareRecommend"
- #define BuyLimitGoodClick @"BuyLimitGoodClick"
- #define ComunityGoodClick @"ComunityGoodClick"
- #define CategoryClassify @"CategoryClassify"
- #define popCopySearch @"popCopySearch"
- #define ExclusiveServiceCopy @"ExclusiveServiceCopy"
- #define ExclusiveServiceOpen @"ExclusiveServiceOpen"
- #define ImpowerShopping @"ImpowerShopping"
- #define goodDetailShare @"goodDetailShare"
- #define FaddishTopItemClick @"FaddishTopItemClick"
- #define FaddishNormalItemClick @"FaddishNormalItemClick"
- #define FaddishNormalCopyContent @"FaddishNormalCopyContent"
- #define AdvClick @"AdvClick"
- #define EveryDayMorningFriendShare @"EveryDayMorningFriendShare"
- #define EveryDayMorningCircleShare @"EveryDayMorningCircleShare"
- #define NewGoodDetailCircleShare @"NewGoodDetailCircleShare"
- #define NewGoodDetailFriendShare @"NewGoodDetailFriendShare"
- #define OptimizingCircleLabelClick @"OptimizingCircleLabelClick"
- #define OptimizingCircleListClick @"OptimizingCircleListClick"
- #define OptimizingCircleMorningClick @"OptimizingCircleMorningClick"
- #define OptimizingCircleShareClick @"OptimizingCircleShareClick"
- #define OptimizingCircleCopyTopContent @"OptimizingCircleCopyTopContent"
- #define OptimizingCircleCopyBottomContent @"OptimizingCircleCopyBottomContent"
- #define HomeLoginBottomClick @"HomeLoginBottomClick"
- #define Search_History_String @"点击搜索历史"
- #define Search_Hot_String @"点击热搜搜索"
- #define Search_Normal @"用户输入搜索"
- //===============后台行为路径统计宏===========//
- #define browsingHistoryAction @"browsingHistoryAction"
- #define sameCouponAction @"sameCouponAction"
- #define findTicketAction @"findTicketAction"
- #define merchantShopAction @"merchantShopAction"
- #define goodsDetailRecommendAction @"goodsDetailRecommendAction"
- #define ListAction @"ListAction"
- #define homeAction @"homeAction"
- #define searchAction @"searchAction"
- #define HaoListsSearchAction @"HaoListsSearchAction"
- #define collectLikeAction @"collectLikeAction"
- #define collectAction @"collectAction"
- #define pushAction @"pushAction"
- #define ListClassifyAction @"ListClassifyAction"
- #define AdvertisingAction @"AdvertisingAction"
- #define InvateImageWeiXin @"invateImageWeiXin"
- #define InvateImageWeiXinCircle @"invateImageWeiXinCircle"
- #define HotSaleAction @"HotSaleAction"
- #define QuickBuyAction @"QuickBuyAction"
- #define AdvFourListGoodsAction @"AdvFourListGoodsAction"
- #define HomeClassifyAction @"HomeClassifyAction"
- #define CategoryRecommendAction @"CategoryRecommendAction"
- #define goodsDetailTopRecommendAction @"goodsDetailTopRecommendAction"
- #define ShoppingAction @"ShoppingAction"
- #define MineRecommendGoodsAction @"MineRecommendGoodsAction"
- #define TodayFaddishTopAction @"TodayFaddishTopAction"
- #define TodayFaddishAction @"TodayFaddishAction"
- #pragma mark--保存本地key名
- #endif /* YHHeader_h */
|