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
0ec81de6
Commit
0ec81de6
authored
May 24, 2016
by
勾芒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
2691c8bf
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
300 additions
and
204 deletions
+300
-204
ClientdetailsViewController.m
Lighting/Class/ClientdetailsViewController.m
+7
-2
LoginViewController.h
Lighting/Class/Login/LoginViewController.h
+2
-0
LoginViewController.m
Lighting/Class/Login/LoginViewController.m
+40
-5
ProductLibraryViewController.m
Lighting/Class/ProductLibraryViewController.m
+1
-1
SettlementViewController.xib
Lighting/Class/SettlementViewController.xib
+188
-182
CustomTabbarController.m
Lighting/Class/Tabbar/CustomTabbarController.m
+0
-1
UserViewController.m
Lighting/Class/UserViewController.m
+52
-4
StoryboardwithCYX.storyboard
Lighting/Lighting/StoryboardwithCYX.storyboard
+2
-7
PrefixHeader.pch
Lighting/Tools/PrefixHeader.pch
+8
-2
No files found.
Lighting/Class/ClientdetailsViewController.m
View file @
0ec81de6
...
...
@@ -242,13 +242,18 @@
OrderBill
*
allOrder
=
[[
OrderBill
alloc
]
init
];
//分页
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
page
.
page
=
0
;
page
.
rows
=
10
;
page
.
page
=
1
;
page
.
rows
=
99999
;
//订单
TOOrderEntity
*
Neworder
=
[[
TOOrderEntity
alloc
]
init
];
Neworder
.
guideId
=
[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
;
allOrder
.
datapage
=
page
;
allOrder
.
order
=
Neworder
;
//客户
TOConsumerEntity
*
customer
=
[[
TOConsumerEntity
alloc
]
init
];
customer
.
fid
=
_model
.
fid
;
allOrder
.
consumer
=
customer
;
[[
NetworkRequestClassManager
Manager
]
NetworkRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
ServerAddress
,
@"/order/query"
]
WithRequestType
:
0
WithParameter
:
allOrder
WithReturnValueBlock
:^
(
id
returnValue
)
{
[
self
RemoveMBProgressHUDLoding
];
...
...
Lighting/Class/Login/LoginViewController.h
View file @
0ec81de6
...
...
@@ -66,4 +66,6 @@
@end
Lighting/Class/Login/LoginViewController.m
View file @
0ec81de6
...
...
@@ -38,6 +38,15 @@
*/
@property
(
nonatomic
,
copy
)
NSString
*
verifyCode
;
/**
* 用户名
*/
@property
(
nonatomic
,
copy
)
NSString
*
userNameString
;
/**
* 密码
*/
@property
(
nonatomic
,
copy
)
NSString
*
passWordString
;
@end
...
...
@@ -57,9 +66,7 @@
[
super
viewDidLoad
];
// Do any additional setup after loading the view.
[
self
uiConfigAction
];
}
...
...
@@ -76,9 +83,12 @@
self
.
userNameLoginView
.
layer
.
cornerRadius
=
10
;
self
.
forgotPasswordButton
.
titleLabel
.
font
=
[
UIFont
boldSystemFontOfSize
:
16
];
self
.
followHeartView
=
[[
FollowHeartViewController
alloc
]
init
];
self
.
userName
.
text
=
@"demo1"
;
self
.
passWord
.
text
=
@"123456"
;
//加载本地的用户名密码
self
.
userNameString
=
[[
NSUserDefaults
standardUserDefaults
]
objectForKey
:
USERNAME
];
self
.
passWordString
=
[[
NSUserDefaults
standardUserDefaults
]
objectForKey
:
PASSWORD
];
self
.
userName
.
text
=
self
.
userNameString
;
self
.
passWord
.
text
=
self
.
passWordString
;
}
...
...
@@ -111,11 +121,33 @@
[
self
.
drawerController
setOpenDrawerGestureModeMask
:
MMOpenDrawerGestureModeAll
];
[
self
.
drawerController
setCloseDrawerGestureModeMask
:
MMCloseDrawerGestureModeAll
];
SHARED_APPDELEGATE
.
mmdrawer
=
self
.
drawerController
;
SHARED_APPDELEGATE
.
window
.
rootViewController
=
self
.
drawerController
;
[
self
restoreRootViewController
:
self
.
drawerController
]
;
SHARED_APPDELEGATE
.
Mytabbar
=
self
.
customtabbar
;
}
#pragma mark -切换rootViewcontroller
-
(
void
)
restoreRootViewController
:
(
UIViewController
*
)
rootViewController
{
typedef
void
(
^
Animation
)(
void
);
UIWindow
*
window
=
SHARED_APPDELEGATE
.
window
;
rootViewController
.
modalTransitionStyle
=
UIModalTransitionStyleCrossDissolve
;
Animation
animation
=
^
{
BOOL
oldState
=
[
UIView
areAnimationsEnabled
];
[
UIView
setAnimationsEnabled
:
NO
];
window
.
rootViewController
=
rootViewController
;
[
UIView
setAnimationsEnabled
:
oldState
];
};
[
UIView
transitionWithView
:
window
duration
:
0
.
5
f
options
:
UIViewAnimationOptionTransitionFlipFromTop
animations
:
animation
completion
:
nil
];
}
#pragma mark -判断用户名密码是否正确
-
(
void
)
judgeUserNameAndPassword
{
...
...
@@ -135,6 +167,9 @@
[
Shoppersmanager
manager
].
Shoppers
=
result
;
[
Shoppersmanager
manager
].
userNameString
=
self
.
userName
.
text
;
[
Shoppersmanager
manager
].
passWordString
=
self
.
passWord
.
text
;
//保存用户名密码
[[
NSUserDefaults
standardUserDefaults
]
setObject
:
self
.
userName
.
text
forKey
:
USERNAME
];
[[
NSUserDefaults
standardUserDefaults
]
setObject
:
self
.
passWord
.
text
forKey
:
PASSWORD
];
[
self
SetTheRootViewController
];
}
else
...
...
Lighting/Class/ProductLibraryViewController.m
View file @
0ec81de6
...
...
@@ -315,7 +315,7 @@
ProductCollectionViewCell
*
cell
=
[
collectionView
dequeueReusableCellWithReuseIdentifier
:
@"productcell"
forIndexPath
:
indexPath
];
NSArray
*
imageArray
=
[[[
self
.
datasArray
objectAtIndex_opple
:
indexPath
.
item
]
pictures
]
componentsSeparatedByString
:
@","
];
[
cell
.
productImageView
sd_setImageWithURL
:[
NSURL
URLWithString
:[
imageArray
firstObject
]]
placeholderImage
:
REPLACEIMAGE
];
cell
.
productPrice
.
text
=
[
NSString
stringWithFormat
:
@"¥%@"
,[[[
self
.
datasArray
objectAtIndex_opple
:
indexPath
.
item
]
guide
Price
]
stringValue
]];
cell
.
productPrice
.
text
=
[
NSString
stringWithFormat
:
@"¥%@"
,[[[
self
.
datasArray
objectAtIndex_opple
:
indexPath
.
item
]
tag
Price
]
stringValue
]];
cell
.
cellindex
=
indexPath
.
item
;
cell
.
productParameter
.
text
=
[[
self
.
datasArray
objectAtIndex_opple
:
indexPath
.
item
]
productProfile
];
cell
.
specifications
.
text
=
[
NSString
stringWithFormat
:
@"%@(%@)"
,[[
self
.
datasArray
objectAtIndex_opple
:
indexPath
.
item
]
series
],[[
self
.
datasArray
objectAtIndex_opple
:
indexPath
.
item
]
spec
]];
...
...
Lighting/Class/SettlementViewController.xib
View file @
0ec81de6
...
...
@@ -28,54 +28,100 @@
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"380"
height=
"500"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"总数量:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"KHc-WJ-xQd"
>
<rect
key=
"frame"
x=
"25"
y=
"64"
width=
"50"
height=
"21"
/>
<scrollView
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"scaleToFill"
id=
"Zin-kL-ulL"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"380"
height=
"500"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
id=
"BtK-gu-0KG"
>
<rect
key=
"frame"
x=
"83"
y=
"140"
width=
"160"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.93333333333333335"
green=
"0.93333333333333335"
blue=
"0.93333333333333335"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"10"
/>
<inset
key=
"titleEdgeInsets"
minX=
"-50"
minY=
"0.0"
maxX=
"0.0"
maxY=
"0.0"
/>
<inset
key=
"imageEdgeInsets"
minX=
"120"
minY=
"6"
maxX=
"0.0"
maxY=
"5"
/>
<state
key=
"normal"
title=
"现金、支票、转账、刷卡"
image=
"down_arr"
>
<color
key=
"titleColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
<connections>
<action
selector=
"payTypeButtonClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"i6M-fm-Kha"
/>
</connections>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
id=
"vDt-el-S5r"
>
<rect
key=
"frame"
x=
"25"
y=
"445"
width=
"130"
height=
"35"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.59999999999999998"
green=
"0.59999999999999998"
blue=
"0.59999999999999998"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
<state
key=
"normal"
title=
"取消"
>
<color
key=
"titleColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
<connections>
<action
selector=
"CancelButtonClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"6As-mE-5Ro"
/>
</connections>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
id=
"wNR-jl-cxy"
>
<rect
key=
"frame"
x=
"203"
y=
"445"
width=
"130"
height=
"35"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.34901960784313724"
green=
"0.67450980392156867"
blue=
"0.86274509803921573"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
<state
key=
"normal"
title=
"确认"
>
<color
key=
"titleColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
<connections>
<action
selector=
"SureButtonClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"tue-Vx-ZkB"
/>
</connections>
</button>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
id=
"evA-uJ-YEb"
>
<rect
key=
"frame"
x=
"255"
y=
"143"
width=
"100"
height=
"100"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"发票类型:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"IOP-zc-e6A"
>
<rect
key=
"frame"
x=
"25"
y=
"331"
width=
"58"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"12"
/>
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<view
contentMode=
"scaleToFill"
id=
"V10-sC-tjf"
>
<rect
key=
"frame"
x=
"83"
y=
"59"
width=
"160"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<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"
/>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
id=
"h52-sh-k1p"
>
<rect
key=
"frame"
x=
"83"
y=
"327"
width=
"160"
height=
"30"
/>
<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"
/>
</textField>
</subviews>
<color
key=
"backgroundColor"
red=
"0.93333333330000001"
green=
"0.93333333330000001"
blue=
"0.93333333330000001"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
</view>
<view
contentMode=
"scaleToFill"
id=
"JWa-n5-tJQ"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"380"
height=
"46"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"结算信息"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"SoB-nK-luK"
>
<rect
key=
"frame"
x=
"8"
y=
"13"
width=
"150"
height=
"21"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"12"
/>
<inset
key=
"titleEdgeInsets"
minX=
"-50"
minY=
"0.0"
maxX=
"50"
maxY=
"0.0"
/>
<inset
key=
"imageEdgeInsets"
minX=
"120"
minY=
"6"
maxX=
"0.0"
maxY=
"5"
/>
<state
key=
"normal"
title=
"个人发票"
image=
"down_arr"
>
<color
key=
"titleColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
<connections>
<action
selector=
"invoiceTypeButtonClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"glI-Tn-twP"
/>
</connections>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
id=
"RrC-9S-Ofh"
>
<rect
key=
"frame"
x=
"83"
y=
"283"
width=
"160"
height=
"30"
/>
<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>
</subviews>
<color
key=
"backgroundColor"
red=
"0.95686274510000002"
green=
"0.95686274510000002"
blue=
"0.95686274510000002"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"总金额:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"Bjc-Ns-VND"
>
<rect
key=
"frame"
x=
"25"
y=
"103"
width=
"50"
height=
"21"
/>
<color
key=
"backgroundColor"
red=
"0.93333333330000001"
green=
"0.93333333330000001"
blue=
"0.93333333330000001"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"12"
/>
<inset
key=
"titleEdgeInsets"
minX=
"-50"
minY=
"0.0"
maxX=
"86"
maxY=
"0.0"
/>
<inset
key=
"imageEdgeInsets"
minX=
"120"
minY=
"6"
maxX=
"0.0"
maxY=
"5"
/>
<state
key=
"normal"
title=
"是"
image=
"down_arr"
>
<color
key=
"titleColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
<connections>
<action
selector=
"isinvoiceButtonClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"6wf-TG-crT"
/>
</connections>
</button>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"是否开票:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"WiP-Ps-rLM"
>
<rect
key=
"frame"
x=
"25"
y=
"287"
width=
"58"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"12"
/>
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<view
contentMode=
"scaleToFill"
id=
"kRj-KI-B8x
"
>
<rect
key=
"frame"
x=
"83"
y=
"98"
width=
"16
0"
height=
"30"
/>
<view
contentMode=
"scaleToFill"
id=
"beF-Oa-HVo
"
>
<rect
key=
"frame"
x=
"83"
y=
"372"
width=
"25
0"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<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=
"15
0"
height=
"30"
/>
<textField
opaque=
"NO"
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
textAlignment=
"natural"
minimumFontSize=
"17"
id=
"nrc-w9-AuC
"
>
<rect
key=
"frame"
x=
"10"
y=
"0.0"
width=
"24
0"
height=
"30"
/>
<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"
/>
...
...
@@ -84,50 +130,50 @@
</subviews>
<color
key=
"backgroundColor"
red=
"0.93333333330000001"
green=
"0.93333333330000001"
blue=
"0.93333333330000001"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"支付方式:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"Fxz-0O-dsP
"
>
<rect
key=
"frame"
x=
"25"
y=
"144
"
width=
"58"
height=
"21"
/>
<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"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"12"
/>
<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"
lineBreakMode=
"middleTruncation"
id=
"pfa-IW-8J9
"
>
<rect
key=
"frame"
x=
"83"
y=
"180
"
width=
"160"
height=
"30"
/>
<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"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<state
key=
"normal"
backgroundImage=
"wechat
1"
>
<state
key=
"normal"
backgroundImage=
"图层-
1"
>
<color
key=
"titleColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
<state
key=
"selected"
backgroundImage=
"圆角矩形-2-副本-2
"
/>
<state
key=
"selected"
backgroundImage=
"图层-3
"
/>
<connections>
<action
selector=
"WechatButtonClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"woS-KH-v7d
"
/>
<action
selector=
"ZhifubaoPayButtonClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"KqV-tt-tEq
"
/>
</connections>
</button>
<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"
/>
<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"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<state
key=
"normal"
backgroundImage=
"图层-
1"
>
<state
key=
"normal"
backgroundImage=
"wechat
1"
>
<color
key=
"titleColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
<state
key=
"selected"
backgroundImage=
"图层-3
"
/>
<state
key=
"selected"
backgroundImage=
"圆角矩形-2-副本-2
"
/>
<connections>
<action
selector=
"ZhifubaoPayButtonClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"KqV-tt-tEq
"
/>
<action
selector=
"WechatButtonClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"woS-KH-v7d
"
/>
</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"
/>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"支付方式:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"Fxz-0O-dsP
"
>
<rect
key=
"frame"
x=
"25"
y=
"144
"
width=
"58"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"12"
/>
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<view
contentMode=
"scaleToFill"
id=
"beF-Oa-HVo
"
>
<rect
key=
"frame"
x=
"83"
y=
"372"
width=
"25
0"
height=
"30"
/>
<view
contentMode=
"scaleToFill"
id=
"kRj-KI-B8x
"
>
<rect
key=
"frame"
x=
"83"
y=
"98"
width=
"16
0"
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=
"nrc-w9-AuC
"
>
<rect
key=
"frame"
x=
"10"
y=
"0.0"
width=
"24
0"
height=
"30"
/>
<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=
"15
0"
height=
"30"
/>
<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"
/>
...
...
@@ -136,90 +182,50 @@
</subviews>
<color
key=
"backgroundColor"
red=
"0.93333333330000001"
green=
"0.93333333330000001"
blue=
"0.93333333330000001"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"是否开票:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"WiP-Ps-rLM
"
>
<rect
key=
"frame"
x=
"25"
y=
"287"
width=
"58
"
height=
"21"
/>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"总金额:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"Bjc-Ns-VND
"
>
<rect
key=
"frame"
x=
"25"
y=
"103"
width=
"50
"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"12"
/>
<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"
lineBreakMode=
"middleTruncation"
id=
"RrC-9S-Ofh
"
>
<rect
key=
"frame"
x=
"83"
y=
"283
"
width=
"160"
height=
"30"
/>
<view
contentMode=
"scaleToFill"
id=
"V10-sC-tjf
"
>
<rect
key=
"frame"
x=
"83"
y=
"59
"
width=
"160"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<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"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<textInputTraits
key=
"textInputTraits"
/>
</textField>
</subviews>
<color
key=
"backgroundColor"
red=
"0.93333333330000001"
green=
"0.93333333330000001"
blue=
"0.93333333330000001"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"12"
/>
<inset
key=
"titleEdgeInsets"
minX=
"-50"
minY=
"0.0"
maxX=
"86"
maxY=
"0.0"
/>
<inset
key=
"imageEdgeInsets"
minX=
"120"
minY=
"6"
maxX=
"0.0"
maxY=
"5"
/>
<state
key=
"normal"
title=
"是"
image=
"down_arr"
>
<color
key=
"titleColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
<connections>
<action
selector=
"isinvoiceButtonClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"6wf-TG-crT"
/>
</connections>
</button>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"发票类型:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"IOP-zc-e6A"
>
<rect
key=
"frame"
x=
"25"
y=
"331"
width=
"58"
height=
"21"
/>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"总数量:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"KHc-WJ-xQd"
>
<rect
key=
"frame"
x=
"25"
y=
"64"
width=
"50"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"12"
/>
<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"
lineBreakMode=
"middleTruncation"
id=
"h52-sh-k1p"
>
<rect
key=
"frame"
x=
"83"
y=
"327"
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"
/>
<inset
key=
"titleEdgeInsets"
minX=
"-50"
minY=
"0.0"
maxX=
"50"
maxY=
"0.0"
/>
<inset
key=
"imageEdgeInsets"
minX=
"120"
minY=
"6"
maxX=
"0.0"
maxY=
"5"
/>
<state
key=
"normal"
title=
"个人发票"
image=
"down_arr"
>
<color
key=
"titleColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
<connections>
<action
selector=
"invoiceTypeButtonClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"glI-Tn-twP"
/>
</connections>
</button>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
id=
"evA-uJ-YEb"
>
<rect
key=
"frame"
x=
"255"
y=
"143.5"
width=
"100"
height=
"100"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
</imageView>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
id=
"wNR-jl-cxy"
>
<rect
key=
"frame"
x=
"203"
y=
"445"
width=
"130"
height=
"35"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.34901960784313724"
green=
"0.67450980392156867"
blue=
"0.86274509803921573"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
<state
key=
"normal"
title=
"确认"
>
<color
key=
"titleColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
<connections>
<action
selector=
"SureButtonClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"tue-Vx-ZkB"
/>
</connections>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
id=
"vDt-el-S5r"
>
<rect
key=
"frame"
x=
"25"
y=
"445"
width=
"130"
height=
"35"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.59999999999999998"
green=
"0.59999999999999998"
blue=
"0.59999999999999998"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
<state
key=
"normal"
title=
"取消"
>
<color
key=
"titleColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
<connections>
<action
selector=
"CancelButtonClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"6As-mE-5Ro"
/>
</connections>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
id=
"BtK-gu-0KG"
>
<rect
key=
"frame"
x=
"83"
y=
"140"
width=
"160"
height=
"30"
/>
<view
contentMode=
"scaleToFill"
id=
"JWa-n5-tJQ"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"380"
height=
"46"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"结算信息"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"SoB-nK-luK"
>
<rect
key=
"frame"
x=
"8"
y=
"13"
width=
"150"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.93333333333333335"
green=
"0.93333333333333335"
blue=
"0.93333333333333335"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"10"
/>
<inset
key=
"titleEdgeInsets"
minX=
"-50"
minY=
"0.0"
maxX=
"0.0"
maxY=
"0.0"
/>
<inset
key=
"imageEdgeInsets"
minX=
"120"
minY=
"6"
maxX=
"0.0"
maxY=
"5"
/>
<state
key=
"normal"
title=
"现金、支票、转账、刷卡"
image=
"down_arr"
>
<color
key=
"titleColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
<connections>
<action
selector=
"payTypeButtonClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"i6M-fm-Kha"
/>
</connections>
</button>
<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"
red=
"0.95686274510000002"
green=
"0.95686274510000002"
blue=
"0.95686274510000002"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
</view>
</subviews>
</scrollView>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"calibratedWhite"
/>
<freeformSimulatedSizeMetrics
key=
"simulatedDestinationMetrics"
/>
...
...
Lighting/Class/Tabbar/CustomTabbarController.m
View file @
0ec81de6
...
...
@@ -177,7 +177,6 @@
pop
.
barButtonItem
=
[[
UIBarButtonItem
alloc
]
initWithCustomView
:
button
];
[
self
presentViewController
:
userVC
animated
:
YES
completion
:
nil
];
}
break
;
//我的客户
...
...
Lighting/Class/UserViewController.m
View file @
0ec81de6
...
...
@@ -8,7 +8,7 @@
#import "UserViewController.h"
#import "ChangePasswordViewController.h"
#import "LoginViewController.h"
@interface
UserViewController
()
...
...
@@ -66,9 +66,58 @@
#pragma mark -注销
-
(
IBAction
)
cancellationButtonClick
:
(
UIButton
*
)
sender
{
UIAlertController
*
alertVC
=
[
UIAlertController
alertControllerWithTitle
:
@"提示"
message
:
@"注销将清空用户数据,是否继续?"
preferredStyle
:
UIAlertControllerStyleAlert
];
__weak
typeof
(
self
)
weakSelf
=
self
;
[
alertVC
addAction
:[
UIAlertAction
actionWithTitle
:
@"取消"
style
:
UIAlertActionStyleCancel
handler
:
^
(
UIAlertAction
*
_Nonnull
action
)
{
[
weakSelf
dismissViewControllerAnimated
:
YES
completion
:
nil
];
}]];
[
alertVC
addAction
:[
UIAlertAction
actionWithTitle
:
@"确认"
style
:
UIAlertActionStyleDestructive
handler
:
^
(
UIAlertAction
*
_Nonnull
action
)
{
[
weakSelf
CreateMBProgressHUDLoding
];
[[
NetworkRequestClassManager
Manager
]
NetworkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
ServerAddress
,
@"/employee/logout"
]
WithRequestType
:
1
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
UIStoryboard
*
storyboard
=
[
UIStoryboard
storyboardWithName
:
@"Main"
bundle
:
nil
];
LoginViewController
*
loginVC
=
[
storyboard
instantiateViewControllerWithIdentifier
:
@"Login"
];
[[
NSUserDefaults
standardUserDefaults
]
removeObjectForKey
:
USERNAME
];
[[
NSUserDefaults
standardUserDefaults
]
removeObjectForKey
:
PASSWORD
];
[
weakSelf
restoreRootViewController
:
loginVC
];
}
else
{
[
weakSelf
promptCustomerWithString
:
@"注销失败"
];
}
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
}
WithFailureBlock
:^
(
id
error
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
}];
}]];
[
self
presentViewController
:
alertVC
animated
:
YES
completion
:
nil
];
}
#pragma mark -切换rootViewcontroller
-
(
void
)
restoreRootViewController
:
(
UIViewController
*
)
rootViewController
{
typedef
void
(
^
Animation
)(
void
);
UIWindow
*
window
=
SHARED_APPDELEGATE
.
window
;
rootViewController
.
modalTransitionStyle
=
UIModalTransitionStyleCrossDissolve
;
Animation
animation
=
^
{
BOOL
oldState
=
[
UIView
areAnimationsEnabled
];
[
UIView
setAnimationsEnabled
:
NO
];
window
.
rootViewController
=
rootViewController
;
[
UIView
setAnimationsEnabled
:
oldState
];
};
[
UIView
transitionWithView
:
window
duration
:
0
.
5
f
options
:
UIViewAnimationOptionTransitionFlipFromBottom
animations
:
animation
completion
:
nil
];
}
...
...
@@ -101,8 +150,7 @@
LoginResult
*
result
=
[[
LoginResult
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
[
Shoppersmanager
manager
].
userNameString
=
self
.
userName
.
text
;
[
Shoppersmanager
manager
].
passWordString
=
self
.
passWord
.
text
;
[
Shoppersmanager
manager
].
Shoppers
=
result
;
}
else
{
...
...
Lighting/Lighting/StoryboardwithCYX.storyboard
View file @
0ec81de6
...
...
@@ -465,7 +465,6 @@
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"ssg-dl-sxk"
>
<rect
key=
"frame"
x=
"184"
y=
"22"
width=
"143"
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"
/>
...
...
@@ -473,7 +472,6 @@
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"0Ww-BX-90J"
>
<rect
key=
"frame"
x=
"198"
y=
"56"
width=
"143"
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"
/>
...
...
@@ -481,7 +479,6 @@
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"bhI-Ns-YHq"
>
<rect
key=
"frame"
x=
"420"
y=
"22"
width=
"215"
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"
/>
...
...
@@ -489,7 +486,6 @@
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"hLZ-vb-nAK"
>
<rect
key=
"frame"
x=
"420"
y=
"56"
width=
"143"
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"
/>
...
...
@@ -497,7 +493,6 @@
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"mLm-o2-IUg"
>
<rect
key=
"frame"
x=
"613"
y=
"56"
width=
"86"
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"
/>
...
...
@@ -1160,7 +1155,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=
"
64
"
width=
"300"
height=
"300"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"
0.0
"
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"
/>
...
...
@@ -1242,7 +1237,7 @@
<color
key=
"backgroundColor"
red=
"0.93725490199999995"
green=
"0.93725490199999995"
blue=
"0.95686274510000002"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<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=
"
113
.5"
width=
"768"
height=
"170"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"
49
.5"
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.5"
/>
...
...
Lighting/Tools/PrefixHeader.pch
View file @
0ec81de6
...
...
@@ -173,9 +173,15 @@
#define REFRESHSHOPPINGCAR @"GOODSNUMBER"
/**
* 保存用户名key
*/
#define USERNAME @"username"
/**
* 保存密码key
*/
#define PASSWORD @"password"
...
...
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