|
|
@ -221,7 +221,7 @@ class MineVipView extends StatelessWidget { |
|
|
|
// rank > rankMax |
|
|
|
// rank > rankMax |
|
|
|
// ? S.of(context).dangqiandengji |
|
|
|
// ? S.of(context).dangqiandengji |
|
|
|
// : "${S.of(context).jifen_(rankMax - rank)} ${S.of(context).daoxiayidengji}", |
|
|
|
// : "${S.of(context).jifen_(rankMax - rank)} ${S.of(context).daoxiayidengji}", |
|
|
|
(vipLevel == 3)?"":((vipLevel < curLevel)?"":(((rank ?? 0) > rankMax || curLevel == 3 || curLevel ==2) |
|
|
|
!(showRank??true)?"":((vipLevel < curLevel)?"":(((rank ?? 0) > rankMax || curLevel == 3 || curLevel ==2) |
|
|
|
? S.of(context).dangqiandengji |
|
|
|
? S.of(context).dangqiandengji |
|
|
|
: "消费¥${rankMax - (rank ?? 0)}元 ${S.of(context).daoxiayidengji}")), |
|
|
|
: "消费¥${rankMax - (rank ?? 0)}元 ${S.of(context).daoxiayidengji}")), |
|
|
|
overflow: TextOverflow.ellipsis, |
|
|
|
overflow: TextOverflow.ellipsis, |
|
|
@ -237,7 +237,7 @@ class MineVipView extends StatelessWidget { |
|
|
|
TextSpan( |
|
|
|
TextSpan( |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
TextSpan( |
|
|
|
TextSpan( |
|
|
|
text: vipLevel == 3?"":((vipLevel <= curLevel)?rankMax.toString():rank.toString()), |
|
|
|
text: !(showRank??true)?(vipLevel == 3?"":rankMax.toString()):((vipLevel < curLevel)?rankMax.toString():rank.toString()), |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 26.sp, |
|
|
|
fontSize: 26.sp, |
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
@ -253,15 +253,15 @@ class MineVipView extends StatelessWidget { |
|
|
|
color: textColor, |
|
|
|
color: textColor, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
// if ((rank ?? 0) <= rankMax) |
|
|
|
if ((rank ?? 0) <= rankMax && (showRank??true)) |
|
|
|
// TextSpan( |
|
|
|
TextSpan( |
|
|
|
// text: rankMax > 0 ? "/$rankMax" : "/0", |
|
|
|
text: rankMax > 0 ? "/$rankMax" : "/0", |
|
|
|
// style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
// fontSize: 14.sp, |
|
|
|
fontSize: 14.sp, |
|
|
|
// fontWeight: MyFontWeight.regular, |
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
// color: textColor, |
|
|
|
color: textColor, |
|
|
|
// ), |
|
|
|
), |
|
|
|
// ), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|