|
|
|
@ -53,12 +53,9 @@ class _MinePage extends State<MinePage> with AutomaticKeepAliveClientMixin {
|
|
|
|
|
@override |
|
|
|
|
void dispose() { |
|
|
|
|
super.dispose(); |
|
|
|
|
if (_refreshController != null) |
|
|
|
|
_refreshController.dispose(); |
|
|
|
|
if (_refreshController != null) _refreshController.dispose(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
void initState() { |
|
|
|
|
super.initState(); |
|
|
|
@ -118,7 +115,7 @@ class _MinePage extends State<MinePage> with AutomaticKeepAliveClientMixin {
|
|
|
|
|
EasyLoading.dismiss(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
_onRefresh(){ |
|
|
|
|
_onRefresh() { |
|
|
|
|
queryUserInfo(); |
|
|
|
|
querySocialInfo(); |
|
|
|
|
} |
|
|
|
@ -134,7 +131,7 @@ class _MinePage extends State<MinePage> with AutomaticKeepAliveClientMixin {
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
BaseData<SocialInfo> baseData = |
|
|
|
|
await apiService.socialInfo().catchError((onError) { |
|
|
|
|
await apiService.socialInfo().catchError((onError) { |
|
|
|
|
_refreshController.refreshFailed(); |
|
|
|
|
}); |
|
|
|
|
if (baseData != null && baseData.isSuccess) { |
|
|
|
@ -203,11 +200,13 @@ class _MinePage extends State<MinePage> with AutomaticKeepAliveClientMixin {
|
|
|
|
|
tag: "vip", |
|
|
|
|
ranks: ranks, |
|
|
|
|
userInfo: userInfo, |
|
|
|
|
rank: double.tryParse(userInfo?.expendAmount??"0").toInt(), |
|
|
|
|
rankMax: userInfo?.memberRankVo?.nextOrigin??0, |
|
|
|
|
createTime: userInfo?.createTime??"", |
|
|
|
|
rank: double.tryParse( |
|
|
|
|
userInfo?.expendAmount ?? "0") |
|
|
|
|
.toInt(), |
|
|
|
|
rankMax: |
|
|
|
|
userInfo?.memberRankVo?.nextOrigin ?? 0, |
|
|
|
|
createTime: userInfo?.createTime ?? "", |
|
|
|
|
), |
|
|
|
|
|
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
@ -310,7 +309,7 @@ class _MinePage extends State<MinePage> with AutomaticKeepAliveClientMixin {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
///关注度/粉丝/成就数量 |
|
|
|
|
Widget attention(){ |
|
|
|
|
Widget attention() { |
|
|
|
|
return Container( |
|
|
|
|
margin: EdgeInsets.only(left: 16, top: 10, right: 16), |
|
|
|
|
// padding: EdgeInsets.only(top: 16,bottom: 16), |
|
|
|
@ -405,43 +404,43 @@ class _MinePage extends State<MinePage> with AutomaticKeepAliveClientMixin {
|
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Expanded( |
|
|
|
|
child: GestureDetector( |
|
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
|
onTap: () { |
|
|
|
|
Navigator.of(context).pushNamed( |
|
|
|
|
'/router/mine_attainment_page', |
|
|
|
|
arguments: {"userInfo": userInfo}, |
|
|
|
|
); |
|
|
|
|
}, |
|
|
|
|
child: Container( |
|
|
|
|
color: Colors.transparent, |
|
|
|
|
padding: EdgeInsets.all(16), |
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
|
Text( |
|
|
|
|
infoNumber != null |
|
|
|
|
? infoNumber.achievementNumber.toString() |
|
|
|
|
: "0", |
|
|
|
|
style: TextStyle( |
|
|
|
|
color: Color(0xFF000000), |
|
|
|
|
fontSize: 15.sp, |
|
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
|
child: GestureDetector( |
|
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
|
onTap: () { |
|
|
|
|
Navigator.of(context).pushNamed( |
|
|
|
|
'/router/mine_attainment_page', |
|
|
|
|
arguments: {"userInfo": userInfo}, |
|
|
|
|
); |
|
|
|
|
}, |
|
|
|
|
child: Container( |
|
|
|
|
color: Colors.transparent, |
|
|
|
|
padding: EdgeInsets.all(16), |
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
|
Text( |
|
|
|
|
infoNumber != null |
|
|
|
|
? infoNumber.achievementNumber.toString() |
|
|
|
|
: "0", |
|
|
|
|
style: TextStyle( |
|
|
|
|
color: Color(0xFF000000), |
|
|
|
|
fontSize: 15.sp, |
|
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
height: 4, |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
"成就", |
|
|
|
|
style: TextStyle( |
|
|
|
|
color: Color(0xFF000000), |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
SizedBox( |
|
|
|
|
height: 4, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
)), |
|
|
|
|
Text( |
|
|
|
|
"成就", |
|
|
|
|
style: TextStyle( |
|
|
|
|
color: Color(0xFF000000), |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
))), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|