|
@@ -104,7 +104,7 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-- (void)reloadData:(XSTTOrderDetailsNodeModel *)data isFirst:(bool)isFirst isLast:(bool)isLast {
|
|
|
|
|
|
+- (void)reloadData:(XSTTOrderDetailsNodeModel *)data isFirst:(bool)isFirst isLast:(bool)isLast showChangeAddress:(bool)showChangeAddress {
|
|
_title.text = data.xstt_nodeName;
|
|
_title.text = data.xstt_nodeName;
|
|
|
|
|
|
if (isFirst) {
|
|
if (isFirst) {
|
|
@@ -138,10 +138,15 @@
|
|
_button.hidden = true;
|
|
_button.hidden = true;
|
|
break;
|
|
break;
|
|
case XSTTOrderDetailsNodeActionTypeAddress:
|
|
case XSTTOrderDetailsNodeActionTypeAddress:
|
|
- _button.hidden = false;
|
|
|
|
- [_button setTitle:@"更改收货地址" state:JXHButtonControlStateNormal | JXHButtonControlStateHighlighted];
|
|
|
|
- [_button setStatusType:XSTTButtonStatusTypeLineBorder font:xstt_font(11) size:(CGSize){24, 28} corner:-1 calculateLabel:_button.titleLabel];
|
|
|
|
- [_button setTitleColor:xstt_000000_color(0.6) state:JXHButtonControlStateNormal | JXHButtonControlStateHighlighted];
|
|
|
|
|
|
+ if (showChangeAddress) {
|
|
|
|
+ _button.hidden = false;
|
|
|
|
+ [_button setTitle:@"更改收货地址" state:JXHButtonControlStateNormal | JXHButtonControlStateHighlighted];
|
|
|
|
+ [_button setStatusType:XSTTButtonStatusTypeLineBorder font:xstt_font(11) size:(CGSize){24, 28} corner:-1 calculateLabel:_button.titleLabel];
|
|
|
|
+ [_button setTitleColor:xstt_000000_color(0.6) state:JXHButtonControlStateNormal | JXHButtonControlStateHighlighted];
|
|
|
|
+ } else {
|
|
|
|
+ _button.hidden = true;
|
|
|
|
+ }
|
|
|
|
+
|
|
break;
|
|
break;
|
|
case XSTTOrderDetailsNodeActionTypeExpressNumber:
|
|
case XSTTOrderDetailsNodeActionTypeExpressNumber:
|
|
_button.hidden = false;
|
|
_button.hidden = false;
|