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
c9a60c22
Commit
c9a60c22
authored
Aug 17, 2023
by
小费同学阿
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商户App 消息中心归位
parent
1839f836
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
HomeViewModel.java
...c/main/java/com/xx/merchanthbh/ui/home/HomeViewModel.java
+8
-0
fragment_home.xml
app/src/main/res/layout/fragment_home.xml
+1
-0
fragment_huanbohai.xml
app/src/main/res/layout/fragment_huanbohai.xml
+0
-5
No files found.
app/src/main/java/com/xx/merchanthbh/ui/home/HomeViewModel.java
View file @
c9a60c22
...
...
@@ -19,6 +19,7 @@ import com.xx.merchanthbh.ui.assistant.AssistantManagementActivity;
import
com.xx.merchanthbh.ui.login.LoginViewModel
;
import
com.xx.merchanthbh.ui.merchantenter.MerchantEnterActivity
;
import
com.xx.merchanthbh.ui.merchantinfo.MaterialInfoActivity
;
import
com.xx.merchanthbh.ui.msg.MessageActivity
;
import
com.xx.merchanthbh.ui.order.OrderActivity
;
import
com.xx.merchanthbh.ui.ordercreate.OrderCreateActivity
;
import
com.xx.merchanthbh.ui.point.StorePointsActivity
;
...
...
@@ -89,7 +90,14 @@ public class HomeViewModel extends BaseViewModel<HomeRequest> {
}
});
//跳转消息中心界面
public
BindingCommand
goMessage
=
new
BindingCommand
(
new
BindingAction
()
{
@Override
public
void
call
()
{
startActivity
(
MessageActivity
.
class
);
}
});
//跳转诉求反馈
public
BindingCommand
goAppeal
=
new
BindingCommand
(
new
BindingAction
()
{
@Override
...
...
app/src/main/res/layout/fragment_home.xml
View file @
c9a60c22
...
...
@@ -48,6 +48,7 @@
<ImageView
android:layout_width=
"18dp"
android:layout_height=
"18dp"
binding:onClickCommand=
"@{homeViewModel.goMessage}"
android:id=
"@+id/iv_bar_msg"
binding:layout_constraintTop_toTopOf=
"parent"
binding:layout_constraintBottom_toBottomOf=
"parent"
...
...
app/src/main/res/layout/fragment_huanbohai.xml
View file @
c9a60c22
...
...
@@ -60,11 +60,6 @@
android:id=
"@+id/banner_hbh"
android:layout_width=
"match_parent"
android:layout_height=
"188dp"
/>
<Button
android:layout_width=
"match_parent"
android:layout_height=
"40dp"
binding:onClickCommand=
"@{huanbohaiViewModel.goMessage}"
android:text=
"@string/message_center"
/>
<Button
android:layout_width=
"match_parent"
android:layout_height=
"40dp"
...
...
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