feat: bugfix

This commit is contained in:
2025-12-03 01:28:18 -08:00
parent dbcdf8b8a4
commit ce4abb7e01
15 changed files with 280 additions and 79 deletions
@@ -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,