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