提交 a554a933 authored 作者: 岳维路's avatar 岳维路

合并分支 'test' 到 'sim'

Test 查看合并请求 kiwitap/zijing-app!25
......@@ -42,7 +42,7 @@ abstract class LibraryAPI {
}) async {
Map<String,dynamic> params = {
'page' : page,
'limit' : limit,
'page_size' : limit,
'category_id':categoryId
};
if (sortField.isNotEmpty){
......
......@@ -43,7 +43,7 @@ class LibraryController extends GetxController with GetTickerProviderStateMixin{
];
final int _limit = 20;
final int _limit = 10;
int _page = 1;
bool _noMore = false;
......
......@@ -154,7 +154,9 @@ class LoginController extends GetxController {
if (context.mounted){
// context.goNamed(Routes.main);
Future.delayed(const Duration(milliseconds: 10)).then((value){
context.pop();
});
}else {
context.goNamed(Routes.main);
}
......
......@@ -120,7 +120,8 @@ class DiscussController extends GetxController {
Toast.show('发表成功');
discussModel.replyNum = discussModel.replyNum! +1;
DiscussModel tempModel = DiscussModel.fromJson(discussModel.toJson());
tempModel.status = 1;
// tempModel.status = 1;
tempModel.privacyStatus = 0;
tempModel.commentsCheck = 0;
tempModel.isMy = 1;
tempModel.id = result['id'];
......
......@@ -79,7 +79,8 @@ class UserDiscussDesController extends GetxController {
Toast.show('发表成功');
discussModel.replyNum = discussModel.replyNum! +1;
DiscussModel tempModel = DiscussModel.fromJson(discussModel.toJson());
tempModel.status = 1;
// tempModel.status = 1;
tempModel.privacyStatus = 0;
tempModel.commentsCheck = 0;
tempModel.isMy = 1;
tempModel.id = result['id'];
......
......@@ -136,7 +136,9 @@ class _UserSetPageState extends State<UserSetPage> {
onTap: () => Navigator.of(context).pop(),
child: Container(
width: 105.w,
height: 39.5.w,
color: Colours.cFF,
// color: Colors.red,
alignment: Alignment.center,
child: const Text(
'取消',
......@@ -168,7 +170,9 @@ class _UserSetPageState extends State<UserSetPage> {
},
child: Container(
width: 105.w,
height: 39.5.w,
color: Colours.cFF,
// color: Colors.red,
alignment: Alignment.center,
child: const Text(
'确定',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论