Browse Source

Merge remote-tracking branch 'origin/new_revision_app' into new_revision_app

dart3_last
fmk 2 years ago
parent
commit
f0ba191dcb
  1. 6
      lib/community/community_view/community_dynamic.dart
  2. 51
      lib/vip/vip_view/vip_top.dart

6
lib/community/community_view/community_dynamic.dart

@ -518,7 +518,7 @@ class _CommunityDynamic extends State<CommunityDynamic> {
}
String buildShareUrl() {
return "https://hx.lotus-wallet.com/index.html?id=${widget.article.id}&type=";
return "https://hx.lotus-wallet.com/communityShare.html?id=${widget.article.id}";
}
///
@ -801,8 +801,8 @@ class _CommunityDynamic extends State<CommunityDynamic> {
GestureDetector(
onTap: () {
setState(() {
// Navigator.of(context).pop();
// share();
Navigator.of(context).pop();
share();
});
},
child: Container(

51
lib/vip/vip_view/vip_top.dart

@ -22,7 +22,6 @@ class VipTop extends StatefulWidget {
final VipCardHome vipCardHome;
final Function onRefresh;
VipTop(this.vipCardHome, this.onRefresh);
@override
@ -98,7 +97,8 @@ class _VipTop extends State<VipTop> {
if (payRes['resultStatus'] == 9000 ||
payRes['resultStatus'] == '9000') {
widget.onRefresh();
SmartDialog.showToast("支付成功", alignment: Alignment.center);
SmartDialog.showToast("支付成功",
alignment: Alignment.center);
} else {
SmartDialog.showToast(payRes['memo'],
alignment: Alignment.center);
@ -121,9 +121,9 @@ class _VipTop extends State<VipTop> {
SizedBox(
height: 15.h,
),
(!(widget?.vipCardHome?.member?.isVip ?? false))?
vipCardList():
Padding(
(!(widget?.vipCardHome?.member?.isVip ?? false))
? vipCardList()
: Padding(
padding: EdgeInsets.symmetric(horizontal: 16.w),
child: Row(
children: [
@ -156,7 +156,8 @@ class _VipTop extends State<VipTop> {
),
),
TextSpan(
text: widget?.vipCardHome?.member?.vipDuration
text: widget
?.vipCardHome?.member?.vipDuration
.toString() ??
"0",
style: TextStyle(
@ -210,7 +211,11 @@ class _VipTop extends State<VipTop> {
Text(
"${(widget?.vipCardHome?.member?.isVipSubscribe ?? false) ? "已开通自动续费" : "续费回乡VIP"}",
style: TextStyle(
color: Color((widget?.vipCardHome?.member?.isVipSubscribe ??false)?0xff3A3936:0xff32A060),
color: Color((widget?.vipCardHome
?.member?.isVipSubscribe ??
false)
? 0xff3A3936
: 0xff32A060),
fontSize: 15.sp,
fontWeight: MyFontWeight.semi_bold,
),
@ -445,7 +450,9 @@ class _VipTop extends State<VipTop> {
Widget renewBuildBottomSheetWidget(BuildContext context, state) {
return Container(
padding: EdgeInsets.only(top: 10.h,),
padding: EdgeInsets.only(
top: 10.h,
),
decoration: new BoxDecoration(
color: Colors.white,
borderRadius: new BorderRadius.only(
@ -457,9 +464,9 @@ class _VipTop extends State<VipTop> {
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Padding(padding:EdgeInsets.only(right:14.w),
child:
Row(
Padding(
padding: EdgeInsets.only(right: 14.w),
child: Row(
children: [
Expanded(
child: Text(
@ -482,7 +489,9 @@ class _VipTop extends State<VipTop> {
),
],
)),
SizedBox(height:11.h,),
SizedBox(
height: 11.h,
),
Container(
height: 132.h,
margin: EdgeInsets.symmetric(horizontal: 14.w),
@ -497,7 +506,8 @@ class _VipTop extends State<VipTop> {
selectIndex = position;
});
},
child: vipCardItem(widget?.vipCardHome?.cards[position], position),
child: vipCardItem(
widget?.vipCardHome?.cards[position], position),
);
},
),
@ -505,7 +515,8 @@ class _VipTop extends State<VipTop> {
Container(
width: double.infinity,
height: 40.h,
margin: EdgeInsets.only(top: 14.h,left: 14.w,right: 14.w,bottom:5.h),
margin: EdgeInsets.only(
top: 14.h, left: 14.w, right: 14.w, bottom: 5.h),
decoration: new BoxDecoration(
color: Color(0xff383A38),
borderRadius: BorderRadius.circular(24)),
@ -535,8 +546,8 @@ class _VipTop extends State<VipTop> {
),
GestureDetector(
onTap: () {
Navigator.of(context).pushNamed(
'/router/user_vip_service_page');
Navigator.of(context)
.pushNamed('/router/user_vip_service_page');
},
child: Padding(
padding: EdgeInsets.only(left: 14.w, bottom: 15.h),
@ -595,8 +606,8 @@ class _VipTop extends State<VipTop> {
children: [
GestureDetector(
onTap: () {
Navigator.of(context).pushNamed(
'/router/user_vip_service_page');
Navigator.of(context)
.pushNamed('/router/user_vip_service_page');
},
child: Padding(
padding: EdgeInsets.only(left: 4.w),
@ -705,6 +716,8 @@ class _VipTop extends State<VipTop> {
),
],
),
if (!(widget?.vipCardHome?.cards[selectIndex]?.autoSubscribe ??
false))
GestureDetector(
onTap: () {
state(() {
@ -809,10 +822,10 @@ class _VipTop extends State<VipTop> {
),
),
),
Spacer(),
Container(
width: double.infinity,
height: 40.h,
margin: EdgeInsets.only(top: 30.h),
decoration: new BoxDecoration(
color: Color(0xff383A38),
borderRadius: BorderRadius.circular(24)),

Loading…
Cancel
Save