Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
Opple-iOS
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
Opple-iOS
Commits
e2f9c05f
Commit
e2f9c05f
authored
Nov 16, 2016
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改项说明:公告、学习中心、积分界面搭建
parent
2ad9e4a8
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
706 additions
and
311 deletions
+706
-311
ClientdetailsViewController.m
Class/ClientdetailsViewController.m
+2
-2
GuideIntegralViewController.h
Class/GuideIntegralViewController.h
+40
-0
GuideIntegralViewController.m
Class/GuideIntegralViewController.m
+71
-0
LearningCenterMainViewController.m
...ter/LearningCenterMain/LearningCenterMainViewController.m
+47
-0
OnlineLearningTableViewCell.h
...arningCenter/OnlineLearning/OnlineLearningTableViewCell.h
+1
-1
OnlineLearningTableViewCell.m
...arningCenter/OnlineLearning/OnlineLearningTableViewCell.m
+0
-5
OnlineLearningViewController.h
...rningCenter/OnlineLearning/OnlineLearningViewController.h
+2
-1
OnlineLearningViewController.m
...rningCenter/OnlineLearning/OnlineLearningViewController.m
+20
-2
LoginViewController.m
Class/Login/LoginViewController.m
+10
-10
OrderdetailsViewController.m
Class/OrderdetailsViewController.m
+2
-1
RebateViewController.m
Class/RebateViewController.m
+2
-2
CustomTabbarController.m
Class/Tabbar/CustomTabbarController.m
+7
-11
Toolview.m
Class/Tabbar/Toolview.m
+1
-1
UserViewController.h
Class/UserViewController.h
+4
-15
UserViewController.m
Class/UserViewController.m
+21
-17
UserViewController.xib
Class/UserViewController.xib
+60
-35
project.pbxproj
Lighting.xcodeproj/project.pbxproj
+18
-0
AppDelegate.h
Lighting/AppDelegate.h
+6
-0
Contents.json
Lighting/Assets.xcassets/AppIcon.appiconset/Contents.json
+10
-0
GuideIntegral.storyboard
Lighting/GuideIntegral.storyboard
+133
-0
Contents.json
Lighting/Images.xcassets/account.imageset/Contents.json
+23
-0
account.png
Lighting/Images.xcassets/account.imageset/account.png
+0
-0
account@2x.png
Lighting/Images.xcassets/account.imageset/account@2x.png
+0
-0
account@3x.png
Lighting/Images.xcassets/account.imageset/account@3x.png
+0
-0
LearningCenter.storyboard
Lighting/LearningCenter.storyboard
+23
-21
OppleMain.storyboard
Lighting/OppleMain.storyboard
+186
-186
BaseViewController.h
Tools/BaseViewController.h
+5
-0
BaseViewController.m
Tools/BaseViewController.m
+7
-1
CustomWKWebViewController.m
Tools/CustomWKWebViewController.m
+5
-0
No files found.
Class/ClientdetailsViewController.m
View file @
e2f9c05f
...
...
@@ -74,13 +74,13 @@
self
.
shoppingCar
.
model
=
self
.
model
;
[
self
addChildViewController
:
self
.
shoppingCar
];
self
.
currentVC
=
self
.
shoppingCar
;
self
.
shoppingCar
.
view
.
frame
=
CGRectMake
(
self
.
controllerBackgroundView
.
mj_x
,
self
.
shoppingAndRecordBackview
.
mj_y
+
self
.
shoppingAndRecordBackview
.
mj_h
,
self
.
controllerBackgroundView
.
mj_w
,
self
.
controllerBackgroundView
.
mj_h
-
self
.
shoppingAndRecordBackview
.
mj_y
-
self
.
shoppingAndRecordBackview
.
mj_h
);
self
.
shoppingCar
.
view
.
frame
=
CGRectMake
(
0
,
self
.
shoppingAndRecordBackview
.
mj_y
+
self
.
shoppingAndRecordBackview
.
mj_h
,
self
.
controllerBackgroundView
.
mj_w
,
self
.
controllerBackgroundView
.
mj_h
-
self
.
shoppingAndRecordBackview
.
mj_y
-
self
.
shoppingAndRecordBackview
.
mj_h
);
[
self
.
controllerBackgroundView
addSubview
:
self
.
shoppingCar
.
view
];
self
.
orderRecord
=
[[[
self
class
]
getMainStoryboardClass
]
instantiateViewControllerWithIdentifier
:
@"OrderRecordViewController"
];
[
self
addChildViewController
:
self
.
orderRecord
];
self
.
orderRecord
.
model
=
self
.
model
;
self
.
orderRecord
.
view
.
frame
=
CGRectMake
(
self
.
controllerBackgroundView
.
mj_x
,
self
.
shoppingAndRecordBackview
.
mj_y
+
self
.
shoppingAndRecordBackview
.
mj_h
,
self
.
controllerBackgroundView
.
mj_w
,
self
.
controllerBackgroundView
.
mj_h
-
self
.
shoppingAndRecordBackview
.
mj_y
-
self
.
shoppingAndRecordBackview
.
mj_h
);
self
.
orderRecord
.
view
.
frame
=
CGRectMake
(
0
,
self
.
shoppingAndRecordBackview
.
mj_y
+
self
.
shoppingAndRecordBackview
.
mj_h
,
self
.
controllerBackgroundView
.
mj_w
,
self
.
controllerBackgroundView
.
mj_h
-
self
.
shoppingAndRecordBackview
.
mj_y
-
self
.
shoppingAndRecordBackview
.
mj_h
);
}
#pragma mark - 切换子视图
...
...
Class/GuideIntegralViewController.h
0 → 100644
View file @
e2f9c05f
//
// GuideIntegralViewController.h
// Lighting
//
// Created by 曹云霄 on 2016/11/16.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "BaseViewController.h"
@interface
GuideIntegralViewController
:
BaseViewController
/**
导购头像
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UIImageView
*
guideHeaderView
;
/**
当前积分
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
currentIntegralLabel
;
/**
季度积分排行
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
quarterIntegralLabel
;
/**
年度积分排行
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
yearIntegralLabel
;
/**
积分明细
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UIView
*
integralDetailsView
;
@end
Class/GuideIntegralViewController.m
0 → 100644
View file @
e2f9c05f
//
// GuideIntegralViewController.m
// Lighting
//
// Created by 曹云霄 on 2016/11/16.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "GuideIntegralViewController.h"
#import "PaymentsViewController.h"
@interface
GuideIntegralViewController
()
@end
@implementation
GuideIntegralViewController
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
[
self
getIntegralDataAction
];
[
self
addChildViewController
];
}
#pragma mark - 获取积分数据
-
(
void
)
getIntegralDataAction
{
}
#pragma mark - 添加积分明细
-
(
void
)
addChildViewController
{
PaymentsViewController
*
payments
=
[[[
self
class
]
getMainStoryboardClass
]
instantiateViewControllerWithIdentifier
:
@"PaymentsViewController"
];
[
self
addChildViewController
:
payments
];
payments
.
view
.
frame
=
CGRectMake
(
0
,
50
,
self
.
integralDetailsView
.
mj_w
,
self
.
integralDetailsView
.
mj_h
-
50
);
[
self
.
integralDetailsView
addSubview
:
payments
.
view
];
}
#pragma mark - 礼品兑换
-
(
IBAction
)
exchangeButtonClick
:
(
UIButton
*
)
sender
{
}
-
(
void
)
didReceiveMemoryWarning
{
[
super
didReceiveMemoryWarning
];
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
@end
Class/LearningCenter/LearningCenterMain/LearningCenterMainViewController.m
View file @
e2f9c05f
...
...
@@ -7,6 +7,8 @@
//
#import "LearningCenterMainViewController.h"
#import "OnlineLearningViewController.h"
@interface
LearningCenterMainViewController
()
...
...
@@ -16,8 +18,53 @@
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
[
self
addGestureRecognizer
];
}
#pragma mark - 添加点击
-
(
void
)
addGestureRecognizer
{
[
self
.
comprehensiveDiscussionView
addGestureRecognizer
:[[
UITapGestureRecognizer
alloc
]
initWithTarget
:
self
action
:
@selector
(
comprehensiveDiscussionViewClickAction
:)]];
[
self
.
onlineLearningView
addGestureRecognizer
:[[
UITapGestureRecognizer
alloc
]
initWithTarget
:
self
action
:
@selector
(
onlineLearningViewClickAction
:)]];
[
self
.
breakthroughView
addGestureRecognizer
:[[
UITapGestureRecognizer
alloc
]
initWithTarget
:
self
action
:
@selector
(
breakthroughViewClickAction
:)]];
}
#pragma mark - 综合讨论
-
(
void
)
comprehensiveDiscussionViewClickAction
:
(
UITapGestureRecognizer
*
)
sender
{
}
#pragma mark - 在线学习
-
(
void
)
onlineLearningViewClickAction
:
(
UITapGestureRecognizer
*
)
sender
{
OnlineLearningViewController
*
onlineLearning
=
[[[
self
class
]
getLearningCenterStoryboardClass
]
instantiateViewControllerWithIdentifier
:
@"OnlineLearningViewController"
];
[
self
.
navigationController
pushViewController
:
onlineLearning
animated
:
YES
];
}
#pragma mark - 闯关
-
(
void
)
breakthroughViewClickAction
:
(
UITapGestureRecognizer
*
)
sender
{
}
-
(
void
)
didReceiveMemoryWarning
{
[
super
didReceiveMemoryWarning
];
}
...
...
Class/LearningCenter/OnlineLearning/OnlineLearningTableViewCell.h
View file @
e2f9c05f
...
...
@@ -8,6 +8,6 @@
#import <UIKit/UIKit.h>
@interface
OnlineLearningTableViewCell
:
UI
Table
ViewCell
@interface
OnlineLearningTableViewCell
:
UI
Collection
ViewCell
@end
Class/LearningCenter/OnlineLearning/OnlineLearningTableViewCell.m
View file @
e2f9c05f
...
...
@@ -15,10 +15,5 @@
// Initialization code
}
-
(
void
)
setSelected
:
(
BOOL
)
selected
animated
:
(
BOOL
)
animated
{
[
super
setSelected
:
selected
animated
:
animated
];
// Configure the view for the selected state
}
@end
Class/LearningCenter/OnlineLearning/OnlineLearningViewController.h
View file @
e2f9c05f
...
...
@@ -11,11 +11,12 @@
@interface
OnlineLearningViewController
:
BaseViewController
/**
学习模块列表
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UICollectionView
*
onlineLearningCollectionView
;
@property
(
weak
,
nonatomic
)
IBOutlet
UICollectionViewFlowLayout
*
onlineLearningFlowLayout
;
@end
Class/LearningCenter/OnlineLearning/OnlineLearningViewController.m
View file @
e2f9c05f
...
...
@@ -7,6 +7,7 @@
//
#import "OnlineLearningViewController.h"
#import "OnlineLearningTableViewCell.h"
@interface
OnlineLearningViewController
()
<
UICollectionViewDelegate
,
UICollectionViewDataSource
>
...
...
@@ -23,12 +24,29 @@
#pragma mark - UICollectionView
-
(
void
)
setUpCollectionView
{
self
.
onlineLearningFlowLayout
.
itemSize
=
CGSizeMake
((
ScreenWidth
-
100
)
/
4
.
0
,
((
ScreenWidth
-
100
)
/
4
.
0
-
50
));
self
.
onlineLearningFlowLayout
.
sectionInset
=
UIEdgeInsetsMake
(
20
,
20
,
20
,
20
);
self
.
onlineLearningFlowLayout
.
minimumLineSpacing
=
20
;
self
.
onlineLearningFlowLayout
.
minimumInteritemSpacing
=
20
;
}
#pragma mark -
#pragma mark - 学习模块数据
-
(
void
)
getLearningModuleData
{
}
#pragma mark - <UICollectionViewDelegate,UICollectionViewDataSource>
-
(
NSInteger
)
collectionView
:
(
UICollectionView
*
)
collectionView
numberOfItemsInSection
:
(
NSInteger
)
section
{
return
10
;
}
-
(
UICollectionViewCell
*
)
collectionView
:
(
UICollectionView
*
)
collectionView
cellForItemAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
OnlineLearningTableViewCell
*
learningCell
=
[
collectionView
dequeueReusableCellWithReuseIdentifier
:
@"OnlineLearningTableViewCell"
forIndexPath
:
indexPath
];
return
learningCell
;
}
-
(
void
)
didReceiveMemoryWarning
{
[
super
didReceiveMemoryWarning
];
...
...
Class/Login/LoginViewController.m
View file @
e2f9c05f
...
...
@@ -243,8 +243,8 @@
}
else
if
([
Name
isEqualToString
:
@"场景库"
])
{
selectedIndex
=
5
;
SceneLibraryViewController
*
sceneVC
=
[
SHARED_APPDELEGATE
.
allControllerArray
objectAtIndex_opple
:
5
];
selectedIndex
=
6
;
SceneLibraryViewController
*
sceneVC
=
[
SHARED_APPDELEGATE
.
allControllerArray
objectAtIndex_opple
:
6
];
sceneVC
.
conditionModel
.
styleEquals
=
nil
;
sceneVC
.
conditionModel
.
spaceEquals
=
nil
;
[
sceneVC
.
StyleButton
setTitle
:
@"风格"
forState
:
UIControlStateNormal
];
...
...
@@ -253,8 +253,8 @@
}
else
if
([
Name
isEqualToString
:
@"产品库"
])
{
selectedIndex
=
6
;
ProductLibraryViewController
*
productVC
=
[
SHARED_APPDELEGATE
.
allControllerArray
objectAtIndex_opple
:
6
];
selectedIndex
=
7
;
ProductLibraryViewController
*
productVC
=
[
SHARED_APPDELEGATE
.
allControllerArray
objectAtIndex_opple
:
7
];
//默认加载全部数据
productVC
.
barcode
=
nil
;
productVC
.
selectedCode
=
nil
;
...
...
@@ -268,8 +268,8 @@
[
productVC
.
productCollectionView
.
mj_header
beginRefreshing
];
}
else
if
([
Name
isEqualToString
:
@"所有客户"
])
{
selectedIndex
=
7
;
AllCustomerViewController
*
AllcustomerVC
=
[
SHARED_APPDELEGATE
.
allControllerArray
objectAtIndex_opple
:
7
];
selectedIndex
=
8
;
AllCustomerViewController
*
AllcustomerVC
=
[
SHARED_APPDELEGATE
.
allControllerArray
objectAtIndex_opple
:
8
];
AllcustomerVC
.
searchTextfield
.
text
=
nil
;
AllcustomerVC
.
conditionModel
.
resellerCodeEquals
=
nil
;
AllcustomerVC
.
conditionModel
.
mobileEquals
=
nil
;
...
...
@@ -279,8 +279,8 @@
[
AllcustomerVC
.
allCustomerTableview
.
mj_header
beginRefreshing
];
}
else
if
([
Name
isEqualToString
:
@"客户订单"
])
{
selectedIndex
=
8
;
CustomerOrderViewController
*
customerVC
=
[
SHARED_APPDELEGATE
.
allControllerArray
objectAtIndex_opple
:
8
];
selectedIndex
=
9
;
CustomerOrderViewController
*
customerVC
=
[
SHARED_APPDELEGATE
.
allControllerArray
objectAtIndex_opple
:
9
];
customerVC
.
searchCustomerOrder
.
text
=
nil
;
[
customerVC
.
StyleButton
setTitle
:
@"全部订单"
forState
:
UIControlStateNormal
];
customerVC
.
model
.
consumerNameOrMobileEquals
=
nil
;
...
...
@@ -288,11 +288,11 @@
[
customerVC
.
customerOrderTableView
.
mj_header
beginRefreshing
];
}
else
if
([
Name
isEqualToString
:
@"学习中心"
])
{
selectedIndex
=
9
;
selectedIndex
=
10
;
}
else
if
([
Name
isEqualToString
:
@"关于"
])
{
selectedIndex
=
1
0
;
selectedIndex
=
1
1
;
}
self
.
customtabbar
.
selectedIndex
=
selectedIndex
;
}
...
...
Class/OrderdetailsViewController.m
View file @
e2f9c05f
...
...
@@ -374,7 +374,8 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
/// 我知道了
}
else
if
(
indexPath
.
row
==
0
)
{
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
OPENCONTROLLER
object
:
@
(
3
)];
SHARED_APPDELEGATE
.
tabBarController
.
selectedIndex
=
3
;
[
SHARED_APPDELEGATE
.
tabBarController
dismissViewControllerAnimated
:
YES
completion
:
nil
];
}
}];
success
.
preferredContentSize
=
CGSizeMake
(
315
,
320
);
...
...
Class/RebateViewController.m
View file @
e2f9c05f
...
...
@@ -153,14 +153,14 @@
/// 我的卡劵
CardViewController
*
cardVc
=
[[[
self
class
]
getMainStoryboardClass
]
instantiateViewControllerWithIdentifier
:
@"CardViewController"
];
[
self
addChildViewController
:
cardVc
];
cardVc
.
view
.
frame
=
CGRectMake
(
10
,
40
,
(
self
.
cardBackgroundView
.
mj_w
-
20
)
,
self
.
cardBackgroundView
.
mj_h
-
50
);
cardVc
.
view
.
frame
=
CGRectMake
(
0
,
40
,
self
.
cardBackgroundView
.
mj_w
,
self
.
cardBackgroundView
.
mj_h
-
50
);
[
self
.
cardBackgroundView
addSubview
:
cardVc
.
view
];
/// 我的抽奖
LuckyDrawDetailsViewController
*
draw
=
[[[
self
class
]
getMainStoryboardClass
]
instantiateViewControllerWithIdentifier
:
@"LuckyDrawDetailsViewController"
];
[
self
addChildViewController
:
draw
];
draw
.
drawValue
=
0
;
draw
.
view
.
frame
=
CGRectMake
(
10
,
40
,
(
self
.
drawBackgroundView
.
mj_w
-
20
)
,
self
.
drawBackgroundView
.
mj_h
-
50
);
draw
.
view
.
frame
=
CGRectMake
(
0
,
40
,
self
.
drawBackgroundView
.
mj_w
,
self
.
drawBackgroundView
.
mj_h
-
50
);
[
self
.
drawBackgroundView
addSubview
:
draw
.
view
];
}
...
...
Class/Tabbar/CustomTabbarController.m
View file @
e2f9c05f
...
...
@@ -24,6 +24,7 @@
#import "RebateViewController.h"
#import <AVFoundation/AVFoundation.h>
#import "AnnouncementViewController.h"
#import "GuideIntegralViewController.H"
@interface
CustomTabbarController
()
<
TabbarButtonClickdelegate
,
ChangpasswordDelegate
,
CancelButtondelegate
,
UITextFieldDelegate
>
...
...
@@ -57,7 +58,7 @@
{
if
(
_identifierArray
==
nil
)
{
_identifierArray
=
[
NSArray
arrayWithObjects
:
@"SearchViewController"
,
@"ShoppingViewController"
,
@"ClientViewController"
,
@"RebateViewController"
,
@"AnnouncementViewController"
,
@"SceneLibraryViewController"
,
@"ProductLibraryViewController"
,
@"AllCustomerViewController"
,
@"CustomerOrderViewController"
,
@"LearningCenterMainViewController"
,
@"AboutViewController"
,
nil
];
_identifierArray
=
[
NSArray
arrayWithObjects
:
@"SearchViewController"
,
@"ShoppingViewController"
,
@"ClientViewController"
,
@"RebateViewController"
,
@"
GuideIntegralViewController"
,
@"
AnnouncementViewController"
,
@"SceneLibraryViewController"
,
@"ProductLibraryViewController"
,
@"AllCustomerViewController"
,
@"CustomerOrderViewController"
,
@"LearningCenterMainViewController"
,
@"AboutViewController"
,
nil
];
}
return
_identifierArray
;
}
...
...
@@ -114,8 +115,6 @@
[
self
.
tabBar
addSubview
:
self
.
toolview
];
//显示体验中心
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
ShowFollowHeart
:
)
name
:
OPENFOLLOWHEARTVC
object
:
nil
];
//打开相应控制器
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
openControllerWithIndex
:
)
name
:
OPENCONTROLLER
object
:
nil
];
}
...
...
@@ -133,6 +132,9 @@
}
else
if
([
controllString
isEqualToString
:
@"LearningCenterMainViewController"
])
{
// 学习中心
storyboard
=
[
BaseViewController
getLearningCenterStoryboardClass
];
}
else
if
([
controllString
isEqualToString
:
@"GuideIntegralViewController"
])
{
// 积分
storyboard
=
[
BaseViewController
getGuideIntegralStoryboardClass
];
}
else
{
storyboard
=
[
BaseViewController
getMainStoryboardClass
];
}
...
...
@@ -143,6 +145,7 @@
}
self
.
viewControllers
=
self
.
vcArray
;
SHARED_APPDELEGATE
.
allControllerArray
=
controllerArray
;
SHARED_APPDELEGATE
.
tabBarController
=
self
;
self
.
selectedIndex
=
2
;
}
...
...
@@ -177,7 +180,7 @@
case
101
:
{
self
.
selectedIndex
=
4
;
self
.
selectedIndex
=
5
;
}
break
;
...
...
@@ -366,12 +369,5 @@
}
}
#pragma mark - 打开相应的控制器
-
(
void
)
openControllerWithIndex
:
(
NSNotification
*
)
sender
{
NSInteger
index
=
[
sender
.
object
integerValue
];
[
self
dismissViewControllerAnimated
:
NO
completion
:
nil
];
self
.
selectedIndex
=
index
;
}
@end
Class/Tabbar/Toolview.m
View file @
e2f9c05f
...
...
@@ -93,7 +93,7 @@
}
}
//创建下划线
CustomButton
*
Newbutton
=
(
CustomButton
*
)[
self
viewWithTag
:
10
2
];
CustomButton
*
Newbutton
=
(
CustomButton
*
)[
self
viewWithTag
:
10
3
];
self
.
underlineView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
Newbutton
.
frame
.
origin
.
x
+
(
ButtonWIDTH
-
50
)
/
2
,
ButtonRIGHT
+
8
,
50
,
2
)];
SHARED_APPDELEGATE
.
lineView
=
self
.
underlineView
;
_underlineView
.
backgroundColor
=
kMainBlueColor
;
...
...
Class/UserViewController.h
View file @
e2f9c05f
...
...
@@ -47,42 +47,31 @@
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UIButton
*
switchUser
;
/**
* 注销
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UIButton
*
cancellationButton
;
/**
* 修改密码
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UIButton
*
changePassword
;
/**
* 用户名背景
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UIView
*
userNameBack
;
/**
* 密码背景
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UIView
*
passWordBack
;
/**
*
返利余额
背景
*
我的账户
背景
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UIView
*
rebateBackView
;
/**
* 返利余额
我的积分
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
rebateLabe
;
@property
(
weak
,
nonatomic
)
IBOutlet
UIView
*
guideIntegralView
;
...
...
Class/UserViewController.m
View file @
e2f9c05f
...
...
@@ -21,6 +21,7 @@
[
super
viewDidLoad
];
[
self
uiConfigAction
];
[
self
addGestureRecognizer
];
}
#pragma mark -UI
...
...
@@ -44,34 +45,37 @@
self
.
rebateBackView
.
layer
.
borderWidth
=
1
.
0
f
;
self
.
rebateBackView
.
layer
.
borderColor
=
kMainBlueColor
.
CGColor
;
self
.
rebateBackView
.
layer
.
cornerRadius
=
20
;
[
self
.
rebateBackView
addGestureRecognizer
:[[
UITapGestureRecognizer
alloc
]
initWithTarget
:
self
action
:
@selector
(
rebateViewClickAction
:)]];
self
.
guideIntegralView
.
layer
.
masksToBounds
=
YES
;
self
.
guideIntegralView
.
layer
.
borderWidth
=
1
.
0
f
;
self
.
guideIntegralView
.
layer
.
borderColor
=
kMainBlueColor
.
CGColor
;
self
.
guideIntegralView
.
layer
.
cornerRadius
=
20
;
self
.
userName
.
text
=
[
Shoppersmanager
manager
].
userNameString
;
self
.
passWord
.
text
=
[
Shoppersmanager
manager
].
passWordString
;
self
.
userHeader
.
userInteractionEnabled
=
YES
;
NSString
*
headerurl
=
[
Shoppersmanager
manager
].
Shoppers
.
employee
.
picture
;
[
self
.
userHeader
sd_setImageWithURL
:[
NSURL
URLWithString
:
headerurl
]
placeholderImage
:
ReplaceImage
];
[
self
.
userHeader
addGestureRecognizer
:[[
UITapGestureRecognizer
alloc
]
initWithTarget
:
self
action
:
@selector
(
userHeaderClickAction
:)]];
}
#pragma mark -
查询返利金额
-
(
void
)
queryShoppersCommission
#pragma mark -
添加添加手势
-
(
void
)
addGestureRecognizer
{
WS
(
weakSelf
);
[[
NetworkRequestClassManager
Manager
]
NetworkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
SERVERREQUESTURL
(
SHOPPERSCOMMISSION
),[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
]
WithCallClass
:
weakSelf
WithRequestType
:
1
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
// self.rebateLabe.text = [NSString stringWithFormat:@"¥%.2f",[returnValue[@"data"] floatValue]];
}
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
}
WithFailureBlock
:^
(
id
error
)
{
}];
[
self
.
userHeader
addGestureRecognizer
:[[
UITapGestureRecognizer
alloc
]
initWithTarget
:
self
action
:
@selector
(
userHeaderClickAction
:)]];
[
self
.
rebateBackView
addGestureRecognizer
:[[
UITapGestureRecognizer
alloc
]
initWithTarget
:
self
action
:
@selector
(
rebateViewClickAction
:)]];
[
self
.
guideIntegralView
addGestureRecognizer
:[[
UITapGestureRecognizer
alloc
]
initWithTarget
:
self
action
:
@selector
(
guideIntegralViewClickAction
:)]];
}
#pragma mark -我的账户点击
-
(
void
)
rebateViewClickAction
:
(
UITapGestureRecognizer
*
)
tap
{
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
OPENCONTROLLER
object
:
@
(
3
)];
SHARED_APPDELEGATE
.
tabBarController
.
selectedIndex
=
3
;
[
SHARED_APPDELEGATE
.
tabBarController
dismissViewControllerAnimated
:
YES
completion
:
nil
];
}
#pragma mark - 我的积分
-
(
void
)
guideIntegralViewClickAction
:
(
UITapGestureRecognizer
*
)
sender
{
SHARED_APPDELEGATE
.
tabBarController
.
selectedIndex
=
4
;
[
SHARED_APPDELEGATE
.
tabBarController
dismissViewControllerAnimated
:
YES
completion
:
nil
];
}
#pragma mark -用户头像点击
...
...
@@ -121,10 +125,10 @@
[
DeviceDirectionManager
instance
].
isHorizontal
=
NO
;
[
self
dismissViewControllerAnimated
:
YES
completion
:
nil
];
UIImage
*
Headimage
=
[
info
objectForKey
:
UIImagePickerControllerOriginalImage
];
__weak
typeof
(
self
)
weskSelf
=
self
;
WS
(
weakSelf
)
;
//修改并保存头像
[
self
uploadUserHeader
:
Headimage
completeBlock
:
^
(
NSString
*
string
)
{
we
s
kSelf
.
userHeader
.
image
=
Headimage
;
we
a
kSelf
.
userHeader
.
image
=
Headimage
;
[
Shoppersmanager
manager
].
Shoppers
.
employee
.
picture
=
string
;
}];
}
...
...
Class/UserViewController.xib
View file @
e2f9c05f
<?xml version="1.0" encoding="UTF-8"
standalone="no"
?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.iPad.XIB"
version=
"3.0"
toolsVersion=
"
9531"
systemVersion=
"15G31"
targetRuntime=
"iOS.CocoaTouch.iPad"
propertyAccessControl=
"none
"
>
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.iPad.XIB"
version=
"3.0"
toolsVersion=
"
11201"
systemVersion=
"16B2555"
targetRuntime=
"iOS.CocoaTouch.iPad"
propertyAccessControl=
"none"
colorMatched=
"YES
"
>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"9529"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"11161"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"UserViewController"
>
<connections>
<outlet
property=
"changePassword"
destination=
"MmS-T7-ieX"
id=
"FlY-Na-P0f"
/>
<outlet
property=
"guideIntegralView"
destination=
"hBG-h5-KdM"
id=
"nRF-A6-zyP"
/>
<outlet
property=
"passWord"
destination=
"iPT-ib-2cp"
id=
"H67-mf-uqf"
/>
<outlet
property=
"passWordBack"
destination=
"6JT-hH-lKv"
id=
"af3-IA-3s3"
/>
<outlet
property=
"rebateBackView"
destination=
"3Kh-CF-MvS"
id=
"dhv-OU-Rc9"
/>
<outlet
property=
"rebateLabe"
destination=
"Rhj-kj-q1f"
id=
"5oU-hl-I1A"
/>
<outlet
property=
"switchUser"
destination=
"7l0-kF-pfD"
id=
"vc3-Kf-zAK"
/>
<outlet
property=
"userHeader"
destination=
"tuQ-DW-D80"
id=
"aWE-cf-oQH"
/>
<outlet
property=
"userName"
destination=
"cgR-tl-g1N"
id=
"qeK-vw-Mf8"
/>
...
...
@@ -24,101 +25,125 @@
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"矢量智能对象"
id=
"tuQ-DW-D80"
>
<
rect
key=
"frame"
x=
"174"
y
=
"18"
width=
"80"
height=
"80"
/>
<
frame
key=
"frameInset"
minX=
"174"
minY
=
"18"
width=
"80"
height=
"80"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
</imageView>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"User-Profile"
id=
"HTl-6m-Nx6"
>
<
rect
key=
"frame"
x=
"10"
y
=
"28"
width=
"15"
height=
"15"
/>
<
frame
key=
"frameInset"
minX=
"10"
minY
=
"28"
width=
"15"
height=
"15"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
</imageView>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"Lock-0"
id=
"V66-r9-9Q2"
>
<
rect
key=
"frame"
x=
"10"
y
=
"69"
width=
"15"
height=
"15"
/>
<
frame
key=
"frameInset"
minX=
"10"
minY
=
"69"
width=
"15"
height=
"15"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
</imageView>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
id=
"7l0-kF-pfD"
>
<
rect
key=
"frame"
x=
"10"
y
=
"125"
width=
"110"
height=
"30"
/>
<
frame
key=
"frameInset"
minX=
"10"
minY
=
"125"
width=
"110"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.34901960780000002"
green=
"0.67450980390000004"
blue=
"0.86274509799999999"
alpha=
"1"
colorSpace=
"c
alibrated
RGB"
/>
<color
key=
"backgroundColor"
red=
"0.34901960780000002"
green=
"0.67450980390000004"
blue=
"0.86274509799999999"
alpha=
"1"
colorSpace=
"c
ustom"
customColorSpace=
"s
RGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<state
key=
"normal"
title=
"切换账户"
>
<color
key=
"titleColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite
"
/>
<color
key=
"titleColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB
"
/>
</state>
<connections>
<action
selector=
"cancellationButtonClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"wTq-e7-u0Q"
/>
</connections>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
id=
"MmS-T7-ieX"
>
<
rect
key=
"frame"
x=
"142"
y
=
"125"
width=
"110"
height=
"30"
/>
<
frame
key=
"frameInset"
minX=
"142"
minY
=
"125"
width=
"110"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<state
key=
"normal"
title=
"修改密码"
>
<color
key=
"titleColor"
white=
"0.33333333333333331"
alpha=
"1"
colorSpace=
"calibratedWhite
"
/>
<color
key=
"titleColor"
red=
"0.33333333333333331"
green=
"0.33333333333333331"
blue=
"0.33333333333333331"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB
"
/>
</state>
<connections>
<action
selector=
"ChangPasswordButtonClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"FcS-nR-vDN"
/>
</connections>
</button>
<view
contentMode=
"scaleToFill"
id=
"6JT-hH-lKv"
>
<
rect
key=
"frame"
x=
"34"
y
=
"62"
width=
"130"
height=
"30"
/>
<
frame
key=
"frameInset"
minX=
"34"
minY
=
"62"
width=
"130"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<textField
opaque=
"NO"
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"密码"
minimumFontSize=
"17"
id=
"iPT-ib-2cp"
>
<
rect
key=
"frame"
x=
"10"
y=
"0.
0"
width=
"120"
height=
"30"
/>
<
frame
key=
"frameInset"
minX=
"1
0"
width=
"120"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"calibratedWhite
"
/>
<color
key=
"backgroundColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"sRGB
"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"12"
/>
<textInputTraits
key=
"textInputTraits"
secureTextEntry=
"YES"
/>
</textField>
</subviews>
<color
key=
"backgroundColor"
red=
"0.94117647058823528"
green=
"0.93725490196078431"
blue=
"0.96078431372549022"
alpha=
"1"
colorSpace=
"c
alibrated
RGB"
/>
<color
key=
"backgroundColor"
red=
"0.94117647058823528"
green=
"0.93725490196078431"
blue=
"0.96078431372549022"
alpha=
"1"
colorSpace=
"c
ustom"
customColorSpace=
"s
RGB"
/>
</view>
<view
contentMode=
"scaleToFill"
id=
"t40-Q6-t1i"
>
<
rect
key=
"frame"
x=
"34"
y
=
"21"
width=
"130"
height=
"30"
/>
<
frame
key=
"frameInset"
minX=
"34"
minY
=
"21"
width=
"130"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<textField
opaque=
"NO"
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"用户名"
textAlignment=
"natural"
minimumFontSize=
"17"
id=
"cgR-tl-g1N"
>
<
rect
key=
"frame"
x=
"10"
y=
"0.
0"
width=
"120"
height=
"30"
/>
<
frame
key=
"frameInset"
minX=
"1
0"
width=
"120"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"calibratedWhite
"
/>
<color
key=
"backgroundColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"sRGB
"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"12"
/>
<textInputTraits
key=
"textInputTraits"
/>
</textField>
</subviews>
<color
key=
"backgroundColor"
red=
"0.94117647058823528"
green=
"0.93725490196078431"
blue=
"0.96078431372549022"
alpha=
"1"
colorSpace=
"c
alibrated
RGB"
/>
<color
key=
"backgroundColor"
red=
"0.94117647058823528"
green=
"0.93725490196078431"
blue=
"0.96078431372549022"
alpha=
"1"
colorSpace=
"c
ustom"
customColorSpace=
"s
RGB"
/>
</view>
<view
contentMode=
"scaleToFill"
id=
"NsN-9d-1WJ"
>
<
rect
key=
"frame"
x=
"10"
y=
"166"
width=
"240"
height=
"1
"
/>
<
frame
key=
"frameInset"
minX=
"10"
height=
"1"
maxX=
"10"
maxY=
"63
"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMinY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.81568627450980391"
green=
"0.81960784313725488"
blue=
"0.82352941176470584"
alpha=
"1"
colorSpace=
"c
alibrated
RGB"
/>
<color
key=
"backgroundColor"
red=
"0.81568627450980391"
green=
"0.81960784313725488"
blue=
"0.82352941176470584"
alpha=
"1"
colorSpace=
"c
ustom"
customColorSpace=
"s
RGB"
/>
</view>
<view
contentMode=
"scaleToFill"
id=
"3Kh-CF-MvS"
>
<
rect
key=
"frame"
x=
"20"
y=
"175"
width=
"220"
height=
"40
"
/>
<view
contentMode=
"scaleToFill"
misplaced=
"YES"
id=
"3Kh-CF-MvS"
>
<
frame
key=
"frameInset"
minX=
"10"
height=
"35"
maxX=
"140"
maxY=
"14
"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMinY=
"YES"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"my
account"
id=
"7AA-eS-ui1"
>
<
rect
key=
"frame"
x=
"59"
y=
"8"
width=
"25"
height=
"25
"
/>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
image=
"
account"
id=
"7AA-eS-ui1"
>
<
frame
key=
"frameInset"
minX=
"11"
minY=
"7"
width=
"20"
height=
"20
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"我的账户"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"Rhj-kj-q1f"
>
<
rect
key=
"frame"
x=
"95"
y=
"10
"
width=
"65"
height=
"21"
/>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"我的账户"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"Rhj-kj-q1f"
>
<
frame
key=
"frameInset"
minX=
"39"
minY=
"7
"
width=
"65"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"1
5
"
/>
<color
key=
"textColor"
red=
"0.23137254900000001"
green=
"0.52941176469999995"
blue=
"0.75294117650000003"
alpha=
"1"
colorSpace=
"c
alibrated
RGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"1
3
"
/>
<color
key=
"textColor"
red=
"0.23137254900000001"
green=
"0.52941176469999995"
blue=
"0.75294117650000003"
alpha=
"1"
colorSpace=
"c
ustom"
customColorSpace=
"s
RGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
red=
"0.94117647058823528"
green=
"0.93725490196078431"
blue=
"0.96078431372549022"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<color
key=
"backgroundColor"
red=
"0.94117647058823528"
green=
"0.93725490196078431"
blue=
"0.96078431372549022"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</view>
<view
contentMode=
"scaleToFill"
misplaced=
"YES"
id=
"hBG-h5-KdM"
>
<frame
key=
"frameInset"
minX=
"138"
height=
"35"
maxX=
"12"
maxY=
"14"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMinY=
"YES"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
image=
"myaccount"
id=
"5hX-3h-8e3"
>
<frame
key=
"frameInset"
minX=
"11"
minY=
"7"
width=
"20"
height=
"20"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"我的积分"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"M8U-yz-8MN"
>
<frame
key=
"frameInset"
minX=
"39"
minY=
"7"
width=
"65"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
red=
"0.23137254900000001"
green=
"0.52941176469999995"
blue=
"0.75294117650000003"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
red=
"0.94117647059999998"
green=
"0.93725490199999995"
blue=
"0.96078431369999995"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</view>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"calibratedWhite
"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB
"
/>
<freeformSimulatedSizeMetrics
key=
"simulatedDestinationMetrics"
/>
<point
key=
"canvasLocation"
x=
"244"
y=
"328"
/>
</view>
</objects>
<resources>
<image
name=
"Lock-0"
width=
"17"
height=
"21"
/>
<image
name=
"User-Profile"
width=
"17"
height=
"17"
/>
<image
name=
"myaccount"
width=
"15"
height=
"16"
/>
<image
name=
"Lock-0"
width=
"17"
height=
"20"
/>
<image
name=
"User-Profile"
width=
"16"
height=
"17"
/>
<image
name=
"account"
width=
"16"
height=
"16"
/>
<image
name=
"myaccount"
width=
"14"
height=
"15"
/>
<image
name=
"矢量智能对象"
width=
"110"
height=
"110"
/>
</resources>
<simulatedMetricsContainer
key=
"defaultSimulatedMetrics"
>
<simulatedStatusBarMetrics
key=
"statusBar"
/>
<simulatedOrientationMetrics
key=
"orientation"
/>
<simulatedScreenMetrics
key=
"destination"
/>
</simulatedMetricsContainer>
</document>
Lighting.xcodeproj/project.pbxproj
View file @
e2f9c05f
...
...
@@ -78,6 +78,7 @@
294BFDD51D47227900BFD53F
/* ExperienceCentreViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
294BFDD41D47227900BFD53F
/* ExperienceCentreViewController.m */
;
};
294CF0EC1CEDCF480055F1D8
/* PromptinformationView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
294CF0EB1CEDCF480055F1D8
/* PromptinformationView.m */
;
};
294CF0EE1CEDCF540055F1D8
/* PromptinformationView.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
294CF0ED1CEDCF540055F1D8
/* PromptinformationView.xib */
;
};
295DE56C1DDC5DFA00E27725
/* GuideIntegralViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
295DE56B1DDC5DFA00E27725
/* GuideIntegralViewController.m */
;
};
295DEA9C1DB70FB9006ED4A6
/* RightControlTableViewCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
295DEA9B1DB70FB9006ED4A6
/* RightControlTableViewCell.m */
;
};
295DEA9F1DB71EFC006ED4A6
/* RightControlSectionView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
295DEA9E1DB71EFC006ED4A6
/* RightControlSectionView.m */
;
};
295DEAA71DB756DA006ED4A6
/* CardCollectionViewCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
295DEAA61DB756DA006ED4A6
/* CardCollectionViewCell.m */
;
};
...
...
@@ -157,6 +158,7 @@
29C584ED1CDA429500C6F677
/* ProductDetailsViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29C584EC1CDA429500C6F677
/* ProductDetailsViewController.m */
;
};
29CB35421CFF0FB60061A5F3
/* ScreeningCollectionViewCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29CB35411CFF0FB60061A5F3
/* ScreeningCollectionViewCell.m */
;
};
29CCA43C1CF7ED6100BC19DD
/* SelectedTableViewCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29CCA43B1CF7ED6100BC19DD
/* SelectedTableViewCell.m */
;
};
29CF0EC81DDC564900A37171
/* GuideIntegral.storyboard in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29CF0EC71DDC564900A37171
/* GuideIntegral.storyboard */
;
};
29D260F51CEEAE2800A9787D
/* FullScreenViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29D260F41CEEAE2800A9787D
/* FullScreenViewController.m */
;
};
29D260F81CEEAF2D00A9787D
/* FullScreenViewCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29D260F71CEEAF2D00A9787D
/* FullScreenViewCell.m */
;
};
29D260FB1CEECDFF00A9787D
/* goodsDetailsTableViewCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29D260FA1CEECDFF00A9787D
/* goodsDetailsTableViewCell.m */
;
};
...
...
@@ -326,6 +328,8 @@
294CF0EA1CEDCF480055F1D8
/* PromptinformationView.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
PromptinformationView.h
;
sourceTree
=
"<group>"
;
};
294CF0EB1CEDCF480055F1D8
/* PromptinformationView.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
PromptinformationView.m
;
sourceTree
=
"<group>"
;
};
294CF0ED1CEDCF540055F1D8
/* PromptinformationView.xib */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
file.xib
;
path
=
PromptinformationView.xib
;
sourceTree
=
"<group>"
;
};
295DE56A1DDC5DFA00E27725
/* GuideIntegralViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
GuideIntegralViewController.h
;
sourceTree
=
"<group>"
;
};
295DE56B1DDC5DFA00E27725
/* GuideIntegralViewController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
GuideIntegralViewController.m
;
sourceTree
=
"<group>"
;
};
295DEA9A1DB70FB9006ED4A6
/* RightControlTableViewCell.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
RightControlTableViewCell.h
;
sourceTree
=
"<group>"
;
};
295DEA9B1DB70FB9006ED4A6
/* RightControlTableViewCell.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
RightControlTableViewCell.m
;
sourceTree
=
"<group>"
;
};
295DEA9D1DB71EFC006ED4A6
/* RightControlSectionView.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
RightControlSectionView.h
;
sourceTree
=
"<group>"
;
};
...
...
@@ -481,6 +485,7 @@
29CB35411CFF0FB60061A5F3
/* ScreeningCollectionViewCell.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
ScreeningCollectionViewCell.m
;
sourceTree
=
"<group>"
;
};
29CCA43A1CF7ED6100BC19DD
/* SelectedTableViewCell.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
SelectedTableViewCell.h
;
sourceTree
=
"<group>"
;
};
29CCA43B1CF7ED6100BC19DD
/* SelectedTableViewCell.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
SelectedTableViewCell.m
;
sourceTree
=
"<group>"
;
};
29CF0EC71DDC564900A37171
/* GuideIntegral.storyboard */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
file.storyboard
;
path
=
GuideIntegral.storyboard
;
sourceTree
=
"<group>"
;
};
29D260F31CEEAE2800A9787D
/* FullScreenViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
FullScreenViewController.h
;
sourceTree
=
"<group>"
;
};
29D260F41CEEAE2800A9787D
/* FullScreenViewController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
FullScreenViewController.m
;
sourceTree
=
"<group>"
;
};
29D260F61CEEAF2D00A9787D
/* FullScreenViewCell.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
FullScreenViewCell.h
;
sourceTree
=
"<group>"
;
};
...
...
@@ -1006,6 +1011,15 @@
name
=
PromptinformationView
;
sourceTree
=
"<group>"
;
};
295DE5691DDC5DBD00E27725
/* GuideIntegral */
=
{
isa
=
PBXGroup
;
children
=
(
295DE56A1DDC5DFA00E27725
/* GuideIntegralViewController.h */
,
295DE56B1DDC5DFA00E27725
/* GuideIntegralViewController.m */
,
);
name
=
GuideIntegral
;
sourceTree
=
"<group>"
;
};
295DEA951DB70F49006ED4A6
/* views */
=
{
isa
=
PBXGroup
;
children
=
(
...
...
@@ -1137,6 +1151,7 @@
294BFDD01D47225A00BFD53F
/* OppleMain.storyboard */
,
29C0E73C1DD9824E006CCCF9
/* Announcement.storyboard */
,
29C0E73E1DD98335006CCCF9
/* LearningCenter.storyboard */
,
29CF0EC71DDC564900A37171
/* GuideIntegral.storyboard */
,
29706DA41CD082990003C412
/* Supporting Files */
,
);
path
=
Lighting
;
...
...
@@ -1262,6 +1277,7 @@
29EC33171CE023D5005F0C13
/* ChangePasswordViewController.h */
,
29EC33181CE023D5005F0C13
/* ChangePasswordViewController.m */
,
29EC33191CE023D5005F0C13
/* ChangePasswordViewController.xib */
,
295DE5691DDC5DBD00E27725
/* GuideIntegral */
,
29B3EE6E1DCE15EC0065FCCF
/* MyLuckyDraw */
,
295DEAA01DB7562A006ED4A6
/* CardStock */
,
2916A73B1D70230600644C8C
/* RebateVC */
,
...
...
@@ -1901,6 +1917,7 @@
29BFBD911CE44BC200C238FB
/* goodsDetailsSectionview.xib in Resources */
,
29C0E73F1DD98335006CCCF9
/* LearningCenter.storyboard in Resources */
,
29D260FD1CEED53400A9787D
/* goodsDetailsTableViewCell.xib in Resources */
,
29CF0EC81DDC564900A37171
/* GuideIntegral.storyboard in Resources */
,
29807C621CD20C2A00F111B8
/* Images.xcassets in Resources */
,
29834EB61CDF1EB6001A484F
/* screeningSecondView.xib in Resources */
,
299249461CDB51C800786B1E
/* ModifyShippingAddressView.xib in Resources */
,
...
...
@@ -2110,6 +2127,7 @@
044708611CD7C1E800555827
/* MainSetViewController.m in Sources */
,
29E28CE81CE0B91B00812A55
/* HENLENSONG.m in Sources */
,
299249441CDB51B100786B1E
/* ModifyShippingAddressView.m in Sources */
,
295DE56C1DDC5DFA00E27725
/* GuideIntegralViewController.m in Sources */
,
2906B5D71CD89246000849B4
/* ClientDetailsTableViewCell.m in Sources */
,
29BB27801CD9DFD7009A0813
/* AboutViewController.m in Sources */
,
2903F93D1DBE57F4003CC6B1
/* JDEcardViewController.m in Sources */
,
...
...
Lighting/AppDelegate.h
View file @
e2f9c05f
...
...
@@ -12,6 +12,7 @@
#import "UMSocialWechatHandler.h"
#import "UMSocialSinaSSOHandler.h"
#import "UMSocialQQHandler.h"
#import "CustomTabbarController.h"
@interface
AppDelegate
:
UIResponder
<
UIApplicationDelegate
>
...
...
@@ -63,5 +64,10 @@
*/
@property
(
nonatomic
,
strong
)
NSArray
*
productArray
;
/**
自定义CustomTabbarController
*/
@property
(
nonatomic
,
strong
)
CustomTabbarController
*
tabBarController
;
@end
Lighting/Assets.xcassets/AppIcon.appiconset/Contents.json
View file @
e2f9c05f
{
"images"
:
[
{
"idiom"
:
"ipad"
,
"size"
:
"20x20"
,
"scale"
:
"1x"
},
{
"idiom"
:
"ipad"
,
"size"
:
"20x20"
,
"scale"
:
"2x"
},
{
"size"
:
"29x29"
,
"idiom"
:
"ipad"
,
...
...
Lighting/GuideIntegral.storyboard
0 → 100644
View file @
e2f9c05f
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"11201"
systemVersion=
"16B2555"
targetRuntime=
"iOS.CocoaTouch.iPad"
propertyAccessControl=
"none"
colorMatched=
"YES"
>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"11161"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<scenes>
<!--Guide Integral View Controller-->
<scene
sceneID=
"kcb-Gb-L1Q"
>
<objects>
<viewController
storyboardIdentifier=
"GuideIntegralViewController"
id=
"yKS-hT-LhA"
customClass=
"GuideIntegralViewController"
sceneMemberID=
"viewController"
>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"MCq-MI-wm3"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"1024"
height=
"768"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<view
contentMode=
"scaleToFill"
misplaced=
"YES"
id=
"6Yy-Ao-XPR"
>
<frame
key=
"frameInset"
minX=
"23"
minY=
"80"
height=
"90"
maxX=
"23"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
id=
"ehM-sk-qnE"
>
<frame
key=
"frameInset"
minX=
"1.10%"
minY=
"51.28%"
width=
"70.5"
height=
"70.5"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"当前积分"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"W9n-sx-VVL"
>
<frame
key=
"frameInset"
minX=
"11.30%"
minY=
"31.69%"
width=
"9.36%"
height=
"19"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
red=
"0.66666666669999997"
green=
"0.66666666669999997"
blue=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"12233300"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"luv-aV-HGH"
>
<frame
key=
"frameInset"
minX=
"11.30%"
minY=
"68.34%"
width=
"13.91%"
height=
"20.5"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"17"
/>
<color
key=
"textColor"
red=
"0.98039215690000003"
green=
"0.32156862749999998"
blue=
"0.050980392159999999"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
misplaced=
"YES"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
id=
"J4F-f5-GIu"
>
<frame
key=
"frameInset"
minY=
"28"
width=
"110"
height=
"35"
maxX=
"22"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.34901960780000002"
green=
"0.67450980390000004"
blue=
"0.86274509799999999"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<state
key=
"normal"
title=
"礼品兑换"
>
<color
key=
"titleColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"number"
keyPath=
"cornerRadius"
>
<real
key=
"value"
value=
"5"
/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action
selector=
"exchangeButtonClick:"
destination=
"yKS-hT-LhA"
eventType=
"touchUpInside"
id=
"0HO-nU-sQ2"
/>
</connections>
</button>
<view
contentMode=
"scaleToFill"
id=
"DFa-vp-e22"
>
<frame
key=
"frameInset"
minX=
"25.82%"
minY=
"50.62%"
height=
"49.5"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.87058823529999996"
green=
"0.87058823529999996"
blue=
"0.87058823529999996"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</view>
<view
contentMode=
"scaleToFill"
misplaced=
"YES"
id=
"wwz-7Q-A55"
>
<frame
key=
"frameInset"
minX=
"43.32%"
minY=
"50.62%"
width=
"1.5"
height=
"49.5"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.87058823529999996"
green=
"0.87058823529999996"
blue=
"0.87058823529999996"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"13"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"YJy-KV-6XP"
>
<frame
key=
"frameInset"
minX=
"46.63%"
minY=
"68.34%"
width=
"13.75%"
height=
"20.5"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"17"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"35"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"0Eh-Eu-GWV"
>
<frame
key=
"frameInset"
minX=
"28.89%"
minY=
"68.34%"
width=
"13.86%"
height=
"20.5"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"17"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"季度积分排行"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"zzy-VB-gpq"
>
<frame
key=
"frameInset"
minX=
"28.89%"
minY=
"31.69%"
width=
"9.36%"
height=
"19"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
red=
"0.66666666669999997"
green=
"0.66666666669999997"
blue=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"年度积分排行"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"Xbh-34-JR3"
>
<frame
key=
"frameInset"
minX=
"46.63%"
minY=
"31.69%"
width=
"9.41%"
height=
"19"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
red=
"0.66666666669999997"
green=
"0.66666666669999997"
blue=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"number"
keyPath=
"cornerRadius"
>
<real
key=
"value"
value=
"5"
/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view
contentMode=
"scaleToFill"
misplaced=
"YES"
id=
"hU8-JL-KlR"
>
<frame
key=
"frameInset"
minX=
"23"
minY=
"192.5"
maxX=
"23"
maxY=
"23.5"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"积分明细"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"2Ip-ij-E17"
>
<frame
key=
"frameInset"
width=
"100"
height=
"50"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.33333333333333331"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
red=
"0.96078431372549022"
green=
"0.96470588235294119"
blue=
"0.96862745098039216"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
</view>
</subviews>
<color
key=
"backgroundColor"
red=
"0.92941176470588238"
green=
"0.93333333333333335"
blue=
"0.93725490196078431"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
</view>
<connections>
<outlet
property=
"currentIntegralLabel"
destination=
"luv-aV-HGH"
id=
"xxV-4z-ejd"
/>
<outlet
property=
"guideHeaderView"
destination=
"ehM-sk-qnE"
id=
"8u6-4S-AqD"
/>
<outlet
property=
"integralDetailsView"
destination=
"hU8-JL-KlR"
id=
"fnv-e0-zpR"
/>
<outlet
property=
"quarterIntegralLabel"
destination=
"0Eh-Eu-GWV"
id=
"lJT-HX-1KC"
/>
<outlet
property=
"yearIntegralLabel"
destination=
"YJy-KV-6XP"
id=
"IqQ-mt-x0D"
/>
</connections>
</viewController>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"4ek-wg-o7d"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
</objects>
<point
key=
"canvasLocation"
x=
"-177"
y=
"-109"
/>
</scene>
</scenes>
<simulatedMetricsContainer
key=
"defaultSimulatedMetrics"
>
<simulatedStatusBarMetrics
key=
"statusBar"
/>
<simulatedOrientationMetrics
key=
"orientation"
orientation=
"landscapeRight"
/>
<simulatedScreenMetrics
key=
"destination"
/>
</simulatedMetricsContainer>
</document>
Lighting/Images.xcassets/account.imageset/Contents.json
0 → 100644
View file @
e2f9c05f
{
"images"
:
[
{
"idiom"
:
"universal"
,
"filename"
:
"account.png"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"account@2x.png"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"account@3x.png"
,
"scale"
:
"3x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
Lighting/Images.xcassets/account.imageset/account.png
0 → 100644
View file @
e2f9c05f
1.3 KB
Lighting/Images.xcassets/account.imageset/account@2x.png
0 → 100644
View file @
e2f9c05f
1.89 KB
Lighting/Images.xcassets/account.imageset/account@3x.png
0 → 100644
View file @
e2f9c05f
3.16 KB
Lighting/LearningCenter.storyboard
View file @
e2f9c05f
...
...
@@ -22,36 +22,36 @@
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
image=
"NewJDECard"
id=
"nbs-22-0GD"
>
<frame
key=
"frameInset"
minX=
"19.
53%"
minY=
"23"
width=
"80
"
height=
"80"
/>
<frame
key=
"frameInset"
minX=
"19.
40%"
minY=
"23"
width=
"80.5
"
height=
"80"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"welcome"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"LXb-vd-T3k"
>
<frame
key=
"frameInset"
minX=
"84.
25
%"
minY=
"23"
width=
"179.5"
height=
"80"
/>
<frame
key=
"frameInset"
minX=
"84.
00
%"
minY=
"23"
width=
"179.5"
height=
"80"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
name=
"BodoniSvtyTwoITCTT-Book"
family=
"Bodoni 72"
pointSize=
"50"
/>
<color
key=
"textColor"
red=
"0.2901960784"
green=
"0.57254901960000004"
blue=
"0.93725490199999995"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<view
contentMode=
"scaleToFill"
misplaced=
"YES"
id=
"1Iq-fL-s9J"
>
<frame
key=
"frameInset"
minX=
"3
4.5"
height=
"50"
maxX=
"35.5
"
maxY=
"54"
/>
<frame
key=
"frameInset"
minX=
"3
5"
height=
"50"
maxX=
"36
"
maxY=
"54"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMinY=
"YES"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"11200"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"tQf-js-Zq1"
>
<frame
key=
"frameInset"
minY=
"0.0%"
width=
"100"
height=
"
49.5
"
/>
<frame
key=
"frameInset"
minY=
"0.0%"
width=
"100"
height=
"
50
"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"medium"
pointSize=
"25"
/>
<color
key=
"textColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"2300"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"XAj-3G-tQj"
>
<frame
key=
"frameInset"
minX=
"49.76%"
minY=
"0.0%"
width=
"100.5"
height=
"
49.5
"
/>
<frame
key=
"frameInset"
minX=
"49.76%"
minY=
"0.0%"
width=
"100.5"
height=
"
50
"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"medium"
pointSize=
"25"
/>
<color
key=
"textColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"122"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"ZUS-JV-M4p"
>
<frame
key=
"frameInset"
minY=
"0.0%"
width=
"
100"
height=
"49.5
"
/>
<frame
key=
"frameInset"
minY=
"0.0%"
width=
"
99.5"
height=
"50
"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"medium"
pointSize=
"25"
/>
<color
key=
"textColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
...
...
@@ -71,14 +71,14 @@
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"季度积分排行"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"Pip-8d-cLg"
>
<frame
key=
"frameInset"
minX=
"
49.76
%"
minY=
"0.0%"
width=
"100.5"
height=
"30.5"
/>
<frame
key=
"frameInset"
minX=
"
50.00
%"
minY=
"0.0%"
width=
"100.5"
height=
"30.5"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"medium"
pointSize=
"11"
/>
<color
key=
"textColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"年度积分排行"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"w2Q-PV-IbQ"
>
<frame
key=
"frameInset"
minY=
"0.0%"
width=
"
100
"
height=
"30.5"
/>
<frame
key=
"frameInset"
minY=
"0.0%"
width=
"
99.5
"
height=
"30.5"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"medium"
pointSize=
"11"
/>
<color
key=
"textColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
...
...
@@ -95,7 +95,7 @@
</userDefinedRuntimeAttributes>
</view>
<view
contentMode=
"scaleToFill"
misplaced=
"YES"
id=
"PBY-Zs-WcR"
>
<frame
key=
"frameInset"
minX=
"111
.5"
minY=
"77.84%"
height=
"199.5"
maxX=
"112
"
/>
<frame
key=
"frameInset"
minX=
"111
"
minY=
"77.84%"
height=
"199.5"
maxX=
"112.5
"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<view
contentMode=
"scaleToFill"
misplaced=
"YES"
id=
"dXS-eO-1wo"
>
...
...
@@ -103,14 +103,14 @@
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"综合讨论区"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"uJX-s4-JL5"
>
<frame
key=
"frameInset"
height=
"
49.5"
maxX=
"0.5"
maxY=
"2
0.5"
/>
<frame
key=
"frameInset"
height=
"
50"
maxY=
"-
0.5"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMinY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"17"
/>
<color
key=
"textColor"
red=
"0.2901960784"
green=
"0.57254901960000004"
blue=
"0.93725490199999995"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
image=
"00启动页"
id=
"p8U-mB-khr"
>
<frame
key=
"frameInset"
max
Y=
"71.5
"
/>
<frame
key=
"frameInset"
max
X=
"-0.5"
maxY=
"50
"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
</imageView>
</subviews>
...
...
@@ -121,11 +121,11 @@
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
image=
"00启动页"
id=
"YA5-Hr-AFR"
>
<frame
key=
"frameInset"
maxY=
"
72
"
/>
<frame
key=
"frameInset"
maxY=
"
50.5
"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"在线学习"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"Qb6-Wa-vxs"
>
<frame
key=
"frameInset"
height=
"
49.5"
maxY=
"2
0.5"
/>
<frame
key=
"frameInset"
height=
"
50"
maxY=
"
0.5"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMinY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"17"
/>
<color
key=
"textColor"
red=
"0.67002012129999999"
green=
"1"
blue=
"0.58714983740000004"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
...
...
@@ -135,15 +135,15 @@
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</view>
<view
contentMode=
"scaleToFill"
misplaced=
"YES"
id=
"EhO-PB-wyK"
>
<frame
key=
"frameInset"
minY=
"0.0%"
width=
"24
1"
height=
"200
"
/>
<frame
key=
"frameInset"
minY=
"0.0%"
width=
"24
0"
height=
"200"
maxX=
"1.5
"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
image=
"00启动页"
id=
"Uco-JU-GBS"
>
<frame
key=
"frameInset"
max
X=
"1"
maxY=
"72
"
/>
<frame
key=
"frameInset"
max
Y=
"50.5
"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"闯关区"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"1n4-34-LCS"
>
<frame
key=
"frameInset"
minX=
"1"
height=
"49.5"
maxX=
"-0.5"
maxY=
"2
0.5"
/>
<frame
key=
"frameInset"
height=
"5
0.5"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMinY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"17"
/>
<color
key=
"textColor"
red=
"0.93333333330000001"
green=
"0.46666666670000001"
blue=
"0.47450980390000003"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
...
...
@@ -179,9 +179,9 @@
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<collectionView
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"scaleToFill"
misplaced=
"YES"
dataMode=
"prototypes"
id=
"Hbj-9Y-heh"
>
<frame
key=
"frameInset"
minX=
"-
0.5"
minY=
"-0.5"
maxX=
"0
.5"
/>
<frame
key=
"frameInset"
minX=
"-
3.5"
minY=
"64.5"
maxX=
"1
.5"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite
"
/>
<color
key=
"backgroundColor"
red=
"0.92941176470588238"
green=
"0.93333333333333335"
blue=
"0.93725490196078431"
alpha=
"1"
colorSpace=
"calibratedRGB
"
/>
<collectionViewFlowLayout
key=
"collectionViewLayout"
minimumLineSpacing=
"10"
minimumInteritemSpacing=
"10"
id=
"5pu-XL-dth"
>
<size
key=
"itemSize"
width=
"332"
height=
"198"
/>
<size
key=
"headerReferenceSize"
width=
"0.0"
height=
"0.0"
/>
...
...
@@ -201,14 +201,16 @@
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"产品知识"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"gf6-jR-u7F"
>
<frame
key=
"frameInset"
minX=
"5"
minY=
"1
50"
maxX=
"3"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable
=
"YES"
/>
<frame
key=
"frameInset"
minX=
"5"
height=
"
50"
maxX=
"3"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMinY
=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"18"
/>
<nil
key=
"textColor"
/>
<nil
key=
"highlightedColor"
/>
<color
key=
"shadowColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</label>
</subviews>
</view>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<size
key=
"customSize"
width=
"300"
height=
"200"
/>
</collectionViewCell>
</cells>
...
...
@@ -218,7 +220,7 @@
</connections>
</collectionView>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite
"
/>
<color
key=
"backgroundColor"
red=
"0.92941176470588238"
green=
"0.93333333333333335"
blue=
"0.93725490196078431"
alpha=
"1"
colorSpace=
"calibratedRGB
"
/>
</view>
<connections>
<outlet
property=
"onlineLearningCollectionView"
destination=
"Hbj-9Y-heh"
id=
"qX9-Hf-RYq"
/>
...
...
Lighting/OppleMain.storyboard
View file @
e2f9c05f
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Tools/BaseViewController.h
View file @
e2f9c05f
...
...
@@ -51,6 +51,11 @@
*/
+
(
UIStoryboard
*
)
getLearningCenterStoryboardClass
;
/**
获得积分storyboard对象
*/
+
(
UIStoryboard
*
)
getGuideIntegralStoryboardClass
;
/**
* 调用打印机
*/
...
...
Tools/BaseViewController.m
View file @
e2f9c05f
...
...
@@ -228,13 +228,19 @@
}
#pragma mark - 获得学习中心storyboard对象
+
(
UIStoryboard
*
)
getLearningCenterStoryboardClass
{
UIStoryboard
*
storyboard
=
[
UIStoryboard
storyboardWithName
:
@"LearningCenter"
bundle
:
nil
];
return
storyboard
;
}
#pragma mark -获得积分storyboard对象
+
(
UIStoryboard
*
)
getGuideIntegralStoryboardClass
{
UIStoryboard
*
storyboard
=
[
UIStoryboard
storyboardWithName
:
@"GuideIntegral"
bundle
:
nil
];
return
storyboard
;
}
#pragma mark 调用airPrint无线打印机
-
(
void
)
callAirprintWithdata
:
(
NSString
*
)
PDFpath
SuccessBlock
:
(
void
(
^
)())
success
ErrorBlock
:
(
void
(
^
)())
failed
{
...
...
Tools/CustomWKWebViewController.m
View file @
e2f9c05f
...
...
@@ -47,6 +47,11 @@
#pragma mark -UI
-
(
void
)
uiConfigAction
{
NSSet
*
websiteDataTypes
=
[
WKWebsiteDataStore
allWebsiteDataTypes
];
NSDate
*
dateFrom
=
[
NSDate
dateWithTimeIntervalSince1970
:
0
];
[[
WKWebsiteDataStore
defaultDataStore
]
removeDataOfTypes
:
websiteDataTypes
modifiedSince
:
dateFrom
completionHandler
:^
{
NSLog
(
@"清理缓存成功"
);
}];
self
.
webView
=
[[
WKWebView
alloc
]
initWithFrame
:
self
.
view
.
bounds
configuration
:
self
.
config
];
[
self
.
view
addSubview
:
self
.
webView
];
self
.
webView
.
navigationDelegate
=
self
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment