Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
HBHAndroid
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨秀秀
HBHAndroid
Commits
3d13484e
Commit
3d13484e
authored
Oct 23, 2023
by
小费同学阿
💬
Committed by
杨秀秀
Nov 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
68120 【商户app-android】诉求反馈,被驳回的诉求,在查看详情页面中需要在顶部增加一个驳回原因的信息,点击【查看】弹框显示驳回原因(参考IOS)
parent
1263c966
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
10 deletions
+19
-10
AppealEditActivity.java
...java/com/xx/merchanthbh/ui/appeal/AppealEditActivity.java
+13
-6
AppealEditViewModel.java
...ava/com/xx/merchanthbh/ui/appeal/AppealEditViewModel.java
+3
-3
activity_appeal_edit.xml
app/src/main/res/layout/activity_appeal_edit.xml
+3
-1
No files found.
app/src/main/java/com/xx/merchanthbh/ui/appeal/AppealEditActivity.java
View file @
3d13484e
...
...
@@ -3,6 +3,7 @@ package com.xx.merchanthbh.ui.appeal;
import
static
me
.
goldze
.
mvvmhabit
.
utils
.
Utils
.
getContext
;
import
android.os.Bundle
;
import
android.util.Log
;
import
android.view.View
;
import
com.xx.merchanthbh.BR
;
...
...
@@ -38,12 +39,18 @@ public class AppealEditActivity extends BaseActivity<ActivityAppealEditBinding,
viewModel
.
getAppealDetailById
(
getIntent
().
getStringExtra
(
"appealId"
));
// 调用ViewModel的方法来刷新昵称
viewModel
.
refreshNickName
();
viewModel
.
showRejectionDialog
.
observe
(
this
,
show
->
{
String
rejectionReason
=
viewModel
.
remark
!=
null
?
viewModel
.
remark
:
""
;
RejectionDialog
rejectionDialog
=
new
RejectionDialog
(
this
,
rejectionReason
);
rejectionDialog
.
show
();
});
Log
.
v
(
"在activity获取的驳回原因"
,
viewModel
.
remark
);
if
(
viewModel
.
remark
!=
null
)
{
binding
.
rejectReasonTip
.
setVisibility
(
View
.
VISIBLE
);
viewModel
.
showRejectionDialog
.
observe
(
this
,
show
->
{
String
rejectionReason
=
null
;
rejectionReason
=
viewModel
.
remark
;
RejectionDialog
rejectionDialog
=
new
RejectionDialog
(
this
,
rejectionReason
);
rejectionDialog
.
show
();
});
}
else
{
binding
.
rejectReasonTip
.
setVisibility
(
View
.
GONE
);
}
/*上传图片*/
...
...
app/src/main/java/com/xx/merchanthbh/ui/appeal/AppealEditViewModel.java
View file @
3d13484e
...
...
@@ -116,6 +116,7 @@ public class AppealEditViewModel extends BaseViewModel<AppealRequest> {
if
(!
resultBean
.
getOperations
().
isEmpty
())
{
/*取操作日志最新的一条的remark*/
remark
=
resultBean
.
getOperations
().
get
(
resultBean
.
getOperations
().
size
()
-
1
).
getRemark
();
Log
.
v
(
"remark上来的值"
,
remark
);
}
/*上传图片*/
appealPicsAdapter
.
mList
.
clear
();
...
...
@@ -191,10 +192,9 @@ public class AppealEditViewModel extends BaseViewModel<AppealRequest> {
/*查看原因的弹窗*/
public
void
openReason
(
View
view
)
{
boolean
deFlag
=
true
;
RejectionBean
rejectionBean
=
new
RejectionBean
(
deFlag
,
remark
==
null
?
""
:
remark
);
RejectionBean
rejectionBean
=
new
RejectionBean
(
deFlag
,
remark
);
showRejectionDialog
.
postValue
(
rejectionBean
);
}
/*上传图片*/
}
/*上传图片*/
public
void
openPhoto
(
AddImgAdapter
type
,
int
position
)
{
int
max
=
1
;
if
(
TextUtils
.
isEmpty
(
appealPicsAdapter
.
mList
.
get
(
position
).
getId
()))
{
...
...
app/src/main/res/layout/activity_appeal_edit.xml
View file @
3d13484e
...
...
@@ -43,8 +43,10 @@
android:layout_height=
"match_parent"
android:layout_margin=
"17dp"
android:orientation=
"vertical"
>
<!--
修改密码模块
-->
<!--
驳回原因
-->
<LinearLayout
android:visibility=
"gone"
android:id=
"@+id/reject_reason_tip"
android:layout_width=
"match_parent"
android:layout_height=
"70dp"
android:layout_marginBottom=
"13dp"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment