From 1ca4d959583a429a2b5f25ec2da911e22d99cda3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AD=90=E8=B4=A4?= Date: Fri, 5 Dec 2025 11:29:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=94=A8=E6=88=B7=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E9=9D=A2=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/home/user_information_page.dart | 15 +++++++++------ lib/pages/mine/vip_page.dart | 16 ++++++++++++++-- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/lib/pages/home/user_information_page.dart b/lib/pages/home/user_information_page.dart index f940a59..c941479 100644 --- a/lib/pages/home/user_information_page.dart +++ b/lib/pages/home/user_information_page.dart @@ -100,7 +100,7 @@ class UserInformationPage extends StatelessWidget { child: Container( padding: EdgeInsets.only(top: 361.w), child: Container( - height: 812.h - 361.w, + height: 812.h - 361.w - 50, width: 375.w, padding: EdgeInsets.only( top: 31.w, @@ -402,11 +402,14 @@ class UserInformationPage extends StatelessWidget { border: controller.nowSelect.value == entry.key ? Border.all(width: 2.w, color: Colors.white) : null ), child: Center( - child: CachedNetworkImage( - imageUrl: "${entry.value.photoUrl}?x-oss-process=image/format,webp/resize,w_76", - width: 38.w, - height: 38.w, - fit: BoxFit.cover, + child: ClipRRect( + borderRadius: BorderRadius.all(Radius.circular(7.w)), + child: CachedNetworkImage( + imageUrl: "${entry.value.photoUrl}?x-oss-process=image/format,webp/resize,w_76", + width: 38.w, + height: 38.w, + fit: BoxFit.cover, + ), ), ), ), diff --git a/lib/pages/mine/vip_page.dart b/lib/pages/mine/vip_page.dart index 50d4774..b44894d 100644 --- a/lib/pages/mine/vip_page.dart +++ b/lib/pages/mine/vip_page.dart @@ -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:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'package:fluwx/fluwx.dart'; import 'package:get/get.dart'; +import 'package:url_launcher/url_launcher_string.dart'; class VipPage extends StatefulWidget { const VipPage({super.key}); @@ -32,6 +34,8 @@ class _VipPageState extends State { int payActive = 0; + final Fluwx fluwx = Fluwx(); + final userData = GlobalData().userData.obs; @@ -426,8 +430,16 @@ class _VipPageState extends State { ), ), ), - ).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" + )); + } }) ], )