Browse Source

更改

master
w-R 3 years ago
parent
commit
f79317065b
  1. 3
      lib/mine/mine_view/mine_item.dart
  2. 4
      lib/mine/release_page.dart

3
lib/mine/mine_view/mine_item.dart

@ -69,7 +69,8 @@ class _MineItem extends State<MineItem> {
return;
}
Navigator.of(context)
.pushNamed('/router/releasePage');
.pushNamed('/router/releasePage',
arguments: {});
});
},
child: mineItem(

4
lib/mine/release_page.dart

@ -24,6 +24,7 @@ class _ReleasePage extends State<ReleasePage> {
RefreshController refreshController = RefreshController();
ApiService apiService;
int pageNum = 0;
String userId;
List<ComunityComment> comments = [];
@ -42,6 +43,7 @@ class _ReleasePage extends State<ReleasePage> {
queryCommunity() async {
if (apiService == null) {
SharedPreferences value = await SharedPreferences.getInstance();
userId = value.getString('userId');
apiService = ApiService(
Dio(),
context: context,
@ -119,7 +121,7 @@ class _ReleasePage extends State<ReleasePage> {
Navigator.of(context).pushNamed(
'/router/community_details',
arguments: {
"comment": comments[position],
"comment": comments[position],"userId":userId,
},
);
},

Loading…
Cancel
Save