Commit 6d43d8ca authored by zhang_z's avatar zhang_z

提交代码;

parent bc3d68ba
...@@ -66,7 +66,7 @@ dependencies { ...@@ -66,7 +66,7 @@ dependencies {
compile 'com.squareup.okhttp3:logging-interceptor:3.9.0' compile 'com.squareup.okhttp3:logging-interceptor:3.9.0'
compile 'io.reactivex.rxjava2:rxjava:2.1.5' compile 'io.reactivex.rxjava2:rxjava:2.1.5'
compile 'io.reactivex.rxjava2:rxandroid:2.0.1' compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
compile 'com.alibaba:fastjson:1.2.39' compile 'com.alibaba:fastjson:1.1.67.android'
compile 'com.blankj:utilcode:1.11.1' compile 'com.blankj:utilcode:1.11.1'
compile 'com.facebook.fresco:fresco:1.5.0' compile 'com.facebook.fresco:fresco:1.5.0'
compile 'com.facebook.fresco:animated-gif:1.5.0' compile 'com.facebook.fresco:animated-gif:1.5.0'
......
...@@ -17,8 +17,6 @@ import java.util.ArrayList; ...@@ -17,8 +17,6 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import io.realm.annotations.Ignore;
/** /**
* 订单 * 订单
...@@ -505,7 +503,8 @@ public class Saleorder extends SectionEntity<MediaStore.Video> implements BaseMo ...@@ -505,7 +503,8 @@ public class Saleorder extends SectionEntity<MediaStore.Video> implements BaseMo
private Long createTime; private Long createTime;
private Salepay salepay; private Salepay salepay;
@Ignore
@JSONField(serialize = false)
private String PayName; private String PayName;
private List<Saledetail> saledetailList; private List<Saledetail> saledetailList;
......
...@@ -54,7 +54,7 @@ public class SkugrpFragment extends BaseFragment<SsskuPresenter, FragmentSsskuSk ...@@ -54,7 +54,7 @@ public class SkugrpFragment extends BaseFragment<SsskuPresenter, FragmentSsskuSk
public void loadSkugrps(List<Sskugrp> sskugrps) { public void loadSkugrps(List<Sskugrp> sskugrps) {
mSskugrps = sskugrps; mSskugrps = sskugrps;
if (mSkugrpAdapter == null) return; if (mSkugrpAdapter == null) return;
mSkugrpAdapter.notifyDataSetChanged(); mSkugrpAdapter.setNewData(mSskugrps);
mViewBinding.setVisibility(sskugrps.size() > 0 ? View.VISIBLE : View.INVISIBLE); mViewBinding.setVisibility(sskugrps.size() > 0 ? View.VISIBLE : View.INVISIBLE);
} }
......
...@@ -40,10 +40,6 @@ public class VipFragment extends BaseFragment<SettlePresenter, FragmentSettleVip ...@@ -40,10 +40,6 @@ public class VipFragment extends BaseFragment<SettlePresenter, FragmentSettleVip
mPresenter.selectVip(mVipAdapter.getData().get(position)); mPresenter.selectVip(mVipAdapter.getData().get(position));
this.pop(); this.pop();
}); });
mViewBinding.llNone.setOnClickListener(view -> {
mPresenter.selectVip(Vip.createDefault());
this.pop();
});
} }
/** /**
...@@ -54,6 +50,10 @@ public class VipFragment extends BaseFragment<SettlePresenter, FragmentSettleVip ...@@ -54,6 +50,10 @@ public class VipFragment extends BaseFragment<SettlePresenter, FragmentSettleVip
public void loadVips(List<Vip> vips) { public void loadVips(List<Vip> vips) {
mViewBinding.setEmpty(vips.size() == 0); mViewBinding.setEmpty(vips.size() == 0);
mVipAdapter.setNewData(vips); mVipAdapter.setNewData(vips);
if (vips.size() == 1) {
mPresenter.selectVip(vips.get(0));
this.pop();
}
} }
......
...@@ -47,7 +47,6 @@ ...@@ -47,7 +47,6 @@
android:id="@+id/et_search" android:id="@+id/et_search"
style="@style/searchBarEditor" style="@style/searchBarEditor"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:inputType="number" android:inputType="number"
android:labelFor="@+id/et_search" android:labelFor="@+id/et_search"
......
...@@ -45,7 +45,6 @@ ...@@ -45,7 +45,6 @@
android:id="@+id/et_search" android:id="@+id/et_search"
style="@style/searchBarEditor" style="@style/searchBarEditor"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:inputType="number" android:inputType="number"
android:labelFor="@+id/et_search" android:labelFor="@+id/et_search"
......
...@@ -49,7 +49,6 @@ ...@@ -49,7 +49,6 @@
android:id="@+id/et_search" android:id="@+id/et_search"
style="@style/searchBarEditor" style="@style/searchBarEditor"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:inputType="text" android:inputType="text"
android:labelFor="@+id/et_search" android:labelFor="@+id/et_search"
......
...@@ -193,17 +193,15 @@ ...@@ -193,17 +193,15 @@
<TextView <TextView
android:id="@+id/tv_settle" android:id="@+id/tv_settle"
android:layout_width="wrap_content" android:layout_width="@dimen/button2_width"
android:layout_height="wrap_content" android:layout_height="@dimen/button2_height"
android:layout_marginEnd="@dimen/all_margin" android:layout_marginEnd="@dimen/all_margin"
android:background="@drawable/shape_red_round_rectangle_more_round" android:background="@drawable/shape_red_round_rectangle_more_round"
android:foreground="?android:attr/actionBarItemBackground" android:foreground="?android:attr/actionBarItemBackground"
android:paddingBottom="@dimen/all_spacing" android:gravity="center"
android:paddingEnd="@dimen/all_margin_big"
android:paddingStart="@dimen/all_margin_big"
android:paddingTop="@dimen/all_spacing"
android:text="@string/store_btn_settle" android:text="@string/store_btn_settle"
android:textColor="@color/white_caocao" android:textColor="@color/white_caocao"
android:textSize="@dimen/all_text_size"
app:layout_constraintBottom_toTopOf="@id/fl_cart" app:layout_constraintBottom_toTopOf="@id/fl_cart"
app:layout_constraintRight_toRightOf="@id/fl_cart" app:layout_constraintRight_toRightOf="@id/fl_cart"
app:layout_constraintTop_toBottomOf="@id/fl_cart" /> app:layout_constraintTop_toBottomOf="@id/fl_cart" />
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/settle_pay_time" android:text="@string/settle_pay_time"
android:textColor="@color/black_zhangfei" android:textColor="@color/black_zhangfei"
android:textSize="@dimen/all_caption_size" /> android:textSize="@dimen/all_body_size" />
<TextView <TextView
android:id="@+id/tv_time" android:id="@+id/tv_time"
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="end" android:gravity="end"
android:textColor="@color/black_likui" android:textColor="@color/black_likui"
android:textSize="@dimen/all_caption_size" /> android:textSize="@dimen/all_body_size" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/settle_pay_type" android:text="@string/settle_pay_type"
android:textColor="@color/black_zhangfei" android:textColor="@color/black_zhangfei"
android:textSize="@dimen/all_caption_size" /> android:textSize="@dimen/all_body_size" />
<TextView <TextView
android:id="@+id/tv_type" android:id="@+id/tv_type"
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="end" android:gravity="end"
android:textColor="@color/black_likui" android:textColor="@color/black_likui"
android:textSize="@dimen/all_caption_size" /> android:textSize="@dimen/all_body_size" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/settle_pay_count" android:text="@string/settle_pay_count"
android:textColor="@color/black_zhangfei" android:textColor="@color/black_zhangfei"
android:textSize="@dimen/all_caption_size" /> android:textSize="@dimen/all_body_size" />
<TextView <TextView
android:id="@+id/tv_count" android:id="@+id/tv_count"
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="end" android:gravity="end"
android:textColor="@color/black_likui" android:textColor="@color/black_likui"
android:textSize="@dimen/all_caption_size" /> android:textSize="@dimen/all_body_size" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/settle_pay_order_amt" android:text="@string/settle_pay_order_amt"
android:textColor="@color/black_zhangfei" android:textColor="@color/black_zhangfei"
android:textSize="@dimen/all_caption_size" /> android:textSize="@dimen/all_body_size" />
<TextView <TextView
android:id="@+id/tv_order_amt" android:id="@+id/tv_order_amt"
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="end" android:gravity="end"
android:textColor="@color/black_likui" android:textColor="@color/black_likui"
android:textSize="@dimen/all_caption_size" /> android:textSize="@dimen/all_body_size" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
</android.support.v7.widget.CardView> </android.support.v7.widget.CardView>
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
<android.support.constraint.ConstraintLayout <android.support.constraint.ConstraintLayout
android:id="@+id/cl_vip" android:id="@+id/cl_vip"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize" android:layout_height="@dimen/list3_height"
android:background="@color/white_caocao" android:background="@color/white_caocao"
android:foreground="?android:attr/selectableItemBackground"> android:foreground="?android:attr/selectableItemBackground">
...@@ -336,30 +336,18 @@ ...@@ -336,30 +336,18 @@
android:paddingStart="@dimen/all_margin" /> android:paddingStart="@dimen/all_margin" />
</LinearLayout> </LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="@dimen/all_line_width"
android:background="@color/gray_huanggai" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_vip"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/all_margin"
android:layout_marginTop="@dimen/all_margin"
android:background="@color/white_caocao"
android:orientation="vertical">
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/all_line_width" android:layout_height="@dimen/all_line_width"
android:background="@color/gray_huanggai" /> android:layout_marginEnd="@dimen/all_margin"
android:layout_marginStart="@dimen/all_margin"
android:background="@color/gray_kongming" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/title_height" android:layout_height="@dimen/title_height"
android:background="@color/white_caocao"
android:gravity="center" android:gravity="center"
android:paddingEnd="@dimen/all_margin" android:paddingEnd="@dimen/all_margin"
android:paddingStart="@dimen/all_margin"> android:paddingStart="@dimen/all_margin">
...@@ -385,9 +373,24 @@ ...@@ -385,9 +373,24 @@
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/all_line_width" android:layout_height="@dimen/all_line_width"
android:layout_marginEnd="@dimen/all_margin" android:background="@color/gray_huanggai" />
android:layout_marginStart="@dimen/all_margin" </LinearLayout>
android:background="@color/gray_kongming" />
<LinearLayout
android:id="@+id/ll_vip"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/all_margin"
android:layout_marginTop="@dimen/all_margin"
android:background="@color/white_caocao"
android:orientation="vertical"
android:visibility="@{defualtVip?View.GONE:View.VISIBLE}">
<View
android:layout_width="match_parent"
android:layout_height="@dimen/all_line_width"
android:background="@color/gray_huanggai" />
<LinearLayout <LinearLayout
android:id="@+id/ll_ticket" android:id="@+id/ll_ticket"
...@@ -563,16 +566,14 @@ ...@@ -563,16 +566,14 @@
<TextView <TextView
android:id="@+id/tv_settle" android:id="@+id/tv_settle"
android:layout_width="wrap_content" android:layout_width="@dimen/button2_width"
android:layout_height="wrap_content" android:layout_height="@dimen/button2_height"
android:background="@drawable/shape_red_round_rectangle_more_round" android:background="@drawable/shape_red_round_rectangle_more_round"
android:foreground="?android:attr/actionBarItemBackground" android:foreground="?android:attr/actionBarItemBackground"
android:paddingBottom="@dimen/all_spacing" android:gravity="center"
android:paddingEnd="@dimen/all_margin_big"
android:paddingStart="@dimen/all_margin_big"
android:paddingTop="@dimen/all_spacing"
android:text="@string/settle_btn_expand" android:text="@string/settle_btn_expand"
android:textColor="@color/white_caocao" /> android:textColor="@color/white_caocao"
android:textSize="@dimen/all_text_size" />
</LinearLayout> </LinearLayout>
<View <View
......
...@@ -18,49 +18,6 @@ ...@@ -18,49 +18,6 @@
android:background="@color/gray_zhouyu" android:background="@color/gray_zhouyu"
android:orientation="vertical"> android:orientation="vertical">
<View
android:layout_width="match_parent"
android:layout_height="@dimen/all_line_width"
android:layout_gravity="bottom"
android:layout_marginTop="@dimen/all_spacing"
android:background="@color/gray_huanggai" />
<LinearLayout
android:id="@+id/ll_none"
android:layout_width="match_parent"
android:layout_height="@dimen/title_height"
android:background="@color/white_caocao"
android:foreground="?android:attr/selectableItemBackground"
android:gravity="center"
android:paddingEnd="@dimen/all_margin"
android:paddingStart="@dimen/all_margin">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/settle_vip_none"
android:textColor="@color/black_baozheng"
android:textSize="@dimen/all_text_size" />
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:button="@mipmap/but_elect02" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="@dimen/all_line_width"
android:layout_marginBottom="@dimen/all_margin"
android:background="@color/gray_huanggai"
android:visibility="@{empty?View.GONE:View.VISIBLE}" />
<View
android:layout_width="match_parent"
android:layout_height="@dimen/all_line_width"
android:background="@color/gray_huanggai" />
<android.support.v7.widget.RecyclerView <android.support.v7.widget.RecyclerView
android:id="@+id/rl_vip" android:id="@+id/rl_vip"
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:gravity="center" android:gravity="center"
android:textColor="@color/black_baozheng" android:textColor="@color/black_baozheng"
android:textSize="@dimen/all_text_size" /> android:textSize="@{selected?@dimen/all_text_size:@dimen/all_body_size}" />
</FrameLayout> </FrameLayout>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<android.support.constraint.ConstraintLayout <android.support.constraint.ConstraintLayout
android:id="@+id/cl_vip" android:id="@+id/cl_vip"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize" android:layout_height="@dimen/list3_height"
android:background="@color/white_caocao" android:background="@color/white_caocao"
android:foreground="?android:attr/selectableItemBackground"> android:foreground="?android:attr/selectableItemBackground">
......
...@@ -234,6 +234,15 @@ ...@@ -234,6 +234,15 @@
<dimen name="button3_height">44dp</dimen> <dimen name="button3_height">44dp</dimen>
<dimen name="button3_marginHorizontal">16dp</dimen> <dimen name="button3_marginHorizontal">16dp</dimen>
<dimen name="button3_width">328dp</dimen> <dimen name="button3_width">328dp</dimen>
<dimen name="list1_height">48dp</dimen>
<dimen name="list2_height">56dp</dimen>
<dimen name="list3_height">72dp</dimen>
<dimen name="list4_height">90dp</dimen>
<dimen name="list5_height">100dp</dimen>
<!--交班--> <!--交班-->
<dimen name="handover_amt_size">34sp</dimen> <dimen name="handover_amt_size">34sp</dimen>
......
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
<string name="cart_product_price">单价</string> <string name="cart_product_price">单价</string>
<string name="cart_product_amt">小计</string> <string name="cart_product_amt">小计</string>
<string name="cart_count">总数:</string> <string name="cart_count">总数:</string>
<string name="cart_amt">总计:</string> <string name="cart_amt">总计</string>
<string name="cart_pay">应收:</string> <string name="cart_pay">应收:</string>
<string name="cart_dis">优惠:</string> <string name="cart_dis">优惠:</string>
<string name="cart_dis_list">优惠项目:</string> <string name="cart_dis_list">优惠项目:</string>
...@@ -562,7 +562,7 @@ ...@@ -562,7 +562,7 @@
<string name="settle_pay_order_amt">合计金额</string> <string name="settle_pay_order_amt">合计金额</string>
<string name="settle_retry">重新支付</string> <string name="settle_retry">重新支付</string>
<string name="settle_complete">完成</string> <string name="settle_complete">完成</string>
<string name="settle_auth_amt"></string> <string name="settle_auth_amt"></string>
<string name="settle_ticket">优惠券</string> <string name="settle_ticket">优惠券</string>
<string name="settle_ticket_text">张可用</string> <string name="settle_ticket_text">张可用</string>
<string name="settle_point">积分抵扣</string> <string name="settle_point">积分抵扣</string>
......
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