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
643e52cf
Commit
643e52cf
authored
May 18, 2016
by
勾芒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
caoyunxiao
parent
1113c993
Hide whitespace changes
Inline
Side-by-side
Showing
41 changed files
with
1151 additions
and
175 deletions
+1151
-175
ClientDetailsTableViewCell.m
Lighting/Class/ClientDetailsTableViewCell.m
+7
-0
ClientdetailsViewController.m
Lighting/Class/ClientdetailsViewController.m
+58
-7
CustomerOrderTableViewCell.h
Lighting/Class/CustomerOrderTableViewCell.h
+51
-1
CustomerOrderTableViewCell.m
Lighting/Class/CustomerOrderTableViewCell.m
+66
-0
CustomerOrderViewController.m
Lighting/Class/CustomerOrderViewController.m
+240
-25
LoginViewController.m
Lighting/Class/Login/LoginViewController.m
+1
-0
OrderTableViewCell.h
Lighting/Class/OrderTableViewCell.h
+74
-0
OrderTableViewCell.m
Lighting/Class/OrderTableViewCell.m
+53
-0
OrderdetailsViewController.m
Lighting/Class/OrderdetailsViewController.m
+2
-1
ProductLibraryViewController.m
Lighting/Class/ProductLibraryViewController.m
+17
-13
ScannerViewController.h
Lighting/Class/ScannerViewController.h
+22
-0
ScannerViewController.m
Lighting/Class/ScannerViewController.m
+165
-0
ScannerViewController.xib
Lighting/Class/ScannerViewController.xib
+48
-0
SettlementViewController.m
Lighting/Class/SettlementViewController.m
+31
-3
SettlementViewController.xib
Lighting/Class/SettlementViewController.xib
+20
-10
GenerateOrdersViewController.m
Lighting/Class/Shoppingcart/GenerateOrdersViewController.m
+2
-0
CustomTabbarController.h
Lighting/Class/Tabbar/CustomTabbarController.h
+7
-0
CustomTabbarController.m
Lighting/Class/Tabbar/CustomTabbarController.m
+17
-13
project.pbxproj
Lighting/Lighting.xcodeproj/project.pbxproj
+23
-5
AppDelegate.h
Lighting/Lighting/AppDelegate.h
+1
-1
Contents.json
...ges.xcassets/ScannerViewController.imageset/Contents.json
+22
-0
ScannerViewController.png
.../ScannerViewController.imageset/ScannerViewController.png
+0
-0
ScannerViewController@2x.png
...annerViewController.imageset/ScannerViewController@2x.png
+0
-0
Contents.json
...g/Lighting/Images.xcassets/wechat1.imageset/Contents.json
+22
-0
wechat1.png
...ing/Lighting/Images.xcassets/wechat1.imageset/wechat1.png
+0
-0
wechat1@2x.png
.../Lighting/Images.xcassets/wechat1.imageset/wechat1@2x.png
+0
-0
Contents.json
...ting/Lighting/Images.xcassets/图层-1.imageset/Contents.json
+23
-0
图层-1.png
Lighting/Lighting/Images.xcassets/图层-1.imageset/图层-1.png
+0
-0
图层-1@2x.png
Lighting/Lighting/Images.xcassets/图层-1.imageset/图层-1@2x.png
+0
-0
Contents.json
...ting/Lighting/Images.xcassets/图层-3.imageset/Contents.json
+23
-0
图层-3.png
Lighting/Lighting/Images.xcassets/图层-3.imageset/图层-3.png
+0
-0
图层-3@2x.png
Lighting/Lighting/Images.xcassets/图层-3.imageset/图层-3@2x.png
+0
-0
Contents.json
...ghting/Images.xcassets/圆角矩形-2-副本-2.imageset/Contents.json
+23
-0
圆角矩形-2-副本-2.png
...ting/Images.xcassets/圆角矩形-2-副本-2.imageset/圆角矩形-2-副本-2.png
+0
-0
圆角矩形-2-副本-2@2x.png
...g/Images.xcassets/圆角矩形-2-副本-2.imageset/圆角矩形-2-副本-2@2x.png
+0
-0
Contents.json
...ng/Lighting/Images.xcassets/圆角矩形-5.imageset/Contents.json
+23
-0
圆角矩形-5.png
Lighting/Lighting/Images.xcassets/圆角矩形-5.imageset/圆角矩形-5.png
+0
-0
圆角矩形-5@2x.png
...ng/Lighting/Images.xcassets/圆角矩形-5.imageset/圆角矩形-5@2x.png
+0
-0
StoryboardwithCYX.storyboard
Lighting/Lighting/StoryboardwithCYX.storyboard
+84
-95
PDFViewController.m
Lighting/Tools/PDFViewController.m
+25
-1
PrefixHeader.pch
Lighting/Tools/PrefixHeader.pch
+1
-0
No files found.
Lighting/Class/ClientDetailsTableViewCell.m
View file @
643e52cf
...
...
@@ -21,6 +21,13 @@
-
(
void
)
setModel
:
(
ShopcarModel
*
)
model
{
_model
=
model
;
[
self
.
goodsImageview
sd_setImageWithURL
:[
NSURL
URLWithString
:
_model
.
goods
.
pictures
]
placeholderImage
:
REPLACEIMAGE
];
self
.
goodsName
.
text
=
_model
.
goods
.
name
;
self
.
goodsCraneQuotation
.
text
=
[
_model
.
goods
.
tagPrice
stringValue
];
self
.
goodsSpecifications
.
text
=
_model
.
goods
.
spec
;
self
.
goodsNumber
.
text
=
_model
.
goods
.
number
;
self
.
goodsPrice
.
text
=
[
_model
.
goods
.
costPrice
stringValue
];
}
...
...
Lighting/Class/ClientdetailsViewController.m
View file @
643e52cf
...
...
@@ -69,6 +69,8 @@
// Do any additional setup after loading the view.
[
self
uiConfigAction
];
[
self
getShoppingCardata
];
[
self
getGuideAllcustomerOrder
];
}
...
...
@@ -78,6 +80,7 @@
self
.
ClientdetailsTableview
.
delegate
=
self
;
self
.
ClientdetailsTableview
.
dataSource
=
self
;
self
.
ClientdetailsTableview
.
tableFooterView
=
[
UIView
new
];
//圆角
self
.
shoppingAndRecordBackview
.
layer
.
masksToBounds
=
YES
;
...
...
@@ -109,13 +112,14 @@
ClientDetailsTableViewCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"ClientDetails"
forIndexPath
:
indexPath
];
cell
.
selectionStyle
=
UITableViewCellSelectionStyleNone
;
cell
.
model
=
[
self
.
orderRecord
Array
objectAtIndex_opple
:
indexPath
.
row
];
cell
.
model
=
[
self
.
shopResponse
Array
objectAtIndex_opple
:
indexPath
.
row
];
return
cell
;
}
else
if
(
self
.
orderRecordButton
.
selected
)
{
OrderTableViewCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"ordercell"
forIndexPath
:
indexPath
];
cell
.
selectionStyle
=
UITableViewCellSelectionStyleNone
;
cell
.
model
=
[
self
.
orderRecordArray
objectAtIndex_opple
:
indexPath
.
row
];
return
cell
;
}
return
nil
;
...
...
@@ -153,9 +157,17 @@
-
(
void
)
tableView
:
(
UITableView
*
)
tableView
didSelectRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
UIStoryboard
*
storyboard
=
[
UIStoryboard
storyboardWithName
:
@"StoryboardwithCYX"
bundle
:
nil
];
OrderdetailsViewController
*
orderdetails
=
[
storyboard
instantiateViewControllerWithIdentifier
:
@"orderdetails"
];
[
self
.
navigationController
pushViewController
:
orderdetails
animated
:
YES
];
if
(
self
.
shoppingBagButton
.
selected
)
{
return
;
}
else
if
(
self
.
orderRecordButton
.
selected
)
{
UIStoryboard
*
storyboard
=
[
UIStoryboard
storyboardWithName
:
@"StoryboardwithCYX"
bundle
:
nil
];
OrderdetailsViewController
*
orderdetails
=
[
storyboard
instantiateViewControllerWithIdentifier
:
@"orderdetails"
];
orderdetails
.
orderCode
=
[[[
self
.
orderRecordArray
objectAtIndex_opple
:
indexPath
.
row
]
order
]
orderNumber
];
[
self
.
navigationController
pushViewController
:
orderdetails
animated
:
YES
];
}
}
...
...
@@ -163,9 +175,8 @@
#pragma mark -获取购物车商品
-
(
void
)
getShoppingCardata
{
ShopCartFilter
*
shopcarNumber
=
[[
ShopCartFilter
alloc
]
init
];
shopcarNumber
.
consumerId
=
[
Customermanager
manager
].
customerID
;
shopcarNumber
.
consumerId
=
_model
.
fid
;
DataPage
*
Newpage
=
[[
DataPage
alloc
]
init
];
Newpage
.
page
=
0
;
shopcarNumber
.
dp
=
Newpage
;
...
...
@@ -194,7 +205,6 @@
[
self
.
shopResponseArray
addObject
:
model
];
}
[
self
.
ClientdetailsTableview
reloadData
];
}
else
...
...
@@ -212,6 +222,47 @@
#pragma mark -获取客户订单数据
-
(
void
)
getGuideAllcustomerOrder
{
OrderBill
*
allOrder
=
[[
OrderBill
alloc
]
init
];
//分页
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
page
.
page
=
0
;
page
.
rows
=
10
;
//订单
TOOrderEntity
*
Neworder
=
[[
TOOrderEntity
alloc
]
init
];
Neworder
.
guideId
=
[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
;
allOrder
.
datapage
=
page
;
allOrder
.
order
=
Neworder
;
[
self
CreateMBProgressHUDLoding
];
[[
NetworkRequestClassManager
Manager
]
NetworkRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
ServerAddress
,
@"/order/query"
]
WithRequestType
:
0
WithParameter
:
allOrder
WithReturnValueBlock
:^
(
id
returnValue
)
{
[
self
RemoveMBProgressHUDLoding
];
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
OrderResponse
*
Allorder
=
[[
OrderResponse
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
for
(
OrderBill
*
model
in
Allorder
.
orderBillList
)
{
[
self
.
orderRecordArray
addObject
:
model
];
}
[
self
.
ClientdetailsTableview
reloadData
];
}
else
{
[
self
ErrorMBProgressView
:
returnValue
[
@"message"
]];
}
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
}
WithFailureBlock
:^
(
id
error
)
{
[
self
RemoveMBProgressHUDLoding
];
}];
}
-
(
void
)
didReceiveMemoryWarning
{
[
super
didReceiveMemoryWarning
];
// Dispose of any resources that can be recreated.
...
...
Lighting/Class/CustomerOrderTableViewCell.h
View file @
643e52cf
...
...
@@ -8,6 +8,26 @@
#import <UIKit/UIKit.h>
/**
* 撤销订单
*/
@protocol
undoOrderDelegate
<
NSObject
>
@optional
/**
* 撤销订单
*
* @param cellindex cell下标
*/
-
(
void
)
undoOrderButtonClick
:
(
NSInteger
)
cellindex
;
@end
@interface
CustomerOrderTableViewCell
:
UITableViewCell
...
...
@@ -82,7 +102,7 @@
/**
*
客户
地址
*
收货
地址
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
consigneeAddress
;
...
...
@@ -97,10 +117,40 @@
@property
(
weak
,
nonatomic
)
IBOutlet
UIView
*
cellBackView
;
/**
* 订单详情model
*/
@property
(
nonatomic
,
strong
)
OrderBill
*
model
;
/**
* 撤销订单
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UIButton
*
delecteOrder
;
/**
* 收货人电话title
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
consigneeNumber
;
/**
* 订单总计title
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
orderAll
;
/**
* 撤销订单代理
*/
@property
(
nonatomic
,
assign
)
id
<
undoOrderDelegate
>
delegate
;
/**
* 传入cell下标
*/
@property
(
nonatomic
,
assign
)
NSInteger
cellIndex
;
@end
Lighting/Class/CustomerOrderTableViewCell.m
View file @
643e52cf
...
...
@@ -13,8 +13,74 @@
-
(
void
)
awakeFromNib
{
[
super
awakeFromNib
];
// Initialization code
[
self
uiConfigAction
];
}
#pragma mark -UI
-
(
void
)
uiConfigAction
{
self
.
delecteOrder
.
layer
.
masksToBounds
=
YES
;
self
.
delecteOrder
.
layer
.
cornerRadius
=
kCornerRadius
;
self
.
cellBackView
.
layer
.
masksToBounds
=
YES
;
self
.
cellBackView
.
layer
.
cornerRadius
=
kCornerRadius
;
[
self
.
consigneeNumber
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
equalTo
(
self
.
orderAll
.
mas_left
).
offset
(
13
);
make
.
top
.
equalTo
(
self
.
orderAll
.
mas_bottom
).
offset
(
10
);
}];
}
#pragma mark -赋值
-
(
void
)
setModel
:
(
OrderBill
*
)
model
{
_model
=
model
;
self
.
orderDate
.
text
=
[
self
dateAsString
:
_model
.
order
.
orderTime
];
self
.
orderSerialNumber
.
text
=
_model
.
order
.
orderNumber
;
self
.
shoppersName
.
text
=
_model
.
employee
.
userName
;
self
.
customerName
.
text
=
_model
.
consumer
.
name
;
[
self
.
customerHeader
sd_setImageWithURL
:[
NSURL
URLWithString
:
_model
.
consumer
.
picture
]
placeholderImage
:
ReplaceImage
];
self
.
orderStatus
.
text
=
_model
.
order
.
orderState
;
self
.
styleNumber
.
text
=
_model
.
order
.
goodsNum
;
self
.
consigneeName
.
text
=
_model
.
order
.
receiverName
;
self
.
consigneePhoneNumber
.
text
=
_model
.
order
.
receiverMobile
;
self
.
phoneNumber
.
text
=
_model
.
consumer
.
mobile
;
self
.
consigneeAddress
.
text
=
_model
.
order
.
receiverAddress
;
NSInteger
goodsAllprice
=
0
;
for
(
TOOrderdetailEntity
*
goodslist
in
_model
.
orderdetailList
)
{
goodsAllprice
+=
[
goodslist
.
goodsTotalPrice
integerValue
];
}
self
.
orderTotalPrice
.
text
=
[
NSString
stringWithFormat
:
@"%ld"
,
goodsAllprice
];
}
#pragma mark -时间转换NSDate转NSString
-
(
NSString
*
)
dateAsString
:
(
NSDate
*
)
date
{
NSDateFormatter
*
formatter
=
[[
NSDateFormatter
alloc
]
init
];
[
formatter
setDateFormat
:
@"yyyy-MM-dd"
];
NSString
*
timeString
=
[
formatter
stringFromDate
:
date
];
return
timeString
;
}
#pragma mark -撤销订单
-
(
IBAction
)
delecteOrderButtonClick
:
(
UIButton
*
)
sender
{
if
([
self
.
delegate
respondsToSelector
:
@selector
(
undoOrderButtonClick
:)])
{
[
self
.
delegate
undoOrderButtonClick
:
_cellIndex
];
}
}
-
(
void
)
setSelected
:
(
BOOL
)
selected
animated
:
(
BOOL
)
animated
{
[
super
setSelected
:
selected
animated
:
animated
];
...
...
Lighting/Class/CustomerOrderViewController.m
View file @
643e52cf
...
...
@@ -9,13 +9,23 @@
#import "CustomerOrderViewController.h"
#import "CustomerOrderTableViewCell.h"
@interface
CustomerOrderViewController
()
<
UITableViewDataSource
,
UITableViewDelegate
>
@interface
CustomerOrderViewController
()
<
UITableViewDataSource
,
UITableViewDelegate
,
ReturnTableviewcellIndexpathdelegate
,
UITextFieldDelegate
,
undoOrderDelegate
>
/**
* 数据源数组
*/
@property
(
nonatomic
,
strong
)
NSMutableArray
*
datasArray
;
/**
* 当前页数
*/
@property
(
nonatomic
,
assign
)
int
indexPage
;
/**
* 订单状态数组
*/
@property
(
nonatomic
,
strong
)
NSArray
*
orderStateArray
;
@end
@implementation
CustomerOrderViewController
...
...
@@ -32,54 +42,102 @@
return
_datasArray
;
}
/**
* 订单状态数组
*/
-
(
NSArray
*
)
orderStateArray
{
if
(
_orderStateArray
==
nil
)
{
_orderStateArray
=
[
NSArray
arrayWithObjects
:
@"全部订单"
,
@"待支付"
,
@"已支付"
,
@"已发货"
,
@"已完成"
,
@"已撤销"
,
@"已退货"
,
nil
];
}
return
_orderStateArray
;
}
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
// Do any additional setup after loading the view.
[
self
uiConfigAction
];
[
self
getGuideAllcustomerOrder
];
}
#pragma mark -UI
-
(
void
)
uiConfigAction
{
self
.
searchCustomerOrder
.
delegate
=
self
;
self
.
view
.
backgroundColor
=
kTCColor
(
238
,
238
,
238
);
self
.
customerOrderTableView
.
dataSource
=
self
;
self
.
customerOrderTableView
.
delegate
=
self
;
self
.
customerOrderTableView
.
backgroundColor
=
[
UIColor
clearColor
];
self
.
StyleButton
=
[
screeningButton
buttonWithType
:
UIButtonTypeCustom
];
self
.
StyleButton
.
frame
=
CGRectMake
(
ScreenWidth
-
250
,
20
,
150
,
30
);
self
.
StyleButton
.
backgroundColor
=
kTCColor
(
131
,
131
,
131
);
[
self
.
StyleButton
setTitle
:
@"订单状态"
forState
:
UIControlStateNormal
];
[
self
.
StyleButton
addTarget
:
self
action
:
@selector
(
screeningStyl
eButtonClick
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
self
.
StyleButton
addTarget
:
self
action
:
@selector
(
OrderStat
eButtonClick
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
self
.
StyleButton
setImage
:
TCImage
(
@"down_arr"
)
forState
:
UIControlStateNormal
];
self
.
StyleButton
.
layer
.
masksToBounds
=
YES
;
self
.
StyleButton
.
layer
.
cornerRadius
=
10
;
[
self
.
orderStateBackView
addSubview
:
self
.
StyleButton
];
//下拉刷新
self
.
customerOrderTableView
.
mj_header
=
[
MJRefreshNormalHeader
headerWithRefreshingBlock
:
^
{
OrderBill
*
allOrder
=
[[
OrderBill
alloc
]
init
];
//分页
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
page
.
page
=
self
.
indexPage
;
page
.
rows
=
10
;
//订单
TOOrderEntity
*
Neworder
=
[[
TOOrderEntity
alloc
]
init
];
Neworder
.
guideId
=
[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
;
allOrder
.
datapage
=
page
;
allOrder
.
order
=
Neworder
;
self
.
indexPage
=
0
;
[
self
getGuideAllcustomerOrder
:
YES
WithorderBill
:
allOrder
];
}];
[
self
.
customerOrderTableView
.
mj_header
beginRefreshing
];
//上拉加载
self
.
customerOrderTableView
.
mj_footer
=
[
MJRefreshAutoNormalFooter
footerWithRefreshingBlock
:
^
{
OrderBill
*
allOrder
=
[[
OrderBill
alloc
]
init
];
//分页
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
page
.
page
=
self
.
indexPage
;
page
.
rows
=
10
;
//订单
TOOrderEntity
*
Neworder
=
[[
TOOrderEntity
alloc
]
init
];
Neworder
.
guideId
=
[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
;
allOrder
.
datapage
=
page
;
allOrder
.
order
=
Neworder
;
self
.
indexPage
++
;
[
self
getGuideAllcustomerOrder
:
NO
WithorderBill
:
allOrder
];
}];
}
#pragma mark -获取导购下客户订单
-
(
void
)
getGuideAllcustomerOrder
#pragma mark -获取导购下客户订单
----isdelecte 表示是否清空数组
-
(
void
)
getGuideAllcustomerOrder
:
(
BOOL
)
isdelecte
WithorderBill
:
(
OrderBill
*
)
allOrder
{
OrderBill
*
allOrder
=
[[
OrderBill
alloc
]
init
];
//分页
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
page
.
page
=
0
;
page
.
rows
=
10
;
//订单
TOOrderEntity
*
Neworder
=
[[
TOOrderEntity
alloc
]
init
];
Neworder
.
guideId
=
[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
;
allOrder
.
datapage
=
page
;
allOrder
.
order
=
Neworder
;
[
self
CreateMBProgressHUDLoding
];
[[
NetworkRequestClassManager
Manager
]
NetworkRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
ServerAddress
,
@"/order/query"
]
WithRequestType
:
0
WithParameter
:
allOrder
WithReturnValueBlock
:^
(
id
returnValue
)
{
[
self
RemoveMBProgressHUDLoding
];
[
self
endRefreshingForTableView
:
self
.
customerOrderTableView
];
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
NSLog
(
@"%@"
,
returnValue
);
if
(
isdelecte
)
{
[
self
.
datasArray
removeAllObjects
];
}
OrderResponse
*
Allorder
=
[[
OrderResponse
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
for
(
OrderBill
*
model
in
Allorder
.
orderBillList
)
{
[
self
.
datasArray
addObject
:
model
];
}
[
self
.
customerOrderTableView
reloadData
];
}
else
{
[
self
ErrorMBProgressView
:
returnValue
[
@"message"
]];
...
...
@@ -89,7 +147,8 @@
}
WithFailureBlock
:^
(
id
error
)
{
NSLog
(
@"%@"
,
error
);
[
self
endRefreshingForTableView
:
self
.
customerOrderTableView
];
[
self
RemoveMBProgressHUDLoding
];
}];
}
...
...
@@ -101,26 +160,28 @@
#pragma mark -订单状态筛选
-
(
void
)
screeningStyl
eButtonClick
:
(
UIButton
*
)
button
-
(
void
)
OrderStat
eButtonClick
:
(
UIButton
*
)
button
{
[
self
ShowPopoverViewController
:
CGSizeMake
(
200
,
400
)
Withdatas
:
self
.
orderStateArray
ShowButton
:
button
SelectedIndex
:
0
];
}
-
(
UITableViewCell
*
)
tableView
:
(
UITableView
*
)
tableView
cellForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
CustomerOrderTableViewCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"customerordercell"
forIndexPath
:
indexPath
];
cell
.
backgroundColor
=
[
UIColor
clearColor
];
cell
.
cellBackView
.
layer
.
masksToBounds
=
YES
;
cell
.
model
=
[
self
.
datasArray
objectAtIndex_opple
:
indexPath
.
row
];
cell
.
cellBackView
.
layer
.
cornerRadius
=
kCornerRadius
;
cell
.
backgroundColor
=
[
UIColor
clearColor
];
cell
.
cellIndex
=
indexPath
.
row
;
cell
.
delegate
=
self
;
return
cell
;
}
-
(
NSInteger
)
tableView
:
(
UITableView
*
)
tableView
numberOfRowsInSection
:
(
NSInteger
)
section
{
return
10
;
return
self
.
datasArray
.
count
;
}
-
(
CGFloat
)
tableView
:
(
UITableView
*
)
tableView
heightForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
...
...
@@ -130,6 +191,160 @@
#pragma mark -弹出popover视图控制器
-
(
void
)
ShowPopoverViewController
:
(
CGSize
)
size
Withdatas
:
(
NSArray
*
)
datasArray
ShowButton
:
(
UIButton
*
)
button
SelectedIndex
:
(
NSInteger
)
index
{
PopoverViewController
*
popover
=
[[
PopoverViewController
alloc
]
init
];
popover
.
datasArray
=
datasArray
;
popover
.
delegate
=
self
;
popover
.
isString
=
YES
;
popover
.
Selectedindex
=
index
;
popover
.
contentSize
=
size
;
popover
.
preferredContentSize
=
size
;
popover
.
modalPresentationStyle
=
UIModalPresentationPopover
;
UIPopoverPresentationController
*
pop
=
popover
.
popoverPresentationController
;
pop
.
permittedArrowDirections
=
UIPopoverArrowDirectionAny
;
pop
.
sourceView
=
popover
.
view
;
pop
.
barButtonItem
=
[[
UIBarButtonItem
alloc
]
initWithCustomView
:
button
];
[
self
presentViewController
:
popover
animated
:
YES
completion
:
nil
];
}
#pragma mark -选中代理
/**
* 选中筛选条件对象typecode
*
* @param index NSString
*/
-
(
void
)
returnCellindexpathwithrow
:
(
NSString
*
)
Type
WithcellTitle
:
(
NSString
*
)
title
Withselected
:
(
NSInteger
)
Selected
{
[
self
.
StyleButton
setTitle
:
title
forState
:
UIControlStateNormal
];
[
self
dismissViewControllerAnimated
:
YES
completion
:
nil
];
OrderBill
*
allOrder
=
[[
OrderBill
alloc
]
init
];
//分页
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
page
.
page
=
self
.
indexPage
;
page
.
rows
=
10
;
//订单
TOOrderEntity
*
Neworder
=
[[
TOOrderEntity
alloc
]
init
];
Neworder
.
guideId
=
[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
;
allOrder
.
datapage
=
page
;
allOrder
.
order
=
Neworder
;
NSString
*
orderState
=
nil
;
for
(
int
i
=
0
;
i
<
self
.
orderStateArray
.
count
;
i
++
)
{
//全部订单
if
([
title
isEqualToString
:[
self
.
orderStateArray
objectAtIndex_opple
:
i
]])
{
orderState
=
nil
;
break
;
}
//待支付
if
([
title
isEqualToString
:[
self
.
orderStateArray
objectAtIndex_opple
:
i
]])
{
orderState
=
@"001"
;
break
;
}
//已支付
if
([
title
isEqualToString
:[
self
.
orderStateArray
objectAtIndex_opple
:
i
]])
{
orderState
=
@"002"
;
break
;
}
//已发货
if
([
title
isEqualToString
:[
self
.
orderStateArray
objectAtIndex_opple
:
i
]])
{
orderState
=
@"003"
;
break
;
}
//已完成
if
([
title
isEqualToString
:[
self
.
orderStateArray
objectAtIndex_opple
:
i
]])
{
orderState
=
@"006"
;
break
;
}
//已撤销
if
([
title
isEqualToString
:[
self
.
orderStateArray
objectAtIndex_opple
:
i
]])
{
orderState
=
@"005"
;
break
;
}
//已退货
if
([
title
isEqualToString
:[
self
.
orderStateArray
objectAtIndex_opple
:
i
]])
{
orderState
=
@"004"
;
break
;
}
}
Neworder
.
orderState
=
orderState
;
[
self
getGuideAllcustomerOrder
:
YES
WithorderBill
:
allOrder
];
}
#pragma mark -Search点击
-
(
BOOL
)
textFieldShouldReturn
:
(
UITextField
*
)
textField
{
[
textField
resignFirstResponder
];
OrderBill
*
allOrder
=
[[
OrderBill
alloc
]
init
];
//分页
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
page
.
page
=
self
.
indexPage
;
page
.
rows
=
10
;
//订单
TOOrderEntity
*
Neworder
=
[[
TOOrderEntity
alloc
]
init
];
Neworder
.
guideId
=
[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
;
allOrder
.
datapage
=
page
;
allOrder
.
order
=
Neworder
;
//客户
TOConsumerEntity
*
customer
=
[[
TOConsumerEntity
alloc
]
init
];
customer
.
name
=
textField
.
text
;
customer
.
mobile
=
textField
.
text
;
allOrder
.
consumer
=
customer
;
self
.
indexPage
=
0
;
[
self
getGuideAllcustomerOrder
:
YES
WithorderBill
:
allOrder
];
return
YES
;
}
/**
* 撤销订单
*
* @param cellindex cell下标
*/
-
(
void
)
undoOrderButtonClick
:
(
NSInteger
)
cellindex
{
[
self
CreateMBProgressHUDLoding
];
OrderBill
*
model
=
[
self
.
datasArray
objectAtIndex_opple
:
cellindex
];
[[
NetworkRequestClassManager
Manager
]
NetworkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@%@/%@/%@"
,
ServerAddress
,
@"/order/updateOrderState/"
,
model
.
order
.
orderNumber
,
model
.
order
.
orderState
,
@"005"
]
WithRequestType
:
1
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
[
self
RemoveMBProgressHUDLoding
];
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
[
self
SuccessMBProgressView
:
@"撤销成功"
];
}
else
{
[
self
ErrorMBProgressView
:
returnValue
[
@"message"
]];
}
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
}
WithFailureBlock
:^
(
id
error
)
{
[
self
RemoveMBProgressHUDLoding
];
}];
}
-
(
void
)
didReceiveMemoryWarning
{
[
super
didReceiveMemoryWarning
];
...
...
Lighting/Class/Login/LoginViewController.m
View file @
643e52cf
...
...
@@ -113,6 +113,7 @@
[
self
.
drawerController
setCloseDrawerGestureModeMask
:
MMCloseDrawerGestureModeAll
];
SHARED_APPDELEGATE
.
mmdrawer
=
self
.
drawerController
;
SHARED_APPDELEGATE
.
window
.
rootViewController
=
self
.
drawerController
;
SHARED_APPDELEGATE
.
Mytabbar
=
self
.
customtabbar
;
}
...
...
Lighting/Class/OrderTableViewCell.h
View file @
643e52cf
...
...
@@ -10,4 +10,78 @@
@interface
OrderTableViewCell
:
UITableViewCell
/**
* 下单时间
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
orderTime
;
/**
* 订单状态
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
orderState
;
/**
* 客户名称
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
customerName
;
/**
* 购买数量
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
goodsNumber
;
/**
* 收货人名字
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
consigneeName
;
/**
* 收货人电话
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
consigneePhoneNumber
;
/**
* 订单编号
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
orderSerialNumber
;
/**
* 服务导购
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
shopperName
;
/**
* 联系电话
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
phoneNumber
;
/**
* 订单总计
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
orderAllprice
;
/**
* 客户地址
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
customerAddress
;
/**
* 客户订单记录数据源
*/
@property
(
nonatomic
,
strong
)
OrderBill
*
model
;
@end
Lighting/Class/OrderTableViewCell.m
View file @
643e52cf
...
...
@@ -15,6 +15,59 @@
// Initialization code
}
#pragma mark -UI
-
(
void
)
setModel
:
(
OrderBill
*
)
model
{
_model
=
model
;
self
.
orderTime
.
text
=
[
self
dateAsString
:
_model
.
order
.
orderTime
];
self
.
orderState
.
text
=
_model
.
order
.
orderState
;
self
.
customerName
.
text
=
_model
.
consumer
.
name
;
//总数量
NSInteger
Number
=
0
;
for
(
TOOrderdetailEntity
*
objc
in
_model
.
orderdetailList
)
{
Number
+=
[
objc
.
goodsNum
integerValue
];
}
self
.
goodsNumber
.
text
=
[
NSString
stringWithFormat
:
@"%ld"
,
Number
];
self
.
consigneeName
.
text
=
_model
.
order
.
receiverName
;
self
.
consigneePhoneNumber
.
text
=
_model
.
order
.
receiverMobile
;
self
.
orderSerialNumber
.
text
=
_model
.
order
.
orderNumber
;
self
.
shopperName
.
text
=
_model
.
employee
.
userName
;
self
.
phoneNumber
.
text
=
_model
.
consumer
.
mobile
;
//价格
NSInteger
allprice
=
0
;
for
(
TOOrderdetailEntity
*
objc
in
_model
.
orderdetailList
)
{
allprice
+=
[
objc
.
goodsPrice
integerValue
];
}
self
.
orderAllprice
.
text
=
[
NSString
stringWithFormat
:
@"%ld"
,
allprice
];
self
.
customerAddress
.
text
=
_model
.
consumer
.
address
;
}
#pragma mark -时间转换NSDate转NSString
-
(
NSString
*
)
dateAsString
:
(
NSDate
*
)
date
{
NSDateFormatter
*
formatter
=
[[
NSDateFormatter
alloc
]
init
];
[
formatter
setDateFormat
:
@"yyyy-MM-dd"
];
NSString
*
timeString
=
[
formatter
stringFromDate
:
date
];
return
timeString
;
}
-
(
void
)
setSelected
:
(
BOOL
)
selected
animated
:
(
BOOL
)
animated
{
[
super
setSelected
:
selected
animated
:
animated
];
...
...
Lighting/Class/OrderdetailsViewController.m
View file @
643e52cf
...
...
@@ -364,7 +364,7 @@
{
[
self
CreateMBProgressHUDLoding
];
[[
NetworkRequestClassManager
Manager
]
NetworkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@%@"
,
ServerAddress
,
@"/order/UrlOfprintPDF/"
,
@"A0716051715560001"
]
WithRequestType
:
1
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
[[
NetworkRequestClassManager
Manager
]
NetworkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@%@"
,
ServerAddress
,
@"/order/UrlOfprintPDF/"
,
_orderCode
]
WithRequestType
:
1
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
NSString
*
url
=
[
NSString
stringWithFormat
:
@"%@%@"
,
PDFSERADDRESS
,
returnValue
[
@"data"
]];
self
.
PDFpath
=
url
;
...
...
@@ -394,6 +394,7 @@
PDFViewController
*
pdfVc
=
[[
PDFViewController
alloc
]
init
];
pdfVc
.
pdfURLString
=
self
.
PDFpath
;
[
self
presentViewController
:
pdfVc
animated
:
YES
completion
:
nil
];
}];
}
...
...
Lighting/Class/ProductLibraryViewController.m
View file @
643e52cf
...
...
@@ -105,10 +105,11 @@
if
(
response
.
goodsEntity
.
count
==
0
)
{
[
self
ErrorMBProgressView
:
@"暂无数据"
];
return
;
}
else
{
weakSelf
.
datasArray
=
response
;
[
weakSelf
.
productCollectionView
reloadData
];
}
weakSelf
.
datasArray
=
response
;
[
weakSelf
.
productCollectionView
reloadData
];
}];
}
...
...
@@ -130,10 +131,12 @@
if
(
response
.
goodsEntity
.
count
==
0
)
{
[
self
ErrorMBProgressView
:
@"暂无数据"
];
return
;
}
else
{
weakSelf
.
datasArray
=
response
;
[
weakSelf
.
productCollectionView
reloadData
];
}
weakSelf
.
datasArray
=
response
;
[
weakSelf
.
productCollectionView
reloadData
];
}];
}
...
...
@@ -183,7 +186,7 @@
}
else
{
[
self
ErrorMBProgressView
:
returnValue
[
@"message"
]
];
[
self
ErrorMBProgressView
:
@"暂无数据"
];
}
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
...
...
@@ -219,7 +222,8 @@
#pragma mark -返回根视图
-
(
void
)
popTorootviewController
:
(
NSNotification
*
)
not
{
[
self
.
navigationController
popToViewController
:[
self
.
navigationController
.
viewControllers
objectAtIndex_opple
:
1
]
animated
:
NO
];
[
self
.
navigationController
popToViewController
:[
self
.
navigationController
.
viewControllers
firstObject
]
animated
:
NO
];
}
...
...
@@ -521,11 +525,11 @@
}
#pragma mark -释放
-
(
void
)
dealloc
{
[[
NSNotificationCenter
defaultCenter
]
removeObserver
:
self
];
}
//
#pragma mark -释放
//
- (void)dealloc
//
{
//
[[NSNotificationCenter defaultCenter]removeObserver:self];
//
}
...
...
Lighting/Class/ScannerViewController.h
0 → 100644
View file @
643e52cf
//
// ScannerViewController.h
// Lighting
//
// Created by 曹云霄 on 16/5/18.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "BaseViewController.h"
@interface
ScannerViewController
:
BaseViewController
/**
* 回传扫描后的结果
*/
@property
(
nonatomic
,
copy
)
void
(
^
ReturnScannerResponse
)(
id
response
);
@end
Lighting/Class/ScannerViewController.m
0 → 100644
View file @
643e52cf
//
// ScannerViewController.m
// Lighting
//
// Created by 曹云霄 on 16/5/18.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "ScannerViewController.h"
#import <AVFoundation/AVFoundation.h>
@interface
ScannerViewController
()
<
AVCaptureMetadataOutputObjectsDelegate
>
/**
* 捕捉会话
*/
@property
(
strong
,
nonatomic
)
AVCaptureSession
*
session
;
/**
* 展示layer
*/
@property
(
strong
,
nonatomic
)
AVCaptureVideoPreviewLayer
*
previewLayer
;
/**
* 展示View
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UIImageView
*
scanRectView
;
@end
@implementation
ScannerViewController
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
// Do any additional setup after loading the view from its nib.
[
self
uiConfigAction
];
}
#pragma mark -UI
-
(
void
)
uiConfigAction
{
// 1. 摄像头设备
AVCaptureDevice
*
device
=
[
AVCaptureDevice
defaultDeviceWithMediaType
:
AVMediaTypeVideo
];
// 2. 设置输入
NSError
*
error
=
nil
;
AVCaptureDeviceInput
*
input
=
[
AVCaptureDeviceInput
deviceInputWithDevice
:
device
error
:
&
error
];
if
(
error
)
{
NSLog
(
@"没有摄像头-%@"
,
error
.
localizedDescription
);
[
self
ErrorMBProgressView
:
@"开启摄像头失败"
];
return
;
}
// 3. 设置输出(Metadata元数据)
AVCaptureMetadataOutput
*
output
=
[[
AVCaptureMetadataOutput
alloc
]
init
];
// 3.1 设置输出的代理
// 说明:使用主线程队列,相应比较同步,使用其他队列,相应不同步,容易让用户产生不好的体验
[
output
setMetadataObjectsDelegate
:
self
queue
:
dispatch_get_main_queue
()];
// [output setMetadataObjectsDelegate:self queue:dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)];
// 4. 拍摄会话
AVCaptureSession
*
session
=
[[
AVCaptureSession
alloc
]
init
];
// 添加session的输入和输出
[
session
addInput
:
input
];
[
session
addOutput
:
output
];
//使用1080p的图像输出
session
.
sessionPreset
=
AVCaptureSessionPreset1920x1080
;
// 4.1 设置输出的格式
// 提示:一定要先设置会话的输出为output之后,再指定输出的元数据类型!
[
output
setMetadataObjectTypes
:[
output
availableMetadataObjectTypes
]];
// 5. 设置预览图层(用来让用户能够看到扫描情况)
AVCaptureVideoPreviewLayer
*
preview
=
[
AVCaptureVideoPreviewLayer
layerWithSession
:
session
];
// 5.1 设置preview图层的属性
preview
.
videoGravity
=
AVLayerVideoGravityResizeAspectFill
;
// 5.2 设置preview图层的大小
preview
.
frame
=
[
UIScreen
mainScreen
].
bounds
;
self
.
previewLayer
=
preview
;
//
// UIView *view = [[UIView alloc]initWithFrame:CGRectMake(0, 0, ScreenHeight, ScreenWidth)];
// view.transform = CGAffineTransformMakeRotation(M_PI/2);
// [view.layer insertSublayer:self.previewLayer above:0];
[
self
.
view
.
layer
insertSublayer
:
self
.
previewLayer
atIndex
:
0
];
//
CGSize
size
=
[
UIScreen
mainScreen
].
bounds
.
size
;
CGRect
cropRect
=
self
.
scanRectView
.
frame
;
// CGFloat p1 = size.height/size.width;
// CGFloat p2 = 1920./1080.; //使用1080p的图像输出
output
.
rectOfInterest
=
CGRectMake
(
self
.
scanRectView
.
frame
.
origin
.
y
/
ScreenHeight
,((
ScreenWidth
-
self
.
scanRectView
.
frame
.
size
.
width
)
/
2
)
/
ScreenWidth
,
self
.
scanRectView
.
frame
.
size
.
height
/
ScreenHeight
,
self
.
scanRectView
.
frame
.
size
.
width
/
ScreenWidth
);
//
// CGFloat fixHeight = [UIScreen mainScreen].bounds.size.width * 1920. / 1080.;
// CGFloat fixPadding = (fixHeight - size.height)/2;
// output.rectOfInterest = CGRectMake((cropRect.origin.y + fixPadding)/fixHeight,
// cropRect.origin.x/size.width,
// cropRect.size.height/fixHeight,
// cropRect.size.width/size.width);
NSLog
(
@"%@"
,
NSStringFromCGRect
(
output
.
rectOfInterest
));
// if (p1 < p2) {
// CGFloat fixHeight = [UIScreen mainScreen].bounds.size.width * 1920. / 1080.;
// CGFloat fixPadding = (fixHeight - size.height)/2;
// output.rectOfInterest = CGRectMake((cropRect.origin.y + fixPadding)/fixHeight,
// cropRect.origin.x/size.width,
// cropRect.size.height/fixHeight,
// cropRect.size.width/size.width);
// } else {
// CGFloat fixWidth = [UIScreen mainScreen].bounds.size.height * 1080. / 1920.;
// CGFloat fixPadding = (fixWidth - size.width)/2;
// output.rectOfInterest = CGRectMake(cropRect.origin.y/size.height,
// (cropRect.origin.x + fixPadding)/fixWidth,
// cropRect.size.height/size.height,
// cropRect.size.width/fixWidth);
// }
self
.
session
=
session
;
[
self
.
session
startRunning
];
}
#pragma mark - delegate
-
(
void
)
captureOutput
:
(
AVCaptureOutput
*
)
captureOutput
didOutputMetadataObjects
:
(
NSArray
*
)
metadataObjects
fromConnection
:
(
AVCaptureConnection
*
)
connection
{
if
(
metadataObjects
.
count
>
0
)
{
AVMetadataMachineReadableCodeObject
*
obj
=
metadataObjects
[
0
];
[
self
.
session
stopRunning
];
//扫描结果
if
(
self
.
ReturnScannerResponse
)
{
self
.
ReturnScannerResponse
(
obj
.
stringValue
);
}
}
}
#pragma amrk -取消扫描
-
(
IBAction
)
cancelButtonClick
:
(
UIButton
*
)
sender
{
[
self
.
session
stopRunning
];
[
self
dismissViewControllerAnimated
:
YES
completion
:
nil
];
}
-
(
void
)
didReceiveMemoryWarning
{
[
super
didReceiveMemoryWarning
];
// Dispose of any resources that can be recreated.
}
/*
#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
Lighting/Class/ScannerViewController.xib
0 → 100644
View file @
643e52cf
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.iPad.XIB"
version=
"3.0"
toolsVersion=
"10116"
systemVersion=
"15E65"
targetRuntime=
"iOS.CocoaTouch.iPad"
propertyAccessControl=
"none"
>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"10085"
/>
</dependencies>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"ScannerViewController"
>
<connections>
<outlet
property=
"scanRectView"
destination=
"nwi-18-pl1"
id=
"YRc-6i-tRV"
/>
<outlet
property=
"view"
destination=
"i5M-Pr-FkT"
id=
"sfx-zR-JGt"
/>
</connections>
</placeholder>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<view
clearsContextBeforeDrawing=
"NO"
contentMode=
"scaleToFill"
id=
"i5M-Pr-FkT"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"700"
height=
"528"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"将二维码、条形码放入框中即可自动扫描"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"3VO-ZE-ryq"
>
<rect
key=
"frame"
x=
"139"
y=
"54"
width=
"423"
height=
"24"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"17"
/>
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"ScannerViewController"
id=
"nwi-18-pl1"
>
<rect
key=
"frame"
x=
"150"
y=
"101"
width=
"400"
height=
"400"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
</imageView>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
id=
"Max-ka-Yvf"
>
<rect
key=
"frame"
x=
"33"
y=
"476"
width=
"85"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMinY=
"YES"
/>
<state
key=
"normal"
title=
"取消扫描"
>
<color
key=
"titleColor"
white=
"0.0"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
<connections>
<action
selector=
"cancelButtonClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"8qh-ki-1tT"
/>
</connections>
</button>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"calibratedWhite"
/>
<freeformSimulatedSizeMetrics
key=
"simulatedDestinationMetrics"
/>
<point
key=
"canvasLocation"
x=
"363"
y=
"-85"
/>
</view>
</objects>
<resources>
<image
name=
"ScannerViewController"
width=
"430"
height=
"430"
/>
</resources>
</document>
Lighting/Class/SettlementViewController.m
View file @
643e52cf
...
...
@@ -42,6 +42,10 @@
self
.
invoiceType
.
layer
.
cornerRadius
=
kCornerRadius
;
self
.
invoiceBackView
.
layer
.
masksToBounds
=
YES
;
self
.
invoiceBackView
.
layer
.
cornerRadius
=
kCornerRadius
;
self
.
cancelButton
.
layer
.
masksToBounds
=
YES
;
self
.
cancelButton
.
layer
.
cornerRadius
=
kCornerRadius
;
self
.
sureButton
.
layer
.
masksToBounds
=
YES
;
self
.
sureButton
.
layer
.
cornerRadius
=
kCornerRadius
;
}
...
...
@@ -93,6 +97,33 @@
[
self
ShowPopoverViewController
:
CGSizeMake
(
100
,
200
)
Withdatas
:
arr
ShowButton
:
sender
SelectedIndex
:
0
GetTitle
:
YES
];
}
#pragma mark -微信支付
-
(
IBAction
)
WechatButtonClick
:
(
UIButton
*
)
sender
{
sender
.
selected
=
!
sender
.
selected
;
if
(
sender
.
selected
)
{
self
.
payTreasureButton
.
selected
=
NO
;
[
self
.
payTypeButton
setTitle
:
@"现金、支票、转账"
forState
:
UIControlStateNormal
];
}
}
#pragma mark -支付宝支付
-
(
IBAction
)
ZhifubaoPayButtonClick
:
(
UIButton
*
)
sender
{
sender
.
selected
=
!
sender
.
selected
;
if
(
sender
.
selected
)
{
self
.
WeixiPayButton
.
selected
=
NO
;
[
self
.
payTypeButton
setTitle
:
@"现金、支票、转账"
forState
:
UIControlStateNormal
];
}
}
#pragma mark -是否开票
-
(
IBAction
)
isinvoiceButtonClick
:
(
UIButton
*
)
sender
{
...
...
@@ -164,9 +195,6 @@
#pragma mark -确认支付请求
-
(
void
)
SurePayRequest
{
...
...
Lighting/Class/SettlementViewController.xib
View file @
643e52cf
...
...
@@ -39,7 +39,7 @@
<rect
key=
"frame"
x=
"83"
y=
"59"
width=
"160"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<textField
opaque=
"NO"
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
textAlignment=
"natural"
minimumFontSize=
"17"
id=
"kfb-PC-RSU"
>
<textField
opaque=
"NO"
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
textAlignment=
"natural"
minimumFontSize=
"17"
id=
"kfb-PC-RSU"
>
<rect
key=
"frame"
x=
"10"
y=
"1"
width=
"150"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"calibratedWhite"
/>
...
...
@@ -74,7 +74,7 @@
<rect
key=
"frame"
x=
"83"
y=
"98"
width=
"160"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<textField
opaque=
"NO"
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
textAlignment=
"natural"
minimumFontSize=
"17"
id=
"Wku-Nz-Jvr"
>
<textField
opaque=
"NO"
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
textAlignment=
"natural"
minimumFontSize=
"17"
id=
"Wku-Nz-Jvr"
>
<rect
key=
"frame"
x=
"10"
y=
"0.0"
width=
"150"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"calibratedWhite"
/>
...
...
@@ -91,23 +91,29 @@
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
id=
"pfa-IW-8J9"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
id=
"pfa-IW-8J9"
>
<rect
key=
"frame"
x=
"83"
y=
"180"
width=
"160"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.93333333330000001"
green=
"0.93333333330000001"
blue=
"0.93333333330000001"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"12"
/>
<state
key=
"normal"
title=
"微信支付"
>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<state
key=
"normal"
backgroundImage=
"wechat1"
>
<color
key=
"titleColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
<state
key=
"selected"
backgroundImage=
"圆角矩形-2-副本-2"
/>
<connections>
<action
selector=
"WechatButtonClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"woS-KH-v7d"
/>
</connections>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
id=
"u1Q-iA-oUv"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
id=
"u1Q-iA-oUv"
>
<rect
key=
"frame"
x=
"83"
y=
"219"
width=
"160"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.93333333330000001"
green=
"0.93333333330000001"
blue=
"0.93333333330000001"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"12"
/>
<state
key=
"normal"
title=
"支付宝支付"
>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<state
key=
"normal"
backgroundImage=
"图层-1"
>
<color
key=
"titleColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
<state
key=
"selected"
backgroundImage=
"图层-3"
/>
<connections>
<action
selector=
"ZhifubaoPayButtonClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"KqV-tt-tEq"
/>
</connections>
</button>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"发票抬头:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"58b-Vg-zBQ"
>
<rect
key=
"frame"
x=
"25"
y=
"376"
width=
"58"
height=
"21"
/>
...
...
@@ -223,5 +229,9 @@
<resources>
<image
name=
"05产品库-详情_03"
width=
"500"
height=
"375"
/>
<image
name=
"down_arr"
width=
"22"
height=
"12"
/>
<image
name=
"wechat1"
width=
"175"
height=
"30"
/>
<image
name=
"图层-1"
width=
"175"
height=
"30"
/>
<image
name=
"图层-3"
width=
"175"
height=
"30"
/>
<image
name=
"圆角矩形-2-副本-2"
width=
"175"
height=
"30"
/>
</resources>
</document>
Lighting/Class/Shoppingcart/GenerateOrdersViewController.m
View file @
643e52cf
...
...
@@ -365,6 +365,7 @@
order
.
order
=
orderReceiver
;
orderReceiver
.
guideId
=
[[
Shoppersmanager
manager
]
Shoppers
].
employee
.
fid
;
orderReceiver
.
consumerId
=
[[
Customermanager
manager
]
customerID
];
orderReceiver
.
orderState
=
@"001"
;
//商品ID
NSArray
*
goodArray
=
[
self
.
datasArray
lastObject
];
NSMutableArray
*
goodidArr
=
[
NSMutableArray
array
];
...
...
@@ -380,6 +381,7 @@
orderGoods
.
goodsNum
=
model
.
goods
.
number
;
orderGoods
.
goodsPrice
=
model
.
goods
.
costPrice
;
orderGoods
.
remark
=
@" "
;
//总价
NSInteger
allprice
=
[
model
.
goods
.
number
integerValue
]
*
[
model
.
goods
.
costPrice
integerValue
];
orderGoods
.
goodsTotalPrice
=
[
NSNumber
numberWithInteger
:
allprice
];
...
...
Lighting/Class/Tabbar/CustomTabbarController.h
View file @
643e52cf
...
...
@@ -10,4 +10,11 @@
@interface
CustomTabbarController
:
UITabBarController
@end
Lighting/Class/Tabbar/CustomTabbarController.m
View file @
643e52cf
...
...
@@ -20,7 +20,7 @@
#import "UserViewController.h"
#import "ChangePasswordViewController.h"
#import "SearchViewController.h"
#import "ScannerViewController.h"
@interface
CustomTabbarController
()
<
TabbarButtonClickdelegate
,
ChangpasswordDelegate
,
CancelButtondelegate
,
UITextFieldDelegate
>
...
...
@@ -71,7 +71,7 @@
toolview
.
delegate
=
self
;
toolview
.
inputField
.
delegate
=
self
;
[
self
.
tabBar
addSubview
:
toolview
];
SHARED_APPDELEGATE
.
tabbar
=
self
.
tabBar
;
// SHARED_APPDELEGATE.My
tabbar = self.tabBar;
}
...
...
@@ -214,21 +214,27 @@
-
(
void
)
QrcodeButtonClick
{
NSLog
(
@"二维码扫描"
);
ScannerViewController
*
scannerVC
=
[[
ScannerViewController
alloc
]
init
];
[
scannerVC
setReturnScannerResponse
:
^
(
id
value
)
{
[
self
dismissViewControllerAnimated
:
YES
completion
:
nil
];
//调用商品控制器
UIStoryboard
*
storyboard
=
[
UIStoryboard
storyboardWithName
:
@"StoryboardwithCYX"
bundle
:
nil
];
ProductLibraryViewController
*
productVC
=
[
storyboard
instantiateViewControllerWithIdentifier
:
@"productlibrary"
];
productVC
.
selectedCode
=
value
;
[
self
.
navigationController
pushViewController
:
productVC
animated
:
YES
];
}];
[
self
presentViewController
:
scannerVC
animated
:
YES
completion
:
nil
];
}
#pragma mark -搜索框代理方法
-
(
BOOL
)
textFieldShouldBeginEditing
:
(
UITextField
*
)
textField
{
if
(
textField
.
text
.
length
!=
0
)
{
//返回根视图
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
POPROOTCONTROLLER
object
:
nil
];
}
else
{
self
.
selectedIndex
=
9
;
}
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
POPROOTCONTROLLER
object
:
nil
];
self
.
selectedIndex
=
9
;
return
YES
;
}
...
...
@@ -239,11 +245,9 @@
{
//搜索
if
(
textField
.
text
!=
nil
)
{
if
(
textField
.
text
.
length
!=
0
)
{
[
textField
resignFirstResponder
];
// self.selectedIndex = 4;
//搜索
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
SEARCHSTRING
object
:
textField
.
text
];
}
...
...
Lighting/Lighting.xcodeproj/project.pbxproj
View file @
643e52cf
...
...
@@ -95,6 +95,8 @@
29BFBD981CE46FDA00C238FB
/* MyclientEntityModel.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29BFBD971CE46FDA00C238FB
/* MyclientEntityModel.m */
;
};
29C584E91CDA249300C6F677
/* ProductCollectionViewCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29C584E81CDA249200C6F677
/* ProductCollectionViewCell.m */
;
};
29C584ED1CDA429500C6F677
/* ProductDetailsViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29C584EC1CDA429500C6F677
/* ProductDetailsViewController.m */
;
};
29CB70F11CEC4607003508BF
/* ScannerViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29CB70EF1CEC4607003508BF
/* ScannerViewController.m */
;
};
29CB70F21CEC4607003508BF
/* ScannerViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29CB70F01CEC4607003508BF
/* ScannerViewController.xib */
;
};
29E28CE81CE0B91B00812A55
/* HENLENSONG.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29E28CE71CE0B91B00812A55
/* HENLENSONG.m */
;
};
29E384BE1CE9933300888199
/* AdditionalTableViewCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29E384BC1CE9933300888199
/* AdditionalTableViewCell.m */
;
};
29E384BF1CE9933300888199
/* AdditionalTableViewCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29E384BD1CE9933300888199
/* AdditionalTableViewCell.xib */
;
};
...
...
@@ -280,6 +282,9 @@
29C584E81CDA249200C6F677
/* ProductCollectionViewCell.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
ProductCollectionViewCell.m
;
sourceTree
=
"<group>"
;
};
29C584EB1CDA429500C6F677
/* ProductDetailsViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ProductDetailsViewController.h
;
sourceTree
=
"<group>"
;
};
29C584EC1CDA429500C6F677
/* ProductDetailsViewController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
ProductDetailsViewController.m
;
sourceTree
=
"<group>"
;
};
29CB70EE1CEC4607003508BF
/* ScannerViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ScannerViewController.h
;
sourceTree
=
"<group>"
;
};
29CB70EF1CEC4607003508BF
/* ScannerViewController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
ScannerViewController.m
;
sourceTree
=
"<group>"
;
};
29CB70F01CEC4607003508BF
/* ScannerViewController.xib */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
file.xib
;
path
=
ScannerViewController.xib
;
sourceTree
=
"<group>"
;
};
29E28CE61CE0B91B00812A55
/* HENLENSONG.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
HENLENSONG.h
;
sourceTree
=
"<group>"
;
};
29E28CE71CE0B91B00812A55
/* HENLENSONG.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
HENLENSONG.m
;
sourceTree
=
"<group>"
;
};
29E384BB1CE9933300888199
/* AdditionalTableViewCell.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
AdditionalTableViewCell.h
;
sourceTree
=
"<group>"
;
};
...
...
@@ -476,6 +481,7 @@
2928F7DD1CD085430036D761
/* Class */
=
{
isa
=
PBXGroup
;
children
=
(
29CF6B791CEC433900D4A778
/* ScannerVC */
,
29E384C01CE9A68F00888199
/* SearchController */
,
29834EC11CDF768C001A484F
/* XXuserController */
,
2962D06E1CD1A56B0058829D
/* RIghtVC */
,
...
...
@@ -985,6 +991,16 @@
name
=
view
;
sourceTree
=
"<group>"
;
};
29CF6B791CEC433900D4A778
/* ScannerVC */
=
{
isa
=
PBXGroup
;
children
=
(
29CB70EE1CEC4607003508BF
/* ScannerViewController.h */
,
29CB70EF1CEC4607003508BF
/* ScannerViewController.m */
,
29CB70F01CEC4607003508BF
/* ScannerViewController.xib */
,
);
name
=
ScannerVC
;
sourceTree
=
"<group>"
;
};
29E28CE51CE0B90600812A55
/* Regularexpressions */
=
{
isa
=
PBXGroup
;
children
=
(
...
...
@@ -1215,6 +1231,7 @@
29A938271CDAE31B00F21E54
/* ProductDetailsHeaderView.xib in Resources */
,
2908870C1CE5A308000B7097
/* DateSelectedViewController.xib in Resources */
,
2942F8A81CDD80CE005B377E
/* authenticateView.xib in Resources */
,
29CB70F21CEC4607003508BF
/* ScannerViewController.xib in Resources */
,
29E384BF1CE9933300888199
/* AdditionalTableViewCell.xib in Resources */
,
29807C651CD20F0F00F111B8
/* StoryboardwithCYX.storyboard in Resources */
,
29EAAE901CDC3E9700C4DBA2
/* BillingInfoView.xib in Resources */
,
...
...
@@ -1368,6 +1385,7 @@
29A9DCAE1CEB643C00A7567A
/* PDFViewController.m in Sources */
,
29EAAE8E1CDC3E8E00C4DBA2
/* BillingInfoView.m in Sources */
,
0470D6141CE2938000647F0F
/* ProductLibraryView.m in Sources */
,
29CB70F11CEC4607003508BF
/* ScannerViewController.m in Sources */
,
290887061CE58BC2000B7097
/* screeningButton.m in Sources */
,
044708611CD7C1E800555827
/* MainSetViewController.m in Sources */
,
29E28CE81CE0B91B00812A55
/* HENLENSONG.m in Sources */
,
...
...
@@ -1498,7 +1516,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME
=
"Brand Assets"
;
CLANG_ENABLE_OBJC_WEAK
=
YES
;
CODE_SIGN_IDENTITY
=
"iPhone Developer"
;
CODE_SIGN_IDENTITY
=
"iPhone Developer
: 云霄 曹 (WM8ZU7YY98)
"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer: 云霄 曹 (WM8ZU7YY98)"
;
COMPRESS_PNG_FILES
=
NO
;
GCC_PRECOMPILE_PREFIX_HEADER
=
YES
;
...
...
@@ -1537,7 +1555,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomore.opple
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
"
e9bd3600-5e9c-4cd0-a0d5-b7d8b0882ca8
"
;
PROVISIONING_PROFILE
=
"
f89bebf5-81e2-4c61-9052-8c7bb0f9ddd6
"
;
STRIP_PNG_TEXT
=
NO
;
USER_HEADER_SEARCH_PATHS
=
"$(PODS_ROOT)/**"
;
};
...
...
@@ -1550,8 +1568,8 @@
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME
=
"Brand Assets"
;
CLANG_ENABLE_OBJC_WEAK
=
YES
;
CODE_SIGN_IDENTITY
=
"
iPhone Developer
"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"
iPhone Developer: 云霄 曹 (WM8ZU7YY98)
"
;
CODE_SIGN_IDENTITY
=
""
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
""
;
COMPRESS_PNG_FILES
=
NO
;
GCC_PRECOMPILE_PREFIX_HEADER
=
YES
;
GCC_PREFIX_HEADER
=
"$(SRCROOT)/Tools/PrefixHeader.pch"
;
...
...
@@ -1589,7 +1607,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomore.opple
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
"
e9bd3600-5e9c-4cd0-a0d5-b7d8b0882ca8
"
;
PROVISIONING_PROFILE
=
"
f89bebf5-81e2-4c61-9052-8c7bb0f9ddd6
"
;
STRIP_PNG_TEXT
=
NO
;
USER_HEADER_SEARCH_PATHS
=
"$(PODS_ROOT)/**"
;
};
...
...
Lighting/Lighting/AppDelegate.h
View file @
643e52cf
...
...
@@ -34,7 +34,7 @@
/**
* tabbar控制器
*/
@property
(
nonatomic
,
strong
)
UITabBar
*
tabbar
;
@property
(
nonatomic
,
strong
)
UITabBar
Controller
*
My
tabbar
;
-
(
void
)
saveContext
;
-
(
NSURL
*
)
applicationDocumentsDirectory
;
...
...
Lighting/Lighting/Images.xcassets/ScannerViewController.imageset/Contents.json
0 → 100644
View file @
643e52cf
{
"images"
:
[
{
"idiom"
:
"universal"
,
"filename"
:
"ScannerViewController.png"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"ScannerViewController@2x.png"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
Lighting/Lighting/Images.xcassets/ScannerViewController.imageset/ScannerViewController.png
0 → 100644
View file @
643e52cf
2.45 KB
Lighting/Lighting/Images.xcassets/ScannerViewController.imageset/ScannerViewController@2x.png
0 → 100644
View file @
643e52cf
5.1 KB
Lighting/Lighting/Images.xcassets/wechat1.imageset/Contents.json
0 → 100644
View file @
643e52cf
{
"images"
:
[
{
"idiom"
:
"universal"
,
"filename"
:
"wechat1.png"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"wechat1@2x.png"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
Lighting/Lighting/Images.xcassets/wechat1.imageset/wechat1.png
0 → 100644
View file @
643e52cf
3.6 KB
Lighting/Lighting/Images.xcassets/wechat1.imageset/wechat1@2x.png
0 → 100644
View file @
643e52cf
6.19 KB
Lighting/Lighting/Images.xcassets/图层-1.imageset/Contents.json
0 → 100644
View file @
643e52cf
{
"images"
:
[
{
"idiom"
:
"universal"
,
"filename"
:
"图层-1.png"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"图层-1@2x.png"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
Lighting/Lighting/Images.xcassets/图层-1.imageset/图层-1.png
0 → 100644
View file @
643e52cf
4.41 KB
Lighting/Lighting/Images.xcassets/图层-1.imageset/图层-1@2x.png
0 → 100644
View file @
643e52cf
9.4 KB
Lighting/Lighting/Images.xcassets/图层-3.imageset/Contents.json
0 → 100644
View file @
643e52cf
{
"images"
:
[
{
"idiom"
:
"universal"
,
"filename"
:
"图层-3.png"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"图层-3@2x.png"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
Lighting/Lighting/Images.xcassets/图层-3.imageset/图层-3.png
0 → 100644
View file @
643e52cf
4.55 KB
Lighting/Lighting/Images.xcassets/图层-3.imageset/图层-3@2x.png
0 → 100644
View file @
643e52cf
9.43 KB
Lighting/Lighting/Images.xcassets/圆角矩形-2-副本-2.imageset/Contents.json
0 → 100644
View file @
643e52cf
{
"images"
:
[
{
"idiom"
:
"universal"
,
"filename"
:
"圆角矩形-2-副本-2.png"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"圆角矩形-2-副本-2@2x.png"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
Lighting/Lighting/Images.xcassets/圆角矩形-2-副本-2.imageset/圆角矩形-2-副本-2.png
0 → 100644
View file @
643e52cf
3.47 KB
Lighting/Lighting/Images.xcassets/圆角矩形-2-副本-2.imageset/圆角矩形-2-副本-2@2x.png
0 → 100644
View file @
643e52cf
6.18 KB
Lighting/Lighting/Images.xcassets/圆角矩形-5.imageset/Contents.json
0 → 100644
View file @
643e52cf
{
"images"
:
[
{
"idiom"
:
"universal"
,
"filename"
:
"圆角矩形-5.png"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"圆角矩形-5@2x.png"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
Lighting/Lighting/Images.xcassets/圆角矩形-5.imageset/圆角矩形-5.png
0 → 100644
View file @
643e52cf
10.3 KB
Lighting/Lighting/Images.xcassets/圆角矩形-5.imageset/圆角矩形-5@2x.png
0 → 100644
View file @
643e52cf
30.7 KB
Lighting/Lighting/StoryboardwithCYX.storyboard
View file @
643e52cf
...
...
@@ -153,7 +153,7 @@
<rect
key=
"frame"
x=
"0.0"
y=
"28"
width=
"721"
height=
"100"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"NV8-I4-ig4"
id=
"E0m-wU-1b5"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"721"
height=
"99"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"721"
height=
"99
.5
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"05产品库-详情_03"
id=
"F66-vh-va3"
>
...
...
@@ -424,7 +424,7 @@
<rect
key=
"frame"
x=
"0.0"
y=
"28"
width=
"717"
height=
"100"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"1Sl-4a-xI0"
id=
"Kls-Lg-VEy"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"717"
height=
"99"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"717"
height=
"99
.5
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"05产品库-详情_03"
id=
"mhA-C1-oB5"
>
...
...
@@ -522,7 +522,7 @@
<rect
key=
"frame"
x=
"0.0"
y=
"128"
width=
"717"
height=
"200"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"1pL-BK-mae"
id=
"zJa-bo-n5G"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"717"
height=
"199"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"717"
height=
"199
.5
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"下单时间:"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"DqG-UR-Q08"
>
...
...
@@ -595,7 +595,7 @@
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"客
服
地址:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"rbq-pW-vP2"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"客
户
地址:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"rbq-pW-vP2"
>
<rect
key=
"frame"
x=
"350"
y=
"136"
width=
"72"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
...
...
@@ -693,6 +693,19 @@
</subviews>
</tableViewCellContentView>
<color
key=
"backgroundColor"
red=
"0.56470588239999997"
green=
"0.75686274509999996"
blue=
"0.1960784314"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<connections>
<outlet
property=
"consigneeName"
destination=
"eAc-Y2-BcG"
id=
"MY0-Jd-BeO"
/>
<outlet
property=
"consigneePhoneNumber"
destination=
"ygb-zQ-59Y"
id=
"Qn6-yr-RPG"
/>
<outlet
property=
"customerAddress"
destination=
"aUc-nr-JmM"
id=
"4U9-HM-g1r"
/>
<outlet
property=
"customerName"
destination=
"Bad-XW-0bg"
id=
"Sz4-Lk-upf"
/>
<outlet
property=
"goodsNumber"
destination=
"q0f-75-VmW"
id=
"csL-xC-4bo"
/>
<outlet
property=
"orderAllprice"
destination=
"C89-SH-CLU"
id=
"AVG-Ud-ylS"
/>
<outlet
property=
"orderSerialNumber"
destination=
"xeN-1m-zqn"
id=
"fhB-og-fNo"
/>
<outlet
property=
"orderState"
destination=
"ysN-Xc-Pna"
id=
"oER-A2-553"
/>
<outlet
property=
"orderTime"
destination=
"oYO-Ty-li3"
id=
"zPl-0u-Kf2"
/>
<outlet
property=
"phoneNumber"
destination=
"XFH-Ra-nFt"
id=
"6Kl-BE-Fxv"
/>
<outlet
property=
"shopperName"
destination=
"sza-qy-jFZ"
id=
"dWr-Kw-9nG"
/>
</connections>
</tableViewCell>
</prototypes>
</tableView>
...
...
@@ -734,10 +747,10 @@
<color
key=
"backgroundColor"
red=
"0.93725490199999995"
green=
"0.93725490199999995"
blue=
"0.95686274510000002"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<prototypes>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"none"
indentationWidth=
"10"
reuseIdentifier=
"firstcell"
rowHeight=
"84"
id=
"XgA-9w-ut9"
customClass=
"OrderInformationTableViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"11
4
"
width=
"768"
height=
"84"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"11
3.5
"
width=
"768"
height=
"84"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"XgA-9w-ut9"
id=
"BWi-jv-OOH"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"83"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"83
.5
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"订单编号:"
textAlignment=
"right"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"KGm-XJ-NyV"
>
...
...
@@ -811,10 +824,10 @@
</connections>
</tableViewCell>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"none"
indentationWidth=
"10"
reuseIdentifier=
"secondcell"
rowHeight=
"135"
id=
"rIO-yd-hh7"
customClass=
"PersonInformationTableViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"19
8
"
width=
"768"
height=
"135"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"19
7.5
"
width=
"768"
height=
"135"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"rIO-yd-hh7"
id=
"mn8-g0-Zqo"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"134"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"134
.5
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"05产品库-详情_03"
id=
"Zdg-s0-xfD"
>
...
...
@@ -907,10 +920,10 @@
</connections>
</tableViewCell>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"none"
indentationWidth=
"10"
reuseIdentifier=
"thirdcell"
rowHeight=
"90"
id=
"PfN-24-v5t"
customClass=
"GoodsInformationTableViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"33
3
"
width=
"768"
height=
"90"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"33
2.5
"
width=
"768"
height=
"90"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"PfN-24-v5t"
id=
"2Je-94-WVY"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"89"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"89
.5
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"收货人:"
textAlignment=
"right"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"tiK-JC-Jy4"
>
...
...
@@ -967,10 +980,10 @@
</connections>
</tableViewCell>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"none"
indentationWidth=
"10"
reuseIdentifier=
"fourthcell"
rowHeight=
"80"
id=
"47T-H0-tG7"
customClass=
"CommodityListTableViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"42
3
"
width=
"768"
height=
"80"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"42
2.5
"
width=
"768"
height=
"80"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"47T-H0-tG7"
id=
"zXR-bC-Wdh"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"79"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"79
.5
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"05产品库-详情_03"
id=
"6MS-gq-TMk"
>
...
...
@@ -1028,10 +1041,10 @@
</connections>
</tableViewCell>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
reuseIdentifier=
"sixthcell"
rowHeight=
"50"
id=
"PNT-Fy-4Hi"
customClass=
"AllpriceTableViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"50
3
"
width=
"768"
height=
"50"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"50
2.5
"
width=
"768"
height=
"50"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"PNT-Fy-4Hi"
id=
"PxE-0c-Zdt"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"49"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"49
.5
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"总数量:"
textAlignment=
"right"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"rbZ-Pg-7Uu"
>
...
...
@@ -1188,7 +1201,7 @@
</collectionViewFlowLayout>
<cells>
<collectionViewCell
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
reuseIdentifier=
"productcell"
id=
"J5m-0M-uqb"
customClass=
"ProductCollectionViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"
0.0
"
width=
"300"
height=
"300"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"
64
"
width=
"300"
height=
"300"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<view
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"300"
height=
"300"
/>
...
...
@@ -1261,10 +1274,10 @@
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<prototypes>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
reuseIdentifier=
"productDetailscell"
rowHeight=
"170"
id=
"Sye-2R-IQf"
customClass=
"ProductDetailsTableViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"
28
"
width=
"768"
height=
"170"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"
92
"
width=
"768"
height=
"170"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"Sye-2R-IQf"
id=
"CXs-SR-gHP"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"169"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"169
.5
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<view
contentMode=
"scaleToFill"
id=
"2bG-Ip-ptr"
>
...
...
@@ -1656,7 +1669,7 @@
<rect
key=
"frame"
x=
"0.0"
y=
"28"
width=
"717"
height=
"80"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"ZT1-XJ-ObI"
id=
"GWp-Jl-7br"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"717"
height=
"79"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"717"
height=
"79
.5
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
id=
"PkJ-eJ-ksY"
>
...
...
@@ -1844,7 +1857,7 @@
<rect
key=
"frame"
x=
"0.0"
y=
"92"
width=
"768"
height=
"140"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"LsY-i0-h5H"
id=
"dPG-p9-V2i"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"139"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"139
.5
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"05产品库-详情_03"
id=
"qWT-p0-Gta"
>
...
...
@@ -1941,7 +1954,7 @@
<rect
key=
"frame"
x=
"0.0"
y=
"232"
width=
"768"
height=
"56"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"gfQ-UE-mXV"
id=
"za6-HU-VEw"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"55"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"55
.5
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"手机号码:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"X0Z-8j-BdI"
>
...
...
@@ -2012,7 +2025,7 @@
<rect
key=
"frame"
x=
"0.0"
y=
"288"
width=
"768"
height=
"56"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"Kk4-Fh-HhL"
id=
"oRX-7p-HkY"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"55"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"55
.5
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
id=
"m0f-EW-LM5"
>
...
...
@@ -2043,7 +2056,7 @@
<rect
key=
"frame"
x=
"0.0"
y=
"344"
width=
"768"
height=
"80"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"G7o-xS-1mB"
id=
"l3e-TL-GCT"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"79"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"79
.5
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"05产品库-详情_03"
id=
"Un4-g0-sG6"
>
...
...
@@ -2104,7 +2117,7 @@
<rect
key=
"frame"
x=
"0.0"
y=
"424"
width=
"768"
height=
"50"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"6K9-mc-7RW"
id=
"Vc7-f6-wGb"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"49"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"49
.5
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"总数量:"
textAlignment=
"right"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"ULe-0J-pCd"
>
...
...
@@ -2758,13 +2771,13 @@
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"calibratedWhite"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<textInputTraits
key=
"textInputTraits"
/>
<textInputTraits
key=
"textInputTraits"
returnKeyType=
"search"
/>
</textField>
</subviews>
<color
key=
"backgroundColor"
red=
"0.96470588239999999"
green=
"0.96470588239999999"
blue=
"0.96470588239999999"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
</view>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
dataMode=
"prototypes"
style=
"plain"
separatorStyle=
"none"
rowHeight=
"263"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
id=
"SiR-rm-chD"
>
<rect
key=
"frame"
x=
"
6
"
y=
"128"
width=
"721"
height=
"876"
/>
<rect
key=
"frame"
x=
"
24
"
y=
"128"
width=
"721"
height=
"876"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.93333333333333335"
green=
"0.93333333333333335"
blue=
"0.93333333333333335"
alpha=
"0.0"
colorSpace=
"calibratedRGB"
/>
<prototypes>
...
...
@@ -2776,16 +2789,16 @@
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<view
contentMode=
"scaleToFill"
id=
"mff-AO-i22"
>
<rect
key=
"frame"
x=
"
0.0"
y=
"20"
width=
"721
"
height=
"232"
/>
<rect
key=
"frame"
x=
"
15"
y=
"14"
width=
"692
"
height=
"232"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<view
contentMode=
"scaleToFill"
id=
"WUf-NE-jYR"
>
<rect
key=
"frame"
x=
"
0.0
"
y=
"60"
width=
"721"
height=
"1"
/>
<rect
key=
"frame"
x=
"
-15
"
y=
"60"
width=
"721"
height=
"1"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.93725490196078431"
green=
"0.93725490196078431"
blue=
"0.93725490196078431"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"2016-12-12"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"kQR-9e-2aA"
>
<rect
key=
"frame"
x=
"
28
"
y=
"22"
width=
"92"
height=
"21"
/>
<rect
key=
"frame"
x=
"
13
"
y=
"22"
width=
"92"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.34901960780000002"
green=
"0.67450980390000004"
blue=
"0.86274509799999999"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
...
...
@@ -2793,7 +2806,7 @@
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"订单编号:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"gD6-An-cx8"
>
<rect
key=
"frame"
x=
"1
42
"
y=
"22"
width=
"85"
height=
"21"
/>
<rect
key=
"frame"
x=
"1
27
"
y=
"22"
width=
"85"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.34901960780000002"
green=
"0.67450980390000004"
blue=
"0.86274509799999999"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
...
...
@@ -2801,7 +2814,7 @@
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"X21291291929129192"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"UBn-rZ-q4s"
>
<rect
key=
"frame"
x=
"2
29
"
y=
"22"
width=
"160"
height=
"21"
/>
<rect
key=
"frame"
x=
"2
14
"
y=
"22"
width=
"160"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.34901960780000002"
green=
"0.67450980390000004"
blue=
"0.86274509799999999"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
...
...
@@ -2809,7 +2822,7 @@
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"操作员:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"7od-1Z-yjM"
>
<rect
key=
"frame"
x=
"
409
"
y=
"22"
width=
"65"
height=
"21"
/>
<rect
key=
"frame"
x=
"
394
"
y=
"22"
width=
"65"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.34901960780000002"
green=
"0.67450980390000004"
blue=
"0.86274509799999999"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
...
...
@@ -2817,7 +2830,7 @@
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"某某某"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"2tu-Jm-J34"
>
<rect
key=
"frame"
x=
"4
79
"
y=
"22"
width=
"120"
height=
"21"
/>
<rect
key=
"frame"
x=
"4
64
"
y=
"22"
width=
"120"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.34901960780000002"
green=
"0.67450980390000004"
blue=
"0.86274509799999999"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
...
...
@@ -2825,25 +2838,30 @@
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
id=
"48u-VY-KRi"
>
<rect
key=
"frame"
x=
"
608
"
y=
"18"
width=
"100"
height=
"30"
/>
<rect
key=
"frame"
x=
"
579
"
y=
"18"
width=
"100"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.
80000000000000004"
green=
"0.80000000000000004"
blue=
"0.80000000000000004
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<color
key=
"backgroundColor"
red=
"0.
34901960784313724"
green=
"0.67450980392156867"
blue=
"0.86274509803921573
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<state
key=
"normal"
title=
"撤销订单"
/>
<state
key=
"normal"
title=
"撤销订单"
>
<color
key=
"titleColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
<connections>
<action
selector=
"delecteOrderButtonClick:"
destination=
"YwA-DX-QXj"
eventType=
"touchUpInside"
id=
"v9u-PF-8gt"
/>
</connections>
</button>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"05产品库-详情_03"
id=
"OFm-kC-2XE"
>
<rect
key=
"frame"
x=
"
28
"
y=
"75"
width=
"100"
height=
"100"
/>
<rect
key=
"frame"
x=
"
13
"
y=
"75"
width=
"100"
height=
"100"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"订单状态:"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"sV0-mx-yXM"
>
<rect
key=
"frame"
x=
"1
42
"
y=
"75"
width=
"72"
height=
"21"
/>
<rect
key=
"frame"
x=
"1
27
"
y=
"75"
width=
"72"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"dAD-mk-dai"
>
<rect
key=
"frame"
x=
"2
25
"
y=
"75"
width=
"150"
height=
"21"
/>
<rect
key=
"frame"
x=
"2
10
"
y=
"75"
width=
"150"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"0.7124683436"
blue=
"0.054982668810000003"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
...
...
@@ -2851,29 +2869,29 @@
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"客户名称:"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"SAk-RG-7hz"
>
<rect
key=
"frame"
x=
"1
42
"
y=
"104"
width=
"72"
height=
"21"
/>
<rect
key=
"frame"
x=
"1
27
"
y=
"104"
width=
"72"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"xiN-d1-iB0"
>
<rect
key=
"frame"
x=
"2
25
"
y=
"104"
width=
"150"
height=
"21"
/>
<rect
key=
"frame"
x=
"2
10
"
y=
"104"
width=
"150"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"0.7124683436"
blue=
"0.054982668810000003"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"
款式
数量:"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"3fy-Jl-kjP"
>
<rect
key=
"frame"
x=
"1
42
"
y=
"133"
width=
"72"
height=
"21"
/>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"
购买
数量:"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"3fy-Jl-kjP"
>
<rect
key=
"frame"
x=
"1
27
"
y=
"133"
width=
"72"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"C5B-Cd-Dld"
>
<rect
key=
"frame"
x=
"2
25
"
y=
"133"
width=
"150"
height=
"21"
/>
<rect
key=
"frame"
x=
"2
10
"
y=
"133"
width=
"150"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"0.7124683436"
blue=
"0.054982668810000003"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
...
...
@@ -2881,59 +2899,22 @@
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"收货人电话:"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"qck-CI-dEu"
>
<rect
key=
"frame"
x=
"142"
y=
"191"
width=
"85"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"u5r-Hn-I4p"
>
<rect
key=
"frame"
x=
"225"
y=
"191"
width=
"150"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"0.7124683436"
blue=
"0.054982668810000003"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"商品品牌:"
textAlignment=
"right"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"oex-RC-phd"
>
<rect
key=
"frame"
x=
"406"
y=
"75"
width=
"72"
height=
"21"
/>
<rect
key=
"frame"
x=
"391"
y=
"162"
width=
"85"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"
WVD-gm-gft
"
>
<rect
key=
"frame"
x=
"47
2"
y=
"75"
width=
"18
0"
height=
"21"
/>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"
u5r-Hn-I4p
"
>
<rect
key=
"frame"
x=
"47
0"
y=
"162"
width=
"15
0"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"0.7124683436"
blue=
"0.054982668810000003"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"联系电话:"
textAlignment=
"right"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"LvQ-XY-wOw"
>
<rect
key=
"frame"
x=
"406"
y=
"104"
width=
"72"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"WCY-am-93b"
>
<rect
key=
"frame"
x=
"472"
y=
"104"
width=
"180"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"0.7124683436"
blue=
"0.054982668810000003"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"购买数量:"
textAlignment=
"right"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"eth-C0-smq"
>
<rect
key=
"frame"
x=
"406"
y=
"133"
width=
"72"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"gi1-yB-h6x"
>
<rect
key=
"frame"
x=
"472"
y=
"133"
width=
"180"
height=
"21"
/>
<rect
key=
"frame"
x=
"457"
y=
"104"
width=
"180"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"0.7124683436"
blue=
"0.054982668810000003"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
...
...
@@ -2941,29 +2922,29 @@
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"客户地址:"
textAlignment=
"right"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"gDL-TJ-iMd"
>
<rect
key=
"frame"
x=
"
406"
y=
"162
"
width=
"72"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleM
inX=
"YES"
flexibleM
axX=
"YES"
flexibleMaxY=
"YES"
/>
<rect
key=
"frame"
x=
"
127"
y=
"191
"
width=
"72"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"4K4-52-8jM"
>
<rect
key=
"frame"
x=
"
472"
y=
"162"
width=
"18
0"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<rect
key=
"frame"
x=
"
210"
y=
"191"
width=
"15
0"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"0.7124683436"
blue=
"0.054982668810000003"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"订单总计:"
textAlignment=
"right"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"frI-nb-PUu"
>
<rect
key=
"frame"
x=
"
406"
y=
"191
"
width=
"72"
height=
"21"
/>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"订单总计:"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"frI-nb-PUu"
>
<rect
key=
"frame"
x=
"
391"
y=
"133
"
width=
"72"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"XtQ-6M-2qP"
>
<rect
key=
"frame"
x=
"4
72"
y=
"191
"
width=
"180"
height=
"21"
/>
<rect
key=
"frame"
x=
"4
57"
y=
"133
"
width=
"180"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"0.7124683436"
blue=
"0.054982668810000003"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
...
...
@@ -2971,20 +2952,27 @@
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"收货人:"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"zTF-ZP-NTg"
>
<rect
key=
"frame"
x=
"1
42
"
y=
"162"
width=
"72"
height=
"21"
/>
<rect
key=
"frame"
x=
"1
27
"
y=
"162"
width=
"72"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"cD2-g8-oDq"
>
<rect
key=
"frame"
x=
"2
25
"
y=
"162"
width=
"150"
height=
"21"
/>
<rect
key=
"frame"
x=
"2
10
"
y=
"162"
width=
"150"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"0.7124683436"
blue=
"0.054982668810000003"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"联系电话:"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"LvQ-XY-wOw"
>
<rect
key=
"frame"
x=
"391"
y=
"104"
width=
"72"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</view>
...
...
@@ -2992,14 +2980,15 @@
</tableViewCellContentView>
<color
key=
"backgroundColor"
red=
"1"
green=
"0.70412693910000002"
blue=
"0.69044467629999995"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<connections>
<outlet
property=
"buyNumber"
destination=
"gi1-yB-h6x"
id=
"0Ls-IT-lPa"
/>
<outlet
property=
"cellBackView"
destination=
"mff-AO-i22"
id=
"5Nn-dk-Ya3"
/>
<outlet
property=
"consigneeAddress"
destination=
"4K4-52-8jM"
id=
"U3j-RB-N3d"
/>
<outlet
property=
"consigneeName"
destination=
"cD2-g8-oDq"
id=
"n9D-H1-C7N"
/>
<outlet
property=
"consigneeNumber"
destination=
"qck-CI-dEu"
id=
"C3L-7t-fiG"
/>
<outlet
property=
"consigneePhoneNumber"
destination=
"u5r-Hn-I4p"
id=
"UR6-O4-lez"
/>
<outlet
property=
"customerHeader"
destination=
"OFm-kC-2XE"
id=
"ed6-Q6-dms"
/>
<outlet
property=
"customerName"
destination=
"xiN-d1-iB0"
id=
"I7n-gc-Mmd"
/>
<outlet
property=
"goodsBrandName"
destination=
"WVD-gm-gft"
id=
"FNC-F8-Ey0"
/>
<outlet
property=
"delecteOrder"
destination=
"48u-VY-KRi"
id=
"eK1-l4-nhe"
/>
<outlet
property=
"orderAll"
destination=
"frI-nb-PUu"
id=
"g7d-7o-W3q"
/>
<outlet
property=
"orderDate"
destination=
"kQR-9e-2aA"
id=
"WGA-bb-FYT"
/>
<outlet
property=
"orderSerialNumber"
destination=
"UBn-rZ-q4s"
id=
"9g5-Q0-m4m"
/>
<outlet
property=
"orderStatus"
destination=
"dAD-mk-dai"
id=
"Qbq-9E-ItG"
/>
...
...
Lighting/Tools/PDFViewController.m
View file @
643e52cf
...
...
@@ -8,7 +8,7 @@
#import "PDFViewController.h"
@interface
PDFViewController
()
@interface
PDFViewController
()
<
UIWebViewDelegate
>
@property
(
nonatomic
,
strong
)
UIWebView
*
webView
;
...
...
@@ -23,14 +23,38 @@
[
self
uiConfigAction
];
}
#pragma mark -UI
-
(
void
)
uiConfigAction
{
self
.
webView
=
[[
UIWebView
alloc
]
initWithFrame
:
self
.
view
.
bounds
];
[
self
.
view
addSubview
:
self
.
webView
];
self
.
webView
.
delegate
=
self
;
NSURLRequest
*
request
=
[
NSURLRequest
requestWithURL
:[
NSURL
URLWithString
:
_pdfURLString
]];
[
self
.
webView
loadRequest
:
request
];
[
self
.
webView
addGestureRecognizer
:[[
UITapGestureRecognizer
alloc
]
initWithTarget
:
self
action
:
@selector
(
PDFClickAction
)]];
}
#pragma mark -dismiss
-
(
void
)
PDFClickAction
{
[
self
dismissViewControllerAnimated
:
YES
completion
:
nil
];
}
#pragma mark -加载错误
-
(
void
)
webView
:
(
UIWebView
*
)
webView
didFailLoadWithError
:
(
nullable
NSError
*
)
error
{
[
self
ErrorMBProgressView
:
@"加载错误"
];
[
self
dismissViewControllerAnimated
:
YES
completion
:
nil
];
}
@end
Lighting/Tools/PrefixHeader.pch
View file @
643e52cf
...
...
@@ -26,6 +26,7 @@
#import "Shoppersmanager.h"
#import "UIImageView+WebCache.h"
#import "Customermanager.h"
#import "AppDelegate.h"
// Include any system framework and library headers here that should be included in all compilation units.
// You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.
...
...
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