Commit 7101f4ff authored by 陈前's avatar 陈前

Merge branch 'master' of 192.168.254.154:w525721508/TangKuPos

parents 66ac5073 fb780669
...@@ -21,6 +21,8 @@ public class VipAdapter extends BaseAdapter<Vip, ItemSettleVipBinding> { ...@@ -21,6 +21,8 @@ public class VipAdapter extends BaseAdapter<Vip, ItemSettleVipBinding> {
mViewBinding.setPhone(ConvertUtil.longToString(item.getVipMobile())); mViewBinding.setPhone(ConvertUtil.longToString(item.getVipMobile()));
if (item.getVipDefDiscount() < 100 && item.getVipDefDiscount() > 0) { if (item.getVipDefDiscount() < 100 && item.getVipDefDiscount() > 0) {
mViewBinding.setDisRate(String.valueOf((double) item.getVipDefDiscount() / 10)); mViewBinding.setDisRate(String.valueOf((double) item.getVipDefDiscount() / 10));
} else if (item.getVipDefDiscount() == 100) {
mViewBinding.setDisRate("无折扣");
} }
switch (item.getVipLevel()) { switch (item.getVipLevel()) {
case 1: case 1:
......
...@@ -172,6 +172,8 @@ public class SendTickerFragment extends BaseFragment<SendTicketPresenter, ...@@ -172,6 +172,8 @@ public class SendTickerFragment extends BaseFragment<SendTicketPresenter,
if (nowVip.getVipDefDiscount() < 100 && nowVip.getVipDefDiscount() > 0) { if (nowVip.getVipDefDiscount() < 100 && nowVip.getVipDefDiscount() > 0) {
mViewBinding.setDisRate(String.valueOf((double) nowVip.getVipDefDiscount() / mViewBinding.setDisRate(String.valueOf((double) nowVip.getVipDefDiscount() /
10)); 10));
} else if (nowVip.getVipDefDiscount() == 100) {
mViewBinding.setDisRate("无折扣");
} }
switch (nowVip.getVipLevel()) { switch (nowVip.getVipLevel()) {
case 1: case 1:
......
...@@ -21,6 +21,7 @@ import java.util.List; ...@@ -21,6 +21,7 @@ import java.util.List;
public class VipTruleAdapter extends BaseAdapter<Ticket, ItemVipMscardItemBinding> { public class VipTruleAdapter extends BaseAdapter<Ticket, ItemVipMscardItemBinding> {
private Context mContext; private Context mContext;
private String shopName; private String shopName;
public VipTruleAdapter(Context mContext, @Nullable List<Ticket> data) { public VipTruleAdapter(Context mContext, @Nullable List<Ticket> data) {
...@@ -31,12 +32,12 @@ public class VipTruleAdapter extends BaseAdapter<Ticket, ItemVipMscardItemBindin ...@@ -31,12 +32,12 @@ public class VipTruleAdapter extends BaseAdapter<Ticket, ItemVipMscardItemBindin
@Override @Override
protected void convert(ItemVipMscardItemBinding mViewBinding, Ticket item) { protected void convert(ItemVipMscardItemBinding mViewBinding, Ticket item) {
mViewBinding.truleName.setText(ConvertUtil.fenToYuanNoZero(item.getTicketValAmt())); mViewBinding.truleName.setText(ConvertUtil.fenToYuanNoZero(item.getTicketValAmt()));
mViewBinding.truleMoney.setText("满"+ConvertUtil.fenToYuanNoZero(item.getTicketValAmt())+"元使用"); mViewBinding.truleMoney.setText("满" + ConvertUtil.fenToYuanNoZero(item.getTruleOrderAmt()) + "元使用");
mViewBinding.truleValidity.setText(mContext.getString(R.string.vip_mscard_period_of_validity, StringUtil.format(new Date(item.getTicketExp()), "yyyy.MM.dd"), StringUtil.format(new Date(item.getTicketExp()), "yyyy.MM.dd"))); mViewBinding.truleValidity.setText(mContext.getString(R.string.vip_mscard_period_of_validity, StringUtil.format(new Date(item.getTicketExp()), "yyyy.MM.dd"), StringUtil.format(new Date(item.getTicketExp()), "yyyy.MM.dd")));
// mViewBinding.truleCondition.setText(ConvertUtil.fenToYuanNoPoint(item.getTruleOrderAmt())); // mViewBinding.truleCondition.setText(ConvertUtil.fenToYuanNoPoint(item.getTruleOrderAmt()));
if (item.getTruleStatus()!=null&&item.getUsedFlag()!=null&&item.getTruleStatus().toString().equals("0")&&item.getUsedFlag().toString().equals("1")) { if (item.getTruleStatus() != null && item.getUsedFlag() != null && item.getTruleStatus().toString().equals("0") && item.getUsedFlag().toString().equals("1")) {
mViewBinding.truleBgLeft.setBackgroundResource(R.mipmap.return_ticket_one); mViewBinding.truleBgLeft.setBackgroundResource(R.mipmap.bg_return_ticket01);
mViewBinding.truleBgRight.setBackgroundResource(R.mipmap.return_ticket_two); mViewBinding.truleBgRight.setBackgroundResource(R.mipmap.bg_return_ticket02);
} else { } else {
mViewBinding.truleBgLeft.setBackgroundResource(R.mipmap.bg_return_ticket03); mViewBinding.truleBgLeft.setBackgroundResource(R.mipmap.bg_return_ticket03);
mViewBinding.truleBgRight.setBackgroundResource(R.mipmap.bg_return_ticket04); mViewBinding.truleBgRight.setBackgroundResource(R.mipmap.bg_return_ticket04);
......
...@@ -57,8 +57,8 @@ public final class SystemUtil { ...@@ -57,8 +57,8 @@ public final class SystemUtil {
e.printStackTrace(); e.printStackTrace();
} }
} }
return "test2018";
// return deviceSN; // return deviceSN;
return "test2019";
} }
/** /**
......
...@@ -311,7 +311,7 @@ ...@@ -311,7 +311,7 @@
android:textColor="@color/black_baozheng" android:textColor="@color/black_baozheng"
android:textSize="@dimen/et_textsize"/> android:textSize="@dimen/et_textsize"/>
<EditText <TextView
android:id="@+id/et_ticket_count" android:id="@+id/et_ticket_count"
style="@style/dialog_edit" style="@style/dialog_edit"
android:layout_width="0dp" android:layout_width="0dp"
...@@ -321,7 +321,8 @@ ...@@ -321,7 +321,8 @@
android:digits="1234567890" android:digits="1234567890"
android:ems="5" android:ems="5"
android:inputType="phone|number" android:inputType="phone|number"
android:maxLength="2"/> android:maxLength="2"
android:text="1"/>
<TextView <TextView
android:layout_width="0dp" android:layout_width="0dp"
......
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
android:layout_marginEnd="@dimen/all_spacing" android:layout_marginEnd="@dimen/all_spacing"
android:drawablePadding="@dimen/all_bounced_spacing" android:drawablePadding="@dimen/all_bounced_spacing"
android:drawableRight="@mipmap/drop_down" android:drawableRight="@mipmap/drop_down"
android:text="@{@string/settle_vip_dis_rate_hint + disRate + @string/settle_vip_dis_rate}" android:text="@{@string/settle_vip_dis_rate_hint + disRate }"
android:textColor="@color/black_zhangfei" android:textColor="@color/black_zhangfei"
android:textSize="@dimen/all_caption_size" android:textSize="@dimen/all_caption_size"
app:layout_constraintBottom_toTopOf="parent" app:layout_constraintBottom_toTopOf="parent"
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/all_spacing" android:layout_marginEnd="@dimen/all_spacing"
android:text="@{@string/settle_vip_dis_rate_hint + disRate + @string/settle_vip_dis_rate}" android:text="@{@string/settle_vip_dis_rate_hint + disRate }"
android:textColor="@color/black_zhangfei" android:textColor="@color/black_zhangfei"
android:textSize="@dimen/all_caption_size" android:textSize="@dimen/all_caption_size"
app:layout_constraintBottom_toTopOf="parent" app:layout_constraintBottom_toTopOf="parent"
......
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