提交 643895f1 authored 作者: yueweilu's avatar yueweilu

图书列表 图书收藏按钮点击判断收否登录

上级 66312694
...@@ -38,7 +38,13 @@ class _LibraryContentPageState extends State<LibraryContentPage> with AutomaticK ...@@ -38,7 +38,13 @@ class _LibraryContentPageState extends State<LibraryContentPage> with AutomaticK
context.pushNamed(Routes.bookDetail,queryParameters: {'book_id':model.bookId.toString()}); context.pushNamed(Routes.bookDetail,queryParameters: {'book_id':model.bookId.toString()});
}, },
child: LibraryCell(model: model,onTap: (){ child: LibraryCell(model: model,onTap: (){
if(UserStore.to.isLogin){
widget.controller.love(model: model); widget.controller.love(model: model);
}
else{
context.pushNamed(Routes.login);
}
},), },),
); );
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论