feat: 增加ios支付&ui修改

This commit is contained in:
speakeloudest 2025-12-09 07:23:26 -08:00
parent ca913eb38f
commit f70b32ec3f
2 changed files with 94 additions and 95 deletions

View File

@ -872,6 +872,7 @@ class KRPurchaseMembershipController extends GetxController {
label: 'Hi快VPN 服务', label: 'Hi快VPN 服务',
amount: kr_getPlanPrice( amount: kr_getPlanPrice(
kr_plans[kr_selectedPlanIndex.value], kr_plans[kr_selectedPlanIndex.value],
discountIndex: kr_selectedDiscountIndex.value
).toStringAsFixed(2), ).toStringAsFixed(2),
), ),
], ],

View File

@ -47,16 +47,16 @@ class KRPurchaseMembershipView extends GetView<KRPurchaseMembershipController>
padding: const EdgeInsets.only(left: 20), padding: const EdgeInsets.only(left: 20),
child: Stack( child: Stack(
children: [ children: [
Padding( Obx(() {
padding: EdgeInsets.only(bottom: 80.0), return Positioned.fill(
child: Obx(() => SingleChildScrollView( bottom: 90.0,
child: SingleChildScrollView(
child: Column( child: Column(
children: [ children: [
/*_kr_buildAccountSection(context),*/ /*_kr_buildAccountSection(context),*/
if (controller.kr_isLoading.value) if (controller.kr_isLoading.value)
Container( Container(
height: height: MediaQuery.of(context).size.height * 0.5,
MediaQuery.of(context).size.height * 0.5,
child: Center( child: Center(
child: KRSimpleLoading( child: KRSimpleLoading(
color: Colors.white, color: Colors.white,
@ -66,12 +66,10 @@ class KRPurchaseMembershipView extends GetView<KRPurchaseMembershipController>
) )
else if (controller.kr_plans.isEmpty) else if (controller.kr_plans.isEmpty)
Container( Container(
height: height: MediaQuery.of(context).size.height * 0.5,
MediaQuery.of(context).size.height * 0.5,
child: Center( child: Center(
child: Text( child: Text(
AppTranslations AppTranslations.kr_purchaseMembership.noData,
.kr_purchaseMembership.noData,
style: KrAppTextStyle( style: KrAppTextStyle(
fontSize: 14, fontSize: 14,
color: Theme.of(context) color: Theme.of(context)
@ -84,8 +82,8 @@ class KRPurchaseMembershipView extends GetView<KRPurchaseMembershipController>
) )
else else
Container( Container(
margin: EdgeInsets.only( margin:
left: 40.0 - 20, right: 40.0), EdgeInsets.only(left: 40.0 - 20, right: 40.0),
child: Column( child: Column(
children: [ children: [
// //
@ -103,8 +101,7 @@ class KRPurchaseMembershipView extends GetView<KRPurchaseMembershipController>
.kr_selectedPlanIndex .kr_selectedPlanIndex
.value]), .value]),
(index) { (index) {
final plan = controller final plan = controller.kr_plans[
.kr_plans[
controller controller
.kr_selectedPlanIndex .kr_selectedPlanIndex
.value]; .value];
@ -141,8 +138,9 @@ class KRPurchaseMembershipView extends GetView<KRPurchaseMembershipController>
), ),
], ],
), ),
)),
), ),
);
}),
Positioned( Positioned(
top: 160.0, // top: 160.0, //
right: 10.0, // 20.w right: 10.0, // 20.w