Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
book-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
book-app
Commits
9c507981
提交
9c507981
authored
3月 12, 2024
作者:
yueweilu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
审核状态 逻辑更新
上级
9ef56d65
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
28 行增加
和
26 行删除
+28
-26
mine.dart
lib/models/mine.dart
+6
-0
discuss.dart
lib/pages/user_discuss_des/widgets/discuss.dart
+22
-26
没有找到文件。
lib/models/mine.dart
浏览文件 @
9c507981
...
...
@@ -540,6 +540,7 @@ class DiscussModel {
this
.
personPic
,
this
.
isMy
,
this
.
commentsCheck
,
this
.
privacyStatus
,
this
.
status
,
this
.
isPraise
,
});
...
...
@@ -565,6 +566,7 @@ class DiscussModel {
isMy
=
json
[
'is_my'
];
isPraise
=
json
[
'is_praise'
];
commentsCheck
=
json
[
'comments_check'
];
privacyStatus
=
json
[
'privacy_status'
];
status
=
json
[
'status'
];
if
(
json
[
'comment_all'
]
!=
null
)
{
...
...
@@ -589,6 +591,7 @@ class DiscussModel {
num
?
isMy
;
num
?
isPraise
;
num
?
commentsCheck
;
num
?
privacyStatus
;
num
?
status
;
String
?
createTime
;
String
?
replacePersonName
;
...
...
@@ -612,6 +615,7 @@ class DiscussModel {
num
?
isMy
,
num
?
isPraise
,
num
?
commentsCheck
,
num
?
privacyStatus
,
num
?
status
,
String
?
createTime
,
String
?
replacePersonName
,
...
...
@@ -636,6 +640,7 @@ class DiscussModel {
isPraise:
isPraise
??
this
.
isPraise
,
status:
status
??
this
.
status
,
commentsCheck:
commentsCheck
??
this
.
commentsCheck
,
privacyStatus:
privacyStatus
??
this
.
privacyStatus
,
createTime:
createTime
??
this
.
createTime
,
replacePersonName:
replacePersonName
??
this
.
replacePersonName
,
replacePersonPic:
replacePersonPic
??
this
.
replacePersonPic
,
...
...
@@ -663,6 +668,7 @@ class DiscussModel {
map
[
'is_my'
]
=
isMy
;
map
[
'is_praise'
]
=
isPraise
;
map
[
'comments_check'
]
=
commentsCheck
;
map
[
'privacy_status'
]
=
privacyStatus
;
map
[
'status'
]
=
status
;
map
[
'create_time'
]
=
createTime
;
map
[
'replace_person_name'
]
=
replacePersonName
;
...
...
lib/pages/user_discuss_des/widgets/discuss.dart
浏览文件 @
9c507981
...
...
@@ -245,25 +245,23 @@ class _BuildDiscussState extends State<BuildDiscuss> {
String
text
=
''
;
// 是我的
if
(
discussModel
.
isMy
==
1
){
if
(
discussModel
.
commentsCheck
==
1
){
// 审核中
if
(
discussModel
.
content
?.
text
?.
privacyStatus
==
0
||
discussModel
.
content
?.
text
?.
privacyStatus
==
2
||
discussModel
.
status
==
0
){
text
=
'(审核中)'
;
}
// 审核未通过
else
if
(
discussModel
.
content
?.
text
?.
privacyStatus
==-
1
||
discussModel
.
status
==
2
){
if
(
discussModel
.
privacyStatus
==-
1
){
text
=
'(审核未通过)'
;
}
}
else
{
// 审核中
if
(
discussModel
.
content
?.
text
?.
privacyStatus
==
0
||
discussModel
.
content
?.
text
?.
privacyStatus
==
2
){
else
if
(
discussModel
.
privacyStatus
==
0
){
text
=
'(审核中)'
;
}
// 审核未通过
else
if
(
discussModel
.
content
?.
text
?.
privacyStatus
==-
1
){
else
if
(
discussModel
.
privacyStatus
==
1
){
if
(
discussModel
.
commentsCheck
==
1
){
if
(
discussModel
.
status
==
0
){
text
=
'(审核中)'
;
}
else
if
(
discussModel
.
status
==
2
){
text
=
'(审核未通过)'
;
}
}
}
}
return
text
;
...
...
@@ -273,25 +271,23 @@ class _BuildDiscussState extends State<BuildDiscuss> {
String
text
=
''
;
// 是我的
if
(
discussModel
.
isMy
==
1
){
if
(
discussModel
.
commentsCheck
==
1
){
// 审核中
if
(
mediaModel
?.
privacyStatus
==
0
||
mediaModel
?.
privacyStatus
==
2
||
discussModel
.
status
==
0
){
text
=
'(审核中)'
;
}
// 审核未通过
else
if
(
mediaModel
?.
privacyStatus
==-
1
||
discussModel
.
status
==
2
){
if
(
discussModel
.
privacyStatus
==-
1
){
text
=
'(审核未通过)'
;
}
}
else
{
// 审核中
if
(
mediaModel
?.
privacyStatus
==
0
||
mediaModel
?.
privacyStatus
==
2
){
else
if
(
discussModel
.
privacyStatus
==
0
){
text
=
'(审核中)'
;
}
// 审核未通过
else
if
(
mediaModel
?.
privacyStatus
==-
1
){
else
if
(
discussModel
.
privacyStatus
==
1
){
if
(
discussModel
.
commentsCheck
==
1
){
if
(
discussModel
.
status
==
0
){
text
=
'(审核中)'
;
}
else
if
(
discussModel
.
status
==
2
){
text
=
'(审核未通过)'
;
}
}
}
}
return
text
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论