Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
X
xffruit
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
张杰
xffruit
Commits
b6648fe0
Commit
b6648fe0
authored
9 years ago
by
陈俊俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
3e5a97d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
23 deletions
+10
-23
SeePurchaseNoticeViewController.m
...chaseNotice/Controllers/SeePurchaseNoticeViewController.m
+10
-23
No files found.
XFFruit/ViewControllers/PurchaseNotice/Controllers/SeePurchaseNoticeViewController.m
View file @
b6648fe0
...
...
@@ -7,8 +7,6 @@
//
#import "SeePurchaseNoticeViewController.h"
#import "ProductBillViewController.h"
#import "PurchaseBillProduct.h"
#import "NewPurchaseViewController.h"
#import "NoticeProduct.h"
#import "PurchaseNoticeCell.h"
...
...
@@ -39,7 +37,6 @@ typedef enum : NSUInteger {
UIScrollView
*
_scrollView
;
UIView
*
_purchaseView
;
UIView
*
_bottomView
;
ProductBillViewController
*
_pvc
;
NSArray
*
_leftArr
;
UIButton
*
_endBtn
;
UIButton
*
_rejectBtn
;
...
...
@@ -85,7 +82,13 @@ typedef enum : NSUInteger {
NSDictionary
*
dictData
=
data
[
@"data"
];
PurchaseNotice
*
purchaseNotice
=
[[
PurchaseNotice
alloc
]
init
];
[
purchaseNotice
setValuesForKeysWithDictionary
:
dictData
];
NSMutableArray
*
productArr
=
[
NSMutableArray
array
];
for
(
NSDictionary
*
billDict
in
self
.
purchaseNotice
.
products
)
{
NoticeProduct
*
billProbuct
=
[
NoticeProduct
new
];
[
billProbuct
setValuesForKeysWithDictionary
:
billDict
];
[
productArr
addObject
:
billProbuct
];
}
purchaseNotice
.
products
=
productArr
;
self
.
purchaseNotice
=
purchaseNotice
;
[
strongSelf
fetchtNoticeDetail
];
}
else
{
...
...
@@ -120,14 +123,7 @@ typedef enum : NSUInteger {
self
.
userLabel
.
text
=
[
IBTCommon
checkString
:
self
.
purchaseNotice
.
purchaserName
];
self
.
countLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
@"222"
];
self
.
noteLabel
.
text
=
[
IBTCommon
checkString
:
self
.
purchaseNotice
.
remark
];
NSMutableArray
*
productArr
=
[
NSMutableArray
array
];
for
(
NSDictionary
*
billDict
in
self
.
purchaseNotice
.
products
)
{
NoticeProduct
*
billProbuct
=
[
NoticeProduct
new
];
[
billProbuct
setValuesForKeysWithDictionary
:
billDict
];
[
productArr
addObject
:
billProbuct
];
}
_shopeArr
=
productArr
;
[
_shopeArr
addObjectsFromArray
:
self
.
purchaseNotice
.
products
];
[
mingXiTableView
reloadData
];
[
self
setNoteHeight
];
...
...
@@ -142,8 +138,6 @@ typedef enum : NSUInteger {
_scrollView
.
backgroundColor
=
XXFBgColor
;
[
self
.
view
addSubview
:
_scrollView
];
[
self
createBtn
];
// [self createBottomView];商品明细
[
self
createPurchaseView
];
[
self
createMingXiTableView
];
//自定义
...
...
@@ -279,7 +273,7 @@ typedef enum : NSUInteger {
{
_shopeArr
=
[[
NSMutableArray
alloc
]
initWithObjects
:
nil
];
selectCellAry
=
[[
NSMutableArray
alloc
]
initWithCapacity
:
1000
];
mingXiTableView
=
[[
UITableView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
2
*
LeftMargin
+
_purchaseView
.
frame
.
size
.
height
,
ScreenSize
.
width
,
ScreenSize
.
height
-
_purchaseView
.
height
-
ScreenSize
.
height
/
5
)];
mingXiTableView
=
[[
UITableView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
2
*
LeftMargin
+
_purchaseView
.
frame
.
size
.
height
,
ScreenSize
.
width
,
ScreenSize
.
height
-
_purchaseView
.
height
-
ScreenSize
.
height
/
5
)];
mingXiTableView
.
backgroundColor
=
[
UIColor
whiteColor
];
mingXiTableView
.
tag
=
1002
;
mingXiTableView
.
bounces
=
NO
;
...
...
@@ -330,19 +324,12 @@ typedef enum : NSUInteger {
[
footView3
addSubview
:
self
.
FootLabel
];
mingXiTableView
.
tableFooterView
=
footView3
;
mingXiTableView
.
tableHeaderView
=
footView2
;
[
self
.
v
iew
addSubview
:
mingXiTableView
];
[
_scrollV
iew
addSubview
:
mingXiTableView
];
}
-
(
void
)
createBottomView
{
_bottomView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
CGRectGetMaxY
(
_purchaseView
.
frame
)
+
TopMargin
,
ScreenSize
.
width
,
200
)];
_bottomView
.
backgroundColor
=
[
UIColor
whiteColor
];
[
_scrollView
addSubview
:
_bottomView
];
_pvc
=
[[
ProductBillViewController
alloc
]
init
];
[
self
addChildViewController
:
_pvc
];
_pvc
.
viewFrame
=
_bottomView
.
bounds
;
_pvc
.
isHiddenEdit
=
YES
;
[
_bottomView
addSubview
:
_pvc
.
view
];
}
-
(
void
)
createPurchaseView
{
...
...
This diff is collapsed.
Click to expand it.
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