Commit 099e5b1c7a4c4b97bd97b4b7051592790b2f2289
1 parent
aa637921
no message
Showing
5 changed files
with
7 additions
and
7 deletions
CNLiveBalanceModule/Classes/Model/CNLiveTradingRecordModel.h
| @@ -39,8 +39,8 @@ NS_ASSUME_NONNULL_BEGIN | @@ -39,8 +39,8 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 39 | @end | 39 | @end |
| 40 | 40 | ||
| 41 | @interface CNLiveTradingRecordModel : NSObject | 41 | @interface CNLiveTradingRecordModel : NSObject |
| 42 | -@property (nonatomic, copy) NSString *defray; | ||
| 43 | -@property (nonatomic, copy) NSString *income; | 42 | +@property (nonatomic, assign) CGFloat defray; |
| 43 | +@property (nonatomic, assign) CGFloat income; | ||
| 44 | @property (nonatomic, copy) NSString *lastPage; | 44 | @property (nonatomic, copy) NSString *lastPage; |
| 45 | @property (nonatomic, strong) NSArray *list; | 45 | @property (nonatomic, strong) NSArray *list; |
| 46 | @property (nonatomic, strong) NSArray *transferRecordList; | 46 | @property (nonatomic, strong) NSArray *transferRecordList; |
CNLiveBalanceModule/Classes/PayManager/CNLiveChangePayPasswordController.m
| @@ -18,7 +18,6 @@ | @@ -18,7 +18,6 @@ | ||
| 18 | 18 | ||
| 19 | #import "CNLiveBalanceRequest.h" | 19 | #import "CNLiveBalanceRequest.h" |
| 20 | #import "CNLiveBalanceNavigationBar.h" | 20 | #import "CNLiveBalanceNavigationBar.h" |
| 21 | -#import "CNLivePayCenterController.h" | ||
| 22 | 21 | ||
| 23 | @interface CNLiveChangePayPasswordController ()<CNLiveBalanceNavigationBarDelegate> | 22 | @interface CNLiveChangePayPasswordController ()<CNLiveBalanceNavigationBarDelegate> |
| 24 | @property (nonatomic, strong) CNLiveBalanceNavigationBar *navigationBar; | 23 | @property (nonatomic, strong) CNLiveBalanceNavigationBar *navigationBar; |
CNLiveBalanceModule/Classes/TradingRecord/CNLiveMonthBillView.h
| @@ -21,6 +21,7 @@ NS_ASSUME_NONNULL_BEGIN | @@ -21,6 +21,7 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 21 | @property (nonatomic, weak) id<CNLiveMonthBillViewDelegate> delegate; | 21 | @property (nonatomic, weak) id<CNLiveMonthBillViewDelegate> delegate; |
| 22 | @property (nonatomic, copy) NSString *date; | 22 | @property (nonatomic, copy) NSString *date; |
| 23 | @property (nonatomic, assign) BOOL interactionEnabled; | 23 | @property (nonatomic, assign) BOOL interactionEnabled; |
| 24 | + | ||
| 24 | @end | 25 | @end |
| 25 | 26 | ||
| 26 | NS_ASSUME_NONNULL_END | 27 | NS_ASSUME_NONNULL_END |
CNLiveBalanceModule/Classes/TradingRecord/CNLiveTradingRecordDetailHeaderView.m
| @@ -58,7 +58,7 @@ static const NSInteger height = 40; | @@ -58,7 +58,7 @@ static const NSInteger height = 40; | ||
| 58 | if (![model.sum containsString:@"-"]) { | 58 | if (![model.sum containsString:@"-"]) { |
| 59 | self.money.text = [NSString stringWithFormat:@"+%@",model.sum]; | 59 | self.money.text = [NSString stringWithFormat:@"+%@",model.sum]; |
| 60 | } else { | 60 | } else { |
| 61 | - self.money.text = model.sum;//[NSString stringWithFormat:@"%.2f",model.money]; | 61 | + self.money.text = model.sum; |
| 62 | } | 62 | } |
| 63 | if ([model.sourceType containsString:@"refill"] || [model.sourceType isEqualToString:@"group_vote"] || [model.sourceType containsString:@"refund"]) { | 63 | if ([model.sourceType containsString:@"refill"] || [model.sourceType isEqualToString:@"group_vote"] || [model.sourceType containsString:@"refund"]) { |
| 64 | // 收入 | 64 | // 收入 |
| @@ -126,7 +126,7 @@ static const NSInteger height = 40; | @@ -126,7 +126,7 @@ static const NSInteger height = 40; | ||
| 126 | if (!_shopName) { | 126 | if (!_shopName) { |
| 127 | _shopName = [[UILabel alloc] init]; | 127 | _shopName = [[UILabel alloc] init]; |
| 128 | _shopName.textColor = [UIColor blackColor]; | 128 | _shopName.textColor = [UIColor blackColor]; |
| 129 | - _shopName.font = UIFontCNMake(16);//[UIFont fontWithName:@"PingFangSC-Regular" size:16.0f]; | 129 | + _shopName.font = UIFontCNMake(16); |
| 130 | } | 130 | } |
| 131 | return _shopName; | 131 | return _shopName; |
| 132 | } | 132 | } |
| @@ -135,7 +135,7 @@ static const NSInteger height = 40; | @@ -135,7 +135,7 @@ static const NSInteger height = 40; | ||
| 135 | if (!_money) { | 135 | if (!_money) { |
| 136 | _money = [[UILabel alloc] init]; | 136 | _money = [[UILabel alloc] init]; |
| 137 | _money.textColor = RGB(34, 34, 34); | 137 | _money.textColor = RGB(34, 34, 34); |
| 138 | - _money.font = UIFontCNMake(36);//[UIFont fontWithName:@"PingFangSC-Regular" size:36]; | 138 | + _money.font = UIFontCNMake(36); |
| 139 | _money.textAlignment = NSTextAlignmentCenter; | 139 | _money.textAlignment = NSTextAlignmentCenter; |
| 140 | } | 140 | } |
| 141 | return _money; | 141 | return _money; |
CNLiveBalanceModule/Classes/TradingRecord/CNLiveTradingRecordView.m
| @@ -67,7 +67,7 @@ static const NSInteger height = 30; | @@ -67,7 +67,7 @@ static const NSInteger height = 30; | ||
| 67 | 67 | ||
| 68 | - (void)setModel:(CNLiveTradingRecordModel *)model{ | 68 | - (void)setModel:(CNLiveTradingRecordModel *)model{ |
| 69 | _model = model; | 69 | _model = model; |
| 70 | - _paymentsAmount.text = [NSString stringWithFormat:@"支出 ¥%@ 收入 ¥%@",model.defray,model.income]; | 70 | + _paymentsAmount.text = [NSString stringWithFormat:@"支出 ¥%.2f 收入 ¥%.2f",model.defray,model.income]; |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | - (void)setIsShow:(BOOL)isShow{ | 73 | - (void)setIsShow:(BOOL)isShow{ |