修改邀请页面UI
This commit is contained in:
parent
6951a6a8a7
commit
af88766078
@ -66,7 +66,7 @@ class InvitePage extends StatelessWidget {
|
|||||||
12.sp,
|
12.sp,
|
||||||
searchContent: 'Tip:'));
|
searchContent: 'Tip:'));
|
||||||
allSpan.addAll(getTextSpanList(
|
allSpan.addAll(getTextSpanList(
|
||||||
' ${logic.homeData!.inviteCount! ?? 0} 位同好,',
|
' ${logic.homeData!.inviteCount! ?? 0} 位圈友,',
|
||||||
Color(0xFFDC5BFD),
|
Color(0xFFDC5BFD),
|
||||||
12.sp,
|
12.sp,
|
||||||
searchContent: '${logic.homeData!.inviteCount! ?? 0}'));
|
searchContent: '${logic.homeData!.inviteCount! ?? 0}'));
|
||||||
@ -75,11 +75,21 @@ class InvitePage extends StatelessWidget {
|
|||||||
Color(0xFFDC5BFD),
|
Color(0xFFDC5BFD),
|
||||||
12.sp,
|
12.sp,
|
||||||
searchContent: '${logic.homeData!.achieveRewardDay! ?? '0'} '));
|
searchContent: '${logic.homeData!.achieveRewardDay! ?? '0'} '));
|
||||||
|
int maxCount = logic.homeData!.inviteAwardConf!.last.inviteCount ?? 0;
|
||||||
|
if (logic.homeData!.inviteCount! >= maxCount) {
|
||||||
allSpan.addAll(getTextSpanList(
|
allSpan.addAll(getTextSpanList(
|
||||||
' 再邀请 ${logic.homeData!.diffAwardCount} 位同好可领取更多奖励~',
|
' 再邀请可领取更多奖励~',
|
||||||
|
Color(0xFFDC5BFD),
|
||||||
|
12.sp,
|
||||||
|
searchContent: ''));
|
||||||
|
} else {
|
||||||
|
allSpan.addAll(getTextSpanList(
|
||||||
|
' 再邀请 ${logic.homeData!.diffAwardCount} 位圈友可领取更多奖励~',
|
||||||
Color(0xFFDC5BFD),
|
Color(0xFFDC5BFD),
|
||||||
12.sp,
|
12.sp,
|
||||||
searchContent: '${logic.homeData!.diffAwardCount}'));
|
searchContent: '${logic.homeData!.diffAwardCount}'));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -268,7 +278,7 @@ class InvitePage extends StatelessWidget {
|
|||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
margin: EdgeInsets.only(top: 15.sp),
|
margin: EdgeInsets.only(top: 15.sp,left: 35.sp,right: 35.sp),
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
child: Image.asset(getMineImage('invite_title'),height: 22.sp,),
|
child: Image.asset(getMineImage('invite_title'),height: 22.sp,),
|
||||||
),
|
),
|
||||||
@ -459,7 +469,7 @@ void showCodePicker(InviteLogic logic) {
|
|||||||
Container(
|
Container(
|
||||||
margin: EdgeInsets.only(top: 20.sp, left: 20.sp),
|
margin: EdgeInsets.only(top: 20.sp, left: 20.sp),
|
||||||
child: Text(
|
child: Text(
|
||||||
'请输入邀请您加入APP的同好的邀请码',
|
'请输入邀请您加入APP的圈友的邀请码',
|
||||||
style: TextStyle(color: Colors.white, fontSize: 14.sp),
|
style: TextStyle(color: Colors.white, fontSize: 14.sp),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user