Commit c9a60c22 authored by 小费同学阿's avatar 小费同学阿 💬

商户App 消息中心归位

parent 1839f836
......@@ -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
......
......@@ -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"
......
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment