File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ - (void)setCurTeam:(Team *)curTeam{
103103 NSInteger remain_days = _curTeam.info .remain_days .integerValue ;
104104
105105 _tipL.textColor = remain_days > kEANeedTipRemainDays && !isLocked? kColorDark4 : kColorActionRed ;
106- if (isTrial || !isToped_up) {
106+ if (!isToped_up) {
107107 NSInteger trial_left_days = [_curTeam.info trial_left_days ];
108108 if (isLocked || trial_left_days < 0 ) {
109109 _tipL.text = @" 您的试用期已结束,请订购后使用" ;
@@ -174,7 +174,7 @@ + (CGFloat)cellHeightWithObj:(id)obj{
174174 if (!isToped_up) {
175175 cellHeight = 85 ;
176176 }else {
177- BOOL needTipStr = (isTrial || remain_days <= kEANeedTipRemainDays || isLocked);
177+ BOOL needTipStr = (!isToped_up || remain_days <= kEANeedTipRemainDays || isLocked);
178178 if (needTipStr) {
179179 cellHeight = 165 ;
180180 }else {
Original file line number Diff line number Diff line change @@ -57,13 +57,12 @@ - (void)setCurTeam:(Team *)curTeam{
5757 _curTeam = curTeam;
5858
5959 BOOL isToped_up = [_curTeam.info isToped_up ];// 是否充值过
60- BOOL isTrial = _curTeam.info .trial .boolValue ;
6160 BOOL isLocked = _curTeam.info .locked .boolValue ;
6261 NSInteger remain_days = _curTeam.info .remain_days .integerValue ;
6362
6463 _introductionL.textColor = remain_days > kEANeedTipRemainDays ? kColor999 : kColorActionRed ;
6564 NSString *valueStr = @" " ;
66- if (!isToped_up || isTrial ) {
65+ if (!isToped_up) {
6766 valueStr = [NSString stringWithFormat: @" %ld " , (long )[_curTeam.info trial_left_days ]];
6867 if (!isLocked && valueStr.integerValue >= 0 ) {
6968 [_introductionL setAttrStrWithStr: [NSString stringWithFormat: @" 试用期剩余 %@ 天" , valueStr] diffColorStr: valueStr diffColor: valueStr.integerValue > kEANeedTipRemainDays ? [UIColor colorWithHexString: @" 0xF78636" ]: kColorActionRed ];
You can’t perform that action at this time.
0 commit comments