|
|
|
@ -74,7 +74,9 @@ class _PointsMallPage extends State<PointsMallPage>
|
|
|
|
|
refreshUserInfo() { |
|
|
|
|
SharedPreferences.getInstance().then((value) => { |
|
|
|
|
client = ApiService(Dio(), |
|
|
|
|
context: context, token: value.getString('token'), showLoading: false), |
|
|
|
|
context: context, |
|
|
|
|
token: value.getString('token'), |
|
|
|
|
showLoading: false), |
|
|
|
|
SmartDialog.showLoading(msg: S.current.zhengzaijiazai), |
|
|
|
|
creditGoods(categoryId), |
|
|
|
|
queryUser(), |
|
|
|
@ -134,7 +136,8 @@ class _PointsMallPage extends State<PointsMallPage>
|
|
|
|
|
PageInfo pageInfo = PageInfo.fromJson(dataCategory.data); |
|
|
|
|
gooodsCategorys.clear(); |
|
|
|
|
gooodsCategorys.add(GoodsCategory(name: S.of(context).quanbu)); |
|
|
|
|
gooodsCategorys.addAll(pageInfo.records.map((e) => GoodsCategory.fromJson(e)).toList()); |
|
|
|
|
gooodsCategorys.addAll( |
|
|
|
|
pageInfo.records.map((e) => GoodsCategory.fromJson(e)).toList()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var param = { |
|
|
|
@ -222,8 +225,7 @@ class _PointsMallPage extends State<PointsMallPage>
|
|
|
|
|
Container( |
|
|
|
|
alignment: Alignment.centerLeft, |
|
|
|
|
child: DefaultTabController( |
|
|
|
|
length: gooodsCategorys == null |
|
|
|
|
? 0 : gooodsCategorys.length, |
|
|
|
|
length: gooodsCategorys == null ? 0 : gooodsCategorys.length, |
|
|
|
|
child: TabBar( |
|
|
|
|
isScrollable: true, |
|
|
|
|
//可滚动 |
|
|
|
@ -499,6 +501,9 @@ class _PointsMallPage extends State<PointsMallPage>
|
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
color: Color(0xFF353535)), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
height: 8.h, |
|
|
|
|
), |
|
|
|
|
Row( |
|
|
|
|
children: [ |
|
|
|
|
Image.asset( |
|
|
|
@ -537,6 +542,9 @@ class _PointsMallPage extends State<PointsMallPage>
|
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
color: Color(0xFF4C4C4C)), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
height: 4.h, |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
(userinfo != null) ? "${userinfo.points}" : "", |
|
|
|
|
style: TextStyle( |
|
|
|
|