提交 6f7c13d2 authored 作者: lgd's avatar lgd

1.消息

2.//TODO erp用户激活测试,忘记/重置密码测试,审核规则,领用申请列表/退件列表/参数,坩埚下单页面,组装下单,产品下单还差附件测试,mes,消息,刷新token
上级 14a5a790
......@@ -33,7 +33,7 @@ public class MsgDetailFragment extends WorkBaseFg {
"未读", "已读"};
private String order[] = {
"unRead", "readed"};
private String identity;
private String state;
@Override
protected void initView() {
......@@ -50,7 +50,7 @@ public class MsgDetailFragment extends WorkBaseFg {
MsgListFragment saleFragment = new MsgListFragment();
Bundle bundle = new Bundle();
bundle.putString("type", order[i]);
bundle.putString("identity", identity);
bundle.putString("state", state);
saleFragment.setArguments(bundle);
data.add(saleFragment);
}
......@@ -66,7 +66,7 @@ public class MsgDetailFragment extends WorkBaseFg {
super.onCreate(savedInstanceState);
Bundle arguments = getArguments();
if (arguments != null) {
identity = arguments.getString("identity");
state = arguments.getString("state");
}
}
......
......@@ -32,8 +32,7 @@ public class MsgFragment extends WorkBaseFg {
private String tab[] = {
"BAT消息", "MES消息"};
private String order[] = {
"0", "1", "2"};
private String identity;
"0", "1"};
@Override
protected void initView() {
......@@ -50,7 +49,6 @@ public class MsgFragment extends WorkBaseFg {
MsgDetailFragment saleFragment = new MsgDetailFragment();
Bundle bundle = new Bundle();
bundle.putString("state", order[i]);
bundle.putString("identity", identity);
saleFragment.setArguments(bundle);
data.add(saleFragment);
}
......@@ -61,21 +59,12 @@ public class MsgFragment extends WorkBaseFg {
}
}
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Bundle arguments = getArguments();
if (arguments != null) {
identity = arguments.getString("identity");
}
}
@Override
protected void initEvent() {
}
@Override
protected int layoutId() {
return R.layout.activity_order;
return R.layout.fg_msg;
}
}
package com.wd.workoffice.ui.fg;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import com.alibaba.fastjson.JSON;
......@@ -53,6 +54,7 @@ public class MsgListFragment extends WorkBaseFg {
private MsgAdapter dataAdapter;
private List<MsgBean.RecordsBean> dataList;
private String type;
private String state;
@Override
protected void initView() {
......@@ -71,6 +73,9 @@ public class MsgListFragment extends WorkBaseFg {
dataAdapter = new MsgAdapter(R.layout.item_msg, dataList);
dataAdapter.bindToRecyclerView(rvData);
dataAdapter.setEmptyView(R.layout.view_empty_content, rvData);
if (TextUtils.equals(state,"1")){
return;
}
getData();
}
......@@ -80,6 +85,8 @@ public class MsgListFragment extends WorkBaseFg {
Bundle arguments = getArguments();
if (arguments != null) {
type = arguments.getString("type");
state = arguments.getString("state");
}
}
......
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.google.android.material.tabs.TabLayout
android:id="@+id/tl_tab"
android:layout_width="match_parent"
android:layout_height="48mm"
android:layout_marginTop="20mm"
android:background="@android:color/white"
app:tabBackground="@android:color/white"
app:tabGravity="fill"
app:tabIndicatorColor="@color/mainTextColor"
app:tabIndicatorFullWidth="false"
app:tabMode="fixed"
app:tabSelectedTextColor="@color/mainTextColor"
app:tabTextAppearance="@style/tabText"
app:tabTextColor="#75899B" />
<androidx.viewpager.widget.ViewPager
android:id="@+id/vp_data"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论