|
|
@@ -52,7 +52,7 @@ class TipInfoState extends State<TipInfo> {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- if (notice.playerInfo.resultError) {
|
|
|
+ if (notice.playerInfo != null && (notice.playerInfo.ranking == null || notice.playerInfo.liveTime == null || notice.playerInfo.score == null)) {
|
|
|
HttpManager.get('appealInfo/getOne', data: {
|
|
|
'userId': StoreProvider.of<AppState>(context).state.userInfo.id,
|
|
|
'playerInfoId': notice.playerInfo.id,
|
|
|
@@ -116,7 +116,7 @@ class TipInfoState extends State<TipInfo> {
|
|
|
child: Column(
|
|
|
children: <Widget>[
|
|
|
Padding(
|
|
|
- padding: EdgeInsets.only(left: 15, right: 45),
|
|
|
+ padding: EdgeInsets.only(left: 15, right: 15),
|
|
|
child: Column(
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
children: <Widget>[
|
|
|
@@ -138,30 +138,30 @@ class TipInfoState extends State<TipInfo> {
|
|
|
],
|
|
|
),
|
|
|
),
|
|
|
- Builder(
|
|
|
- builder: (context) {
|
|
|
- String content = '';
|
|
|
- if (notice.playerInfo.dataError || !notice.playerInfo.played) {
|
|
|
- content = '造成此情况等原因可能是:\n'
|
|
|
- '1、没有实际进行游戏比赛\n'
|
|
|
- '2、使用作弊手段进行游戏';
|
|
|
- } else if (notice.playerInfo.resultError) {
|
|
|
- content = '造成此情况等原因可能是:\n'
|
|
|
- '1、确认开始游戏后没有授权系统进行录屏\n'
|
|
|
- '2、视频没有录制到最后的分数名次结算页面就回到APP点击完成比赛了\n'
|
|
|
- '3、在游戏过程中,由于电量过低或系统安全性能策略问题导致本竞赛APP后台进程被退出\n'
|
|
|
- '4、游戏结束后没有在规定时间内返回APP点击完成比赛按钮';
|
|
|
- }
|
|
|
- return Container(
|
|
|
- margin: EdgeInsets.only(left: 15, right: 15, bottom: 20),
|
|
|
- width: double.infinity,
|
|
|
- child: Text(
|
|
|
- content,
|
|
|
- style: TextStyle(color: Color(0x99FFFFFF), fontSize: 13),
|
|
|
- ),
|
|
|
- );
|
|
|
- },
|
|
|
- ),
|
|
|
+ // Builder(
|
|
|
+ // builder: (context) {
|
|
|
+ // String content = '';
|
|
|
+ // if (notice.playerInfo.dataError || !notice.playerInfo.played) {
|
|
|
+ // content = '造成此情况等原因可能是:\n'
|
|
|
+ // '1、没有实际进行游戏比赛\n'
|
|
|
+ // '2、使用作弊手段进行游戏';
|
|
|
+ // } else if (notice.playerInfo.resultError) {
|
|
|
+ // content = '造成此情况等原因可能是:\n'
|
|
|
+ // '1、确认开始游戏后没有授权系统进行录屏\n'
|
|
|
+ // '2、视频没有录制到最后的分数名次结算页面就回到APP点击完成比赛了\n'
|
|
|
+ // '3、在游戏过程中,由于电量过低或系统安全性能策略问题导致本竞赛APP后台进程被退出\n'
|
|
|
+ // '4、游戏结束后没有在规定时间内返回APP点击完成比赛按钮';
|
|
|
+ // }
|
|
|
+ // return Container(
|
|
|
+ // margin: EdgeInsets.only(left: 15, right: 15, bottom: 20),
|
|
|
+ // width: double.infinity,
|
|
|
+ // child: Text(
|
|
|
+ // content,
|
|
|
+ // style: TextStyle(color: Color(0x99FFFFFF), fontSize: 13),
|
|
|
+ // ),
|
|
|
+ // );
|
|
|
+ // },
|
|
|
+ // ),
|
|
|
houseInfo != null && type != 3 ? _houseWidget() : Container(),
|
|
|
resultWidget(),
|
|
|
Expanded(
|
|
|
@@ -280,73 +280,72 @@ class TipInfoState extends State<TipInfo> {
|
|
|
}
|
|
|
|
|
|
Widget resultWidget() {
|
|
|
- if (!notice.playerInfo.played || notice.playerInfo.dataError || notice.playerInfo.resultError) {
|
|
|
- return Container();
|
|
|
- }
|
|
|
return Column(
|
|
|
children: <Widget>[
|
|
|
- Container(
|
|
|
- margin: EdgeInsets.fromLTRB(15, 0, 15, 5),
|
|
|
- color: SUB_COLOR,
|
|
|
- padding: EdgeInsets.fromLTRB(15, 15, 0, 15),
|
|
|
- child: Column(
|
|
|
- mainAxisAlignment: MainAxisAlignment.center,
|
|
|
- crossAxisAlignment: CrossAxisAlignment.stretch,
|
|
|
- children: <Widget>[
|
|
|
- Text(
|
|
|
- '和平精英游戏结果',
|
|
|
- textAlign: TextAlign.left,
|
|
|
- style: TextStyle(color: Color(0x99FFFFFF)),
|
|
|
- ),
|
|
|
- Container(
|
|
|
- margin: EdgeInsets.only(top: 10),
|
|
|
- child: Row(
|
|
|
+ (notice.playerInfo != null && notice.playerInfo.ranking != null && notice.playerInfo.liveTime != null && notice.playerInfo.score != null)
|
|
|
+ ? Container(
|
|
|
+ margin: EdgeInsets.fromLTRB(15, 0, 15, 5),
|
|
|
+ color: SUB_COLOR,
|
|
|
+ padding: EdgeInsets.fromLTRB(15, 15, 0, 15),
|
|
|
+ child: Column(
|
|
|
+ mainAxisAlignment: MainAxisAlignment.center,
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.stretch,
|
|
|
children: <Widget>[
|
|
|
Text(
|
|
|
- '名次',
|
|
|
- style: TextStyle(color: Colors.white, fontSize: 14),
|
|
|
- ),
|
|
|
- Expanded(
|
|
|
- child: Container(
|
|
|
- margin: EdgeInsets.only(left: 5),
|
|
|
- child: Text(
|
|
|
- notice.playerInfo?.ranking?.toString() ?? '',
|
|
|
- style: TextStyle(color: Colors.yellow, fontSize: 14, fontWeight: FontWeight.bold),
|
|
|
- ),
|
|
|
- ),
|
|
|
- ),
|
|
|
- Text(
|
|
|
- '时长',
|
|
|
- style: TextStyle(color: Colors.white, fontSize: 14),
|
|
|
+ '和平精英游戏结果',
|
|
|
+ textAlign: TextAlign.left,
|
|
|
+ style: TextStyle(color: Color(0x99FFFFFF)),
|
|
|
),
|
|
|
- Expanded(
|
|
|
- child: Container(
|
|
|
- margin: EdgeInsets.only(left: 5),
|
|
|
- child: Text(
|
|
|
- (notice.playerInfo?.liveTime ?? '') + '分钟',
|
|
|
- style: TextStyle(color: Colors.yellow, fontSize: 14, fontWeight: FontWeight.bold),
|
|
|
- ),
|
|
|
- ),
|
|
|
- ),
|
|
|
- Text(
|
|
|
- '评分',
|
|
|
- style: TextStyle(color: Colors.white, fontSize: 14),
|
|
|
- ),
|
|
|
- Expanded(
|
|
|
- child: Container(
|
|
|
- margin: EdgeInsets.only(left: 5),
|
|
|
- child: Text(
|
|
|
- notice.playerInfo?.score?.toString() ?? '',
|
|
|
- style: TextStyle(color: Colors.yellow, fontSize: 14, fontWeight: FontWeight.bold),
|
|
|
- ),
|
|
|
+ Container(
|
|
|
+ margin: EdgeInsets.only(top: 10),
|
|
|
+ child: Row(
|
|
|
+ children: <Widget>[
|
|
|
+ Text(
|
|
|
+ '名次',
|
|
|
+ style: TextStyle(color: Colors.white, fontSize: 14),
|
|
|
+ ),
|
|
|
+ Expanded(
|
|
|
+ child: Container(
|
|
|
+ margin: EdgeInsets.only(left: 5),
|
|
|
+ child: Text(
|
|
|
+ notice.playerInfo?.ranking?.toString() ?? '',
|
|
|
+ style: TextStyle(color: Colors.yellow, fontSize: 14, fontWeight: FontWeight.bold),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ Text(
|
|
|
+ '时长',
|
|
|
+ style: TextStyle(color: Colors.white, fontSize: 14),
|
|
|
+ ),
|
|
|
+ Expanded(
|
|
|
+ child: Container(
|
|
|
+ margin: EdgeInsets.only(left: 5),
|
|
|
+ child: Text(
|
|
|
+ (notice.playerInfo?.liveTime ?? '') + '分钟',
|
|
|
+ style: TextStyle(color: Colors.yellow, fontSize: 14, fontWeight: FontWeight.bold),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ Text(
|
|
|
+ '评分',
|
|
|
+ style: TextStyle(color: Colors.white, fontSize: 14),
|
|
|
+ ),
|
|
|
+ Expanded(
|
|
|
+ child: Container(
|
|
|
+ margin: EdgeInsets.only(left: 5),
|
|
|
+ child: Text(
|
|
|
+ notice.playerInfo?.score?.toString() ?? '',
|
|
|
+ style: TextStyle(color: Colors.yellow, fontSize: 14, fontWeight: FontWeight.bold),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ],
|
|
|
),
|
|
|
),
|
|
|
],
|
|
|
),
|
|
|
- ),
|
|
|
- ],
|
|
|
- ),
|
|
|
- ),
|
|
|
+ )
|
|
|
+ : Container(),
|
|
|
Container(
|
|
|
margin: EdgeInsets.fromLTRB(15, 0, 15, 20),
|
|
|
color: SUB_COLOR,
|