Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
ALand
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
张杰
ALand
Commits
ed13299c
Commit
ed13299c
authored
Apr 29, 2016
by
Sandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
d52d86df
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
50 additions
and
32 deletions
+50
-32
CommodityListCollectionViewCell.xib
...s/Home/View/Commodity/CommodityListCollectionViewCell.xib
+35
-27
CommodityTableViewCell.h
ALand/CodeClass/Home/View/CommodityTableViewCell.h
+1
-0
CommodityTableViewCell.xib
ALand/CodeClass/Home/View/CommodityTableViewCell.xib
+2
-1
CommodityListViewController.m
...me/ViewController/Commodity/CommodityListViewController.m
+1
-1
CommoditySearchViewController.m
.../ViewController/Commodity/CommoditySearchViewController.m
+1
-0
CommodityManagementViewController.m
...s/Home/ViewController/CommodityManagementViewController.m
+9
-2
MBFontAdapter.m
ALand/Third/MBFontAdapter/util/MBFontAdapter.m
+1
-1
No files found.
ALand/CodeClass/Home/View/Commodity/CommodityListCollectionViewCell.xib
View file @
ed13299c
This diff is collapsed.
Click to expand it.
ALand/CodeClass/Home/View/CommodityTableViewCell.h
View file @
ed13299c
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
#import <UIKit/UIKit.h>
#import <UIKit/UIKit.h>
#import "CommotityListModel.h"
#import "CommotityListModel.h"
@interface
CommodityTableViewCell
:
UITableViewCell
@interface
CommodityTableViewCell
:
UITableViewCell
@property
(
weak
,
nonatomic
)
IBOutlet
UIImageView
*
imgView
;
-
(
void
)
cellWithModel
:(
CommotityListModel
*
)
model
;
-
(
void
)
cellWithModel
:(
CommotityListModel
*
)
model
;
@end
@end
ALand/CodeClass/Home/View/CommodityTableViewCell.xib
View file @
ed13299c
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"¥9.8"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"eSJ-Pe-NgQ"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"¥9.8"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"eSJ-Pe-NgQ"
>
<rect
key=
"frame"
x=
"218"
y=
"69"
width=
"50"
height=
"24"
/>
<rect
key=
"frame"
x=
"218"
y=
"69"
width=
"50"
height=
"24"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"20"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"20"
/>
<color
key=
"textColor"
red=
"0.
0"
green=
"0.0"
blue=
"0.0
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<color
key=
"textColor"
red=
"0.
60138541670000001"
green=
"0.60138541670000001"
blue=
"0.60138541670000001
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"销量:19"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"WH8-2u-i8A"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"销量:19"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"WH8-2u-i8A"
>
...
@@ -86,6 +86,7 @@
...
@@ -86,6 +86,7 @@
<color
key=
"tintColor"
red=
"0.48627450980392156"
green=
"0.76470588235294112"
blue=
"0.14509803921568626"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<color
key=
"tintColor"
red=
"0.48627450980392156"
green=
"0.76470588235294112"
blue=
"0.14509803921568626"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<inset
key=
"separatorInset"
minX=
"0.0"
minY=
"0.0"
maxX=
"0.0"
maxY=
"0.0"
/>
<inset
key=
"separatorInset"
minX=
"0.0"
minY=
"0.0"
maxX=
"0.0"
maxY=
"0.0"
/>
<connections>
<connections>
<outlet
property=
"imgView"
destination=
"f2b-xv-2mY"
id=
"Mcy-VO-86s"
/>
<outlet
property=
"imgViewCommodity"
destination=
"f2b-xv-2mY"
id=
"FGQ-WA-scQ"
/>
<outlet
property=
"imgViewCommodity"
destination=
"f2b-xv-2mY"
id=
"FGQ-WA-scQ"
/>
<outlet
property=
"labelBrokerageRate"
destination=
"eSJ-Pe-NgQ"
id=
"pic-rX-Z9U"
/>
<outlet
property=
"labelBrokerageRate"
destination=
"eSJ-Pe-NgQ"
id=
"pic-rX-Z9U"
/>
<outlet
property=
"labelPrice"
destination=
"exC-Ji-hHu"
id=
"KTN-qN-5Vb"
/>
<outlet
property=
"labelPrice"
destination=
"exC-Ji-hHu"
id=
"KTN-qN-5Vb"
/>
...
...
ALand/CodeClass/Home/ViewController/Commodity/CommodityListViewController.m
View file @
ed13299c
...
@@ -196,7 +196,7 @@
...
@@ -196,7 +196,7 @@
-
(
void
)
setUpCollectionView
{
-
(
void
)
setUpCollectionView
{
UICollectionViewFlowLayout
*
layOut
=
[[
UICollectionViewFlowLayout
alloc
]
init
];
UICollectionViewFlowLayout
*
layOut
=
[[
UICollectionViewFlowLayout
alloc
]
init
];
layOut
.
minimumLineSpacing
=
10
;
layOut
.
minimumLineSpacing
=
10
;
layOut
.
itemSize
=
CGSizeMake
((
ScreenSize
.
width
-
30
)
/
2
,
ScreenSize
.
height
/
2
.
2
);
layOut
.
itemSize
=
CGSizeMake
((
ScreenSize
.
width
-
30
)
/
2
,
340
);
_collectionView
=
[[
UICollectionView
alloc
]
initWithFrame
:
CGRectZero
collectionViewLayout
:
layOut
];
_collectionView
=
[[
UICollectionView
alloc
]
initWithFrame
:
CGRectZero
collectionViewLayout
:
layOut
];
[
self
.
view
addSubview
:
_collectionView
];
[
self
.
view
addSubview
:
_collectionView
];
...
...
ALand/CodeClass/Home/ViewController/Commodity/CommoditySearchViewController.m
View file @
ed13299c
...
@@ -52,6 +52,7 @@
...
@@ -52,6 +52,7 @@
UIColor
*
color
=
self
.
navigationController
.
navigationBar
.
barTintColor
;
UIColor
*
color
=
self
.
navigationController
.
navigationBar
.
barTintColor
;
[
titleView
setBackgroundColor
:
color
];
[
titleView
setBackgroundColor
:
color
];
UISearchBar
*
searchBar
=
[[
UISearchBar
alloc
]
init
];
UISearchBar
*
searchBar
=
[[
UISearchBar
alloc
]
init
];
searchBar
.
delegate
=
self
;
searchBar
.
delegate
=
self
;
searchBar
.
frame
=
CGRectMake
(
0
,
0
,
260
,
35
);
searchBar
.
frame
=
CGRectMake
(
0
,
0
,
260
,
35
);
searchBar
.
centerX
=
titleView
.
centerX
;
searchBar
.
centerX
=
titleView
.
centerX
;
...
...
ALand/CodeClass/Home/ViewController/CommodityManagementViewController.m
View file @
ed13299c
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
#import "CommodityListModel/CommotityListModel.h"
#import "CommodityListModel/CommotityListModel.h"
#import "ManagementViewController.h"
#import "ManagementViewController.h"
#import "Conditions.h"
#import "Conditions.h"
#import "CommodityDetailViewController.h"
#import "JavenSortView.h"
#import "JavenSortView.h"
#define kCellID @"commodityCell"
#define kCellID @"commodityCell"
#define kPageSize @999
#define kPageSize @999
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
-
(
void
)
viewWillAppear
:
(
BOOL
)
animated
{
-
(
void
)
viewWillAppear
:
(
BOOL
)
animated
{
[
super
viewWillAppear
:
animated
];
[
super
viewWillAppear
:
animated
];
//
[self resetReloadData];
[
self
resetReloadData
];
}
}
-
(
void
)
setUpSearchBar
{
-
(
void
)
setUpSearchBar
{
...
@@ -282,9 +282,16 @@
...
@@ -282,9 +282,16 @@
-
(
void
)
tableView
:
(
UITableView
*
)
tableView
didSelectRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
-
(
void
)
tableView
:
(
UITableView
*
)
tableView
didSelectRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
{
CommodityDetailViewController
*
detailVC
=
[[
CommodityDetailViewController
alloc
]
init
];
detailVC
.
model
=
self
.
arrItemDatas
[
indexPath
.
row
];
CommodityTableViewCell
*
cell
=
(
CommodityTableViewCell
*
)[
tableView
cellForRowAtIndexPath
:
indexPath
];
detailVC
.
image
=
cell
.
imgView
.
image
;
[
self
.
navigationController
pushViewController
:
detailVC
animated
:
YES
];
}
}
#pragma mark =========== searchBar Delegate ===========
#pragma mark =========== searchBar Delegate ===========
-
(
void
)
searchBarSearchButtonClicked
:
(
UISearchBar
*
)
searchBar
{
-
(
void
)
searchBarSearchButtonClicked
:
(
UISearchBar
*
)
searchBar
{
...
...
ALand/Third/MBFontAdapter/util/MBFontAdapter.m
View file @
ed13299c
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
@implementation
MBFontAdapter
@implementation
MBFontAdapter
+
(
UIFont
*
)
adjustFont
:(
UIFont
*
)
font
{
+
(
UIFont
*
)
adjustFont
:(
UIFont
*
)
font
{
UIFont
*
newFont
=
nil
;
UIFont
*
newFont
=
nil
;
if
(
IS_IPHONE_6
){
if
(
IS_IPHONE_6
){
newFont
=
[
UIFont
fontWithName
:
font
.
fontName
size
:
font
.
pointSize
+
IPHONE6_INCREMENT
];
newFont
=
[
UIFont
fontWithName
:
font
.
fontName
size
:
font
.
pointSize
+
IPHONE6_INCREMENT
];
...
...
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