login 适配 se 5s 新增icon 主页修改
This commit is contained in:
+15
-1
@@ -81,9 +81,23 @@ alpha:((float)(rgbValue & 0xFF))/255.0]
|
||||
#define GIGA_WIndowTost(__toast__) [[UIApplication sharedApplication].keyWindow makeToast:(__toast__) duration:1.5 position:CSToastPositionCenter];
|
||||
|
||||
//X
|
||||
//底部工具栏需要为home indicator留出34pt边距
|
||||
#define PhoneX_BottomMargin ([UIScreen mainScreen].bounds.size.height == 812.0 ? 34.0 :0.0)
|
||||
|
||||
//状态栏高度由20pt变成44pt,导航栏以上变化64->88。
|
||||
#define PhoneX_TopMargin ([UIScreen mainScreen].bounds.size.height == 812.0 ? 24.0 :0.0)
|
||||
|
||||
#define PhoneX_STATUBAR_H ([UIScreen mainScreen].bounds.size.height == 812.0 ? 44.0 :20.0)
|
||||
|
||||
#define GIGA_FONTNAME @"PingFangSC-Medium"
|
||||
#define GIGA_FONTBOLD @"PingFangSC-Semibold"
|
||||
|
||||
//国际化
|
||||
#define GIGALocalComm(key) NSLocalizedStringFromTable(key, @"GIGACommonLocalizabe", nil)
|
||||
//个人中心
|
||||
#define GIGALocalUser(key) NSLocalizedStringFromTable(key, @"GIGAUserLocalizable", nil)
|
||||
//HUD
|
||||
#define HUD_DISPLAY_DURATION 2
|
||||
#define HUD_TIMEOUT_DURATION 8
|
||||
|
||||
|
||||
#endif /* GIGA_h */
|
||||
|
||||
@@ -14,16 +14,18 @@
|
||||
#if defined(DEBUG) || defined(RELEASE_VERTION_TEST)
|
||||
|
||||
#endif
|
||||
|
||||
switch (type) {
|
||||
case 0://测试环境
|
||||
{
|
||||
|
||||
[[NSUserDefaults standardUserDefaults] setValue:@"http://apiyts.s1.natapp.cc/v1/" forKey:@"MainUrl"];
|
||||
} break;
|
||||
}
|
||||
break;
|
||||
case 1: //生产环境
|
||||
{
|
||||
[[NSUserDefaults standardUserDefaults] setValue:@"https://" forKey:@"MainUrl"];
|
||||
} break;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user