Browse Source

调整vip布局

ios
王子贤 3 months ago
parent
commit
a91a224d2f
1 changed files with 45 additions and 43 deletions
  1. 88
      lib/pages/mine/vip_page.dart

88
lib/pages/mine/vip_page.dart

@ -184,9 +184,10 @@ class _VipPageState extends State<VipPage> {
),
child: SingleChildScrollView(
child: Container(
padding: EdgeInsetsGeometry.symmetric(
vertical: 22.w,
horizontal: 13.w
padding: EdgeInsetsGeometry.only(
top: 22.w,
left: 13.w,
right: 13.w
),
child: Column(
children: [
@ -327,8 +328,8 @@ class _VipPageState extends State<VipPage> {
],
),
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Container(
width: 86.w,
@ -404,45 +405,46 @@ class _VipPageState extends State<VipPage> {
});
}),
Container(
width: 161.w,
height: 45.w,
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(45.w)),
gradient: LinearGradient(
begin: Alignment.centerLeft, // 90deg:
end: Alignment.centerRight,
colors: [
Color.fromRGBO(131, 89, 255, 1), //
Color.fromRGBO(77, 127, 231, 1), //
Color.fromRGBO(61, 138, 224, 1), //
],
stops: [0.0, 0.7753, 1.0], // 0%77.53%100%
),
),
child: Center(
child: Text(
"立即开通",
style: TextStyle(
fontSize: 18.w,
color: Colors.white,
fontWeight: FontWeight.w500
),
),
),
).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"
));
}
})
],
)
),
SizedBox(height: 10.w,),
Container(
width: 350.w,
height: 45.w,
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(45.w)),
gradient: LinearGradient(
begin: Alignment.centerLeft, // 90deg:
end: Alignment.centerRight,
colors: [
Color.fromRGBO(131, 89, 255, 1), //
Color.fromRGBO(77, 127, 231, 1), //
Color.fromRGBO(61, 138, 224, 1), //
],
stops: [0.0, 0.7753, 1.0], // 0%77.53%100%
),
),
child: Center(
child: Text(
"立即开通",
style: TextStyle(
fontSize: 18.w,
color: Colors.white,
fontWeight: FontWeight.w500
),
),
),
).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"
));
}
})
],
),
),
@ -529,7 +531,7 @@ class _VipItemState extends State<VipItem> {
TextSpan(
text: "88",
style: TextStyle(
fontSize: 18.w
fontSize: 23.w
)
),
]

Loading…
Cancel
Save