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
90c93cb8
Commit
90c93cb8
authored
May 03, 2016
by
zhu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.oschina.net/gomore/Opple-iOS
parents
0bfe651c
2d5d5545
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
72 additions
and
7 deletions
+72
-7
ClientdetailsViewController.m
Lighting/Class/ClientdetailsViewController.m
+19
-7
InformationTableViewCell.h
Lighting/Class/InformationTableViewCell.h
+40
-0
StoryboardwithCYX.storyboard
Lighting/Lighting/StoryboardwithCYX.storyboard
+9
-0
PrefixHeader.pch
Lighting/Tools/PrefixHeader.pch
+4
-0
No files found.
Lighting/Class/ClientdetailsViewController.m
View file @
90c93cb8
...
@@ -36,6 +36,17 @@
...
@@ -36,6 +36,17 @@
self
.
ClientdetailsTableview
.
dataSource
=
self
;
self
.
ClientdetailsTableview
.
dataSource
=
self
;
//圆角
//圆角
self
.
shoppingAndRecordBackview
.
layer
.
masksToBounds
=
YES
;
self
.
shoppingAndRecordBackview
.
layer
.
cornerRadius
=
kCornerRadius
;
self
.
shoppingBagButton
.
layer
.
masksToBounds
=
YES
;
self
.
shoppingBagButton
.
layer
.
cornerRadius
=
kCornerRadius
;
self
.
orderRecordButton
.
layer
.
masksToBounds
=
YES
;
self
.
orderRecordButton
.
layer
.
cornerRadius
=
kCornerRadius
;
//默认选中购物袋
self
.
shoppingBagButton
.
selected
=
YES
;
self
.
shoppingBagButton
.
backgroundColor
=
[
UIColor
whiteColor
];
}
}
...
@@ -59,8 +70,6 @@
...
@@ -59,8 +70,6 @@
-
(
void
)
didReceiveMemoryWarning
{
-
(
void
)
didReceiveMemoryWarning
{
[
super
didReceiveMemoryWarning
];
[
super
didReceiveMemoryWarning
];
// Dispose of any resources that can be recreated.
// Dispose of any resources that can be recreated.
...
@@ -77,18 +86,21 @@
...
@@ -77,18 +86,21 @@
#pragma mark -购物袋
#pragma mark -购物袋
-
(
IBAction
)
ShoppingbagButtonClick
:
(
UIButton
*
)
sender
{
-
(
IBAction
)
ShoppingbagButtonClick
:
(
UIButton
*
)
sender
{
sender
.
selected
=
!
sender
.
selected
;
sender
.
layer
.
masksToBounds
=
YES
;
sender
.
layer
.
cornerRadius
=
3
;
sender
.
backgroundColor
=
[
UIColor
whiteColor
];
sender
.
backgroundColor
=
[
UIColor
whiteColor
];
sender
.
selected
=
YES
;
self
.
orderRecordButton
.
selected
=
NO
;
self
.
orderRecordButton
.
backgroundColor
=
kMainColor
;
}
}
#pragma mark -订单记录
#pragma mark -订单记录
-
(
IBAction
)
OrderrecordButtonClick
:
(
UIButton
*
)
sender
{
-
(
IBAction
)
OrderrecordButtonClick
:
(
UIButton
*
)
sender
{
sender
.
selected
=
!
sender
.
selected
;
sender
.
backgroundColor
=
[
UIColor
whiteColor
];
sender
.
backgroundColor
=
[
UIColor
whiteColor
];
sender
.
selected
=
YES
;
self
.
shoppingBagButton
.
selected
=
NO
;
self
.
shoppingBagButton
.
backgroundColor
=
kMainColor
;
}
}
...
...
Lighting/Class/InformationTableViewCell.h
View file @
90c93cb8
...
@@ -10,4 +10,44 @@
...
@@ -10,4 +10,44 @@
@interface
InformationTableViewCell
:
UITableViewCell
@interface
InformationTableViewCell
:
UITableViewCell
/**
* 用户头像
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UIImageView
*
personHeader
;
/**
* 用户名称
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
personName
;
/**
* 联系电话
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
personPhoneNumber
;
/**
* 最近到访时间
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
recentTime
;
/**
* 服务导购
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
Guideservices
;
/**
* 客户地址
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
personLocation
;
/**
* 是否设置为当前客户
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UISwitch
*
selectedSwitch
;
@end
@end
Lighting/Lighting/StoryboardwithCYX.storyboard
View file @
90c93cb8
...
@@ -198,6 +198,15 @@
...
@@ -198,6 +198,15 @@
<color
key=
"backgroundColor"
red=
"0.56470588239999997"
green=
"0.75686274509999996"
blue=
"0.1960784314"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<color
key=
"backgroundColor"
red=
"0.56470588239999997"
green=
"0.75686274509999996"
blue=
"0.1960784314"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
</tableViewCellContentView>
</tableViewCellContentView>
<color
key=
"backgroundColor"
red=
"0.56470588239999997"
green=
"0.75686274509999996"
blue=
"0.1960784314"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<color
key=
"backgroundColor"
red=
"0.56470588239999997"
green=
"0.75686274509999996"
blue=
"0.1960784314"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<connections>
<outlet
property=
"Guideservices"
destination=
"gMQ-8Z-IHh"
id=
"roV-8R-PjL"
/>
<outlet
property=
"personHeader"
destination=
"F66-vh-va3"
id=
"3p3-Th-3as"
/>
<outlet
property=
"personLocation"
destination=
"UX9-mF-TLc"
id=
"siN-0Z-13q"
/>
<outlet
property=
"personName"
destination=
"BFX-MF-Tjn"
id=
"aCo-Hp-Ccs"
/>
<outlet
property=
"personPhoneNumber"
destination=
"b5n-Bd-piS"
id=
"BVd-Oq-TJ7"
/>
<outlet
property=
"recentTime"
destination=
"3T5-Bf-6tT"
id=
"65b-00-0m6"
/>
<outlet
property=
"selectedSwitch"
destination=
"sWi-BG-uGN"
id=
"Ajo-VQ-DXc"
/>
</connections>
</tableViewCell>
</tableViewCell>
</prototypes>
</prototypes>
</tableView>
</tableView>
...
...
Lighting/Tools/PrefixHeader.pch
View file @
90c93cb8
...
@@ -96,6 +96,10 @@
...
@@ -96,6 +96,10 @@
*/
*/
#define kMainColor [UIColor colorWithRed:89/255.0 green:172/255.0 blue:220/255.0 alpha:1.0]
#define kMainColor [UIColor colorWithRed:89/255.0 green:172/255.0 blue:220/255.0 alpha:1.0]
/**
* 默认圆角系数
*/
#define kCornerRadius 3
...
...
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