|
|
@ -228,7 +228,7 @@ class _InviteFriends extends State<InviteFriends> { |
|
|
|
height: 52.h, |
|
|
|
height: 52.h, |
|
|
|
decoration: BoxDecoration( |
|
|
|
decoration: BoxDecoration( |
|
|
|
borderRadius: BorderRadius.circular(26), |
|
|
|
borderRadius: BorderRadius.circular(26), |
|
|
|
color: Color(0xFF00E16F), |
|
|
|
color: Color(0xFF32A060), |
|
|
|
), |
|
|
|
), |
|
|
|
margin: EdgeInsets.symmetric(horizontal:14.w), |
|
|
|
margin: EdgeInsets.symmetric(horizontal:14.w), |
|
|
|
child: Row( |
|
|
|
child: Row( |
|
|
@ -270,6 +270,8 @@ class _InviteFriends extends State<InviteFriends> { |
|
|
|
margin: EdgeInsets.only(bottom:12.h,left:14.h,right: 14.h), |
|
|
|
margin: EdgeInsets.only(bottom:12.h,left:14.h,right: 14.h), |
|
|
|
padding: EdgeInsets.all(6), |
|
|
|
padding: EdgeInsets.all(6), |
|
|
|
child:Column( |
|
|
|
child:Column( |
|
|
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceAround, |
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Container( |
|
|
|
Container( |
|
|
|
decoration: BoxDecoration( |
|
|
|
decoration: BoxDecoration( |
|
|
@ -292,21 +294,18 @@ class _InviteFriends extends State<InviteFriends> { |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox(height: 17.h,), |
|
|
|
SizedBox(height: 17.h,), |
|
|
|
IntrinsicHeight( |
|
|
|
IntrinsicHeight( |
|
|
|
child: |
|
|
|
child: Row( |
|
|
|
Row( |
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Column( |
|
|
|
Column( |
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Row( |
|
|
|
Row( |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround, |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Image.asset( |
|
|
|
Image.asset( |
|
|
|
"assets/image/zu_tuan.webp", |
|
|
|
"assets/image/invite_wx.webp", |
|
|
|
width: 42, |
|
|
|
width: 42, |
|
|
|
height: 42, |
|
|
|
height: 42, |
|
|
|
fit: BoxFit.cover, |
|
|
|
fit: BoxFit.cover, |
|
|
@ -330,6 +329,34 @@ class _InviteFriends extends State<InviteFriends> { |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
Row( |
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
Image.asset( |
|
|
|
|
|
|
|
"assets/image/invite_1.webp", |
|
|
|
|
|
|
|
width: 24, |
|
|
|
|
|
|
|
height: 24, |
|
|
|
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
Container( |
|
|
|
|
|
|
|
width: 43.w, |
|
|
|
|
|
|
|
child: Flex( |
|
|
|
|
|
|
|
children: List.generate(0, (_) { |
|
|
|
|
|
|
|
return SizedBox( |
|
|
|
|
|
|
|
width: 3, |
|
|
|
|
|
|
|
height: 1, |
|
|
|
|
|
|
|
child: DecoratedBox( |
|
|
|
|
|
|
|
decoration: BoxDecoration(color: Colors.white), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
|
|
|
direction: Axis.horizontal, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
SizedBox(height: 8.h), |
|
|
|
SizedBox(height: 8.h), |
|
|
|
Row( |
|
|
|
Row( |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround, |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround, |
|
|
@ -339,9 +366,10 @@ class _InviteFriends extends State<InviteFriends> { |
|
|
|
width:46.w, |
|
|
|
width:46.w, |
|
|
|
child: |
|
|
|
child: |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
"1.分享给微信好友", |
|
|
|
"分享链接给好友", |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 12.sp, |
|
|
|
fontSize: 12.sp, |
|
|
|
|
|
|
|
height: 1.3.h, |
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
color: Color(0xFF181818), |
|
|
|
color: Color(0xFF181818), |
|
|
|
), |
|
|
|
), |
|
|
@ -374,7 +402,7 @@ class _InviteFriends extends State<InviteFriends> { |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Image.asset( |
|
|
|
Image.asset( |
|
|
|
"assets/image/zt_zf.webp", |
|
|
|
"assets/image/yq_zt.webp", |
|
|
|
width: 42, |
|
|
|
width: 42, |
|
|
|
height: 42, |
|
|
|
height: 42, |
|
|
|
fit: BoxFit.cover, |
|
|
|
fit: BoxFit.cover, |
|
|
@ -398,6 +426,34 @@ class _InviteFriends extends State<InviteFriends> { |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
Row( |
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
Image.asset( |
|
|
|
|
|
|
|
"assets/image/invite_2.webp", |
|
|
|
|
|
|
|
width: 24, |
|
|
|
|
|
|
|
height: 24, |
|
|
|
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
Container( |
|
|
|
|
|
|
|
width: 43.w, |
|
|
|
|
|
|
|
child: Flex( |
|
|
|
|
|
|
|
children: List.generate(0, (_) { |
|
|
|
|
|
|
|
return SizedBox( |
|
|
|
|
|
|
|
width: 3, |
|
|
|
|
|
|
|
height: 1, |
|
|
|
|
|
|
|
child: DecoratedBox( |
|
|
|
|
|
|
|
decoration: BoxDecoration(color: Colors.white), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
|
|
|
direction: Axis.horizontal, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
SizedBox(height: 8.h), |
|
|
|
SizedBox(height: 8.h), |
|
|
|
Row( |
|
|
|
Row( |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround, |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround, |
|
|
@ -407,9 +463,10 @@ class _InviteFriends extends State<InviteFriends> { |
|
|
|
width:46.w, |
|
|
|
width:46.w, |
|
|
|
child: |
|
|
|
child: |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
"2.好友注册", |
|
|
|
"好友注册并获得10元优惠券", |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 12.sp, |
|
|
|
fontSize: 12.sp, |
|
|
|
|
|
|
|
height: 1.3.h, |
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
color: Color(0xFF181818), |
|
|
|
color: Color(0xFF181818), |
|
|
|
), |
|
|
|
), |
|
|
@ -442,7 +499,7 @@ class _InviteFriends extends State<InviteFriends> { |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Image.asset( |
|
|
|
Image.asset( |
|
|
|
"assets/image/yq_zt.webp", |
|
|
|
"assets/image/zt_m.webp", |
|
|
|
width: 42, |
|
|
|
width: 42, |
|
|
|
height: 42, |
|
|
|
height: 42, |
|
|
|
fit: BoxFit.cover, |
|
|
|
fit: BoxFit.cover, |
|
|
@ -466,19 +523,47 @@ class _InviteFriends extends State<InviteFriends> { |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
Row( |
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
Image.asset( |
|
|
|
|
|
|
|
"assets/image/invite_3.webp", |
|
|
|
|
|
|
|
width: 24, |
|
|
|
|
|
|
|
height: 24, |
|
|
|
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
Container( |
|
|
|
|
|
|
|
width: 43.w, |
|
|
|
|
|
|
|
child: Flex( |
|
|
|
|
|
|
|
children: List.generate(0, (_) { |
|
|
|
|
|
|
|
return SizedBox( |
|
|
|
|
|
|
|
width: 3, |
|
|
|
|
|
|
|
height: 1, |
|
|
|
|
|
|
|
child: DecoratedBox( |
|
|
|
|
|
|
|
decoration: BoxDecoration(color: Colors.white), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
|
|
|
direction: Axis.horizontal, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
SizedBox(height: 8.h), |
|
|
|
SizedBox(height: 8.h), |
|
|
|
Row( |
|
|
|
Row( |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround, |
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
|
|
|
|
|
|
|
|
Container( |
|
|
|
Container( |
|
|
|
width: 46.w, |
|
|
|
width: 46.w, |
|
|
|
child: |
|
|
|
child: |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
"3.邀请完成", |
|
|
|
"好友完成首单", |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 12.sp, |
|
|
|
fontSize: 12.sp, |
|
|
|
|
|
|
|
height: 1.3.h, |
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
color: Color(0xFF181818), |
|
|
|
color: Color(0xFF181818), |
|
|
|
), |
|
|
|
), |
|
|
@ -507,19 +592,26 @@ class _InviteFriends extends State<InviteFriends> { |
|
|
|
Column( |
|
|
|
Column( |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Image.asset( |
|
|
|
Image.asset( |
|
|
|
"assets/image/zt_m.webp", |
|
|
|
"assets/image/invite_q.webp", |
|
|
|
width: 42, |
|
|
|
width: 42, |
|
|
|
height: 42, |
|
|
|
height: 42, |
|
|
|
fit: BoxFit.cover, |
|
|
|
fit: BoxFit.cover, |
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
Image.asset( |
|
|
|
|
|
|
|
"assets/image/invite_4.webp", |
|
|
|
|
|
|
|
width: 24, |
|
|
|
|
|
|
|
height: 24, |
|
|
|
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
|
|
|
), |
|
|
|
SizedBox(height: 8.h), |
|
|
|
SizedBox(height: 8.h), |
|
|
|
Container( |
|
|
|
Container( |
|
|
|
width: 46.w, |
|
|
|
width: 46.w, |
|
|
|
child: |
|
|
|
child: |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
"4.获得优惠券", |
|
|
|
"邀请达成获得奖励", |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 12.sp, |
|
|
|
fontSize: 12.sp, |
|
|
|
|
|
|
|
height: 1.3.h, |
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
color: Color(0xFF181818), |
|
|
|
color: Color(0xFF181818), |
|
|
|
), |
|
|
|
), |
|
|
@ -654,27 +746,29 @@ class _InviteFriends extends State<InviteFriends> { |
|
|
|
) |
|
|
|
) |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox(height:12.h,), |
|
|
|
SizedBox(height:12.h,), |
|
|
|
|
|
|
|
Padding(padding:EdgeInsets.symmetric(horizontal: 6.w), |
|
|
|
|
|
|
|
child: |
|
|
|
Row( |
|
|
|
Row( |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
S.of(context).shoujihao, |
|
|
|
S.of(context).shoujihao, |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
fontSize:14.sp, |
|
|
|
fontSize:14.sp, |
|
|
|
color: Color(0xFF000000), |
|
|
|
color: Color(0xFF000000), |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
"注册时间", |
|
|
|
S.of(context).jiangli, |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
fontSize:14.sp, |
|
|
|
fontSize:14.sp, |
|
|
|
color: Color(0xFF000000), |
|
|
|
color: Color(0xFF000000), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
],),), |
|
|
|
],), |
|
|
|
|
|
|
|
SizedBox(height:12.h,), |
|
|
|
SizedBox(height:12.h,), |
|
|
|
(invitationList.length == null || invitationList.length == 0) |
|
|
|
(invitationList.length == null || invitationList.length == 0) |
|
|
|
? NoDataView( |
|
|
|
? NoDataView( |
|
|
@ -710,35 +804,20 @@ class _InviteFriends extends State<InviteFriends> { |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Column( |
|
|
|
Text( |
|
|
|
mainAxisAlignment: MainAxisAlignment.start, |
|
|
|
AppUtils.phoneEncode(invitationList?.phone ?? ""), |
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
style: TextStyle( |
|
|
|
children: [ |
|
|
|
color: Color(0xFF000000), |
|
|
|
Text( |
|
|
|
fontSize: 12.sp, |
|
|
|
AppUtils.phoneEncode(invitationList?.phone ?? ""), |
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
color: Color(0xFF000000), |
|
|
|
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
SizedBox(height:8), |
|
|
|
|
|
|
|
Text( |
|
|
|
|
|
|
|
"注册时间:${invitationList?.createTime ?? ""}", |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
color: Color(0xFF000000), |
|
|
|
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
"新人全场减30优惠券*1", |
|
|
|
invitationList?.createTime ?? "", |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
color: Color(0xFF353535), |
|
|
|
color: Color(0xFF000000), |
|
|
|
fontSize: 12.sp, |
|
|
|
fontSize: 12.sp, |
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|