|
|
@ -152,7 +152,7 @@ class _ActivityDetailPageState extends State<ActivityDetailPage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
bottomNavi: BottomButton(
|
|
|
|
bottomNavi: BottomButton(
|
|
|
|
child: '立即报名'.text.size(32.sp).bold.make(),
|
|
|
|
child: btnText,
|
|
|
|
onPressed: !canTap
|
|
|
|
onPressed: !canTap
|
|
|
|
? null
|
|
|
|
? null
|
|
|
|
: () async {
|
|
|
|
: () async {
|
|
|
@ -166,6 +166,16 @@ class _ActivityDetailPageState extends State<ActivityDetailPage> {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Widget get btnText{
|
|
|
|
|
|
|
|
if (_model?.regisEndTime?.isBefore(DateTime.now()) ?? true) {
|
|
|
|
|
|
|
|
return '报名截止'.text.size(32.sp).bold.make();
|
|
|
|
|
|
|
|
}else if(_model!.isRegistration==1){
|
|
|
|
|
|
|
|
return '已报名'.text.size(32.sp).bold.make();
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
return '立即报名'.text.size(32.sp).bold.make();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool get canTap {
|
|
|
|
bool get canTap {
|
|
|
|
if ((_model?.regisEndTime?.isBefore(DateTime.now()) ?? true) ||_model!.isRegistration==1) {
|
|
|
|
if ((_model?.regisEndTime?.isBefore(DateTime.now()) ?? true) ||_model!.isRegistration==1) {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|