feat: bugfix
This commit is contained in:
+1
-1
@@ -621,7 +621,7 @@ class KRPurchaseMembershipController extends GetxController {
|
||||
return '';
|
||||
}
|
||||
// 计算折扣百分比(例如:97% 显示为 -3%)
|
||||
final discountPercent = 100 - discount.kr_discount;
|
||||
final discountPercent = (100 - discount.kr_discount).ceil();
|
||||
return '${discountPercent}%';
|
||||
}
|
||||
return '';
|
||||
|
||||
@@ -336,7 +336,7 @@ class KRPurchaseMembershipView extends GetView<KRPurchaseMembershipController>
|
||||
),
|
||||
child: Center(
|
||||
child: Text(
|
||||
'${controller.kr_getDiscountText(plan, discountIndex!)} OFF',
|
||||
'${controller.kr_getDiscountText(plan, discountIndex!)} off',
|
||||
style: TextStyle(
|
||||
color: Colors.black, // 白色文字更清晰
|
||||
fontSize: 14,
|
||||
|
||||
Reference in New Issue
Block a user