Commit da912292 authored by zhang_z's avatar zhang_z

Merge remote-tracking branch 'origin/master'

parents cdf65aec a209e4e1
...@@ -118,6 +118,10 @@ public class App extends Application { ...@@ -118,6 +118,10 @@ public class App extends Application {
*/ */
private void initFragment() { private void initFragment() {
// Fragmentation.builder().stackViewMode(Fragmentation.BUBBLE).debug(BuildConfig.DEBUG)
// .handleException(e -> {
// }).install();
//正式版本
Fragmentation.builder().stackViewMode(Fragmentation.BUBBLE) Fragmentation.builder().stackViewMode(Fragmentation.BUBBLE)
.handleException(e -> { .handleException(e -> {
}).install(); }).install();
......
...@@ -56,6 +56,7 @@ public class RechargeRuleEditFragment extends BaseFragment<RechargeRulePresenter ...@@ -56,6 +56,7 @@ public class RechargeRuleEditFragment extends BaseFragment<RechargeRulePresenter
mViewBinding.ruleNameLayout.setVisibility(View.GONE); mViewBinding.ruleNameLayout.setVisibility(View.GONE);
mViewBinding.infoTitle.tvTitle.setText("新增充值优惠"); mViewBinding.infoTitle.tvTitle.setText("新增充值优惠");
mViewBinding.ruleNameLayout.setVisibility(View.VISIBLE); mViewBinding.ruleNameLayout.setVisibility(View.VISIBLE);
((RadioButton)mViewBinding.ruleState.getChildAt(0)).setChecked(true);
} }
mViewBinding.setOnClickListener(view -> { mViewBinding.setOnClickListener(view -> {
......
...@@ -70,6 +70,14 @@ public class RechargeRuleListFragment extends BaseFragment<RechargeRulePresenter ...@@ -70,6 +70,14 @@ public class RechargeRuleListFragment extends BaseFragment<RechargeRulePresenter
} }
public void mscardQuerySus(Pager<Mscard> mscardPager) { public void mscardQuerySus(Pager<Mscard> mscardPager) {
if (mscardPager.getList().size() != 0) {
mViewBinding.noRultBg.setVisibility(View.GONE);
} else {
mViewBinding.noRultBg.setVisibility(View.VISIBLE);
}
adapter.setNewData(mscardPager.getList()); adapter.setNewData(mscardPager.getList());
adapter.setEnableLoadMore(false);
adapter.loadMoreComplete();
} }
} }
...@@ -161,7 +161,7 @@ public class VipPresenter extends VipContract.Presenter { ...@@ -161,7 +161,7 @@ public class VipPresenter extends VipContract.Presenter {
// ArrayList<RadioButton> radioButtons = new ArrayList<>(); // ArrayList<RadioButton> radioButtons = new ArrayList<>();
radioButton.setTextSize(18); radioButton.setTextSize(18);
radioButton.setTag(mscard.getCruleGradeNo()); radioButton.setTag(mscard.getCruleGradeNo());
radioButton.setText("充:" + mscard.getCruleChargeAmt() / 100); radioButton.setText(String.valueOf(mscard.getCruleChargeAmt() / 100));
radioButton.setButtonDrawable(null); radioButton.setButtonDrawable(null);
radioButton.setGravity(Gravity.CENTER); radioButton.setGravity(Gravity.CENTER);
radioButton.getPaint().setFakeBoldText(true); radioButton.getPaint().setFakeBoldText(true);
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/all_margin" android:layout_margin="@dimen/all_margin"
android:gravity="center_vertical" android:gravity="center_vertical"
android:orientation="horizontal"> android:orientation="horizontal">
...@@ -32,6 +32,11 @@ ...@@ -32,6 +32,11 @@
android:text="基本信息" /> android:text="基本信息" />
</LinearLayout> </LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/line_bg" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
...@@ -71,7 +76,6 @@ ...@@ -71,7 +76,6 @@
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" android:layout_height="1dp"
android:layout_marginRight="@dimen/all_margin_left"
android:background="@color/line_bg" /> android:background="@color/line_bg" />
<LinearLayout <LinearLayout
...@@ -130,7 +134,7 @@ ...@@ -130,7 +134,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/all_margin" android:layout_margin="@dimen/all_margin"
android:gravity="center_vertical" android:gravity="center_vertical"
android:orientation="horizontal"> android:orientation="horizontal">
...@@ -141,6 +145,11 @@ ...@@ -141,6 +145,11 @@
android:text="优惠规则" /> android:text="优惠规则" />
</LinearLayout> </LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/line_bg" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
...@@ -148,7 +157,6 @@ ...@@ -148,7 +157,6 @@
android:orientation="horizontal"> android:orientation="horizontal">
<TextView <TextView
style="@style/default_blacktext_margin_smallstyle" style="@style/default_blacktext_margin_smallstyle"
android:layout_width="100dp" android:layout_width="100dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
...@@ -174,6 +182,11 @@ ...@@ -174,6 +182,11 @@
android:text="元" /> android:text="元" />
</LinearLayout> </LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/line_bg" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
...@@ -206,6 +219,10 @@ ...@@ -206,6 +219,10 @@
android:text="元" /> android:text="元" />
</LinearLayout> </LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/line_bg" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -230,6 +247,11 @@ ...@@ -230,6 +247,11 @@
android:onClick="@{onClickListener}" /> android:onClick="@{onClickListener}" />
</LinearLayout> </LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/line_bg" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
...@@ -253,6 +275,11 @@ ...@@ -253,6 +275,11 @@
android:onClick="@{onClickListener}" /> android:onClick="@{onClickListener}" />
</LinearLayout> </LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/line_bg" />
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
......
...@@ -92,10 +92,6 @@ ...@@ -92,10 +92,6 @@
android:layout_height="1dp" android:layout_height="1dp"
android:background="@color/line_bg" /> android:background="@color/line_bg" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/line_bg" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
......
...@@ -17,14 +17,16 @@ ...@@ -17,14 +17,16 @@
<include <include
android:id="@+id/info_title" android:id="@+id/info_title"
layout="@layout/title_pop" /> layout="@layout/title_pop" />
<View
android:layout_marginTop="@dimen/all_margin"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/line_bg" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/all_margin"
android:background="@color/white" android:background="@color/white"
android:orientation="horizontal"> android:orientation="horizontal">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
......
...@@ -208,7 +208,10 @@ ...@@ -208,7 +208,10 @@
android:onClick="@{onClickListener}" /> android:onClick="@{onClickListener}" />
</LinearLayout> </LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/line_bg" />
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/all_margin" android:layout_margin="@dimen/all_margin"
android:gravity="center_vertical" android:gravity="center_vertical"
android:orientation="horizontal"> android:orientation="horizontal">
...@@ -32,6 +32,11 @@ ...@@ -32,6 +32,11 @@
android:text="基本信息" /> android:text="基本信息" />
</LinearLayout> </LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/line_bg" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
...@@ -89,14 +94,14 @@ ...@@ -89,14 +94,14 @@
<EditText <EditText
android:id="@+id/level_discont" android:id="@+id/level_discont"
android:maxLength="3"
style="@style/dialog_edit" style="@style/dialog_edit"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@null" android:background="@null"
android:digits="0123456789" android:digits="0123456789"
android:hint="%" android:hint="%"
android:inputType="numberSigned" /> android:inputType="numberSigned"
android:maxLength="3" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
...@@ -116,7 +121,7 @@ ...@@ -116,7 +121,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/all_margin" android:layout_margin="@dimen/all_margin"
android:gravity="center_vertical" android:gravity="center_vertical"
android:orientation="horizontal"> android:orientation="horizontal">
...@@ -127,6 +132,11 @@ ...@@ -127,6 +132,11 @@
android:text="晋级标准" /> android:text="晋级标准" />
</LinearLayout> </LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/line_bg" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
...@@ -147,9 +157,9 @@ ...@@ -147,9 +157,9 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:background="@null" android:background="@null"
android:maxLength="3"
android:digits="0123456789" android:digits="0123456789"
android:inputType="phone" /> android:inputType="phone"
android:maxLength="3" />
<TextView <TextView
style="@style/default_blacktext_margin_smallstyle" style="@style/default_blacktext_margin_smallstyle"
...@@ -158,6 +168,11 @@ ...@@ -158,6 +168,11 @@
android:text="天" /> android:text="天" />
</LinearLayout> </LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/line_bg" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
...@@ -177,10 +192,10 @@ ...@@ -177,10 +192,10 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:maxLength="8"
android:background="@null" android:background="@null"
android:digits="0123456789" android:digits="0123456789"
android:inputType="phone" /> android:inputType="phone"
android:maxLength="8" />
<TextView <TextView
style="@style/default_blacktext_margin_smallstyle" style="@style/default_blacktext_margin_smallstyle"
......
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