Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Car-iOS-Merchant
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
张杰
Car-iOS-Merchant
Commits
cd2eb4ae
Commit
cd2eb4ae
authored
Mar 07, 2017
by
Sandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对账
parent
ee92fd8c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
1297 additions
and
368 deletions
+1297
-368
Car Release.plist
Car Release.plist
+2
-2
project.pbxproj
Car.xcodeproj/project.pbxproj
+10
-10
Contents.json
...ssets.xcassets/main/radious_select.imageset/Contents.json
+23
-0
radious_select.png
....xcassets/main/radious_select.imageset/radious_select.png
+0
-0
radious_select@2x.png
...assets/main/radious_select.imageset/radious_select@2x.png
+0
-0
radious_select@3x.png
...assets/main/radious_select.imageset/radious_select@3x.png
+0
-0
Contents.json
...ets.xcassets/main/radious_unselect.imageset/Contents.json
+23
-0
radious_unselect.png
...ssets/main/radious_unselect.imageset/radious_unselect.png
+0
-0
radious_unselect@2x.png
...ts/main/radious_unselect.imageset/radious_unselect@2x.png
+0
-0
radious_unselect@3x.png
...ts/main/radious_unselect.imageset/radious_unselect@3x.png
+0
-0
Main.storyboard
Car/Base.lproj/Main.storyboard
+301
-53
AccountRecordViewController.m
...ss/Account/ViewConstrollers/AccountRecordViewController.m
+3
-0
AccountViewController.m
...odeClass/Account/ViewConstrollers/AccountViewController.m
+9
-3
OrderListTableViewCell.h
Car/CodeClass/Main/Cells/OrderListTableViewCell.h
+2
-1
OrderListTableViewCell.m
Car/CodeClass/Main/Cells/OrderListTableViewCell.m
+29
-7
OrderListModel.h
Car/CodeClass/Main/Models/OrderListModel.h
+2
-0
OrderListModel.m
Car/CodeClass/Main/Models/OrderListModel.m
+12
-0
MainViewController.m
Car/CodeClass/Main/ViewControllers/MainViewController.m
+210
-80
OrderListFilterViewController.m
...lass/Main/ViewControllers/OrderListFilterViewController.m
+86
-51
Info.plist
Car/Info.plist
+2
-2
PrefixHeader.pch
Car/PrefixHeader.pch
+1
-1
URL.h
Car/URL.h
+2
-1
car_objc_json_client.h
Car/car_objc_json_client.h
+438
-115
car_objc_json_client.m
Car/car_objc_json_client.m
+142
-42
No files found.
Car Release.plist
View file @
cd2eb4ae
...
...
@@ -17,7 +17,7 @@
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
1.0.
2
<
/string
>
<
string
>
1.0.
4
<
/string
>
<
k
e
y
>
CFBundleURLTypes
<
/k
e
y
>
<
a
rr
a
y
>
<
d
i
c
t
>
...
...
@@ -30,7 +30,7 @@
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
1.0.
2
<
/string
>
<
string
>
1.0.
4
<
/string
>
<
k
e
y
>
LSApplicationQueriesSchemes
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
wechat
<
/string
>
...
...
Car.xcodeproj/project.pbxproj
View file @
cd2eb4ae
...
...
@@ -812,7 +812,7 @@
TargetAttributes
=
{
8F97C2B71E0CC4BE00D8A57D
=
{
CreatedOnToolsVersion
=
8.1
;
DevelopmentTeam
=
W54V2VB863
;
DevelopmentTeam
=
3KJ9G3LC6T
;
ProvisioningStyle
=
Automatic
;
SystemCapabilities
=
{
com.apple.BackgroundModes
=
{
...
...
@@ -836,7 +836,7 @@
TestTargetID
=
8F97C2B71E0CC4BE00D8A57D
;
};
8FFE3DDA1E14AC6700BEB6A6
=
{
DevelopmentTeam
=
W54V2VB863
;
DevelopmentTeam
=
3KJ9G3LC6T
;
};
};
};
...
...
@@ -1264,7 +1264,7 @@
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CODE_SIGN_ENTITLEMENTS
=
Car/Car.entitlements
;
DEVELOPMENT_TEAM
=
W54V2VB863
;
DEVELOPMENT_TEAM
=
3KJ9G3LC6T
;
ENABLE_BITCODE
=
NO
;
GCC_PRECOMPILE_PREFIX_HEADER
=
YES
;
GCC_PREFIX_HEADER
=
"$(SRCROOT)/Car/PrefixHeader.pch"
;
...
...
@@ -1276,7 +1276,7 @@
INFOPLIST_FILE
=
Car/Info.plist
;
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.
gomore
.car
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.
czt
.car
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
USER_HEADER_SEARCH_PATHS
=
"$(SRCROOT)/**"
;
};
...
...
@@ -1288,7 +1288,7 @@
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CODE_SIGN_ENTITLEMENTS
=
Car/Car.entitlements
;
DEVELOPMENT_TEAM
=
W54V2VB863
;
DEVELOPMENT_TEAM
=
3KJ9G3LC6T
;
ENABLE_BITCODE
=
NO
;
GCC_PRECOMPILE_PREFIX_HEADER
=
YES
;
GCC_PREFIX_HEADER
=
"$(SRCROOT)/Car/PrefixHeader.pch"
;
...
...
@@ -1300,7 +1300,7 @@
INFOPLIST_FILE
=
Car/Info.plist
;
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.
gomore
.car
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.
czt
.car
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
USER_HEADER_SEARCH_PATHS
=
"$(SRCROOT)/**"
;
};
...
...
@@ -1376,7 +1376,7 @@
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CODE_SIGN_ENTITLEMENTS
=
Car/Car.entitlements
;
DEVELOPMENT_TEAM
=
W54V2VB863
;
DEVELOPMENT_TEAM
=
3KJ9G3LC6T
;
ENABLE_BITCODE
=
NO
;
GCC_PRECOMPILE_PREFIX_HEADER
=
YES
;
GCC_PREFIX_HEADER
=
"$(SRCROOT)/Car/PrefixHeader.pch"
;
...
...
@@ -1387,7 +1387,7 @@
INFOPLIST_FILE
=
"$(SRCROOT)/Car Release.plist"
;
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.
gomore
.car
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.
czt
.car
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
USER_HEADER_SEARCH_PATHS
=
"$(SRCROOT)/**"
;
};
...
...
@@ -1399,7 +1399,7 @@
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CODE_SIGN_ENTITLEMENTS
=
Car/Car.entitlements
;
DEVELOPMENT_TEAM
=
W54V2VB863
;
DEVELOPMENT_TEAM
=
3KJ9G3LC6T
;
ENABLE_BITCODE
=
NO
;
GCC_PRECOMPILE_PREFIX_HEADER
=
YES
;
GCC_PREFIX_HEADER
=
"$(SRCROOT)/Car/PrefixHeader.pch"
;
...
...
@@ -1410,7 +1410,7 @@
INFOPLIST_FILE
=
"$(SRCROOT)/Car Release.plist"
;
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.
gomore
.car
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.
czt
.car
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
USER_HEADER_SEARCH_PATHS
=
"$(SRCROOT)/**"
;
};
...
...
Car/Assets.xcassets/main/radious_select.imageset/Contents.json
0 → 100644
View file @
cd2eb4ae
{
"images"
:
[
{
"idiom"
:
"universal"
,
"filename"
:
"radious_select.png"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"radious_select@2x.png"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"radious_select@3x.png"
,
"scale"
:
"3x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
Car/Assets.xcassets/main/radious_select.imageset/radious_select.png
0 → 100644
View file @
cd2eb4ae
1.3 KB
Car/Assets.xcassets/main/radious_select.imageset/radious_select@2x.png
0 → 100644
View file @
cd2eb4ae
1.79 KB
Car/Assets.xcassets/main/radious_select.imageset/radious_select@3x.png
0 → 100644
View file @
cd2eb4ae
1.76 KB
Car/Assets.xcassets/main/radious_unselect.imageset/Contents.json
0 → 100644
View file @
cd2eb4ae
{
"images"
:
[
{
"idiom"
:
"universal"
,
"filename"
:
"radious_unselect.png"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"radious_unselect@2x.png"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"radious_unselect@3x.png"
,
"scale"
:
"3x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
Car/Assets.xcassets/main/radious_unselect.imageset/radious_unselect.png
0 → 100644
View file @
cd2eb4ae
1014 Bytes
Car/Assets.xcassets/main/radious_unselect.imageset/radious_unselect@2x.png
0 → 100644
View file @
cd2eb4ae
1.05 KB
Car/Assets.xcassets/main/radious_unselect.imageset/radious_unselect@3x.png
0 → 100644
View file @
cd2eb4ae
1.08 KB
Car/Base.lproj/Main.storyboard
View file @
cd2eb4ae
This diff is collapsed.
Click to expand it.
Car/CodeClass/Account/ViewConstrollers/AccountRecordViewController.m
View file @
cd2eb4ae
...
...
@@ -24,6 +24,7 @@
-
(
void
)
httpRequest
{
WS
(
weakSelf
);
[
MBProgressHUD
j_loading
];
[
kHttp
POST
:
kUserCashRecord
parameters
:[
self
.
param
toDictionary
]
complete
:^
(
id
_Nullable
response
,
NSError
*
_Nullable
error
)
{
[
MBProgressHUD
j_hideLoadingView
];
if
(
kRsSuccess
(
response
))
{
...
...
@@ -59,7 +60,9 @@
order
.
direction
=
@"desc"
;
_param
.
orders
=
(
NSArray
<
QueryOrder
>
*
)@[
order
];
_param
.
userId
=
kUser
.
fid
;
_param
.
pageSize
=
self
.
pageSize
;
}
_param
.
pageNumber
=
self
.
page
;
return
_param
;
}
...
...
Car/CodeClass/Account/ViewConstrollers/AccountViewController.m
View file @
cd2eb4ae
...
...
@@ -122,6 +122,12 @@
}
break
;
case
AccountViewControllerTypeBinding
:
{
WS
(
weakSelf
);
kCanNotBeNil
(
self
.
textFieldScore
.
text
,
@"请输入提现工分!"
);
if
([
self
.
textFieldScore
.
text
doubleValue
]
>
[
self
.
labelValidScore
.
text
doubleValue
])
{
[
MBProgressHUD
j_error
:
@"可用工分不足!"
complete
:
nil
];
break
;
}
[
self
alertTitle
:
@"确认提交?"
msg
:
nil
okAction
:^
(
UIAlertAction
*
_Nullable
action
)
{
...
...
@@ -176,9 +182,10 @@
@"unionId"
:
uid
};
WS
(
weakSelf
);
[
kHttp
POST
:
kModifyUserWxUid
parameters
:
param
complete
:^
(
id
_Nullable
response
,
NSError
*
_Nullable
error
)
{
if
(
kRs
Msg
(
response
))
{
if
(
kRs
Success
(
response
))
{
[
MBProgressHUD
j_success
:
@"绑定成功!"
complete
:
^
{
kUser
.
wxOpenId
=
response
[
@"data"
];
weakSelf
.
type
=
AccountViewControllerTypeBinding
;
[
weakSelf
isBinding
];
}];
}
else
{
...
...
@@ -190,7 +197,6 @@
-
(
void
)
httpSubmit
{
[
MBProgressHUD
j_loading
];
WS
(
weakSelf
);
kCanNotBeNil
(
self
.
textFieldScore
.
text
,
@"请输入要兑换的工分数!"
);
[
kHttp
POST
:
kCashApply
parameters
:[
self
.
param
toDictionary
]
complete
:^
(
id
_Nullable
response
,
NSError
*
_Nullable
error
)
{
...
...
@@ -214,7 +220,7 @@
if
(
kRsSuccess
(
response
))
{
StationUserAcctEntity
*
acc
=
[[
StationUserAcctEntity
alloc
]
initWithDictionary
:
response
[
@"data"
]
error
:
nil
];
weakSelf
.
labelTotalScore
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
acc
.
balance
];
weakSelf
.
labelValidScore
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
acc
.
drawBalance
];
weakSelf
.
labelValidScore
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
acc
.
drawBalance
?
acc
.
drawBalance
:
@"0"
];
}
}];
}
...
...
Car/CodeClass/Main/Cells/OrderListTableViewCell.h
View file @
cd2eb4ae
...
...
@@ -14,6 +14,7 @@
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
labelOil
;
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
labelBillNumber
;
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
labelPrice
;
@property
(
weak
,
nonatomic
)
IBOutlet
UIButton
*
btnIsChecked
;
-
(
void
)
configCellArray
:(
NSMutableArray
*
)
array
indexPath
:(
NSIndexPath
*
)
indexPath
;
-
(
void
)
configCellArray
:(
NSMutableArray
*
)
array
indexPath
:(
NSIndexPath
*
)
indexPath
isShow
:(
BOOL
)
isShow
isAll
:(
BOOL
)
isAll
;
@end
Car/CodeClass/Main/Cells/OrderListTableViewCell.m
View file @
cd2eb4ae
...
...
@@ -8,20 +8,42 @@
#import "OrderListTableViewCell.h"
#import "OrderListModel.h"
@interface
OrderListTableViewCell
()
@property
(
strong
,
nonatomic
)
OrderListModel
*
model
;
@end
@implementation
OrderListTableViewCell
-
(
void
)
awakeFromNib
{
[
super
awakeFromNib
];
[
self
.
btnIsChecked
setBackgroundImage
:[
UIImage
imageNamed
:
@"radious_select"
]
forState
:
UIControlStateDisabled
|
UIControlStateSelected
];
// Initialization code
}
-
(
void
)
configCellArray
:
(
NSMutableArray
*
)
array
indexPath
:
(
NSIndexPath
*
)
indexPath
{
OrderListModel
*
model
=
array
[
indexPath
.
row
];
self
.
labelTime
.
text
=
model
.
payTime
;
self
.
labelStation
.
text
=
[
NSString
stringWithFormat
:
@"%@ - %@"
,
model
.
stationName
,
model
.
stationUserName
];
self
.
labelOil
.
text
=
[
NSString
stringWithFormat
:
@"%@ - %@"
,
model
.
gasItemName
,
model
.
oilGunName
];
self
.
labelBillNumber
.
text
=
model
.
billNumber
;
self
.
labelPrice
.
text
=
[
CalculateHelper
getMoneyStringFrom
:
model
.
realPayTotal
];
-
(
void
)
configCellArray
:
(
NSMutableArray
*
)
array
indexPath
:
(
NSIndexPath
*
)
indexPath
isShow
:
(
BOOL
)
isShow
isAll
:
(
BOOL
)
isAll
{
OrderListModel
*
model
=
array
[
indexPath
.
row
];
self
.
model
=
model
;
self
.
labelTime
.
text
=
model
.
payTime
;
self
.
labelStation
.
text
=
[
NSString
stringWithFormat
:
@"%@ - %@"
,
model
.
stationName
,
model
.
stationUserName
];
self
.
labelOil
.
text
=
[
NSString
stringWithFormat
:
@"%@ - %@"
,
model
.
gasItemName
,
model
.
oilGunName
];
self
.
labelBillNumber
.
text
=
model
.
billNumber
;
self
.
labelPrice
.
text
=
[
CalculateHelper
getMoneyStringFrom
:
model
.
realPayTotal
];
self
.
btnIsChecked
.
selected
=
model
.
isSelected
;
if
([
model
.
checkState
isEqualToString
:
@"checked"
])
{
self
.
btnIsChecked
.
enabled
=
NO
;
}
else
{
self
.
btnIsChecked
.
enabled
=
YES
;
}
self
.
btnIsChecked
.
hidden
=
!
isShow
;
}
-
(
IBAction
)
actionCheck
:
(
UIButton
*
)
sender
{
sender
.
selected
=
!
sender
.
isSelected
;
self
.
model
.
isSelected
=
sender
.
isSelected
;
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
kNotiSelectBill
object
:
self
.
model
];
}
-
(
void
)
setSelected
:
(
BOOL
)
selected
animated
:
(
BOOL
)
animated
{
...
...
Car/CodeClass/Main/Models/OrderListModel.h
View file @
cd2eb4ae
...
...
@@ -27,4 +27,6 @@
@property
(
strong
,
nonatomic
)
NSString
*
printStateString
;
@property
(
nonatomic
,
assign
)
BOOL
isSelected
;
@end
Car/CodeClass/Main/Models/OrderListModel.m
View file @
cd2eb4ae
...
...
@@ -11,6 +11,18 @@
@implementation
OrderListModel
-
(
instancetype
)
initWithDictionary
:(
NSDictionary
*
)
dict
error
:(
NSError
*
__autoreleasing
*
)
err
{
self
=
[
super
initWithDictionary
:
dict
error
:
err
];
if
(
self
)
{
if
([
self
.
checkState
isEqualToString
:
@"checked"
])
{
self
.
isSelected
=
YES
;
}
else
{
self
.
isSelected
=
NO
;
}
}
return
self
;
}
-
(
NSString
*
)
paymentString
{
if
(
!
_paymentString
)
{
if
([
self
.
payMethod
isEqualToString
:
@"weixin_pub"
])
{
...
...
Car/CodeClass/Main/ViewControllers/MainViewController.m
View file @
cd2eb4ae
This diff is collapsed.
Click to expand it.
Car/CodeClass/Main/ViewControllers/OrderListFilterViewController.m
View file @
cd2eb4ae
...
...
@@ -9,7 +9,7 @@
#import "OrderListFilterViewController.h"
@interface
OrderListFilterViewController
()
@property
(
weak
,
nonatomic
)
IBOutlet
NSLayoutConstraint
*
constraintHeight
;
@property
(
weak
,
nonatomic
)
IBOutlet
NSLayoutConstraint
*
constraintHeight
;
/**
阴影
...
...
@@ -27,36 +27,37 @@
@property
(
weak
,
nonatomic
)
IBOutlet
UITextField
*
textFieldBillNumber
;
/**
日期
日期
开始时间
*/
@property
(
weak
,
nonatomic
)
IBOutlet
DateTextField
*
textFieldDate
;
@property
(
weak
,
nonatomic
)
IBOutlet
DateTextField
*
textFieldEndDate
;
/**
加油员
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UITextField
*
textFieldStationUser
;
@end
@implementation
OrderListFilterViewController
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
self
.
view
.
backgroundColor
=
[
UIColor
clearColor
];
// Do any additional setup after loading the view.
self
.
textFieldDate
.
type
=
DateTextFieldYearMonthDay
;
[
super
viewDidLoad
];
self
.
view
.
backgroundColor
=
[
UIColor
clearColor
];
// Do any additional setup after loading the view.
self
.
textFieldDate
.
type
=
DateTextFieldYearMonthDay
;
self
.
textFieldEndDate
.
type
=
DateTextFieldYearMonthDay
;
}
-
(
IBAction
)
actionBac
:
(
id
)
sender
{
[
self
hideFilterView
];
[
self
hideFilterView
];
}
-
(
void
)
configParam
{
self
.
param
.
billNumberLike
=
self
.
textFieldBillNumber
.
text
;
self
.
param
.
userNameLike
=
self
.
textFieldStationUser
.
text
;
self
.
param
.
endDate
=
kIf
(
self
.
textFieldDate
.
text
.
length
>
0
,
[
self
.
textFieldDate
.
text
stringByAppendingString
:
@" 23:59:59
"
],
nil
);
self
.
param
.
billNumberLike
=
self
.
textFieldBillNumber
.
text
;
self
.
param
.
userNameLike
=
self
.
textFieldStationUser
.
text
;
self
.
param
.
beginDate
=
kIf
(
self
.
textFieldDate
.
text
.
length
>
0
,
[
self
.
textFieldDate
.
text
stringByAppendingString
:
@" 00:00:00
"
],
nil
);
self
.
param
.
endDate
=
kIf
(
self
.
textFieldEndDate
.
text
.
length
>
0
,
[
self
.
textFieldEndDate
.
text
stringByAppendingString
:
@" 23:59:59"
],
nil
);
}
#pragma mark - actions
...
...
@@ -65,61 +66,95 @@
重置
*/
-
(
IBAction
)
actionReset
:
(
id
)
sender
{
self
.
param
.
billNumberLike
=
nil
;
self
.
param
.
userNameLike
=
nil
;
self
.
param
.
endDate
=
nil
;
self
.
textFieldDate
.
text
=
nil
;
self
.
textFieldStationUser
.
text
=
nil
;
self
.
textFieldBillNumber
.
text
=
nil
;
self
.
param
.
billNumberLike
=
nil
;
self
.
param
.
userNameLike
=
nil
;
self
.
param
.
endDate
=
nil
;
self
.
textFieldDate
.
text
=
nil
;
self
.
textFieldStationUser
.
text
=
nil
;
self
.
textFieldBillNumber
.
text
=
nil
;
}
/**
提交
*/
-
(
IBAction
)
actionSubmit
:
(
id
)
sender
{
[
self
configParam
];
[
self
hideFilterView
];
if
(
self
.
blockSubmit
)
{
self
.
blockSubmit
();
}
[
self
configParam
];
[
self
hideFilterView
];
if
(
self
.
blockSubmit
)
{
self
.
blockSubmit
();
}
}
-
(
IBAction
)
actionChooseIsChecked
:
(
UIButton
*
)
sender
{
UIAlertController
*
alert
=
[
UIAlertController
alertControllerWithTitle
:
@"请选择"
message
:
nil
preferredStyle
:
UIAlertControllerStyleAlert
];
WS
(
weakSelf
);
UIAlertAction
*
actionAll
=
[
UIAlertAction
actionWithTitle
:
@"全部"
style
:(
UIAlertActionStyleDefault
)
handler
:^
(
UIAlertAction
*
_Nonnull
action
)
{
[
sender
setTitle
:
@"全部"
forState
:
UIControlStateNormal
];
weakSelf
.
param
.
checkState
=
nil
;
}];
[
alert
addAction
:
actionAll
];
UIAlertAction
*
actionChecked
=
[
UIAlertAction
actionWithTitle
:
@"已对账"
style
:(
UIAlertActionStyleDefault
)
handler
:^
(
UIAlertAction
*
_Nonnull
action
)
{
[
sender
setTitle
:
@"已对账"
forState
:
UIControlStateNormal
];
weakSelf
.
param
.
checkState
=
@"checked"
;
}];
[
alert
addAction
:
actionChecked
];
UIAlertAction
*
actionUnchecked
=
[
UIAlertAction
actionWithTitle
:
@"未对账"
style
:(
UIAlertActionStyleDefault
)
handler
:^
(
UIAlertAction
*
_Nonnull
action
)
{
[
sender
setTitle
:
@"未对账"
forState
:
UIControlStateNormal
];
weakSelf
.
param
.
checkState
=
@"unchecked"
;
}];
[
alert
addAction
:
actionUnchecked
];
UIAlertAction
*
actionCancel
=
[
UIAlertAction
actionWithTitle
:
@"取消"
style
:
UIAlertActionStyleDestructive
handler
:
nil
];
[
alert
addAction
:
actionCancel
];
[
self
presentViewController
:
alert
animated
:
YES
completion
:
nil
];
}
-
(
void
)
hideFilterView
{
HIDE_KEYBOARD
;
self
.
isOpen
=
NO
;
self
.
constraintHeight
.
constant
=
0
;
[
UIView
animateWithDuration
:
0
.
7
delay
:
0
usingSpringWithDamping
:
0
.
9
HIDE_KEYBOARD
;
self
.
isOpen
=
NO
;
self
.
constraintHeight
.
constant
=
0
;
[
UIView
animateWithDuration
:
0
.
7
delay
:
0
usingSpringWithDamping
:
0
.
9
initialSpringVelocity
:
1
.
0
options
:
UIViewAnimationOptionCurveLinear
animations
:^
{
self
.
shadow
.
backgroundColor
=
[
UIColor
clearColor
];
[
self
.
view
layoutIfNeeded
];
}
completion
:^
(
BOOL
finished
)
{
[
self
.
view
removeFromSuperview
];
}];
options
:
UIViewAnimationOptionCurveLinear
animations
:^
{
self
.
shadow
.
backgroundColor
=
[
UIColor
clearColor
];
[
self
.
view
layoutIfNeeded
];
}
completion
:^
(
BOOL
finished
)
{
[
self
.
view
removeFromSuperview
];
}];
}
-
(
void
)
showFilterView
{
self
.
isOpen
=
YES
;
self
.
constraintHeight
.
constant
=
2
20
;
[
UIView
animateWithDuration
:
0
.
7
delay
:
0
usingSpringWithDamping
:
0
.
9
initialSpringVelocity
:
1
.
0
options
:
UIViewAnimationOptionCurveLinear
animations
:^
{
self
.
shadow
.
backgroundColor
=
[
UIColor
colorWithWhite
:
0
.
3
alpha
:
0
.
3
];
[
self
.
view
layoutIfNeeded
];
}
completion
:
nil
];
self
.
isOpen
=
YES
;
self
.
constraintHeight
.
constant
=
3
20
;
[
UIView
animateWithDuration
:
0
.
7
delay
:
0
usingSpringWithDamping
:
0
.
9
initialSpringVelocity
:
1
.
0
options
:
UIViewAnimationOptionCurveLinear
animations
:^
{
self
.
shadow
.
backgroundColor
=
[
UIColor
colorWithWhite
:
0
.
3
alpha
:
0
.
3
];
[
self
.
view
layoutIfNeeded
];
}
completion
:
nil
];
}
-
(
void
)
didReceiveMemoryWarning
{
[
super
didReceiveMemoryWarning
];
// Dispose of any resources that can be recreated.
[
super
didReceiveMemoryWarning
];
// Dispose of any resources that can be recreated.
}
/*
...
...
Car/Info.plist
View file @
cd2eb4ae
...
...
@@ -17,7 +17,7 @@
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
1.0.
0
<
/string
>
<
string
>
1.0.
3
<
/string
>
<
k
e
y
>
CFBundleURLTypes
<
/k
e
y
>
<
a
rr
a
y
>
<
d
i
c
t
>
...
...
@@ -30,7 +30,7 @@
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
1.0.
0
<
/string
>
<
string
>
1.0.
3
<
/string
>
<
k
e
y
>
LSApplicationQueriesSchemes
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
wechat
<
/string
>
...
...
Car/PrefixHeader.pch
View file @
cd2eb4ae
...
...
@@ -17,7 +17,7 @@
//主题色
#define kMainColor kMainOrangeColor
static NSString *const kNotiSelectBill = @"kNotiSelectBill";
#ifdef DEBUG
#define CLog(format, ...) \
...
...
Car/URL.h
View file @
cd2eb4ae
...
...
@@ -11,7 +11,7 @@
#ifdef test
static
NSString
*
const
VersionName
=
@"车族通测试版"
;
static
NSString
*
const
BASE_IP
=
@"http://test.gomoretech.com"
;
static
NSString
*
const
BASE_IP
=
@"http://
car
test.gomoretech.com"
;
#else
static
NSString
*
const
VersionName
=
@"车族通正式版"
;
static
NSString
*
const
BASE_IP
=
@"http://whcar.gomoretech.com"
;
...
...
@@ -42,5 +42,6 @@ static NSString *const kUserCashRecord = @"cash/query";
static
NSString
*
const
kCashApply
=
@"cash/apply"
;
//绑定用户微信unionId
static
NSString
*
const
kModifyUserWxUid
=
@"stationUser/save/openId"
;
static
NSString
*
const
kUrlCheck
=
@"order/check"
;
#endif
/* URL_h */
Car/car_objc_json_client.h
View file @
cd2eb4ae
This diff is collapsed.
Click to expand it.
Car/car_objc_json_client.m
View file @
cd2eb4ae
...
...
@@ -92,6 +92,18 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
}
@end
@implementation
CheckOrderRequest
@synthesize
userId
;
@synthesize
orderIds
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
@end
@implementation
ResetPasswordRequest
...
...
@@ -239,6 +251,44 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
}
@end
@implementation
CouponStockEntity
@synthesize
fid
;
@synthesize
createName
;
@synthesize
createBy
;
@synthesize
createDate
;
@synthesize
updateName
;
@synthesize
updateBy
;
@synthesize
updateDate
;
@synthesize
sysOrgCode
;
@synthesize
sysCompanyCode
;
@synthesize
couponNumber
;
@synthesize
name
;
@synthesize
type
;
@synthesize
total
;
@synthesize
realToal
;
@synthesize
state
;
@synthesize
memberId
;
@synthesize
memberName
;
@synthesize
orderNumber
;
@synthesize
validBeginDate
;
@synthesize
validEndDate
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
+
(
JSONKeyMapper
*
)
keyMapper
{
return
[[
JSONKeyMapper
alloc
]
initWithDictionary
:@{
@"id"
:
@"fid"
,
}];
}
@end
@implementation
GasItemEntity
...
...
@@ -386,6 +436,7 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
@synthesize
invoiceId
;
@synthesize
alipayBuyerId
;
@synthesize
alipaybuyerLogonId
;
@synthesize
checkState
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -791,10 +842,10 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
@end
@implementation
AjaxJson
@synthesize
msg
;
@synthesize
attributes
;
@synthesize
obj
;
@synthesize
success
;
@synthesize
msg
;
@synthesize
obj
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -1049,6 +1100,40 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
}
@end
@implementation
CouponEntity
@synthesize
fid
;
@synthesize
createName
;
@synthesize
createBy
;
@synthesize
createDate
;
@synthesize
updateName
;
@synthesize
updateBy
;
@synthesize
updateDate
;
@synthesize
sysOrgCode
;
@synthesize
sysCompanyCode
;
@synthesize
name
;
@synthesize
type
;
@synthesize
total
;
@synthesize
realTotal
;
@synthesize
state
;
@synthesize
probability
;
@synthesize
validateDays
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
+
(
JSONKeyMapper
*
)
keyMapper
{
return
[[
JSONKeyMapper
alloc
]
initWithDictionary
:@{
@"id"
:
@"fid"
,
}];
}
@end
@implementation
DrawCashBillEntity
...
...
@@ -1144,6 +1229,18 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
}
@end
@implementation
TradeStatisticsResult
@synthesize
orderCount
;
@synthesize
totalAmount
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
@end
@implementation
LoginResult
...
...
@@ -1224,17 +1321,7 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
@implementation
OrderQueryResult
@synthesize
records
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
@end
@implementation
WithdrawQueryResult
@synthesize
records
;
@synthesize
total
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -1264,6 +1351,29 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
}
@end
@implementation
TSBaseUser
@synthesize
userType
;
@synthesize
departid
;
@synthesize
signature
;
@synthesize
browser
;
@synthesize
userKey
;
@synthesize
status
;
@synthesize
activitiSync
;
@synthesize
password
;
@synthesize
userName
;
@synthesize
realName
;
@synthesize
currentDepart
;
@synthesize
userOrgList
;
@synthesize
deleteFlag
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
@end
@implementation
TSDepart
...
...
@@ -1293,20 +1403,8 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
@end
@implementation
TSBaseUser
@synthesize
userType
;
@synthesize
departid
;
@synthesize
signature
;
@synthesize
browser
;
@synthesize
userKey
;
@synthesize
status
;
@synthesize
activitiSync
;
@synthesize
password
;
@synthesize
userName
;
@synthesize
realName
;
@synthesize
currentDepart
;
@synthesize
userOrgList
;
@synthesize
deleteFlag
;
@implementation
WithdrawQueryResult
@synthesize
records
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -1326,21 +1424,6 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
}
@end
@implementation
OrderQueryDefintion
@synthesize
userId
;
@synthesize
userNameLike
;
@synthesize
billNumberLike
;
@synthesize
endDate
;
@synthesize
state
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
@end
@implementation
WxMassBillEntity
...
...
@@ -1382,6 +1465,23 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
}
@end
@implementation
OrderQueryDefintion
@synthesize
userId
;
@synthesize
userNameLike
;
@synthesize
billNumberLike
;
@synthesize
endDate
;
@synthesize
state
;
@synthesize
beginDate
;
@synthesize
checkState
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
@end
@implementation
WithdrawQueryDefintion
...
...
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