1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
//
// CYConstManager.h
// Lighting
//
// Created by 曹云霄 on 2016/10/17.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "MBProgressHUD.h"
#import "MJRefresh.h"
#import "MMDrawerController.h"
#import "RightViewController.h"
#import "IQKeyboardManager.h"
#import "AFNetworking.h"
#import "NetworkRequestClassManager.h"
#import "NSArray+Objectwithindex.h"
#import "ShoppingViewController.h"
#import "ClientViewController.h"
#import "Masonry.h"
#import "PopoverViewController.h"
#import "opple_objc_json_client.h"
#import "HENLENSONG.h"
#import "JSONModel.h"
#import "Shoppersmanager.h"
#import "UIImageView+WebCache.h"
#import "Customermanager.h"
#import "AppDelegate.h"
#import "PromptinformationView.h"
#import "BaseViewController.h"
#import "MjRefreshHeaderCustom.h"
#import "UIScrollView+EmptyDataSet.h"
#import "NSDictionary+category.h"
#import "UINavigationController+FDFullscreenPopGesture.h"
#import "UIView+cornerRadius.h"
#import "XLPlainFlowLayout.h"
#import "MDScratchImageView.h"
#import "WYPopoverController.h"
#import "CustomBorderLabel.h"
#import "PNCircleChart.h"
#import "CustomStudyEntity.h"
#import "XBLoadingView.h"
#import "CustomTOStudyTopicOptionEntity.h"
#import "CountDownLabel.h"
#import "CustomTOStudyTopicEntity.h"
#import "CustomTOPassLevelTopicEntity.h"
#import "CustomTOPassLevelTopicOptionEntity.h"
#import "CustomImageBackView.h"
#import "NSDate+Formatting.h"
#import "CustomTOForumTopicEntity.h"
#import "CustomTOForumReplyEntity.h"
#import "PNCircleChart.h"
#import "NSString+Category.h"
#import "CustomTOAfficheEntity.h"
#import "ICRPlaceholderTextView.h"
#import "YXAlertController.h"
#import "UIView+Frame.h"
#import "UIImage+Fit.h"
#import <UMSocialCore/UMSocialCore.h>
// 引入JPush功能所需头文件
#import "JPUSHService.h"
// iOS10注册APNs所需头文件
#ifdef NSFoundationVersionNumber_iOS_9_x_Max
#import <UserNotifications/UserNotifications.h>
#endif
/**
闯关结果
- NotThrough: 未通过
- Through: 已通过
- Audit: 待审核
*/
typedef NS_ENUM(NSInteger,RESULT_STATE){
NotThrough = 0,
Through,
Audit
};
/**
点赞或评论
- Comment: 评论
- Praise: 点赞
*/
typedef NS_ENUM(NSInteger,COMMENT_PRAISE) {
Comment = 0,
Praise
};
/**
* 服务器开发地址
*/
//#define SERVERREQUESTURL(URL) [NSString stringWithFormat:@"http://gomoredev:8082/opple-web/app%@",URL]
//外网http://debenson.picp.io/opple-web/
/**
* 局域网开发地址
*/
//#define SERVERREQUESTURL(URL) [NSString stringWithFormat:@"http://192.168.199.198:8080/opple-web/app%@",URL]
/**
* 服务器测试地址
*/
//#define SERVERREQUESTURL(URL) [NSString stringWithFormat:@"http://dg-dev.opple.com/opple-web/app%@",URL]
//**
// * 服务器正式地址
// */
#define SERVERREQUESTURL(URL) [NSString stringWithFormat:@"http://dg.opple.com/opple-web/app%@",URL]
/*****************************************接口地址*****************************************/
/**
* 登陆
*/
extern NSString *const LOGIN;
/**
* 门店地址
*/
extern NSString *const STOREADDRESS;
/**
* 发送验证码
*/
extern NSString *const SENDSMS;
/**
* 绑定银行卡
*/
extern NSString *const SENDSMSBANK;
/**
* 重置密码
*/
extern NSString *const RESETPASSWORD;
/**
* 新增地址
*/
extern NSString *const ADDADDRESS;
/**
* 更改地址
*/
extern NSString *const CHANGEADDRESS;
/**
* 删除地址
*/
extern NSString *const REMOVEADDRESS;
/**
* 场景筛选
*/
extern NSString *const SCENESCREENING;
/**
* 热门搜索
*/
extern NSString *const HOTSEARCH;
/**
* 场景列表
*/
extern NSString *const SCENELIST;
/**
* 经营者二维码
*/
extern NSString *const QRCODE;
/**
* 确认支付
*/
extern NSString *const CONFIRMPAY;
/**
* 获取购物袋商品
*/
extern NSString *const SHOPPINGBAG;
/**
* 删除购物袋
*/
extern NSString *const REMOVESHOPPINGBAG;
/**
* 更改购物车商品数量、价格
*/
extern NSString *const CHANGESHOPPINGBAGNUMBERPRICE;
/**
* 添加到购物车
*/
extern NSString *const ADDSHOPPINGBAG;
/**
* 查询购物车数量
*/
extern NSString *const QUERYSHOPPINGBAGNUMBER;
/**
* 查询所有订单
*/
extern NSString *const QUERYORDER;
/**
* 撤销订单
*/
extern NSString *const RESETORDER;
/**
* 分享商品
*/
extern NSString *const SHARE;
/**
* 分享订单
*/
extern NSString *const SHAREORDERBILL;
/**
* 产品筛选
*/
extern NSString *const PRODUCTSCREENING;
/**
* 产品列表
*/
extern NSString *const PRODUCTLIST;
/**
* 条形码搜索
*/
extern NSString *const BARCODESEARCH;
/**
* 获取导购关联客户
*/
extern NSString *const GETshoppersCONSUMER;
/**
* 修改密码
*/
extern NSString *const MODIFYPASSWORD;
/**
* 订单详情
*/
extern NSString *const ORDERDETAILS;
/**
* PDF路径
*/
extern NSString *const DOWNLOADPDF;
/**
* 收货地址
*/
extern NSString *const SHIPPINGADDRESS;
/**
* 生成订单
*/
extern NSString *const CREATEORDER;
/**
* 商品详情
*/
extern NSString *const GOODSDETAILS;
/**
* 导购返利
*/
extern NSString *const shoppersCOMMISSION;
/**
* 上传文件
*/
extern NSString *const UPLOADHEADER;
/**
* 修改导购个人信息
*/
extern NSString *const MODITYshoppersINFORMATION;
/**
* 注销登录
*/
extern NSString *const CANCELLOGIN;
/**
* 新增客户
*/
extern NSString *const ADDCONSUMER;
/**
* 写入访问时间
*/
extern NSString *const SAVEVISITEDTIME;
/**
* 获取版本升级信息
*/
extern NSString *const VERSION;
/**
* 查询返利信息
*/
extern NSString *const REBATE;
//** 提现 */
extern NSString *const WITHDRAWAL;
/**
* 收支明细
*/
extern NSString *const PAYMENTS;
/**
* 提现进度
*/
extern NSString *const WITHDRAWALPROGRESS;
/**
* 提现进度详情
*/
extern NSString *const WITHDRAWALPROGRESSDETAILS;
/**
* 查询促销信息
*/
extern NSString *const PROMOTIONAL;
/**
* 查询历史促销信息
*/
extern NSString *const OLDPROMOTIONAL;
/**
* 查询我的卡劵信息
*/
extern NSString *const CARDINFORMATION;
/**
* 发放JDEka
*/
extern NSString *const JDECARD;
/**
* 激活京东E卡
*/
extern NSString *const ACTIVIATIONJDECARD;
/**
* 领取京东E卡
*/
extern NSString *const RECEIVEJDECARD;
/**
* 查询所有京东E卡
*/
extern NSString *const QUERYALLJDECARD;
/**
* 微信卡劵
*/
extern NSString *const WeChatCard;
/**
* 使用京东E卡
*/
extern NSString *const USEJDECARD;
/**
* 抽奖
*/
extern NSString *const DRAW;
/**
* 拼接订单详情URL(打印/预览)
*/
extern NSString *const ORDERDETAILSURL;
/**
* 抽奖结果查询
*/
extern NSString *const LOTTERYED;
/**
* 使用微信卡劵
*/
extern NSString *const USEWECHATCARD;
/**
* 查询积分
*/
extern NSString *const INTEGRALQUERY;
/**
* 奖品列表
*/
extern NSString *const PRIZELIST;
/**
* 所有的兑奖记录
*/
extern NSString *const ALLEXCHANGERECORD;
/**
* 是否有兑奖资格
*/
extern NSString *const EXCHANGEQUALIFICATION;
/**
* 保存兑奖单
*/
extern NSString *const SAVEPRIZEBILL;
/**
* 兑奖单详情
*/
extern NSString *const PRIZEBILLDETAILS;
/**
* 公告列表
*/
extern NSString *const AFFICHELIST;
/**
* 公告详情
*/
extern NSString *const AFFICHEdETAILS;
/**
* 学习类型
*/
extern NSString *const STUDYTYPES;
/**
* 论坛讨论项分类第二层
*/
extern NSString *const FORUMCATEGORYS;
/**
* 论坛讨类型第一层
*/
extern NSString *const FORUMTYPS;
/**
* 学习项详情
*/
extern NSString *const STUDYITEMDETAIL;
/**
* 学习列表
*/
extern NSString *const STUDYLIST;
/**
* 闯关信息
*/
extern NSString *const THROUGHLIST;
/**
* 提交考核结果
*/
extern NSString *const SUBMITANSWER;
/**
* 获取相应分数对应的积分
*/
extern NSString *const GETINTEGRAL;
/**
* 获取闯关详情
*/
extern NSString *const GETPASSLEVELDETAILS;
/**
* 提交闯关答案
*/
extern NSString *const SUBMITEMIGRATEDANSWER;
/**
* 查询论坛列表
*/
extern NSString *const QUERTFORUMLIST;
/**
* 发布帖子
*/
extern NSString *const SUBMITTOPIC;
/**
* 回复帖子
*/
extern NSString *const REPLYPOST;
/**
* 最佳回复、取消最佳回复
*/
extern NSString *const BASEREPLY;
/**
* 点赞、取消点赞
*/
extern NSString *const PRAISE;
/**
* 删除帖子
*/
extern NSString *const DELETEPOST;
/**
* 帖子详情
*/
extern NSString *const POSTDETAIL;
/**
* 公告已读
*/
extern NSString *const READANNOUNCEMENT;
/**
* 验证银行卡信息
*/
extern NSString *const VALIDATION;
/**
* 绑定银行卡
*/
extern NSString *const BINDING;
/**
* 解除绑定银行卡
*/
extern NSString *const UNBINDING;
/**
* 学习完成
*/
extern NSString *const FINISHSTUDY;
/**
* 附件播放时间
*/
extern NSString *const ATTACHMENTPLAYTIME;
/**
* 消息已读
*/
extern NSString *const MESSAGE_READ;
/**
* 首页数据
*/
extern NSString *const HOME_DATA;
/**
* 闯关结果
*/
extern NSString *const PASSLEVERESULT;
/**
* 验证经销商ID是否正确
*/
extern NSString *const RESELLER;
/**
* 保存经销商ID
*/
extern NSString *const SAVERESELLER;
/**
* 首页轮播图速度
*/
extern NSString *const BANNERS_SPEED;
/**
* 时间轴主题
*/
extern NSString *const GETTIMELINE;
/**
* 综合讨论区
*/
extern NSString *const DEFAULTFORUM_CATEGORY;
/**
* 查询红包
*/
extern NSString *const QUERY_REDPACKAGE;
/**
* 上传红包小票路径
*/
extern NSString *const READPACKETPATH;
/**
* 保存门店地区
*/
extern NSString *const ADDRESS;
/*****************************************接口地址*****************************************/
/**
* 通知已上传小票
*/
extern NSString *const UPLOAD_COMPLETE;
/**
* 通知已查看京东卡密码
*/
extern NSString *const VIEWPASSWORD;
/**
* 京东卡状态<发放>
*/
extern NSString *const DISPENSED;
/**
* 京东卡状态<激活>
*/
extern NSString *const ACTIVED;
/**
* 京东卡状态<查看>
*/
extern NSString *const USED;
/**
* 京东卡状态<审批中>
*/
extern NSString *const CHECK;
/**
* 更新购物车商品
*/
extern NSString *const SHOPPINGCARGOODS;
/**
* 打开体验中心
*/
extern NSString *const OPENFOLLOWHEARTVC;
/**
* 微信卡劵
*/
extern NSString *const WXCardAction;
/**
* 京东E卡
*/
extern NSString *const JDECardAction;
/**
* 导购
*/
extern NSString *const GUIDE;
/**
* 消费者
*/
extern NSString *const CONSUMER;
/**
* 折扣金额
*/
extern NSString *const deductionAction;
/**
* 现金红包
*/
extern NSString *const redPackageAction;
/**
* 大转盘红包
*/
extern NSString *const dzpRedPackage;
/**
* 赠送商品
*/
extern NSString *const goodsAction;
/**
* 转盘抽奖
*/
extern NSString *const lotteryAction;
/**
* 未付款
*/
extern NSString *const NOTPAY;
/**
* 已付款
*/
extern NSString *const PAYSUCCESS;
/**
* 已发货
*/
extern NSString *const SHIPPED;
/**
* 已退货
*/
extern NSString *const RETURN;
/**
* 已作废
*/
extern NSString *const CANCEL;
/**
* 已完成
*/
extern NSString *const COMPLETED;
/**
* 已抽奖未使用
*/
extern NSString *const ACCOMPLISHED;
/**
未抽奖
*/
extern NSString *const INITIAL;
/**
* 刷新购物车
*/
extern NSString *const REFRESHSHOPPINGCAR;
/**
* 更改用户名
*/
extern NSString *const CHANGECUSTOMERNAME;
/**
* 更改导购名
*/
extern NSString *const CHANGEshoppersNAME;
/**
* 打开3D体验中心
*/
extern NSString *const OPENFOLLOWHEART3DVC;
/**
* 未读公告
*/
extern NSString *const NOTREADANNOUNCEMENT;
/**
* 学习完成
*/
extern NSString *const STUDYFINISH;
/**
* 考核通过
*/
extern NSString *const INSPECTIONTHROUGH;
/**
* 闯关通过
*/
extern NSString *const RECRUITTHROUGH;
/**
* 返利
*/
extern NSString *const COMMISSION;
/**
* 红包
*/
extern NSString *const REDPACKAGE;
/**
* 欧普问问
*/
extern NSString *const OPPLE_ASK;
/**
* 消息列表
*/
extern NSString *const MESSAGELIST;
/**
* 消息
*/
extern NSString *const MESSAGE_COUNT;
/**
* 通知
*/
extern NSString *const NSNOTIFICATION_MESSAGE;
/**
* 分享帖子
*/
extern NSString *const SHAREINVITATION;
/**
* 登陆超时通知
*/
extern NSString *const LOGINTIMEOUT;
/**
* 更新版本通知
*/
extern NSString *const UPLOADVERSION;
/**
* 网络断开
*/
extern NSString *const NETWORK;
/**
* 搜索框输入通知
*/
extern NSString *const SEARCHSTRING;
/**
* 搜索框返回根视图
*/
extern NSString *const POPROOTCONTROLLER;
/**
* 储存本地的搜索历史文件名
*/
extern NSString *const SEARCHHISTORY;
/**
* 保存用户名key
*/
extern NSString *const USERNAME;
/**
* 保存密码key
*/
extern NSString *const PASSWORD;
/**
* 网络请求返回个数
*/
extern NSInteger const KROWS;
/**
保存账号密码serviceName
*/
extern NSString *const SERVICENAME;
/**
保存账号key
*/
extern NSString *const SAVEACCOUNT;
/**
保存密码key
*/
extern NSString *const SAVEPASSWORD;
/**
时间轴动画
*/
extern NSString *const ANIMATION;
/**
刷新综合讨论区
*/
extern NSString *const REFRESH_FROUMLIST;
/**
修改导购名称
*/
extern NSString *const CHANGEGUIDENAME;