Header-Prefix.h 4.22 KB
Newer Older
houweibin committed
1 2 3 4 5 6 7 8 9 10 11 12
//
//  Header-Prefix.h
//  iToYoung
//
//  Created by jason on 16/5/9.
//  Copyright © 2016年 kollway. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "KWMAPIManager.h"
#import <MagicalRecord/MagicalRecord.h>
lee committed
13
#import "NSDecimalNumber+Currency.h"
houweibin committed
14 15 16 17 18 19 20 21 22 23 24 25 26 27

#ifndef Header_Prefix_h
#define Header_Prefix_h

#define BASE_COLOR [UIColor colorWithRed:255/255.0f green:96/255.0f blue:67/255.0f alpha:1]
#define LINE_COLOR [UIColor colorWithRed:217/255.0f green:217/255.0f blue:217/255.0f alpha:1]
#define IMAGE_SIZE_UPLOAD          800
#define USER_PHOTO_SIZE                 300
#define USER_PHOTO_HEIGHT_SIZE          200
#define UPLOAD_PHOTO_SIZE               600
#define UI_SCREEN_WIDTH             ([[UIScreen mainScreen] bounds].size.width)
#define UI_SCREEN_HEITHT            ([[UIScreen mainScreen] bounds].size.height)
#define KWMAPI_URL(path) [NSURL URLWithString:[[KWMAPIManager sharedManager] toAbsoluteUrl:path]]
#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v)  ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
houweibin committed
28
#define SYSTEM_VERSION_LESS_THAN(v)                 ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending)
houweibin committed
29 30 31 32 33 34 35 36 37 38
#define KWMTextTips    0
#define KWMNoDataTips  1
#define KWMNoLike      2
#define KWMNoComment   3
#define KWMNoFans      4
#define KWMNoNework    5
#define KWMLoadFailure 6
#define KWMNoCollect   7


39

houweibin committed
40 41
#define KWMReceiverPush                     @"KWMReceiverPush"
#define KWMReceiverNoLogin                  @"KWMReceiverNoLogin"
42
#define KWMPaySuccess             @"KWMPaySuccess"
houweibin committed
43 44 45
#define KEY_USER_DEFAULT_ACCOUNT                  @"KEY_USER_DEFAULT_ACCOUNT"
#define KEY_USER_REGISTER                   @"KEY_USER_REGISTER"

46
#define UMAppKey @"##"
houweibin committed
47 48
#define UmengChannel            @"C001"

49
#define JPUSHKey @"##"
houweibin committed
50 51

//正式的 QQ app id
52 53
#define QQAppId @"##"
#define QQAppKey @"##"
houweibin committed
54 55 56 57 58 59 60

//正式的微信key
#define WechatAppKey               @"wx355a497b2a2dd6d5"

//Cemarose key--chinese login 需要的key
#define Cemarose_KEY @"4a119ac523d53c98bbd2983b798a0d53"

61
#define User_Pay_KEY @"bd3f58f5cd3d7a217ac8c8e655ab52f8"
houweibin committed
62

lee committed
63
#if DEBUG && 0
houweibin committed
64 65
//测试
#define TestModel @"YES"
houweibin committed
66

houweibin committed
67 68 69
//额外api domain
#define Additional_API_DOMAIN @"liang.tofnews.com"

houweibin committed
70 71
#define Pay_API_DOMAIN @"liang.tofnews.com"

houweibin committed
72 73
//Shopify对应的key(测试用)
#define Shopify_SHOP_DOMAIN @"cemarose-test.myshopify.com"
lee committed
74

houweibin committed
75
#define Shopify_API_KEY @"4f34b3c32f4297386fc4fdaee7ef2bce"
houweibin committed
76
#define Shopify_APP_ID @"8"
lee committed
77
#else
houweibin committed
78

lee committed
79 80 81
//正式
#define TestModel @"NO"

houweibin committed
82 83
#define Additional_API_DOMAIN @"apps.cemarose.com"

houweibin committed
84 85
#define Pay_API_DOMAIN @"alipay.cemarose.com"

lee committed
86 87 88 89
//Shopify对应的key(正式)
#define Shopify_SHOP_DOMAIN @"cemarose.myshopify.com"
#define Shopify_API_KEY @"c2f6fae97741ea6db4cad7ae8f70fef3"
#define Shopify_APP_ID @"8"
u  
lee committed
90
#endif
houweibin committed
91

houweibin committed
92 93 94 95 96
//软键盘输入限制
#define NUM @"0123456789"
#define ALPHA @"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
#define ALPHANUM @"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"

houweibin committed
97 98 99
#define Image_Domain @"o42yton8r.qnssl.com"

#define LowImage 0
houweibin committed
100 101 102 103 104 105 106

#define SmallImage 1

#define NormalImage 2

#define BigImage 3

houweibin committed
107
//默认欧元汇率,如果安装后第一次请求最新汇率数据失败,会使用该汇率显示价格
lee committed
108
//#define ExchangeRate 7.6625
lee committed
109 110
//#define ExchangeRateString @"7.6625"
#define ExchangeRateString @"8.0"
houweibin committed
111 112 113 114 115 116 117 118 119 120 121

//品牌图片url
#define Burberry @"https://cdn.shopify.com/s/files/1/1089/5284/collections/Burberry_Childrenswear_Campaign_July_2016_001.jpg?v=1473238213"
#define Caramel @"https://cdn.shopify.com/s/files/1/1089/5284/collections/0N5A3945.jpg?v=1450003916"
#define DolceGabbana @"https://cdn.shopify.com/s/files/1/1089/5284/collections/dg.png?v=1473235338"
#define Fendi @"https://cdn.shopify.com/s/files/1/1089/5284/collections/fendi.png?v=1473232745"
#define Kenzo @"https://cdn.shopify.com/s/files/1/1089/5284/collections/KenzoKid-FW-Look07-032_6d952185-9dc6-4d67-b547-38e12eafa45b.jpg?v=1473322852"
#define IlGufo @"https://cdn.shopify.com/s/files/1/1089/5284/collections/DAN0914.jpg?v=1473238555"
#define StellaMcCartneyKids @"https://cdn.shopify.com/s/files/1/1089/5284/collections/LOOK_14_StellaKids.AW16_Shot_15_054_F2_RGB_63794919-2361-4f40-affe-6361cfb11c49.jpg?v=1473233767"

#endif /* Header_Prefix_h */