|
|
@ -7,7 +7,9 @@ import 'package:dating_touchme_app/pages/mine/pay_fail_page.dart'; |
|
|
import 'package:dating_touchme_app/pages/mine/vip_manage_page.dart'; |
|
|
import 'package:dating_touchme_app/pages/mine/vip_manage_page.dart'; |
|
|
import 'package:flutter/material.dart'; |
|
|
import 'package:flutter/material.dart'; |
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|
|
|
|
|
import 'package:fluwx/fluwx.dart'; |
|
|
import 'package:get/get.dart'; |
|
|
import 'package:get/get.dart'; |
|
|
|
|
|
import 'package:url_launcher/url_launcher_string.dart'; |
|
|
|
|
|
|
|
|
class VipPage extends StatefulWidget { |
|
|
class VipPage extends StatefulWidget { |
|
|
const VipPage({super.key}); |
|
|
const VipPage({super.key}); |
|
|
@ -32,6 +34,8 @@ class _VipPageState extends State<VipPage> { |
|
|
|
|
|
|
|
|
int payActive = 0; |
|
|
int payActive = 0; |
|
|
|
|
|
|
|
|
|
|
|
final Fluwx fluwx = Fluwx(); |
|
|
|
|
|
|
|
|
final userData = GlobalData().userData.obs; |
|
|
final userData = GlobalData().userData.obs; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -426,8 +430,16 @@ class _VipPageState extends State<VipPage> { |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
).onTap((){ |
|
|
|
|
|
Get.to(() => PayFailPage()); |
|
|
|
|
|
|
|
|
).onTap(() async { |
|
|
|
|
|
if(payActive == 1){ |
|
|
|
|
|
var e = await launchUrlString("alipays://platformapi/startapp?appId=20000067&url=https://www.baidu.com"); |
|
|
|
|
|
} else { |
|
|
|
|
|
fluwx.open(target: MiniProgram( |
|
|
|
|
|
username: 'gh_9ea8d46add6f', |
|
|
|
|
|
miniProgramType: WXMiniProgramType.preview, |
|
|
|
|
|
path:"pages/index/index" |
|
|
|
|
|
)); |
|
|
|
|
|
} |
|
|
}) |
|
|
}) |
|
|
], |
|
|
], |
|
|
) |
|
|
) |
|
|
|