Commit 13a135d1 authored by 姜敏's avatar 姜敏

修改会员充值

parent e46d30a7
...@@ -57,7 +57,7 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI ...@@ -57,7 +57,7 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
} else { } else {
mViewBinding.infoTitle.tvTitle.setText("添加会员"); mViewBinding.infoTitle.tvTitle.setText("添加会员");
} }
if (levels.size() != 0) { if (levels!=null&&levels.size() != 0) {
mViewBinding.vipDiscounts.setText(levels.get(0).getVipLevelName() + " " + ConvertUtil.discount(levels.get(0).getVipDefDiscount()) + "折"); mViewBinding.vipDiscounts.setText(levels.get(0).getVipLevelName() + " " + ConvertUtil.discount(levels.get(0).getVipDefDiscount()) + "折");
} }
......
...@@ -68,6 +68,10 @@ public class VipListFragment extends BaseFragment<VipPresenter, FragmentVipListB ...@@ -68,6 +68,10 @@ public class VipListFragment extends BaseFragment<VipPresenter, FragmentVipListB
mViewBinding.setOnClickListener(view -> { mViewBinding.setOnClickListener(view -> {
switch (view.getId()) { switch (view.getId()) {
case R.id.addVip: case R.id.addVip:
if (levels==null||levels.size()==0){
ToastUtils.showShort("缺少会员等级");
return;
}
toStartVipInfo(null); toStartVipInfo(null);
// mPresenter.getVipLevel(0, 200); // mPresenter.getVipLevel(0, 200);
break; break;
......
...@@ -11,9 +11,11 @@ ...@@ -11,9 +11,11 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
<LinearLayout <LinearLayout
android:gravity="center_vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize" android:layout_height="?attr/actionBarSize"
android:orientation="horizontal"> android:orientation="horizontal">
...@@ -25,6 +27,14 @@ ...@@ -25,6 +27,14 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1" /> android:layout_weight="1" />
<TextView
style="@style/textView_body_small"
android:id="@+id/userSearch"
android:gravity="center"
android:text="搜索"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout> </LinearLayout>
<View <View
......
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