@@ -19,7 +19,7 @@ @interface ShopOderCell()
19
19
UILabel *_priceLabel;
20
20
UILabel *_titleLabel;
21
21
UILabel *_descLabel;
22
- UILabel *_countLabel;
22
+ // UILabel *_countLabel;
23
23
UIButton *_codingCoinView;
24
24
25
25
UILabel *_orderNumLabel;
@@ -119,12 +119,12 @@ - (void)setUpContentView
119
119
_remarksLabel.textColor = [UIColor colorWithHexString: @" 0x666666" ];
120
120
[_goodsInfoView addSubview: _remarksLabel];
121
121
122
- _countLabel = [[UILabel alloc ] initWithFrame: CGRectZero ];
123
- _countLabel.font = FONT (12 );
124
- _countLabel.backgroundColor = [UIColor clearColor ];
125
- _countLabel.text = @" ⅹ1" ;
126
- _countLabel.textColor = [UIColor colorWithHexString: @" 0x3BBD79" ];
127
- [_goodsInfoView addSubview: _countLabel];
122
+ // _countLabel = [[UILabel alloc] initWithFrame:CGRectZero];
123
+ // _countLabel.font = FONT(12);
124
+ // _countLabel.backgroundColor = [UIColor clearColor];
125
+ // _countLabel.text = @"ⅹ1";
126
+ // _countLabel.textColor = [UIColor colorWithHexString:@"0x3BBD79"];
127
+ // [_goodsInfoView addSubview:_countLabel];
128
128
129
129
_codingCoinView = [UIButton buttonWithType: UIButtonTypeCustom];
130
130
[_codingCoinView setImage: [UIImage imageNamed: @" shop_coding_coin_icon" ] forState: UIControlStateNormal];
@@ -145,11 +145,11 @@ - (void)setUpContentView
145
145
make.right .equalTo (superView.mas_right ).offset (-(40 ));
146
146
}];
147
147
148
- [_countLabel mas_makeConstraints: ^(MASConstraintMaker *make) {
149
- make.centerY .equalTo (_titleLabel.mas_centerY );
150
- make.right .equalTo (_goodsInfoView.mas_right ).offset (-7 );
151
- make.width .offset (20 );
152
- }];
148
+ // [_countLabel mas_makeConstraints:^(MASConstraintMaker *make) {
149
+ // make.centerY.equalTo(_titleLabel.mas_centerY);
150
+ // make.right.equalTo(_goodsInfoView.mas_right).offset(-7);
151
+ // make.width.offset(20);
152
+ // }];
153
153
154
154
[_codingCoinView mas_makeConstraints: ^(MASConstraintMaker *make) {
155
155
make.top .equalTo (_titleLabel.mas_bottom ).offset (8 );
@@ -366,7 +366,11 @@ - (void)configViewWithModel:(ShopOrder *)order
366
366
[_codingCoinView setTitle: points_cost forState: UIControlStateNormal];
367
367
368
368
_orderNumLabel.text = order.orderNo ;
369
- _remarksLabel.text = order.remark ;
369
+ NSString *remarkStr = order.remark ?: @" " ;
370
+ if (order.optionName .length > 0 ) {
371
+ remarkStr = [remarkStr stringByAppendingFormat: @" (%@ )" , order.optionName];
372
+ }
373
+ _remarksLabel.text = remarkStr.length > 0 ? remarkStr: @" 无" ;
370
374
_nameLabel.text = order.receiverName ;
371
375
_addressLabel.text = order.receiverAddress ;
372
376
_phoneNumLabel.text = order.receiverPhone ;
0 commit comments