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; return;
} }
Navigator.of(context) Navigator.of(context)
.pushNamed('/router/releasePage'); .pushNamed('/router/releasePage',
arguments: {});
}); });
}, },
child: mineItem( child: mineItem(

4
lib/mine/release_page.dart

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

Loading…
Cancel
Save