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
521d6dec
Commit
521d6dec
authored
Aug 29, 2016
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改部分bug
parent
ee126bc1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
66 additions
and
34 deletions
+66
-34
PaymentsDetailsTableViewController.m
Lighting/Class/PaymentsDetailsTableViewController.m
+15
-0
RebateDetailsViewController.m
Lighting/Class/RebateDetailsViewController.m
+1
-1
RebateViewController.m
Lighting/Class/RebateViewController.m
+5
-4
project.pbxproj
Lighting/Lighting.xcodeproj/project.pbxproj
+3
-2
StoryboardwithCYX.storyboard
Lighting/Lighting/StoryboardwithCYX.storyboard
+19
-19
opple_objc_json_client.h
Lighting/Tools/opple_objc_json_client.h
+21
-7
opple_objc_json_client.m
Lighting/Tools/opple_objc_json_client.m
+2
-1
No files found.
Lighting/Class/PaymentsDetailsTableViewController.m
View file @
521d6dec
...
@@ -59,6 +59,21 @@
...
@@ -59,6 +59,21 @@
self
.
amountLabel
.
text
=
string
;
self
.
amountLabel
.
text
=
string
;
self
.
createTimeLabel
.
text
=
self
.
model
.
createDate
;
self
.
createTimeLabel
.
text
=
self
.
model
.
createDate
;
self
.
serialNumberLabel
.
text
=
self
.
model
.
orderNumber
;
self
.
serialNumberLabel
.
text
=
self
.
model
.
orderNumber
;
self
.
amountTypeLabel
.
text
=
[
self
separatePaymentsAndWithfrawal
:
self
.
model
.
state
];
self
.
currentAmountLabel
.
text
=
[
self
.
model
.
afteramount
stringValue
];
}
#pragma mark - 区分提现还是返佣
-
(
NSString
*
)
separatePaymentsAndWithfrawal
:
(
NSString
*
)
state
{
if
([
state
isEqualToString
:
@"0"
])
{
return
@"返佣"
;
}
if
([
state
isEqualToString
:
@"1"
])
{
return
@"提现"
;
}
return
nil
;
}
}
...
...
Lighting/Class/RebateDetailsViewController.m
View file @
521d6dec
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
[
self
CreateMBProgressHUDLoding
];
[
self
CreateMBProgressHUDLoding
];
WS
(
weakSelf
);
WS
(
weakSelf
);
NSString
*
urlString
=
[
NSString
stringWithFormat
:
@"%@/%@"
,
WITHDRAWALPROGRESSDETAILS
,
self
.
applyUUID
];
NSString
*
urlString
=
[
NSString
stringWithFormat
:
@"%@/%@"
,
WITHDRAWALPROGRESSDETAILS
,
self
.
applyUUID
];
[[
NetworkRequestClassManager
Manager
]
NetworkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
urlString
)
WithRequestType
:
0
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
[[
NetworkRequestClassManager
Manager
]
NetworkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
urlString
)
WithRequestType
:
1
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
RemoveMBProgressHUDLoding
];
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
TOApplyBillEntity
*
result
=
[[
TOApplyBillEntity
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
TOApplyBillEntity
*
result
=
[[
TOApplyBillEntity
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
...
...
Lighting/Class/RebateViewController.m
View file @
521d6dec
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
/**
/**
* 账户数据
* 账户数据
*/
*/
@property
(
nonatomic
,
strong
)
EarningsRe
quest
*
model
;
@property
(
nonatomic
,
strong
)
EarningsRe
sponse
*
model
;
@end
@end
...
@@ -145,13 +145,13 @@
...
@@ -145,13 +145,13 @@
WS
(
weakSelf
);
WS
(
weakSelf
);
[
self
CreateMBProgressHUDLoding
];
[
self
CreateMBProgressHUDLoding
];
NSString
*
URL
=
[
NSString
stringWithFormat
:
@"%@/%@"
,
REBATE
,[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
];
NSString
*
URL
=
[
NSString
stringWithFormat
:
@"%@/%@"
,
REBATE
,[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
];
[[
NetworkRequestClassManager
Manager
]
NetworkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
URL
)
WithRequestType
:
0
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
[[
NetworkRequestClassManager
Manager
]
NetworkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
URL
)
WithRequestType
:
1
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
RemoveMBProgressHUDLoding
];
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
weakSelf
.
model
=
[[
EarningsRe
quest
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
weakSelf
.
model
=
[[
EarningsRe
sponse
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
weakSelf
.
currentAmountLabel
.
text
=
[
returnValue
[
@"data"
][
@"accountTotal"
]
stringValue
];
weakSelf
.
currentAmountLabel
.
text
=
[
returnValue
[
@"data"
][
@"accountTotal"
]
stringValue
];
//
weakSelf.yesterdayAmountLabel.text = [returnValue[@"data"][@"yesterdayEarnings"] stringValue];
weakSelf
.
yesterdayAmountLabel
.
text
=
[
returnValue
[
@"data"
][
@"yesterdayEarnings"
]
stringValue
];
weakSelf
.
historyAmountLabel
.
text
=
[
returnValue
[
@"data"
][
@"historyEarning"
]
stringValue
];
weakSelf
.
historyAmountLabel
.
text
=
[
returnValue
[
@"data"
][
@"historyEarning"
]
stringValue
];
}
else
}
else
{
{
...
@@ -176,6 +176,7 @@
...
@@ -176,6 +176,7 @@
rebateDetails
.
rebateAmount
=
[
self
.
model
.
accountTotal
stringValue
];
rebateDetails
.
rebateAmount
=
[
self
.
model
.
accountTotal
stringValue
];
[
rebateDetails
setShowApplyDetails
:
^
(
TOApplyBillEntity
*
entity
)
{
[
rebateDetails
setShowApplyDetails
:
^
(
TOApplyBillEntity
*
entity
)
{
WithdrawalTableViewController
*
detailVC
=
[
weakSelf
.
getStoryboardWithName
instantiateViewControllerWithIdentifier
:
@"WithdrawalTableViewController"
];
WithdrawalTableViewController
*
detailVC
=
[
weakSelf
.
getStoryboardWithName
instantiateViewControllerWithIdentifier
:
@"WithdrawalTableViewController"
];
detailVC
.
model
=
entity
;
[
weakSelf
.
navigationController
pushViewController
:
detailVC
animated
:
YES
];
[
weakSelf
.
navigationController
pushViewController
:
detailVC
animated
:
YES
];
}];
}];
[
self
.
navigationController
pushViewController
:
rebateDetails
animated
:
YES
];
[
self
.
navigationController
pushViewController
:
rebateDetails
animated
:
YES
];
...
...
Lighting/Lighting.xcodeproj/project.pbxproj
View file @
521d6dec
...
@@ -1484,6 +1484,7 @@
...
@@ -1484,6 +1484,7 @@
TargetAttributes
=
{
TargetAttributes
=
{
29706DA01CD082980003C412
=
{
29706DA01CD082980003C412
=
{
CreatedOnToolsVersion
=
7.3
;
CreatedOnToolsVersion
=
7.3
;
DevelopmentTeam
=
39XYE6VSP8
;
};
};
};
};
};
};
...
@@ -1864,7 +1865,7 @@
...
@@ -1864,7 +1865,7 @@
"\"UIKit\""
,
"\"UIKit\""
,
"$(inherited)"
,
"$(inherited)"
,
);
);
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomore.opple
.c48
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomore.opple
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
"ce8104e7-12c7-4aa2-a135-c4d3731e559c"
;
PROVISIONING_PROFILE
=
"ce8104e7-12c7-4aa2-a135-c4d3731e559c"
;
STRIP_PNG_TEXT
=
NO
;
STRIP_PNG_TEXT
=
NO
;
...
@@ -1925,7 +1926,7 @@
...
@@ -1925,7 +1926,7 @@
"\"UIKit\""
,
"\"UIKit\""
,
"$(inherited)"
,
"$(inherited)"
,
);
);
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomore.opple
.c48
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomore.opple
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
"ce8104e7-12c7-4aa2-a135-c4d3731e559c"
;
PROVISIONING_PROFILE
=
"ce8104e7-12c7-4aa2-a135-c4d3731e559c"
;
STRIP_PNG_TEXT
=
NO
;
STRIP_PNG_TEXT
=
NO
;
...
...
Lighting/Lighting/StoryboardwithCYX.storyboard
View file @
521d6dec
This diff is collapsed.
Click to expand it.
Lighting/Tools/opple_objc_json_client.h
View file @
521d6dec
...
@@ -65,7 +65,7 @@ extern NSString * const SORTDIRECTION_DESC;
...
@@ -65,7 +65,7 @@ extern NSString * const SORTDIRECTION_DESC;
@class
LoginResult
;
@class
LoginResult
;
@class
ConsumerQueryCondition
;
@class
ConsumerQueryCondition
;
@class
ExceptionCode
;
@class
ExceptionCode
;
@class
EarningsRe
quest
;
@class
EarningsRe
sponse
;
@class
ApplyRequest
;
@class
ApplyRequest
;
@class
OrderResponse
;
@class
OrderResponse
;
@class
TSDepart
;
@class
TSDepart
;
...
@@ -124,7 +124,7 @@ extern NSString * const SORTDIRECTION_DESC;
...
@@ -124,7 +124,7 @@ extern NSString * const SORTDIRECTION_DESC;
@protocol
LoginResult
@end
@protocol
LoginResult
@end
@protocol
ConsumerQueryCondition
@end
@protocol
ConsumerQueryCondition
@end
@protocol
ExceptionCode
@end
@protocol
ExceptionCode
@end
@protocol
EarningsRe
quest
@end
@protocol
EarningsRe
sponse
@end
@protocol
ApplyRequest
@end
@protocol
ApplyRequest
@end
@protocol
OrderResponse
@end
@protocol
OrderResponse
@end
@protocol
TSDepart
@end
@protocol
TSDepart
@end
...
@@ -161,7 +161,9 @@ extern NSString * const SORTDIRECTION_DESC;
...
@@ -161,7 +161,9 @@ extern NSString * const SORTDIRECTION_DESC;
/**
/**
* @author Administrator
* 流水请求
@author nevermore
@since 0.1
@since 0.1
*/
*/
...
@@ -2171,6 +2173,12 @@ extern NSString * const SORTDIRECTION_DESC;
...
@@ -2171,6 +2173,12 @@ extern NSString * const SORTDIRECTION_DESC;
*
*
*/
*/
@property
(
nonatomic
,
strong
)
NSNumber
*
amount
;
@property
(
nonatomic
,
strong
)
NSNumber
*
amount
;
/**
* 方法: 取得java.math.BigDecimal
*
*
*/
@property
(
nonatomic
,
strong
)
NSNumber
*
afteramount
;
/**
/**
* 方法: 取得java.lang.String
* 方法: 取得java.lang.String
*
*
...
@@ -2530,7 +2538,7 @@ extern NSString * const SORTDIRECTION_DESC;
...
@@ -2530,7 +2538,7 @@ extern NSString * const SORTDIRECTION_DESC;
/**
/**
* (no documentation provided)
* (no documentation provided)
*/
*/
@interface
EarningsRe
quest
:
JSONModel
@interface
EarningsRe
sponse
:
JSONModel
/**
/**
* (no documentation provided)
* (no documentation provided)
*
*
...
@@ -2549,7 +2557,7 @@ extern NSString * const SORTDIRECTION_DESC;
...
@@ -2549,7 +2557,7 @@ extern NSString * const SORTDIRECTION_DESC;
*
*
*/
*/
@property
(
nonatomic
,
strong
)
NSNumber
*
historyEarning
;
@property
(
nonatomic
,
strong
)
NSNumber
*
historyEarning
;
@end
/* interface EarningsRe
quest
*/
@end
/* interface EarningsRe
sponse
*/
...
@@ -2823,7 +2831,9 @@ extern NSString * const SORTDIRECTION_DESC;
...
@@ -2823,7 +2831,9 @@ extern NSString * const SORTDIRECTION_DESC;
/**
/**
* @author nevermore
* 流水明细分页查询结果
@author nevermore
@since 0.1
@since 0.1
*/
*/
...
@@ -2839,7 +2849,11 @@ extern NSString * const SORTDIRECTION_DESC;
...
@@ -2839,7 +2849,11 @@ extern NSString * const SORTDIRECTION_DESC;
/**
/**
* (no documentation provided)
* 查询提现进度分页
@author nevermore
@since 0.1
*/
*/
@interface
RsApplyBillResponse
:
PageRows
@interface
RsApplyBillResponse
:
PageRows
/**
/**
...
...
Lighting/Tools/opple_objc_json_client.m
View file @
521d6dec
...
@@ -760,6 +760,7 @@ NSString * const SORTDIRECTION_DESC = @"desc";
...
@@ -760,6 +760,7 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@synthesize
employeeId
;
@synthesize
employeeId
;
@synthesize
orderId
;
@synthesize
orderId
;
@synthesize
amount
;
@synthesize
amount
;
@synthesize
afteramount
;
@synthesize
remark
;
@synthesize
remark
;
@synthesize
orderNumber
;
@synthesize
orderNumber
;
@synthesize
employeeName
;
@synthesize
employeeName
;
...
@@ -925,7 +926,7 @@ NSString * const SORTDIRECTION_DESC = @"desc";
...
@@ -925,7 +926,7 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end
@end
@implementation
EarningsRe
quest
@implementation
EarningsRe
sponse
@synthesize
accountTotal
;
@synthesize
accountTotal
;
@synthesize
yesterdayEarnings
;
@synthesize
yesterdayEarnings
;
@synthesize
historyEarning
;
@synthesize
historyEarning
;
...
...
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