Explorar o código

2024-2-5 代码备份
商品详情页UI调整
提交订单页面UI调整,绿积分数据未找到
我的团队页面开发,数据未调整
我的页面UI改版

zhangbing %!s(int64=2) %!d(string=hai) anos
pai
achega
1fd175c083
Modificáronse 69 ficheiros con 1546 adicións e 1048 borrados
  1. 6 4
      app/src/main/AndroidManifest.xml
  2. 8 0
      app/src/main/java/com/yihucha/hbyhc/network/service/UserService.java
  3. 129 228
      app/src/main/java/com/yihucha/hbyhc/presentation/mine/MineFragment.java
  4. 14 0
      app/src/main/java/com/yihucha/hbyhc/presentation/mine/MyTeamActivity.kt
  5. 194 0
      app/src/main/java/com/yihucha/hbyhc/presentation/mine/model/TeamBean.java
  6. 21 0
      app/src/main/java/com/yihucha/hbyhc/presentation/mine/model/TeamViewModel.kt
  7. 21 0
      app/src/main/java/com/yihucha/hbyhc/presentation/mine/repository/UserRepository.java
  8. 154 0
      app/src/main/java/com/yihucha/hbyhc/presentation/mine/view_model/MineSpreadInfo.java
  9. 25 9
      app/src/main/java/com/yihucha/hbyhc/presentation/mine/view_model/MineViewModel.java
  10. 112 54
      app/src/main/java/com/yihucha/hbyhc/presentation/order/ApplicationForDrawbackActivity.java
  11. 3 0
      app/src/main/java/com/yihucha/hbyhc/presentation/order/ApplyForRefundOptionPageActivity.java
  12. 10 10
      app/src/main/java/com/yihucha/hbyhc/presentation/order/SubmitOrderActivity.java
  13. 20 5
      app/src/main/java/com/yihucha/hbyhc/presentation/order/adapter/OrderShopAdapter.java
  14. 10 0
      app/src/main/java/com/yihucha/hbyhc/presentation/order/model/OrderCheckBean.java
  15. 42 55
      app/src/main/java/com/yihucha/hbyhc/presentation/product/ProductDetailsActivity.java
  16. 65 92
      app/src/main/java/com/yihucha/hbyhc/view/CustomDialog.java
  17. 12 0
      app/src/main/res/drawable/shape_bg_mine_top.xml
  18. 7 0
      app/src/main/res/drawable/shape_ffe2e3_8dp.xml
  19. 13 0
      app/src/main/res/drawable/shape_white_15dp.xml
  20. 98 33
      app/src/main/res/layout/activity_application_for_drawback.xml
  21. 2 1
      app/src/main/res/layout/activity_apply_for_refund_option_page.xml
  22. 173 0
      app/src/main/res/layout/activity_my_team.xml
  23. 1 0
      app/src/main/res/layout/activity_pay.xml
  24. 54 24
      app/src/main/res/layout/activity_productdetails.xml
  25. 215 524
      app/src/main/res/layout/fragment_mine.xml
  26. 56 0
      app/src/main/res/layout/green_integral_use_info.xml
  27. 81 9
      app/src/main/res/layout/item_order_shop.xml
  28. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/after_sale_220620.png
  29. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/bangzhuzhongxin_220620.png
  30. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/bg_team_top.png
  31. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/connect_us.png
  32. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/daifahuo_220620.png
  33. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/daipingjia_220620.png
  34. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/daishouhuo_220620.png
  35. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/icon_daili_qu.png
  36. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/icon_daili_sheng.png
  37. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/icon_daili_shequ.png
  38. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/icon_daili_shi.png
  39. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/icon_daili_xiang.png
  40. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/icon_jh.png
  41. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/icon_member_dongshi.png
  42. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/icon_member_gongsi.png
  43. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/icon_member_hehuoren.png
  44. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/icon_member_jingli.png
  45. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/icon_member_shanghu.png
  46. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/icon_member_yonghu.png
  47. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/icon_member_zhuren.png
  48. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/icon_member_zongjian.png
  49. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/icon_mine_lvf.png
  50. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/icon_mine_td.png
  51. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/icon_mine_yj.png
  52. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/icon_mine_yq.png
  53. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/icon_qiye.png
  54. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/icon_team_invitate.png
  55. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/icon_wh.png
  56. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/img_xsms2.png
  57. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/mine_setting_220620.png
  58. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/obligation_220620.png
  59. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/pyq_221121.png
  60. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/shangpinxiangqing_dianpu.png
  61. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/shangpinxiangqing_kefu.png
  62. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/wodedizhi_220620.png
  63. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/wodepingjia_220620.png
  64. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/wodeshoucang_220620.png
  65. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/woyaohuanhuo.png
  66. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/woyaotuihuotuikuan.png
  67. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/woyaotuikuan.png
  68. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/wx_logo.png
  69. BIN=BIN
      app/src/main/res/mipmap-xxxhdpi/wx_share_221121.png

+ 6 - 4
app/src/main/AndroidManifest.xml

@@ -78,15 +78,17 @@
78 78
         tools:replace="android:theme"
79 79
         tools:targetApi="31">
80 80
         <activity
81
+            android:name=".presentation.mine.MyTeamActivity"
82
+            android:label="我的团队"
83
+            android:exported="false" />
84
+        <activity
81 85
             android:name=".presentation.mine.TiXianRecordActivity"
82 86
             android:exported="false"
83
-            android:label="提现记录"
84
-            />
87
+            android:label="提现记录" />
85 88
         <activity
86 89
             android:name=".presentation.mine.MyCommissionActivity"
87 90
             android:exported="false"
88
-            android:label="我的佣金"
89
-            />
91
+            android:label="我的佣金" />
90 92
         <activity
91 93
             android:name=".presentation.annuity.AnnuityRecordsActivity"
92 94
             android:exported="false"

+ 8 - 0
app/src/main/java/com/yihucha/hbyhc/network/service/UserService.java

@@ -49,6 +49,7 @@ import com.yihucha.hbyhc.presentation.mine.model.UserAnnuityInfoBean;
49 49
 import com.yihucha.hbyhc.presentation.mine.model.UserInfoModel;
50 50
 import com.yihucha.hbyhc.presentation.mine.model.UserVipInfoBean;
51 51
 import com.yihucha.hbyhc.presentation.mine.model.YanglaojinBean;
52
+import com.yihucha.hbyhc.presentation.mine.view_model.MineSpreadInfo;
52 53
 import com.yihucha.hbyhc.presentation.shopping.model.CollectBean;
53 54
 import com.yihucha.hbyhc.presentation.shopping.model.ShoppingBean;
54 55
 
@@ -76,6 +77,13 @@ public interface UserService {
76 77
     @GET("/api/user/yanglaolog")
77 78
     Observable<DataResponse<AnnuityRecordsBean>> getYanglaoList(@QueryMap Map<String,Object> map);
78 79
 
80
+    /**
81
+     * 我的页面信息  spread——info
82
+     */
83
+    @GET("/api/user/spread_info_yhc")
84
+    Observable<DataResponse<MineSpreadInfo>> getSpreadInfoYhc();
85
+
86
+
79 87
     @GET("api/user/bill")
80 88
     Call<JiangjinBean> getJiangjin(@Query("page") int page, @Query("limit") int limit, @Query("is_red") boolean is_red);
81 89
 

+ 129 - 228
app/src/main/java/com/yihucha/hbyhc/presentation/mine/MineFragment.java

@@ -61,7 +61,6 @@ public class MineFragment extends BaseFragment implements View.OnClickListener {
61 61
 
62 62
         binding = FragmentMineBinding.inflate(inflater, container, false);
63 63
         View root = binding.getRoot();
64
-//        ImmersedStatusbarUtils.initAfterSetContentView(getActivity(), binding.viewOccupy);
65 64
         initView();
66 65
         initClick();
67 66
         return root;
@@ -71,116 +70,122 @@ public class MineFragment extends BaseFragment implements View.OnClickListener {
71 70
         if (!"".equals(MVUtils.getString(Constants.TOKEN))) {
72 71
             //用户信息
73 72
             mMineViewModel.getUserInfo();
74
-            mMineViewModel.userModel.observe(getActivity(), new Observer<UserInfoModel>() {
75
-                @Override
76
-                public void onChanged(UserInfoModel uesrInfoModel) {
77
-                    mUserInfoModel = uesrInfoModel;
78
-                    if (!TextUtils.isEmpty(uesrInfoModel.getAvatar())) {
79
-                        GlideUtils.loadCircleImage(getActivity(), uesrInfoModel.getAvatar(), binding.ivAvatar, R.mipmap.home_default_avatar_220614);
80
-                    }
81
-                    //我的邀请码
82
-                    MVUtils.put(Constants.USER_NUMBER, uesrInfoModel.getUser_number());
83
-                    //昵称
84
-                    MVUtils.put(Constants.NICK_NAME, uesrInfoModel.getNickname());
85
-                    binding.tvNickname.setText(uesrInfoModel.getNickname());
86
-                    String tel = StringsUtil.encodeTel(uesrInfoModel.getPhone());
87
-                    binding.tvPhone.setText(tel);
88
-                    binding.tvMyIntegral.setText(StringsUtil.getNumber(uesrInfoModel.getScore()));
89
-                    binding.tvRedIntegral.setText(StringsUtil.getNumber(mUserInfoModel.getMember_brokerage_price()));
90
-                    binding.tvTeamCount.setText(StringsUtil.getNumber(mUserInfoModel.getSbreak()));
91
-
92
-                    String member = mUserInfoModel.getUser_rich_type();
93
-                    if (mUserInfoModel.getIs_merchant() == 1) {
94
-                        binding.tvDianpu.setText("我的店铺");
95
-                    }
96
-
97
-                    String area_manage_type = mUserInfoModel.getArea_manage_type();
98
-                    String stockholder = mUserInfoModel.getStockholder();
73
+            mMineViewModel.getSpreadInfoYhc();
74
+            mMineViewModel.spreadInfo.observe(getActivity(), mineSpreadInfo -> {
75
+                if (!TextUtils.isEmpty(mineSpreadInfo.getAvatar())) {
76
+                    GlideUtils.loadCircleImage(getActivity(), mineSpreadInfo.getAvatar(), binding.ivAvatar, R.mipmap.home_default_avatar_220614);
77
+                }
78
+                //昵称
79
+                MVUtils.put(Constants.NICK_NAME, mineSpreadInfo.getNickname());
80
+                binding.tvNickname.setText(mineSpreadInfo.getNickname());
81
+                String area_manage_type = mineSpreadInfo.getLevel();
82
+                String stockholder = mineSpreadInfo.getPartnership();
83
+                String member = mineSpreadInfo.getIdentity();
84
+
85
+                if ("101".equals(area_manage_type)) {
86
+                    //社区服务中心
87
+                    binding.ivMemberDaili.setVisibility(View.VISIBLE);
88
+                    binding.ivMemberDaili.setImageResource(R.mipmap.icon_daili_shequ);
89
+                } else if ("102".equals(area_manage_type)) {
90
+                    //乡镇服务中心
91
+                    binding.ivMemberDaili.setVisibility(View.VISIBLE);
92
+                    binding.ivMemberDaili.setImageResource(R.mipmap.icon_daili_xiang);
93
+                } else if ("103".equals(area_manage_type)) {
94
+                    //区县服务中心
95
+                    binding.ivMemberDaili.setVisibility(View.VISIBLE);
96
+                    binding.ivMemberDaili.setImageResource(R.mipmap.icon_daili_qu);
97
+                } else if ("104".equals(area_manage_type)) {
98
+                    //市级运营中心
99
+                    binding.ivMemberDaili.setVisibility(View.VISIBLE);
100
+                    binding.ivMemberDaili.setImageResource(R.mipmap.icon_daili_shi);
101
+                } else if ("105".equals(area_manage_type)) {
102
+                    //省级分公司
103
+                    binding.ivMemberDaili.setVisibility(View.VISIBLE);
104
+                    binding.ivMemberDaili.setImageResource(R.mipmap.icon_daili_sheng);
105
+                } else {
106
+                    binding.ivMemberDaili.setVisibility(View.GONE);
107
+                }
108
+                if ("0".equals(member)) {
109
+                    //普通用户
110
+                    binding.ivMemberMember.setImageResource(R.mipmap.icon_member_yonghu);
111
+                } else if ("100".equals(member)) {
112
+                    //合伙人
113
+                    binding.ivMemberMember.setImageResource(R.mipmap.hehuoren);
114
+                } else if ("101".equals(member)) {
115
+                    //主任
116
+                    binding.ivMemberMember.setImageResource(R.mipmap.icon_member_zhuren);
117
+                } else if ("102".equals(member)) {
118
+                    //经理
119
+                    binding.ivMemberMember.setImageResource(R.mipmap.icon_member_jingli);
120
+                } else if ("103".equals(member)) {
121
+                    //总监
122
+                    binding.ivMemberMember.setImageResource(R.mipmap.icon_member_zongjian);
123
+                } else if ("104".equals(member)) {
124
+                    //合伙商户
125
+                    binding.ivMemberMember.setImageResource(R.mipmap.icon_member_shanghu);
126
+                } else if ("105".equals(member)) {
127
+                    //合伙公司
128
+                    binding.ivMemberMember.setImageResource(R.mipmap.icon_member_gongsi);
129
+                } else {
130
+                    //合伙董事  (猜的)
131
+                    binding.ivMemberMember.setImageResource(R.mipmap.icon_member_dongshi);
132
+                }
99 133
 
100
-                    if ("district".equals(area_manage_type)) {
101
-                        binding.ivMemberDaili.setVisibility(View.VISIBLE);
102
-                        binding.ivMemberDaili.setImageResource(R.mipmap.qxdl);
103
-                    }else if ("city".equals(area_manage_type)){
104
-                        binding.ivMemberDaili.setVisibility(View.VISIBLE);
105
-                        binding.ivMemberDaili.setImageResource(R.mipmap.citydl);
106
-                    }else {
107
-                        binding.ivMemberDaili.setVisibility(View.GONE);
108
-                    }
109
-                    if ("0".equals(member)) {
110
-                        binding.ivMemberMember.setImageResource(R.mipmap.user);
111
-                    } else if ("1".equals(member)) {
112
-                        binding.ivMemberMember.setImageResource(R.mipmap.vip1);
113
-                    }else if ("3".equals(member)) {
114
-                        binding.ivMemberMember.setImageResource(R.mipmap.chuangshiren);
115
-                    } else if ("4".equals(member)) {
116
-                        binding.ivMemberMember.setImageResource(R.mipmap.vip2);
117
-                    } else if ("8".equals(member)) {
118
-                        //合伙人
119
-                        binding.ivMemberMember.setImageResource(R.mipmap.hehuoren);
120
-                    }else if ("9".equals(member)) {
121
-                        //联合创始人
122
-                        binding.ivMemberMember.setImageResource(R.mipmap.lh_chuangshiren);
123
-                    }
134
+                if ("1".equals(stockholder)) {
135
+                    binding.ivMemberLhcsr.setVisibility(View.VISIBLE);
136
+                    binding.ivMemberLhcsr.setImageResource(R.mipmap.icon_qiye);
137
+                } else {
138
+                    binding.ivMemberLhcsr.setVisibility(View.GONE);
139
+                }
124 140
 
125
-                    if ("1".equals(stockholder)){
126
-                        binding.ivMemberLhcsr.setVisibility(View.VISIBLE);
127
-                        binding.ivMemberLhcsr.setImageResource(R.mipmap.gd);
128
-                    }else {
129
-                        binding.ivMemberLhcsr.setVisibility(View.GONE);
130
-                    }
141
+            });
142
+            mMineViewModel.userModel.observe(getActivity(), uesrInfoModel -> {
143
+                mUserInfoModel = uesrInfoModel;
144
+                //我的邀请码
145
+                MVUtils.put(Constants.USER_NUMBER, uesrInfoModel.getUser_number());
146
+                String tel = StringsUtil.encodeTel(uesrInfoModel.getPhone());
147
+                binding.tvPhone.setText(tel);
131 148
 
132
-                }
133 149
             });
134 150
 
135 151
             mMineViewModel.getOrderQuantity();
136
-            mMineViewModel.orderQuantityData.observe(getActivity(), new Observer<OrderQuantityBean>() {
137
-                @Override
138
-                public void onChanged(OrderQuantityBean orderQuantityBean) {
139
-                    //待付款
140
-                    if (!orderQuantityBean.getNoPay().equals("0")) {
141
-                        binding.llPaymentRequired.setVisibility(View.VISIBLE);
142
-                        binding.tvPaymentRequired.setText(orderQuantityBean.getNoPay());
143
-                    } else {
144
-                        binding.llPaymentRequired.setVisibility(View.GONE);
145
-                    }
146
-                    //代发货
147
-                    if (!orderQuantityBean.getNoPostage().equals("0")) {
148
-                        binding.llWaitForDelivery.setVisibility(View.VISIBLE);
149
-                        binding.tvWaitForDelivery.setText(orderQuantityBean.getNoPostage());
150
-                    } else {
151
-                        binding.llWaitForDelivery.setVisibility(View.GONE);
152
-                    }
153
-                    //待收货
154
-                    if (!orderQuantityBean.getNoDeliver().equals("0")) {
155
-                        binding.llWaitingForTheGoods.setVisibility(View.VISIBLE);
156
-                        binding.tvWaitingForTheGoods.setText(orderQuantityBean.getNoDeliver());
157
-                    } else {
158
-                        binding.llWaitingForTheGoods.setVisibility(View.GONE);
159
-                    }
160
-                    //待评价
161
-                    if (!orderQuantityBean.getNoComment().equals("0")) {
152
+            mMineViewModel.orderQuantityData.observe(getActivity(), orderQuantityBean -> {
153
+                //待付款
154
+                if (!orderQuantityBean.getNoPay().equals("0")) {
155
+                    binding.llPaymentRequired.setVisibility(View.VISIBLE);
156
+                    binding.tvPaymentRequired.setText(orderQuantityBean.getNoPay());
157
+                } else {
158
+                    binding.llPaymentRequired.setVisibility(View.GONE);
159
+                }
160
+                //代发货
161
+                if (!orderQuantityBean.getNoPostage().equals("0")) {
162
+                    binding.llWaitForDelivery.setVisibility(View.VISIBLE);
163
+                    binding.tvWaitForDelivery.setText(orderQuantityBean.getNoPostage());
164
+                } else {
165
+                    binding.llWaitForDelivery.setVisibility(View.GONE);
166
+                }
167
+                //待收货
168
+                if (!orderQuantityBean.getNoDeliver().equals("0")) {
169
+                    binding.llWaitingForTheGoods.setVisibility(View.VISIBLE);
170
+                    binding.tvWaitingForTheGoods.setText(orderQuantityBean.getNoDeliver());
171
+                } else {
172
+                    binding.llWaitingForTheGoods.setVisibility(View.GONE);
173
+                }
174
+                //待评价
175
+                if (!orderQuantityBean.getNoComment().equals("0")) {
162 176
 //                        tv_waiting_for_the_evaluation
163
-                        binding.llWaitingForTheEvaluation.setVisibility(View.VISIBLE);
164
-                        binding.tvWaitingForTheEvaluation.setText(orderQuantityBean.getNoComment());
165
-                    } else {
166
-                        binding.llWaitingForTheEvaluation.setVisibility(View.GONE);
167
-                    }
168
-                    //退款收货
169
-                    if (!orderQuantityBean.getRefund().equals("0")) {
170
-//                        tv_after_sale
171
-                        binding.llAfterSale.setVisibility(View.VISIBLE);
172
-                        binding.tvAfterSale.setText(orderQuantityBean.getRefund());
173
-                    } else {
174
-                        binding.llAfterSale.setVisibility(View.GONE);
175
-                    }
177
+                    binding.llWaitingForTheEvaluation.setVisibility(View.VISIBLE);
178
+                    binding.tvWaitingForTheEvaluation.setText(orderQuantityBean.getNoComment());
179
+                } else {
180
+                    binding.llWaitingForTheEvaluation.setVisibility(View.GONE);
176 181
                 }
177
-            });
178
-            //养老金
179
-            mMineViewModel.getYanglaojin();
180
-            mMineViewModel.yanglaojinBeanMutableLiveData.observe(getActivity(), new Observer<YanglaojinBean>() {
181
-                @Override
182
-                public void onChanged(YanglaojinBean yanglaojinBean) {
183
-                    binding.tvAnnuity.setText(StringsUtil.getNumber(yanglaojinBean.getAll_yanglao()) + "");
182
+                //退款收货
183
+                if (!orderQuantityBean.getRefund().equals("0")) {
184
+//                        tv_after_sale
185
+                    binding.llAfterSale.setVisibility(View.VISIBLE);
186
+                    binding.tvAfterSale.setText(orderQuantityBean.getRefund());
187
+                } else {
188
+                    binding.llAfterSale.setVisibility(View.GONE);
184 189
                 }
185 190
             });
186 191
             //网络请求失败
@@ -190,14 +195,7 @@ public class MineFragment extends BaseFragment implements View.OnClickListener {
190 195
                     ToastUtils.showLong(s);
191 196
                 }
192 197
             });
193
-            //我的邀请
194
-            mMineViewModel.getMyInvitation();
195
-            mMineViewModel.myInvitationBeanMutableLiveData.observe(getActivity(), new Observer<MyInvitationBean>() {
196
-                @Override
197
-                public void onChanged(MyInvitationBean myInvitationBean) {
198
-                    binding.tvMyCommission.setText(StringsUtil.getNumber(myInvitationBean.getBrokerage_price()));
199
-                }
200
-            });
198
+
201 199
 
202 200
         }
203 201
 
@@ -206,7 +204,6 @@ public class MineFragment extends BaseFragment implements View.OnClickListener {
206 204
     private void initClick() {
207 205
         binding.llAddress.setOnClickListener(this);
208 206
         binding.ivAvatar.setOnClickListener(this);
209
-        binding.ivAvatar.setOnClickListener(this);
210 207
         binding.tvNickname.setOnClickListener(this);
211 208
         binding.tvPhone.setOnClickListener(this);
212 209
         binding.llAllOrder.setOnClickListener(this);
@@ -217,32 +214,18 @@ public class MineFragment extends BaseFragment implements View.OnClickListener {
217 214
         binding.llClickWaitingForTheEvaluation.setOnClickListener(this);
218 215
         binding.llClickAfterSale.setOnClickListener(this);
219 216
 
220
-        binding.tvAnnuity.setOnClickListener(this);
221
-        binding.tvNameAnnuity.setOnClickListener(this);
222
-
223 217
         binding.llSettingup.setOnClickListener(this);
224 218
         binding.llMyFavorite.setOnClickListener(this);
225
-        binding.llWodeguanzhu.setOnClickListener(this);
226 219
         binding.llBangzhuzhongxin.setOnClickListener(this);
227 220
         binding.llWodepingjia.setOnClickListener(this);
228
-        binding.llWodeerweima.setOnClickListener(this);
229
-        binding.llMyInvitation.setOnClickListener(this);
230
-        binding.llSanfangdingdan.setOnClickListener(this);
231
-        binding.tvMyCommission.setOnClickListener(this);
232
-        binding.tvNameCommission.setOnClickListener(this);
233
-        binding.tvMyIntegral.setOnClickListener(this);
234
-        binding.llShangpuruzhu.setOnClickListener(this);
235
-        binding.llChuangfubao.setOnClickListener(this);
236
-        binding.llAccountServiceFee.setOnClickListener(this);
237
-
238
-        binding.tvRedIntegral.setOnClickListener(this);
239
-        binding.tvNameRedintegral.setOnClickListener(this);
240
-        binding.ivMemberMember.setOnClickListener(this);
241 221
 
222
+        binding.tvMineYj.setOnClickListener(this);
223
+        binding.tvMineLjf.setOnClickListener(this);
224
+        binding.tvMineTd.setOnClickListener(this);
225
+        binding.tvMineYq.setOnClickListener(this);
242 226
 
243
-        binding.llBangfuzhongxin.setOnClickListener(this);
244 227
         binding.llConnectUs.setOnClickListener(this);
245
-        binding.ivMemberDaili.setOnClickListener(this);
228
+//        binding.ivMemberDaili.setOnClickListener(this);
246 229
     }
247 230
 
248 231
     private void initView() {
@@ -251,13 +234,15 @@ public class MineFragment extends BaseFragment implements View.OnClickListener {
251 234
 
252 235
     @Override
253 236
     public void onClick(View view) {
254
-        if (view == binding.llAddress) {
237
+        if (view == binding.tvMineTd) {
238
+            //我的团队
239
+        } else if (view == binding.llAddress) {
255 240
             //我的地址
256 241
             MyAddressActivity.launch(getActivity());
257 242
         } else if (view == binding.ivAvatar) {
258 243
             //个人资料
259 244
             MyProfileActivity.launch(getActivity());
260
-        } else if (view == binding.ivAvatar||view == binding.tvNickname||view==binding.tvPhone) {
245
+        } else if (view == binding.ivAvatar || view == binding.tvNickname || view == binding.tvPhone) {
261 246
             //个人资料
262 247
             MyProfileActivity.launch(getActivity());
263 248
         } else if (view == binding.llAllOrder) {
@@ -278,114 +263,28 @@ public class MineFragment extends BaseFragment implements View.OnClickListener {
278 263
         } else if (view == binding.llClickAfterSale) {
279 264
             //退款售后
280 265
             AfterSalesOrderListActivity.launch(getActivity());
281
-        } else if (view == binding.tvAnnuity||view == binding.tvNameAnnuity) {
282
-            isAnnuity = true;
283
-            //账号服务费
284
-//            mMineViewModel.getAccountServiceFee();
285
-            if (isAnnuity) {
286
-                //养老金
287
-                AnnuityActivity.launch(getActivity());
288
-            } else {
289
-                PensionAccountPaySucceedActivity.launch(getActivity());
290
-            }
291 266
         } else if (view == binding.llSettingup) {
292 267
             //设置
293 268
             SettingUpActivity.launch(getActivity());
294 269
         } else if (view == binding.llMyFavorite) {
295 270
             //我的收藏
296 271
             MyFavoriteActivity.launch(getActivity());
297
-        } else if (view == binding.llWodeguanzhu) {
298
-            //我的关注
299
-            MyFocusActivity.launch(getActivity());
300 272
         } else if (view == binding.llBangzhuzhongxin) {
301 273
             //帮助中心
302 274
             HelpCenterActivity.launch(getActivity());
303 275
         } else if (view == binding.llWodepingjia) {
304 276
             //我的评价
305 277
             MyEvaluateActivity.launch(getActivity());
306
-        } else if (view == binding.llWodeerweima) {
307
-            //我的二维码
308
-//            MyQRCodeActivity.launch(getActivity());
309
-            //邀请好友
310
-            InviteFriendsActivity.launch(getActivity());
311
-        } else if (view == binding.llMyInvitation) {
278
+        } else if (view == binding.tvMineYq) {
312 279
             //我的邀请
313 280
             MyInvitationActivity.launch(getActivity());
314
-        } else if (view == binding.llSanfangdingdan) {
315
-            //三方订单
316
-            TripartiteOrderActivity.launch(getActivity());
317
-        } else if (view == binding.tvMyCommission||view == binding.tvNameCommission) {
281
+        } else if (view == binding.tvMineYj) {
318 282
             //点击我的佣金进入我的邀请
319 283
 //            MyInvitationActivity.launch(getActivity());
320 284
             MyCommissionActivity.launch(getActivity());
321
-        } else if (view == binding.tvMyIntegral || view == binding.tvNameIntegral) {
322
-            //我的积分
285
+        } else if (view == binding.tvMineLjf) {
286
+            //绿积分
323 287
             MyIntegralActivity.launch(getActivity());
324
-        } else if (view == binding.llShangpuruzhu) {
325
-            //商铺入驻
326
-            IWXAPI api = WXAPIFactory.createWXAPI(getActivity(), Constants.WX_APP_ID);
327
-
328
-            WXLaunchMiniProgram.Req req = new WXLaunchMiniProgram.Req();
329
-            req.userName = Constants.SHOPS_IN_APPLET_ID; // 填小程序原始id
330
-            req.path = Constants.SHOPS_IN_OFFICE_URL;                  ////拉起小程序页面的可带参路径,不填默认拉起小程序首页,对于小游戏,可以只传入 query 部分,来实现传参效果,如:传入 "?foo=bar"。
331
-            req.miniprogramType = HttpUrl.IS_RELEASE ? WXLaunchMiniProgram.Req.MINIPTOGRAM_TYPE_RELEASE :
332
-                    WXLaunchMiniProgram.Req.MINIPROGRAM_TYPE_PREVIEW;// 可选打开 开发版,体验版和正式版
333
-
334
-            api.sendReq(req);
335
-        } else if (view == binding.llChuangfubao) {
336
-            H5TitleActivity.launch(getActivity(), "",
337
-                    Constants.CHUANGFUBAO + MVUtils.getString(Constants.TOKEN));
338
-        } else if (view == binding.llAccountServiceFee) {
339
-            //账号服务费
340
-            isAnnuity = false;
341
-//            mMineViewModel.getAccountServiceFee();
342
-            if (isAnnuity) {
343
-                //养老金
344
-                AnnuityActivity.launch(getActivity());
345
-            } else {
346
-                PensionAccountPaySucceedActivity.launch(getActivity());
347
-            }
348
-        } else if (view == binding.tvRedIntegral||view == binding.tvNameRedintegral) {
349
-            //红积分
350
-            Bundle bundle = new Bundle();
351
-            bundle.putString("nickname", mUserInfoModel.getNickname());
352
-            bundle.putString("phone", mUserInfoModel.getPhone());
353
-            bundle.putString("avatar", mUserInfoModel.getAvatar());
354
-            bundle.putString("member", mUserInfoModel.getUser_rich_type());
355
-            bundle.putString("member_brokerage_price", mUserInfoModel.getMember_brokerage_price());
356
-            bundle.putString("red", mUserInfoModel.getRed());
357
-            bundle.putBoolean("is_bangfu", mUserInfoModel.is_bangfu);
358
-            RedIntegralActivity.launch(getContext(), bundle);
359
-        } else if (view == binding.ivMemberMember) {
360
-            //会员中心
361
-            Bundle bundle = new Bundle();
362
-            bundle.putString("nickname", mUserInfoModel.getNickname());
363
-            bundle.putString("phone", mUserInfoModel.getPhone());
364
-            bundle.putString("avatar", mUserInfoModel.getAvatar());
365
-            bundle.putString("member", mUserInfoModel.getUser_rich_type());
366
-
367
-            bundle.putString("annuity", binding.tvAnnuity.getText().toString());
368
-            bundle.putString("commission", binding.tvMyCommission.getText().toString());
369
-            bundle.putString("integral", binding.tvMyIntegral.getText().toString());
370
-            bundle.putString("red_integral", binding.tvRedIntegral.getText().toString());
371
-            bundle.putString("team_count", binding.tvTeamCount.getText().toString());
372
-            bundle.putBoolean("is_bangfu", mUserInfoModel.is_bangfu());
373
-
374
-            RulesActivity.launch(getActivity(), bundle);
375
-        } else if (view == binding.llBangfuzhongxin) {
376
-            Bundle bundle = new Bundle();
377
-            bundle.putString("nickname", mUserInfoModel.getNickname());
378
-            bundle.putString("phone", mUserInfoModel.getPhone());
379
-            bundle.putString("avatar", mUserInfoModel.getAvatar());
380
-            bundle.putString("member", mUserInfoModel.getUser_rich_type());
381
-
382
-            bundle.putString("annuity", binding.tvAnnuity.getText().toString());
383
-            bundle.putString("commission", binding.tvMyCommission.getText().toString());
384
-            bundle.putString("integral", binding.tvMyIntegral.getText().toString());
385
-            bundle.putString("red_integral", binding.tvRedIntegral.getText().toString());
386
-            bundle.putString("team_count", binding.tvTeamCount.getText().toString());
387
-            bundle.putBoolean("is_bangfu", mUserInfoModel.is_bangfu);
388
-            BangfuzhongxinActivity.launch(getActivity(), bundle);
389 288
         } else if (view == binding.llConnectUs) {
390 289
 
391 290
             String appId = "wxbf753066ac8686ba";
@@ -396,22 +295,24 @@ public class MineFragment extends BaseFragment implements View.OnClickListener {
396 295
                 req.url = "https://work.weixin.qq.com/kfid/kfc8bd3f11a28aa81db";
397 296
                 wxapi.sendReq(req);
398 297
             }
399
-        } else if (view == binding.ivMemberDaili) {
298
+        } /*else if (view == binding.ivMemberDaili) {
299
+            //暂时隐藏
400 300
             if (mUserInfoModel.getArea_manage() != null) {
401 301
                 List<String> area_name =
402 302
                         mUserInfoModel.getArea_manage().getArea_name();
403
-                if (!StringsUtil.isEmpty(area_name)){
303
+                if (!StringsUtil.isEmpty(area_name)) {
404 304
                     StringBuffer sb = new StringBuffer();
405 305
                     for (String s : area_name) {
406 306
                         sb.append(s);
407 307
                     }
408 308
                     CustomDialog.getAreaDailiDialog(getActivity()
409
-                            ,sb.toString()
410
-                            ,"city".equals(mUserInfoModel.getArea_manage_type()));
309
+                            , sb.toString()
310
+                            , "city".equals(mUserInfoModel.getArea_manage_type()));
411 311
                 }
412 312
             }
413
-        }
313
+        }*/
414 314
     }
315
+
415 316
     @Override
416 317
     public void onResume() {
417 318
         super.onResume();

+ 14 - 0
app/src/main/java/com/yihucha/hbyhc/presentation/mine/MyTeamActivity.kt

@@ -0,0 +1,14 @@
1
+package com.yihucha.hbyhc.presentation.mine
2
+
3
+import androidx.appcompat.app.AppCompatActivity
4
+import android.os.Bundle
5
+import com.yihucha.hbyhc.base.ViewBindingTitleBaseActivity
6
+import com.yihucha.hbyhc.databinding.ActivityMyTeamBinding
7
+
8
+class MyTeamActivity : ViewBindingTitleBaseActivity<ActivityMyTeamBinding>() {
9
+
10
+    override fun onCreate(savedInstanceState: Bundle?) {
11
+        super.onCreate(savedInstanceState)
12
+
13
+    }
14
+}

+ 194 - 0
app/src/main/java/com/yihucha/hbyhc/presentation/mine/model/TeamBean.java

@@ -0,0 +1,194 @@
1
+package com.yihucha.hbyhc.presentation.mine.model;
2
+
3
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
4
+import com.fasterxml.jackson.annotation.JsonProperty;
5
+
6
+import java.util.List;
7
+
8
+/**
9
+ * author : zhangbing
10
+ * time   : 2024/2/5 16:51
11
+ * com.yihucha.hbyhc.presentation.mine.model
12
+ */
13
+@JsonIgnoreProperties(ignoreUnknown = true)
14
+public class TeamBean {
15
+
16
+    @JsonProperty("direct_fans_num")
17
+    private Integer directFansNum;
18
+    @JsonProperty("fans_num")
19
+    private Integer fansNum;
20
+    @JsonProperty("team_list")
21
+    private TeamListDTO teamList;
22
+    @JsonProperty("effective_fans_num")
23
+    private Integer effectiveFansNum;
24
+
25
+    public Integer getDirectFansNum() {
26
+        return directFansNum;
27
+    }
28
+
29
+    public void setDirectFansNum(Integer directFansNum) {
30
+        this.directFansNum = directFansNum;
31
+    }
32
+
33
+    public Integer getFansNum() {
34
+        return fansNum;
35
+    }
36
+
37
+    public void setFansNum(Integer fansNum) {
38
+        this.fansNum = fansNum;
39
+    }
40
+
41
+    public TeamListDTO getTeamList() {
42
+        return teamList;
43
+    }
44
+
45
+    public void setTeamList(TeamListDTO teamList) {
46
+        this.teamList = teamList;
47
+    }
48
+
49
+    public Integer getEffectiveFansNum() {
50
+        return effectiveFansNum;
51
+    }
52
+
53
+    public void setEffectiveFansNum(Integer effectiveFansNum) {
54
+        this.effectiveFansNum = effectiveFansNum;
55
+    }
56
+
57
+    @JsonIgnoreProperties(ignoreUnknown = true)
58
+    public static class TeamListDTO {
59
+        @JsonProperty("total")
60
+        private Integer total;
61
+        @JsonProperty("per_page")
62
+        private Integer perPage;
63
+        @JsonProperty("current_page")
64
+        private Integer currentPage;
65
+        @JsonProperty("last_page")
66
+        private Integer lastPage;
67
+        @JsonProperty("data")
68
+        private List<DataDTO> data;
69
+
70
+        public Integer getTotal() {
71
+            return total;
72
+        }
73
+
74
+        public void setTotal(Integer total) {
75
+            this.total = total;
76
+        }
77
+
78
+        public Integer getPerPage() {
79
+            return perPage;
80
+        }
81
+
82
+        public void setPerPage(Integer perPage) {
83
+            this.perPage = perPage;
84
+        }
85
+
86
+        public Integer getCurrentPage() {
87
+            return currentPage;
88
+        }
89
+
90
+        public void setCurrentPage(Integer currentPage) {
91
+            this.currentPage = currentPage;
92
+        }
93
+
94
+        public Integer getLastPage() {
95
+            return lastPage;
96
+        }
97
+
98
+        public void setLastPage(Integer lastPage) {
99
+            this.lastPage = lastPage;
100
+        }
101
+
102
+        public List<DataDTO> getData() {
103
+            return data;
104
+        }
105
+
106
+        public void setData(List<DataDTO> data) {
107
+            this.data = data;
108
+        }
109
+
110
+        @JsonIgnoreProperties(ignoreUnknown = true)
111
+        public static class DataDTO {
112
+            @JsonProperty("uid")
113
+            private String uid;
114
+            @JsonProperty("nickname")
115
+            private String nickname;
116
+            @JsonProperty("phone")
117
+            private String phone;
118
+            @JsonProperty("avatar")
119
+            private String avatar;
120
+            @JsonProperty("create_time")
121
+            private String createTime;
122
+            @JsonProperty("identity")
123
+            private String identity;
124
+            @JsonProperty("level")
125
+            private String level;
126
+            @JsonProperty("partnership")
127
+            private String partnership;
128
+
129
+            public String getUid() {
130
+                return uid;
131
+            }
132
+
133
+            public void setUid(String uid) {
134
+                this.uid = uid;
135
+            }
136
+
137
+            public String getNickname() {
138
+                return nickname;
139
+            }
140
+
141
+            public void setNickname(String nickname) {
142
+                this.nickname = nickname;
143
+            }
144
+
145
+            public String getPhone() {
146
+                return phone;
147
+            }
148
+
149
+            public void setPhone(String phone) {
150
+                this.phone = phone;
151
+            }
152
+
153
+            public String getAvatar() {
154
+                return avatar;
155
+            }
156
+
157
+            public void setAvatar(String avatar) {
158
+                this.avatar = avatar;
159
+            }
160
+
161
+            public String getCreateTime() {
162
+                return createTime;
163
+            }
164
+
165
+            public void setCreateTime(String createTime) {
166
+                this.createTime = createTime;
167
+            }
168
+
169
+            public String getIdentity() {
170
+                return identity;
171
+            }
172
+
173
+            public void setIdentity(String identity) {
174
+                this.identity = identity;
175
+            }
176
+
177
+            public String getLevel() {
178
+                return level;
179
+            }
180
+
181
+            public void setLevel(String level) {
182
+                this.level = level;
183
+            }
184
+
185
+            public String getPartnership() {
186
+                return partnership;
187
+            }
188
+
189
+            public void setPartnership(String partnership) {
190
+                this.partnership = partnership;
191
+            }
192
+        }
193
+    }
194
+}

+ 21 - 0
app/src/main/java/com/yihucha/hbyhc/presentation/mine/model/TeamViewModel.kt

@@ -0,0 +1,21 @@
1
+package com.yihucha.hbyhc.presentation.mine.model
2
+
3
+import androidx.lifecycle.ViewModel
4
+
5
+/**
6
+ *  author : zhangbing
7
+ *  time   : 2024/2/5 17:30
8
+ *  com.yihucha.hbyhc.presentation.mine.model
9
+ */
10
+class TeamViewModel : ViewModel() {
11
+
12
+
13
+
14
+    /**
15
+     * 请求团队列表
16
+     */
17
+    fun requestTeamList(){
18
+
19
+
20
+    }
21
+}

+ 21 - 0
app/src/main/java/com/yihucha/hbyhc/presentation/mine/repository/UserRepository.java

@@ -21,6 +21,7 @@ import com.yihucha.hbyhc.presentation.mine.model.UpdateAccountBean;
21 21
 import com.yihucha.hbyhc.presentation.mine.model.UserAnnuityInfoBean;
22 22
 import com.yihucha.hbyhc.presentation.mine.model.UserInfoModel;
23 23
 import com.yihucha.hbyhc.presentation.mine.model.YanglaojinBean;
24
+import com.yihucha.hbyhc.presentation.mine.view_model.MineSpreadInfo;
24 25
 import com.yihucha.hbyhc.presentation.shopping.model.CollectBean;
25 26
 import com.yihucha.hbyhc.utils.LogUtil;
26 27
 import com.yihucha.hbyhc.utils.MVUtils;
@@ -57,6 +58,26 @@ public class UserRepository {
57 58
             }
58 59
         }));
59 60
     }
61
+    /**
62
+     * 我的信息
63
+     */
64
+    @SuppressWarnings("CheckResult")
65
+    public  static void getSpreadInfoYhc(final NormalListener<MineSpreadInfo> listener) {
66
+        UserService userService = NetworkApi.createService(UserService.class);
67
+        userService.getSpreadInfoYhc().compose(NetworkApi.applySchedulers(new BaseObserver<DataResponse<MineSpreadInfo>>() {
68
+            @Override
69
+            public void onSuccess(DataResponse<MineSpreadInfo> uesrInfoMpdelDataResponse) {
70
+                if (uesrInfoMpdelDataResponse.responseCode ==200){
71
+                    listener.success(uesrInfoMpdelDataResponse.getData());
72
+                }
73
+            }
74
+
75
+            @Override
76
+            public void onFailure(Throwable e) {
77
+            }
78
+        }));
79
+    }
80
+
60 81
 
61 82
     /**
62 83
      * 地址列表

+ 154 - 0
app/src/main/java/com/yihucha/hbyhc/presentation/mine/view_model/MineSpreadInfo.java

@@ -0,0 +1,154 @@
1
+package com.yihucha.hbyhc.presentation.mine.view_model;
2
+
3
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
4
+import com.fasterxml.jackson.annotation.JsonProperty;
5
+
6
+/**
7
+ * author : zhangbing
8
+ * time   : 2024/2/5 14:51
9
+ * com.yihucha.hbyhc.presentation.mine.view_model
10
+ */
11
+@JsonIgnoreProperties(ignoreUnknown = true)
12
+public class MineSpreadInfo {
13
+
14
+    @JsonProperty("current_balance")
15
+    private String currentBalance;
16
+    @JsonProperty("unsettled_balance")
17
+    private Integer unsettledBalance;
18
+    @JsonProperty("withdrawn_balance")
19
+    private String withdrawnBalance;
20
+    @JsonProperty("total_balance")
21
+    private String totalBalance;
22
+    @JsonProperty("identity")
23
+    private String identity;
24
+    @JsonProperty("level")
25
+    private String level;
26
+    @JsonProperty("partnership")
27
+    private String partnership;
28
+    @JsonProperty("green_integral")
29
+    private String greenIntegral;
30
+    @JsonProperty("green_integral_is")
31
+    private String greenIntegralIs;
32
+    @JsonProperty("nickname")
33
+    private String nickname;
34
+    @JsonProperty("avatar")
35
+    private String avatar;
36
+    @JsonProperty("fans_num")
37
+    private Integer fansNum;
38
+    @JsonProperty("ylj")
39
+    private String ylj;
40
+    @JsonProperty("yhc_withdrawal_money")
41
+    private Integer yhcWithdrawalMoney;
42
+
43
+    public String getCurrentBalance() {
44
+        return currentBalance;
45
+    }
46
+
47
+    public void setCurrentBalance(String currentBalance) {
48
+        this.currentBalance = currentBalance;
49
+    }
50
+
51
+    public Integer getUnsettledBalance() {
52
+        return unsettledBalance;
53
+    }
54
+
55
+    public void setUnsettledBalance(Integer unsettledBalance) {
56
+        this.unsettledBalance = unsettledBalance;
57
+    }
58
+
59
+    public String getWithdrawnBalance() {
60
+        return withdrawnBalance;
61
+    }
62
+
63
+    public void setWithdrawnBalance(String withdrawnBalance) {
64
+        this.withdrawnBalance = withdrawnBalance;
65
+    }
66
+
67
+    public String getTotalBalance() {
68
+        return totalBalance;
69
+    }
70
+
71
+    public void setTotalBalance(String totalBalance) {
72
+        this.totalBalance = totalBalance;
73
+    }
74
+
75
+    public String getIdentity() {
76
+        return identity;
77
+    }
78
+
79
+    public void setIdentity(String identity) {
80
+        this.identity = identity;
81
+    }
82
+
83
+    public String getLevel() {
84
+        return level;
85
+    }
86
+
87
+    public void setLevel(String level) {
88
+        this.level = level;
89
+    }
90
+
91
+    public String getPartnership() {
92
+        return partnership;
93
+    }
94
+
95
+    public void setPartnership(String partnership) {
96
+        this.partnership = partnership;
97
+    }
98
+
99
+    public String getGreenIntegral() {
100
+        return greenIntegral;
101
+    }
102
+
103
+    public void setGreenIntegral(String greenIntegral) {
104
+        this.greenIntegral = greenIntegral;
105
+    }
106
+
107
+    public String getGreenIntegralIs() {
108
+        return greenIntegralIs;
109
+    }
110
+
111
+    public void setGreenIntegralIs(String greenIntegralIs) {
112
+        this.greenIntegralIs = greenIntegralIs;
113
+    }
114
+
115
+    public String getNickname() {
116
+        return nickname;
117
+    }
118
+
119
+    public void setNickname(String nickname) {
120
+        this.nickname = nickname;
121
+    }
122
+
123
+    public String getAvatar() {
124
+        return avatar;
125
+    }
126
+
127
+    public void setAvatar(String avatar) {
128
+        this.avatar = avatar;
129
+    }
130
+
131
+    public Integer getFansNum() {
132
+        return fansNum;
133
+    }
134
+
135
+    public void setFansNum(Integer fansNum) {
136
+        this.fansNum = fansNum;
137
+    }
138
+
139
+    public String getYlj() {
140
+        return ylj;
141
+    }
142
+
143
+    public void setYlj(String ylj) {
144
+        this.ylj = ylj;
145
+    }
146
+
147
+    public Integer getYhcWithdrawalMoney() {
148
+        return yhcWithdrawalMoney;
149
+    }
150
+
151
+    public void setYhcWithdrawalMoney(Integer yhcWithdrawalMoney) {
152
+        this.yhcWithdrawalMoney = yhcWithdrawalMoney;
153
+    }
154
+}

+ 25 - 9
app/src/main/java/com/yihucha/hbyhc/presentation/mine/view_model/MineViewModel.java

@@ -52,6 +52,7 @@ import io.reactivex.Observer;
52 52
 public class MineViewModel extends BaseViewModel {
53 53
     private static final String TAG = MineViewModel.class.getSimpleName();
54 54
     public MutableLiveData<UserInfoModel> userModel = new MutableLiveData<>();//用户资料
55
+    public MutableLiveData<MineSpreadInfo> spreadInfo = new MutableLiveData<>();//用户资料
55 56
     public MutableLiveData<OrderQuantityBean> orderQuantityData = new MutableLiveData<>();//订单统计
56 57
     public MutableLiveData<YanglaojinBean> yanglaojinBeanMutableLiveData = new MutableLiveData<>();//养老金
57 58
     public MutableLiveData<UserAnnuityInfoBean> userAnnuityInfoBeanMutableLiveData = new MutableLiveData<>();//养老金信息
@@ -104,6 +105,20 @@ public class MineViewModel extends BaseViewModel {
104 105
         });
105 106
     }
106 107
 
108
+    public void getSpreadInfoYhc() {
109
+        UserRepository.getSpreadInfoYhc(new NormalListener<MineSpreadInfo>() {
110
+            @Override
111
+            public void success(MineSpreadInfo mineSpreadInfo) {
112
+                spreadInfo.postValue(mineSpreadInfo);
113
+            }
114
+
115
+            @Override
116
+            public void fail(String s) {
117
+
118
+            }
119
+        });
120
+    }
121
+
107 122
     /**
108 123
      * 订单统计
109 124
      */
@@ -150,26 +165,27 @@ public class MineViewModel extends BaseViewModel {
150 165
      * 养老金列表
151 166
      */
152 167
     @SuppressLint("CheckResult")
153
-    public void getYanglaoList(int page,String sorce,String month,int status) {
168
+    public void getYanglaoList(int page, String sorce, String month, int status) {
154 169
         Map<String, Object> map = new HashMap<>();
155
-        map.put("page",page);
156
-        map.put("limit",10);
157
-        map.put("sorce",sorce);
158
-        map.put("month",month);
159
-        map.put("status",status);
170
+        map.put("page", page);
171
+        map.put("limit", 10);
172
+        map.put("sorce", sorce);
173
+        map.put("month", month);
174
+        map.put("status", status);
160 175
         UserService service = NetworkApi.createService(UserService.class);
161 176
         service.getYanglaoList(map).compose(NetworkApi.applySchedulers(new BaseObserver<DataResponse<AnnuityRecordsBean>>() {
162 177
             @Override
163 178
             public void onSuccess(DataResponse<AnnuityRecordsBean> response) {
164
-                if (response.responseCode==200) {
179
+                if (response.responseCode == 200) {
165 180
                     annuityRecordsList.postValue(response.getData());
166
-                }else {
181
+                } else {
167 182
                     failed.postValue(response.responseError);
168 183
                 }
169 184
             }
185
+
170 186
             @Override
171 187
             public void onFailure(Throwable e) {
172
-                LogUtil.LogError(TAG,e.getMessage());
188
+                LogUtil.LogError(TAG, e.getMessage());
173 189
             }
174 190
         }));
175 191
     }

+ 112 - 54
app/src/main/java/com/yihucha/hbyhc/presentation/order/ApplicationForDrawbackActivity.java

@@ -22,11 +22,15 @@ import com.yihucha.hbyhc.R;
22 22
 import com.yihucha.hbyhc.base.ViewBindingTitleBaseActivity;
23 23
 import com.yihucha.hbyhc.callback.TwoButtonsListener;
24 24
 import com.yihucha.hbyhc.databinding.ActivityApplicationForDrawbackBinding;
25
+import com.yihucha.hbyhc.network.request_bean.CartIdRequest;
25 26
 import com.yihucha.hbyhc.network.request_bean.RefundApplyRequest;
27
+import com.yihucha.hbyhc.presentation.mine.MyAddressActivity;
28
+import com.yihucha.hbyhc.presentation.mine.model.AddressListBean;
26 29
 import com.yihucha.hbyhc.presentation.mine.model.PathBean;
27 30
 import com.yihucha.hbyhc.presentation.order.adapter.EvaluatePhotosAdapter;
28 31
 import com.yihucha.hbyhc.presentation.order.model.OrderListBean;
29 32
 import com.yihucha.hbyhc.presentation.order.view_model.ApplicationForDrawbackViewModel;
33
+import com.yihucha.hbyhc.presentation.order.view_model.OrderViewModel;
30 34
 import com.yihucha.hbyhc.utils.GridSpacingItemDecoration;
31 35
 import com.yihucha.hbyhc.utils.ImageEngineUtils.GlideEngine;
32 36
 import com.yihucha.hbyhc.utils.LogUtil;
@@ -39,6 +43,10 @@ import com.zs.easy.imgcompress.EasyImgCompress;
39 43
 import com.zs.easy.imgcompress.listener.OnCompressSinglePicListener;
40 44
 import com.zs.easy.imgcompress.util.GBMBKBUtil;
41 45
 
46
+import org.greenrobot.eventbus.EventBus;
47
+import org.greenrobot.eventbus.Subscribe;
48
+import org.greenrobot.eventbus.ThreadMode;
49
+
42 50
 import java.io.File;
43 51
 import java.util.ArrayList;
44 52
 import java.util.List;
@@ -71,21 +79,30 @@ public class ApplicationForDrawbackActivity extends ViewBindingTitleBaseActivity
71 79
     private ArrayList<Photo> mSelectedPhotos = new ArrayList<>();//用户上一次勾选过的图片集合,ArrayList<Photo>类型
72 80
 
73 81
     private ApplicationForDrawbackViewModel mApplicationForDrawbackViewModel;
82
+    private OrderViewModel orderViewModel;
74 83
 
75 84
     private ApplicationTypeDialog applicationTypeDialog;
85
+    private List<AddressListBean.AddressList> addressListData;
76 86
 
77 87
     @Override
78 88
     protected void onCreate(Bundle savedInstanceState) {
79 89
         super.onCreate(savedInstanceState);
80 90
         mApplicationForDrawbackViewModel = new ViewModelProvider(this).get(ApplicationForDrawbackViewModel.class);
91
+        orderViewModel = new ViewModelProvider(this).get(OrderViewModel.class);
81 92
         orderBean = (OrderListBean.ListBean) getIntent().getSerializableExtra(INTENT_ORDER_BEAN);
82 93
         refundType = getIntent().getStringExtra(INTENT_REFUND_TYPE);
94
+        EventBus.getDefault().register(this);
83 95
         initView();
84 96
         initClick();
85 97
         initData();
86 98
     }
87 99
 
88 100
     private void initData() {
101
+        if ("3".equals(refundType)) {
102
+            mViewBinding.tvAddress.setText(orderBean.getUser_address());
103
+            mViewBinding.tvUserInfo.setText(orderBean.getReal_name()
104
+                    + "\t" + StringsUtil.encodeTel(orderBean.getUser_phone()));
105
+        }
89 106
         mApplicationForDrawbackViewModel.pathData.observe(this, pathBeans -> {
90 107
             pics.clear();
91 108
             LogUtil.LogInfo("pics1", pics.size() + "");
@@ -110,14 +127,18 @@ public class ApplicationForDrawbackActivity extends ViewBindingTitleBaseActivity
110 127
             evaluatePhotosAdapter.notifyDataSetChanged();
111 128
         });
112 129
 
130
+
131
+
113 132
         /**
114 133
          * 退款申请成功
115 134
          */
116 135
         mApplicationForDrawbackViewModel.mRefundOrderId.observe(this, s -> {
117 136
             if (refundType.equals("1")) {
118 137
                 ToastUtils.showLong("退款申请成功");
119
-            }else {
138
+            } else if ("2".equals(refundType)) {
120 139
                 ToastUtils.showLong("退货退款申请成功");
140
+            } else {
141
+                ToastUtils.showLong("申请换货成功");
121 142
             }
122 143
             AfterSalesOrderDateilsActivity.launch(context, s);
123 144
         });
@@ -139,6 +160,7 @@ public class ApplicationForDrawbackActivity extends ViewBindingTitleBaseActivity
139 160
         mViewBinding.llARefundReason.setOnClickListener(this);
140 161
         mViewBinding.llAddPhotos.setOnClickListener(this);
141 162
         mViewBinding.tvSave.setOnClickListener(this);
163
+        mViewBinding.llAfterSaleAddress.setOnClickListener(this);
142 164
 //        mViewBinding.llApplicationType.setOnClickListener(this);
143 165
     }
144 166
 
@@ -167,7 +189,7 @@ public class ApplicationForDrawbackActivity extends ViewBindingTitleBaseActivity
167 189
         }
168 190
         if (!StringsUtil.isEmpty(orderBean.getDelivery_type())) {
169 191
             mViewBinding.btvMoney.setText(orderBean.getTotal_price());
170
-        }else {
192
+        } else {
171 193
             mViewBinding.btvMoney.setText(orderBean.getPay_price());
172 194
         }
173 195
 
@@ -181,7 +203,18 @@ public class ApplicationForDrawbackActivity extends ViewBindingTitleBaseActivity
181 203
             mViewBinding.imgvRight.setVisibility(View.INVISIBLE);
182 204
             mViewBinding.llApplicationType.setClickable(false);
183 205
         } else {
184
-            mViewBinding.tvApplicationType.setText(R.string.i_d_like_a_refund);
206
+            if (refundType.equals("2")) {
207
+                mViewBinding.tvApplicationType.setText(R.string.i_d_like_a_refund);
208
+                mViewBinding.tvNameReason.setText("退款原因");
209
+            } else {
210
+                mViewBinding.tvApplicationType.setText(R.string.i_d_like_to_exchange_this);
211
+                mViewBinding.tvNameReason.setText("申请原因");
212
+                mViewBinding.llStateOfGoods.setVisibility(View.GONE);
213
+                mViewBinding.llAfterSaleMoney.setVisibility(View.GONE);
214
+                mViewBinding.viewLineStateGoods.setVisibility(View.GONE);
215
+                mViewBinding.llAfterSaleAddress.setVisibility(View.VISIBLE);
216
+            }
217
+
185 218
             mViewBinding.tvStateGoods.setText("已收到货");
186 219
             mViewBinding.imgvRightState.setVisibility(View.INVISIBLE);
187 220
             mViewBinding.imgvRight.setVisibility(View.INVISIBLE);
@@ -189,13 +222,38 @@ public class ApplicationForDrawbackActivity extends ViewBindingTitleBaseActivity
189 222
             mViewBinding.llApplicationType.setClickable(false);
190 223
             mStateGoods = "2";
191 224
         }
192
-        mViewBinding.main.post(() -> setTitle(refundType.equals("1") ? "申请退款" : "申请退货退款"));
225
+        mViewBinding.main.post(() -> {
226
+            String str = "";
227
+            if (refundType.equals("1")) {
228
+                str = "申请退款";
229
+            } else if (refundType.equals("2")) {
230
+                str = "申请退货退款";
231
+            } else {
232
+                str = "我要换货";
233
+            }
234
+            setTitle(str);
235
+        });
236
+    }
237
+
238
+
239
+    @Subscribe(threadMode = ThreadMode.MAIN)
240
+    public void Event(AddressListBean.AddressList addressList) {
241
+        String dizhi = addressList.getProvince() +
242
+                addressList.getCity() + addressList.getDistrict() +
243
+                addressList.getDetail();
244
+        mViewBinding.tvAddress.setText(dizhi);
245
+        mViewBinding.tvUserInfo.setText(addressList.getReal_name()
246
+                + "\t" + StringsUtil.encodeTel(addressList.getPhone()));
193 247
     }
194 248
 
249
+
195 250
     @Override
196 251
     public void onClick(View v) {
197 252
         super.onClick(v);
198
-        if (v == mViewBinding.llStateOfGoods) {
253
+        if (v == mViewBinding.llAfterSaleAddress) {
254
+            //选择收货地址
255
+            MyAddressActivity.launch(context, "1");
256
+        } else if (v == mViewBinding.llStateOfGoods) {
199 257
             showStateGoodsDialogs();
200 258
         } else if (v == mViewBinding.llARefundReason) {
201 259
             showARefundReasonDialogs();
@@ -204,6 +262,7 @@ public class ApplicationForDrawbackActivity extends ViewBindingTitleBaseActivity
204 262
         } else if (v == mViewBinding.llApplicationType) {
205 263
             showApplicationTypeDialogs();
206 264
         } else if (v == mViewBinding.tvSave) {
265
+            //TODO 换货的接口是什么?
207 266
             isSubmit();
208 267
             CustomDialog.defaultDialog(context, R.string.warm_prompt, "您确定继续退款吗?", R.string.cancel, R.string.affirm, new TwoButtonsListener() {
209 268
                 @Override
@@ -214,7 +273,6 @@ public class ApplicationForDrawbackActivity extends ViewBindingTitleBaseActivity
214 273
                 @Override
215 274
                 public void rightButton() {
216 275
                     //确认
217
-                    //todo::需要测试两件商品的
218 276
                     RefundApplyRequest request = new RefundApplyRequest();
219 277
                     if (orderBean.getOrderProduct().size() > 1) {
220 278
                         StringBuilder sb = new StringBuilder();
@@ -235,7 +293,7 @@ public class ApplicationForDrawbackActivity extends ViewBindingTitleBaseActivity
235 293
                     request.setPhone(orderBean.getUser_phone());
236 294
                     request.setRefund_message(refundReason);
237 295
                     request.setRefund_price(orderBean.getTotal_price());
238
-                    request.setRefund_type(refundType);
296
+                    request.setRefund_type(refundType); //售后类型
239 297
                     request.setGoods(mViewBinding.tvStateGoods.getText().toString().trim());
240 298
                     if (pics.size() > 0) {
241 299
                         List<String> picture = new ArrayList<>();
@@ -346,52 +404,52 @@ public class ApplicationForDrawbackActivity extends ViewBindingTitleBaseActivity
346 404
                         .setCount(4)
347 405
                         .setSelectedPhotos(mSelectedPhotos)
348 406
                         .start(new SelectCallback() {
349
-                    @Override
350
-                    public void onResult(ArrayList<Photo> photos, boolean isOriginal) {
351
-                        mSelectedPhotos.clear();
352
-                        mSelectedPhotos.addAll(photos);
353
-                        pics.clear();
354
-                        mApplicationForDrawbackViewModel.listPath.clear();
355
-                        for (int i = 0; i < mSelectedPhotos.size(); i++) {
356
-                            String pathName = mSelectedPhotos.get(i).path;
357
-                            //压缩图片
358
-                            EasyImgCompress.withSinglePic(context, mSelectedPhotos.get(i).path)
359
-                                    .maxPx(1200)
360
-                                    .maxSize(100)
361
-                                    .enableLog(true)
362
-                                    .setOnCompressSinglePicListener(new OnCompressSinglePicListener() {
363
-                                        @Override
364
-                                        public void onStart() {
365
-                                            Log.i("EasyImgCompress", "onStart");
366
-                                        }
367
-
368
-                                        @Override
369
-                                        public void onSuccess(File file) {
370
-                                            Log.i("EasyImgCompress", "onSuccess size = " + GBMBKBUtil.getSize(file.length()) + " getAbsolutePath= " + file.getAbsolutePath());
371
-                                            LogUtil.LogInfo("qmz11", file.length() / 1024 + "k");
372
-                                            RequestBody imageBody = RequestBody.create(MediaType.parse("multipart/form-data"), file);
373
-                                            MultipartBody.Part imageBodyPart = MultipartBody.Part.createFormData("field", file.getName(), imageBody);
374
-
375
-
376
-                                            mApplicationForDrawbackViewModel.uploadPictures(imageBodyPart, pathName);
377
-
378
-                                        }
379
-
380
-                                        @Override
381
-                                        public void onError(String error) {
382
-                                            Log.e("EasyImgCompress", "onError error = " + error);
383
-                                        }
384
-                                    }).start();
407
+                            @Override
408
+                            public void onResult(ArrayList<Photo> photos, boolean isOriginal) {
409
+                                mSelectedPhotos.clear();
410
+                                mSelectedPhotos.addAll(photos);
411
+                                pics.clear();
412
+                                mApplicationForDrawbackViewModel.listPath.clear();
413
+                                for (int i = 0; i < mSelectedPhotos.size(); i++) {
414
+                                    String pathName = mSelectedPhotos.get(i).path;
415
+                                    //压缩图片
416
+                                    EasyImgCompress.withSinglePic(context, mSelectedPhotos.get(i).path)
417
+                                            .maxPx(1200)
418
+                                            .maxSize(100)
419
+                                            .enableLog(true)
420
+                                            .setOnCompressSinglePicListener(new OnCompressSinglePicListener() {
421
+                                                @Override
422
+                                                public void onStart() {
423
+                                                    Log.i("EasyImgCompress", "onStart");
424
+                                                }
385 425
 
386
-                        }
426
+                                                @Override
427
+                                                public void onSuccess(File file) {
428
+                                                    Log.i("EasyImgCompress", "onSuccess size = " + GBMBKBUtil.getSize(file.length()) + " getAbsolutePath= " + file.getAbsolutePath());
429
+                                                    LogUtil.LogInfo("qmz11", file.length() / 1024 + "k");
430
+                                                    RequestBody imageBody = RequestBody.create(MediaType.parse("multipart/form-data"), file);
431
+                                                    MultipartBody.Part imageBodyPart = MultipartBody.Part.createFormData("field", file.getName(), imageBody);
387 432
 
388
-                    }
389 433
 
390
-                    @Override
391
-                    public void onCancel() {
434
+                                                    mApplicationForDrawbackViewModel.uploadPictures(imageBodyPart, pathName);
392 435
 
393
-                    }
394
-                });
436
+                                                }
437
+
438
+                                                @Override
439
+                                                public void onError(String error) {
440
+                                                    Log.e("EasyImgCompress", "onError error = " + error);
441
+                                                }
442
+                                            }).start();
443
+
444
+                                }
445
+
446
+                            }
447
+
448
+                            @Override
449
+                            public void onCancel() {
450
+
451
+                            }
452
+                        });
395 453
             }
396 454
         });
397 455
     }
@@ -460,12 +518,12 @@ public class ApplicationForDrawbackActivity extends ViewBindingTitleBaseActivity
460 518
             ToastUtils.showLong("请选择退款原因");
461 519
             return;
462 520
         }
463
-       /* if (TextUtils.isEmpty(mViewBinding.etMark.getText().toString())) {
464
-            ToastUtils.showLong("请填写补充描述和凭证");
465
-            return;
466
-        }*/
521
+    }
467 522
 
468
-//        mViewBinding.tvSave.setEnabled(true);
523
+    @Override
524
+    protected void onDestroy() {
525
+        super.onDestroy();
526
+        EventBus.getDefault().unregister(this);
469 527
     }
470 528
 
471 529
     public static void launch(Context context, OrderListBean.ListBean bean, String refund_type) {

+ 3 - 0
app/src/main/java/com/yihucha/hbyhc/presentation/order/ApplyForRefundOptionPageActivity.java

@@ -37,6 +37,7 @@ public class ApplyForRefundOptionPageActivity  extends ViewBindingTitleBaseActiv
37 37
     private void initClick() {
38 38
         mViewBinding.llApplicationForDrawback.setOnClickListener(this);
39 39
         mViewBinding.llRefundAndReturnTheProduct.setOnClickListener(this);
40
+        mViewBinding.llExchangeProducts.setOnClickListener(this);
40 41
     }
41 42
 
42 43
     private void initView() {
@@ -58,6 +59,8 @@ public class ApplyForRefundOptionPageActivity  extends ViewBindingTitleBaseActiv
58 59
             ApplicationForDrawbackActivity.launch(context,orderBean,"1");
59 60
         }else if (v ==mViewBinding.llRefundAndReturnTheProduct){
60 61
             ApplicationForDrawbackActivity.launch(context,orderBean,"2");
62
+        }else if (v == mViewBinding.llExchangeProducts){
63
+            ApplicationForDrawbackActivity.launch(context,orderBean,"3");
61 64
         }
62 65
     }
63 66
 

+ 10 - 10
app/src/main/java/com/yihucha/hbyhc/presentation/order/SubmitOrderActivity.java

@@ -31,6 +31,7 @@ import com.yihucha.hbyhc.utils.DoubleFormatTool;
31 31
 import com.yihucha.hbyhc.utils.LogUtil;
32 32
 import com.yihucha.hbyhc.utils.NumberUtil;
33 33
 import com.yihucha.hbyhc.utils.StringsUtil;
34
+import com.yihucha.hbyhc.view.CustomDialog;
34 35
 import com.yihucha.hbyhc.view.RemarkDialog;
35 36
 
36 37
 import org.greenrobot.eventbus.EventBus;
@@ -138,6 +139,11 @@ public class SubmitOrderActivity extends ViewBindingTitleBaseActivity<ActivitySu
138 139
                 mDcListDialog.showAtLocation(SubmitOrderActivity.this.findViewById(R.id.main),
139 140
                         Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, 0, 0); //设置layout在PopupWindow中显示的位置*/
140 141
             }
142
+
143
+            @Override
144
+            public void onWenHaoClick() {
145
+                CustomDialog.getGreenIntegralDialog(SubmitOrderActivity.this);
146
+            }
141 147
         });
142 148
         mViewBinding.tvSubmitOrder.setOnClickListener(this);
143 149
         mViewBinding.llNoAddress.setOnClickListener(this);
@@ -158,19 +164,13 @@ public class SubmitOrderActivity extends ViewBindingTitleBaseActivity<ActivitySu
158 164
             totalPrice += Double.parseDouble(orderDataList.get(i).getOrder().getPostagePrice());
159 165
         }*/
160 166
         totalPrice += Double.parseDouble(orderBean == null ? "0.00" : orderBean.getOrderPrice());
161
-        mViewBinding.tvTotalPrice.setText(StringsUtil.getNumber(DoubleFormatTool.getRoundHalfUpDouble(totalPrice)+"") + "");
167
+        mViewBinding.tvTotalPrice.setText(StringsUtil.getNumber(DoubleFormatTool.getRoundHalfUpDouble(totalPrice) + "") + "");
162 168
     }
163 169
 
164 170
     private void initData() {
165 171
         //获取是否大仓会员
166 172
         orderViewModel.getUserInfo();
167
-        orderViewModel.userModel.observe(this, new Observer<UserInfoModel>() {
168
-            @Override
169
-            public void onChanged(UserInfoModel uesrInfoModel) {
170
-                is_da_cang_vip = uesrInfoModel.getIs_da_cang_vip();
171
-
172
-            }
173
-        });
173
+        orderViewModel.userModel.observe(this, uesrInfoModel -> is_da_cang_vip = uesrInfoModel.getIs_da_cang_vip());
174 174
 
175 175
         //如果是大仓进入,请求大仓列表
176 176
         if (flag.equals("2")) {
@@ -249,7 +249,7 @@ public class SubmitOrderActivity extends ViewBindingTitleBaseActivity<ActivitySu
249 249
                    */
250 250
                     totalPrice += Double.parseDouble(orderBean == null ? "0.00" : orderBean.getOrderPrice());
251 251
                     //积分兑换金额==商品金额*30
252
-                    mViewBinding.tvTotalPrice.setText(StringsUtil.getNumber(NumberUtil.multiply(totalPrice+"", "30")));
252
+                    mViewBinding.tvTotalPrice.setText(StringsUtil.getNumber(NumberUtil.multiply(totalPrice + "", "30")));
253 253
                 } else if ("7".equals(special_type) && "beishengtang".equals(special_merchant)) {
254 254
                     mViewBinding.tvAmountPayable.setVisibility(View.GONE);
255 255
                     mViewBinding.tvJifen.setVisibility(View.VISIBLE);
@@ -342,7 +342,7 @@ public class SubmitOrderActivity extends ViewBindingTitleBaseActivity<ActivitySu
342 342
                 ToastUtils.showLong("请选择地址");
343 343
                 return;
344 344
             }
345
-            if (StringsUtil.isEmpty(mMerId)){
345
+            if (StringsUtil.isEmpty(mMerId)) {
346 346
                 return;
347 347
             }
348 348
             List<String> cartId = new ArrayList<>();

+ 20 - 5
app/src/main/java/com/yihucha/hbyhc/presentation/order/adapter/OrderShopAdapter.java

@@ -1,5 +1,6 @@
1 1
 package com.yihucha.hbyhc.presentation.order.adapter;
2 2
 
3
+import android.annotation.SuppressLint;
3 4
 import android.content.Context;
4 5
 import android.text.TextUtils;
5 6
 import android.view.View;
@@ -42,6 +43,7 @@ public class OrderShopAdapter extends BaseQuickAdapter<OrderCheckBean.DataDTO.Or
42 43
         this.isMember = isMember;
43 44
     }
44 45
 
46
+    @SuppressLint("SetTextI18n")
45 47
     @Override
46 48
     protected void convert(@NonNull BaseViewHolder holder, OrderCheckBean.DataDTO.OrderDTOX orderData) {
47 49
         ImageView ivShopLogo = holder.getView(R.id.iv_shop_logo);
@@ -85,20 +87,29 @@ public class OrderShopAdapter extends BaseQuickAdapter<OrderCheckBean.DataDTO.Or
85 87
             }
86 88
         });
87 89
         TextView tvYhj = holder.getView(R.id.tv_yhq);
90
+        TextView tvSjj = holder.getView(R.id.tv_sjj);
91
+        //TODO 不知道从哪里获取参数来赋值(绿积分数据)
92
+        TextView tvHjf = holder.getView(R.id.tv_hjf);
93
+        //绿积分使用说明
94
+        holder.getView(R.id.imgv_wh).setOnClickListener(v -> {
95
+            if (mClickListener != null) {
96
+                mClickListener.onWenHaoClick();
97
+            }
98
+        });
88 99
         List<?> coupon = orderData.getCoupon();
89 100
         if (coupon != null || coupon.size() == 0) {
90
-            tvYhj.setText("暂无可用优惠券");
101
+            tvYhj.setText("无可用");
91 102
         } else {
92 103
             tvYhj.setText("请选择优惠券");
93 104
         }
94
-        if (!StringsUtil.isEmpty(orderData.getOrder().getYouhui_price()) && !"0".equals(orderData.getOrder().getYouhui_price()))
95
-            tvYhj.setText(orderData.getOrder().getYouhui_price());
105
+        if (!StringsUtil.isEmpty(orderData.getOrder().getYouhui_price()))
106
+            tvSjj.setText(orderData.getOrder().getYouhui_price());
96 107
         TextView tvYf = holder.getView(R.id.tv_yf);
97 108
         String postagePrice = orderData.getOrder().getPostagePrice();
98 109
         if (Double.parseDouble(postagePrice) > 0) {
99
-            tvYf.setText(Double.parseDouble(postagePrice) + "");
110
+            tvYf.setText("¥"+Double.parseDouble(postagePrice));
100 111
         } else {
101
-            tvYf.setText("免运费");
112
+            tvYf.setText("包邮");
102 113
         }
103 114
     }
104 115
 
@@ -112,6 +123,10 @@ public class OrderShopAdapter extends BaseQuickAdapter<OrderCheckBean.DataDTO.Or
112 123
 
113 124
         //选择大仓
114 125
         void onItemlChooseABigWarehouseClick(int position);
126
+
127
+        default void onWenHaoClick(){
128
+
129
+        }
115 130
     }
116 131
 
117 132
     public void setOnClickListener(OnClickListener listener) {

+ 10 - 0
app/src/main/java/com/yihucha/hbyhc/presentation/order/model/OrderCheckBean.java

@@ -43,6 +43,8 @@ public class OrderCheckBean {
43 43
 
44 44
     @JsonIgnoreProperties(ignoreUnknown = true)
45 45
     public static class DataDTO {
46
+        @JsonProperty("youhui_price")
47
+        private String youHuiPrice;
46 48
         @JsonProperty("order_price")
47 49
         private String order_price;
48 50
         @JsonProperty("total_price")
@@ -56,6 +58,14 @@ public class OrderCheckBean {
56 58
         @JsonProperty("order")
57 59
         private List<OrderDTOX> order;
58 60
 
61
+        public String getYouHuiPrice() {
62
+            return youHuiPrice;
63
+        }
64
+
65
+        public void setYouHuiPrice(String youHuiPrice) {
66
+            this.youHuiPrice = youHuiPrice;
67
+        }
68
+
59 69
         public String getOrderPrice() {
60 70
             return order_price;
61 71
         }

+ 42 - 55
app/src/main/java/com/yihucha/hbyhc/presentation/product/ProductDetailsActivity.java

@@ -10,6 +10,7 @@ import android.content.Context;
10 10
 import android.content.Intent;
11 11
 import android.content.pm.PackageManager;
12 12
 import android.graphics.Bitmap;
13
+import android.graphics.drawable.Drawable;
13 14
 import android.net.Uri;
14 15
 import android.os.Build;
15 16
 import android.os.Bundle;
@@ -239,24 +240,16 @@ public class ProductDetailsActivity extends ViewBindingBaseActivity<ActivityProd
239 240
                 Log.i("productDetailsBean", JSON.toJSONString(productDetailsBean));
240 241
                 productDetailsData = productDetailsBean;
241 242
                 isRelation = productDetailsBean.isRelation();
242
-                if (isRelation) {
243
-                    mViewBinding.ivCollect.setImageResource(R.mipmap.wjx_select);
244
-                    mViewBinding.ivCollect.setVisibility(View.VISIBLE);
245
-                    mViewBinding.ivCollect1.setImageResource(R.mipmap.shoucang_220908);
246
-                } else {
247
-                    mViewBinding.ivCollect.setImageResource(R.mipmap.wjx_unselect);
248
-                    mViewBinding.ivCollect.setVisibility(View.VISIBLE);
249
-                    mViewBinding.ivCollect1.setImageResource(R.mipmap.product_collect_220619);
250
-                }
243
+                setCollect(isRelation);
251 244
                 if (!TextUtils.isEmpty(productDetailsData.getStore_info())) {
252 245
                     mViewBinding.llStoreInfo.setVisibility(View.VISIBLE);
253 246
                     mViewBinding.tvStoreInfo.setText(productDetailsData.getStore_info());
254
-                    if (mViewBinding.tvStoreInfo.getLineCount() > 2) {
247
+                    /*if (mViewBinding.tvStoreInfo.getLineCount() > 2) {
255 248
                         mViewBinding.tvStoreInfo.setMaxLines(2);
256 249
                         mViewBinding.tvOpen.setVisibility(View.VISIBLE);
257 250
                     } else {
258 251
                         mViewBinding.tvOpen.setVisibility(View.GONE);
259
-                    }
252
+                    }*/
260 253
                 } else {
261 254
                     mViewBinding.llStoreInfo.setVisibility(View.GONE);
262 255
                     mViewBinding.tvOpen.setVisibility(View.GONE);
@@ -290,8 +283,7 @@ public class ProductDetailsActivity extends ViewBindingBaseActivity<ActivityProd
290 283
                     mViewBinding.tvBuyNow.setText("立即抢购");
291 284
                     mViewBinding.llShop.setVisibility(View.GONE);
292 285
                     mViewBinding.llShopMsg.setVisibility(View.GONE);
293
-                    mViewBinding.ivCollect1.setVisibility(View.GONE);
294
-                    mViewBinding.ivCollect.setVisibility(View.GONE);
286
+                    mViewBinding.tvCollect.setVisibility(View.GONE);
295 287
                 } else {
296 288
                     mViewBinding.tvYanglaojin.setText("养老金 ¥" + productDetailsBean.getYanglao());//养老金
297 289
                     if (productDetailsBean.getSeckill().equals("0")) {
@@ -315,13 +307,17 @@ public class ProductDetailsActivity extends ViewBindingBaseActivity<ActivityProd
315 307
                         if ("1".equals(productDetailsBean.getSeckill_s())) {
316 308
                             handler.sendEmptyMessageDelayed(0, 1000);
317 309
 
310
+                        }else if ("2".equals(productDetailsBean.getSeckill_s())){
311
+                            //TODO 需要结合接口调试数据
312
+                            mViewBinding.tvIsOver.setText("11点开枪");
318 313
                         }
319 314
                         mViewBinding.tvOtPrice.setText("¥" + StringsUtil.getAllNumber(productDetailsBean.getOt_price()));//原价
320 315
                         mViewBinding.llTopPrice.setVisibility(View.GONE);
321 316
                         mViewBinding.llSeckill.setVisibility(View.VISIBLE);
322 317
                         mViewBinding.tvBuyNow.setText("立即抢购");
323 318
                         mViewBinding.tvPrices.setText(StringsUtil.getNumber(productDetailsBean.getDc_price()));//价格
324
-
319
+                        mViewBinding.tvCollect.setVisibility(View.GONE);
320
+                        mViewBinding.tvCollect1.setVisibility(View.GONE);
325 321
                     }
326 322
                     String type1 = productDetailsBean.getType();
327 323
                     switch (type1) {
@@ -390,12 +386,6 @@ public class ProductDetailsActivity extends ViewBindingBaseActivity<ActivityProd
390 386
 //                Log.i("qqqqq",s);
391 387
             }
392 388
         });
393
-//        skuDialog.skuSelectedStr.observe(this, new Observer<String>() {
394
-//            @Override
395
-//            public void onChanged(String s) {
396
-//            mViewBinding.tvSkuSelectedName.setText(s);
397
-//            }
398
-//        });
399 389
 
400 390
         productDetailsViewModel.productShareBeanMutableLiveData.observe(this, new Observer<ProductShareBean>() {
401 391
             @Override
@@ -441,9 +431,7 @@ public class ProductDetailsActivity extends ViewBindingBaseActivity<ActivityProd
441 431
         productDetailsViewModel.mRelation.observe(this, new Observer<String>() {
442 432
             @Override
443 433
             public void onChanged(String s) {
444
-                mViewBinding.ivCollect.setImageResource(R.mipmap.wjx_select);
445
-                mViewBinding.ivCollect.setVisibility(View.VISIBLE);
446
-                mViewBinding.ivCollect1.setImageResource(R.mipmap.shoucang_220908);
434
+                setCollect(true);
447 435
                 isRelation = true;
448 436
             }
449 437
         });
@@ -451,22 +439,33 @@ public class ProductDetailsActivity extends ViewBindingBaseActivity<ActivityProd
451 439
         productDetailsViewModel.deleteAttentionStatus.observe(this, new Observer<Integer>() {
452 440
             @Override
453 441
             public void onChanged(Integer integer) {
454
-                mViewBinding.ivCollect.setImageResource(R.mipmap.wjx_unselect);
455
-                mViewBinding.ivCollect.setVisibility(View.VISIBLE);
456
-                mViewBinding.ivCollect1.setImageResource(R.mipmap.product_collect_220619);
442
+                setCollect(false);
457 443
                 isRelation = false;
458 444
             }
459 445
         });
446
+    }
460 447
 
461
-        /**
462
-         * 创建订单
463
-         */
464
-//        productDetailsViewModel.mCreateAnnualOrderData.observe(this, new Observer<CreateAnnualOrderBean>() {
465
-//            @Override
466
-//            public void onChanged(CreateAnnualOrderBean createAnnualOrderBean) {
467
-//                PensionAccountPayActivity.launch(ProductDetailsActivity.this,createAnnualOrderBean.getOrder_id());
468
-//            }
469
-//        });
448
+    /**
449
+     * 设置收藏状态
450
+     * @param isCollect 是否收藏
451
+     */
452
+    private void setCollect(boolean isCollect){
453
+
454
+        if (isCollect) {
455
+            Drawable drawable = getDrawable(R.mipmap.wjx_select);
456
+            drawable.setBounds(0,0,drawable.getMinimumWidth(),drawable.getMinimumHeight());
457
+            mViewBinding.tvCollect.setCompoundDrawables(null,drawable,null,null);
458
+            mViewBinding.tvCollect1.setCompoundDrawables(null,drawable,null,null);
459
+//            mViewBinding.tvCollect.setVisibility(View.VISIBLE);
460
+//            mViewBinding.tvCollect1.setVisibility(View.VISIBLE);
461
+        }else {
462
+            Drawable drawable = getDrawable(R.mipmap.wjx_unselect);
463
+            drawable.setBounds(0,0,drawable.getMinimumWidth(),drawable.getMinimumHeight());
464
+            mViewBinding.tvCollect.setCompoundDrawables(null,drawable,null,null);
465
+            mViewBinding.tvCollect1.setCompoundDrawables(null,drawable,null,null);
466
+//            mViewBinding.tvCollect.setVisibility(View.VISIBLE);
467
+//            mViewBinding.tvCollect1.setVisibility(View.VISIBLE);
468
+        }
470 469
     }
471 470
 
472 471
     /**
@@ -539,8 +538,8 @@ public class ProductDetailsActivity extends ViewBindingBaseActivity<ActivityProd
539 538
 
540 539
 //        mViewBinding.ivShare.setOnClickListener(this);
541 540
 //        mViewBinding.ivShare1.setOnClickListener(this);
542
-        mViewBinding.ivCollect.setOnClickListener(this);
543
-        mViewBinding.ivCollect1.setOnClickListener(this);
541
+        mViewBinding.tvCollect.setOnClickListener(this);
542
+        mViewBinding.tvCollect1.setOnClickListener(this);
544 543
         mViewBinding.ivShareProduct.setOnClickListener(this);
545 544
         mViewBinding.llShop.setOnClickListener(this);
546 545
         mViewBinding.tvShop.setOnClickListener(this);
@@ -650,7 +649,10 @@ public class ProductDetailsActivity extends ViewBindingBaseActivity<ActivityProd
650 649
     @Override
651 650
     public void onClick(View view) {
652 651
         if (view == mViewBinding.tvOpen) {
653
-            isOpen = !isOpen;
652
+            /**
653
+             * 当前逻辑修改成最多展示两行,暂时隐藏此处功能
654
+             */
655
+            /*isOpen = !isOpen;
654 656
             if (isOpen) {
655 657
                 mViewBinding.tvStoreInfo.setMaxLines(1000);
656 658
                 mViewBinding.tvOpen.setVisibility(View.VISIBLE);
@@ -659,7 +661,7 @@ public class ProductDetailsActivity extends ViewBindingBaseActivity<ActivityProd
659 661
                 mViewBinding.tvStoreInfo.setMaxLines(2);
660 662
                 mViewBinding.tvOpen.setVisibility(View.VISIBLE);
661 663
                 mViewBinding.tvOpen.setText("展开");
662
-            }
664
+            }*/
663 665
         } else if (view == mViewBinding.ivGoBack || view == mViewBinding.ivGoBack1) {
664 666
             finish();
665 667
         } else if (view == mViewBinding.ivShareProduct) {
@@ -768,22 +770,7 @@ public class ProductDetailsActivity extends ViewBindingBaseActivity<ActivityProd
768 770
         } else if (view == mViewBinding.llPyqShare) {
769 771
             shareType = "2";
770 772
             productDetailsViewModel.getProductShare(this, product_id, shareType);
771
-        } else if (view == mViewBinding.ivCollect) {
772
-            if (LoginUtils.isLogin(context)) {
773
-                if (isRelation) {
774
-                    RelationRequest request = new RelationRequest();
775
-                    request.setType("1");
776
-                    request.setType_id(productDetailsData.getProduct_id());
777
-                    productDetailsViewModel.getRelationDelete(request);
778
-                } else {
779
-                    //收藏
780
-                    RelationRequest request = new RelationRequest();
781
-                    request.setType("1");
782
-                    request.setType_id(productDetailsData.getProduct_id());
783
-                    productDetailsViewModel.getRelation(request);
784
-                }
785
-            }
786
-        } else if (view == mViewBinding.ivCollect1) {
773
+        } else if (view == mViewBinding.tvCollect || view == mViewBinding.tvCollect1) {
787 774
             if (LoginUtils.isLogin(context)) {
788 775
                 if (isRelation) {
789 776
                     RelationRequest request = new RelationRequest();

+ 65 - 92
app/src/main/java/com/yihucha/hbyhc/view/CustomDialog.java

@@ -44,9 +44,7 @@ public class CustomDialog {
44 44
      */
45 45
     public static void defaultDialog(Context context, int title, String content, int leftText, int rightText, final TwoButtonsListener twoButtonsListener) {
46 46
         LDialog dialog = LDialog.newInstance(context, R.layout.dialog_confirm);
47
-        dialog.setMaskValue(0.5f).setText(R.id.confirm_title, title).setText(R.id.confirm_content, content)
48
-                .setText(R.id.confirm_negative, leftText).setText(R.id.confirm_positive, rightText)
49
-                .setOnClickListener(new LDialog.DialogOnClickListener() {
47
+        dialog.setMaskValue(0.5f).setText(R.id.confirm_title, title).setText(R.id.confirm_content, content).setText(R.id.confirm_negative, leftText).setText(R.id.confirm_positive, rightText).setOnClickListener(new LDialog.DialogOnClickListener() {
50 48
                     @Override
51 49
                     public void onClick(View v, LDialog lDialog) {
52 50
                         lDialog.dismiss();
@@ -64,9 +62,7 @@ public class CustomDialog {
64 62
 
65 63
     public static LDialog defaultDialog2(Context context, int title, String content, int leftText, int rightText, final TwoButtonsListener twoButtonsListener) {
66 64
         LDialog dialog = LDialog.newInstance(context, R.layout.dialog_confirm);
67
-        dialog.setMaskValue(0.5f).setText(R.id.confirm_title, title).setText(R.id.confirm_content, content)
68
-                .setText(R.id.confirm_negative, leftText).setText(R.id.confirm_positive, rightText)
69
-                .setOnClickListener(new LDialog.DialogOnClickListener() {
65
+        dialog.setMaskValue(0.5f).setText(R.id.confirm_title, title).setText(R.id.confirm_content, content).setText(R.id.confirm_negative, leftText).setText(R.id.confirm_positive, rightText).setOnClickListener(new LDialog.DialogOnClickListener() {
70 66
                     @Override
71 67
                     public void onClick(View v, LDialog lDialog) {
72 68
                         twoButtonsListener.leftButton();
@@ -95,26 +91,18 @@ public class CustomDialog {
95 91
      * @param rightTextColor     右边文字颜色
96 92
      * @param twoButtonsListener 点击回调
97 93
      */
98
-    public static void defaultDialog(Context context, int title, String content, int leftText, int rightText,
99
-                                     int leftTextColor, int rightTextColor, final
100
-                                     TwoButtonsListener twoButtonsListener) {
94
+    public static void defaultDialog(Context context, int title, String content, int leftText, int rightText, int leftTextColor, int rightTextColor, final TwoButtonsListener twoButtonsListener) {
101 95
         LDialog dialog = LDialog.newInstance(context, R.layout.dialog_confirm);
102 96
         if (StringsUtil.isEmpty(context.getString(title))) {
103 97
             dialog.setGone(R.id.confirm_title, false);
104 98
         }
105
-        dialog.setMaskValue(0.5f).setText(R.id.confirm_title, title).setText(R.id.confirm_content, content)
106
-                .setText(R.id.confirm_negative, leftText)
107
-                .setTextColor(R.id.confirm_negative, ContextCompat.getColor(context, leftTextColor))
108
-                .setText(R.id.confirm_positive, rightText)
109
-                .setTextColor(R.id.confirm_positive, ContextCompat.getColor(context, rightTextColor))
110
-                .setCancelBtn(R.id.confirm_negative)
111
-                .setOnClickListener(new LDialog.DialogOnClickListener() {
112
-                    @Override
113
-                    public void onClick(View v, LDialog lDialog) {
114
-                        twoButtonsListener.rightButton();
115
-                        lDialog.dismiss();
116
-                    }
117
-                }, R.id.confirm_positive).show();
99
+        dialog.setMaskValue(0.5f).setText(R.id.confirm_title, title).setText(R.id.confirm_content, content).setText(R.id.confirm_negative, leftText).setTextColor(R.id.confirm_negative, ContextCompat.getColor(context, leftTextColor)).setText(R.id.confirm_positive, rightText).setTextColor(R.id.confirm_positive, ContextCompat.getColor(context, rightTextColor)).setCancelBtn(R.id.confirm_negative).setOnClickListener(new LDialog.DialogOnClickListener() {
100
+            @Override
101
+            public void onClick(View v, LDialog lDialog) {
102
+                twoButtonsListener.rightButton();
103
+                lDialog.dismiss();
104
+            }
105
+        }, R.id.confirm_positive).show();
118 106
     }
119 107
 
120 108
     /**
@@ -147,19 +135,16 @@ public class CustomDialog {
147 135
      * @param forcedUpdate       是否强制更新,0否1是
148 136
      * @param twoButtonsListener 回调
149 137
      */
150
-    public static void versionUpdating(Context context, String content, String forcedUpdate, final
151
-    TwoButtonsListener twoButtonsListener) {
138
+    public static void versionUpdating(Context context, String content, String forcedUpdate, final TwoButtonsListener twoButtonsListener) {
152 139
         LDialog dialog = LDialog.newInstance(context, R.layout.dialog_updating);
153
-        dialog.setMaskValue(0.5f).setText(R.id.confirm_content, content)
154
-                .setOnClickListener((v, lDialog) -> {
155
-                    lDialog.dismiss();
156
-                }, R.id.confirm_negative);
157
-        dialog.getView(R.id.confirm_positive).setOnClickListener(
158
-                v -> {
159
-                    dialog.dismiss();
160
-                    twoButtonsListener.rightButton();
161
-                    Toast.makeText(context, "正在下载。。。", Toast.LENGTH_SHORT).show();
162
-                });
140
+        dialog.setMaskValue(0.5f).setText(R.id.confirm_content, content).setOnClickListener((v, lDialog) -> {
141
+            lDialog.dismiss();
142
+        }, R.id.confirm_negative);
143
+        dialog.getView(R.id.confirm_positive).setOnClickListener(v -> {
144
+            dialog.dismiss();
145
+            twoButtonsListener.rightButton();
146
+            Toast.makeText(context, "正在下载。。。", Toast.LENGTH_SHORT).show();
147
+        });
163 148
         if ("1".equals(forcedUpdate)) {
164 149
             dialog.setGone(R.id.confirm_negative, false);
165 150
             dialog.setCancelable(false);
@@ -215,29 +200,28 @@ public class CustomDialog {
215 200
      */
216 201
     public static void BottomShareCopyDialog(Context context, ShareButtonsListener shareButtonsListener) {
217 202
         LDialog dialog = LDialog.newInstance(context, R.layout.share_copy_dialog);
218
-        dialog.setMaskValue(0.5f).setGravity(Gravity.BOTTOM).setCancelBtn(R.id.tv_cancel)
219
-                .setOnClickListener(new LDialog.DialogOnClickListener() {
220
-                    @Override
221
-                    public void onClick(View v, LDialog lDialog) {
222
-                        //微信
223
-                        shareButtonsListener.weChatButton();
224
-                        lDialog.dismiss();
225
-                    }
226
-                }, R.id.ll_wechat).setOnClickListener(new LDialog.DialogOnClickListener() {
227
-                    @Override
228
-                    public void onClick(View v, LDialog lDialog) {
229
-                        //朋友圈
230
-                        shareButtonsListener.circleFriendsButton();
231
-                        lDialog.dismiss();
232
-                    }
233
-                }, R.id.ll_circlefriends).setOnClickListener(new LDialog.DialogOnClickListener() {
234
-                    @Override
235
-                    public void onClick(View v, LDialog lDialog) {
236
-                        //复制链接
237
-                        shareButtonsListener.copylink();
238
-                        lDialog.dismiss();
239
-                    }
240
-                }, R.id.ll_copylink).show();
203
+        dialog.setMaskValue(0.5f).setGravity(Gravity.BOTTOM).setCancelBtn(R.id.tv_cancel).setOnClickListener(new LDialog.DialogOnClickListener() {
204
+            @Override
205
+            public void onClick(View v, LDialog lDialog) {
206
+                //微信
207
+                shareButtonsListener.weChatButton();
208
+                lDialog.dismiss();
209
+            }
210
+        }, R.id.ll_wechat).setOnClickListener(new LDialog.DialogOnClickListener() {
211
+            @Override
212
+            public void onClick(View v, LDialog lDialog) {
213
+                //朋友圈
214
+                shareButtonsListener.circleFriendsButton();
215
+                lDialog.dismiss();
216
+            }
217
+        }, R.id.ll_circlefriends).setOnClickListener(new LDialog.DialogOnClickListener() {
218
+            @Override
219
+            public void onClick(View v, LDialog lDialog) {
220
+                //复制链接
221
+                shareButtonsListener.copylink();
222
+                lDialog.dismiss();
223
+            }
224
+        }, R.id.ll_copylink).show();
241 225
     }
242 226
 
243 227
     /**
@@ -481,8 +465,7 @@ public class CustomDialog {
481 465
         LDialog dialog = LDialog.newInstance(context, R.layout.dialog_signin_succeed);
482 466
         TextView tvScore = dialog.getView(R.id.tv_score);
483 467
         tvScore.setText("恭喜获得积分 +" + score);
484
-        dialog.setMaskValue(0.5f).setGravity(Gravity.CENTER).setCancelBtn(R.id.iv_sign_in_close)
485
-                .setCancelBtn(R.id.tv_sign_in_close).show();
468
+        dialog.setMaskValue(0.5f).setGravity(Gravity.CENTER).setCancelBtn(R.id.iv_sign_in_close).setCancelBtn(R.id.tv_sign_in_close).show();
486 469
     }
487 470
 //    dialog_enter_the_invitation_code
488 471
 
@@ -507,12 +490,7 @@ public class CustomDialog {
507 490
             lDialog.setText(R.id.tv_title, title);
508 491
         }
509 492
         EditText etInvitationCode = lDialog.getView(R.id.et_invitationcode);
510
-        lDialog.setMaskValue(0.5f)
511
-                .setGravity(Gravity.CENTER)
512
-                .setCancelBtn(R.id.confirm_negative)
513
-                .setOnClickListener((v, lDialog1) -> oneInputButtonsListener
514
-                        .clickButton(etInvitationCode.getText().toString()), R.id.confirm_positive)
515
-                .show();
493
+        lDialog.setMaskValue(0.5f).setGravity(Gravity.CENTER).setCancelBtn(R.id.confirm_negative).setOnClickListener((v, lDialog1) -> oneInputButtonsListener.clickButton(etInvitationCode.getText().toString()), R.id.confirm_positive).show();
516 494
     }
517 495
 
518 496
     /**
@@ -533,12 +511,9 @@ public class CustomDialog {
533 511
     public static void showCanclePayDialog(Context context, OneButtonsListener oneButtonsListener) {
534 512
         LDialog lDialog = LDialog.newInstance(context, R.layout.dialog_cancle_pay);
535 513
         //确认离开
536
-        lDialog.getView(R.id.bt_likai).setOnClickListener(new View.OnClickListener() {
537
-            @Override
538
-            public void onClick(View view) {
539
-                oneButtonsListener.clickButton();
540
-                lDialog.cancel();
541
-            }
514
+        lDialog.getView(R.id.bt_likai).setOnClickListener(view -> {
515
+            oneButtonsListener.clickButton();
516
+            lDialog.cancel();
542 517
         });
543 518
         //继续支付
544 519
         lDialog.getView(R.id.bt_continue).setOnClickListener(new View.OnClickListener() {
@@ -560,9 +535,7 @@ public class CustomDialog {
560 535
      * @param leftBtn            取消按钮
561 536
      * @param rightBtn           类似确认按钮
562 537
      */
563
-    public static void showConfirmDialog(Context context, String title,
564
-                                         String content, String leftBtn, String rightBtn,
565
-                                         OneButtonsListener oneButtonsListener) {
538
+    public static void showConfirmDialog(Context context, String title, String content, String leftBtn, String rightBtn, OneButtonsListener oneButtonsListener) {
566 539
         LDialog lDialog = LDialog.newInstance(context, R.layout.dialog_confirm);
567 540
         if (EmptyCheckUtils.isEmpty(title)) {
568 541
             lDialog.setGone(R.id.confirm_title, true);
@@ -596,24 +569,15 @@ public class CustomDialog {
596 569
         LDialog lDialog = LDialog.newInstance(context, R.layout.dialog_invite_friends);
597 570
         RoundCornerImageView pic = lDialog.getView(R.id.card_image);
598 571
         GlideUtils.loadImage(context, picUrl, pic);
599
-        lDialog.setMaskValue(0.5f).setGravity(Gravity.CENTER).setOnClickListener(new LDialog.DialogOnClickListener() {
600
-            @Override
601
-            public void onClick(View v, LDialog lDialog) {
602
-                threeInputButtonsListener.leftButton();
603
-                lDialog.dismiss();
604
-            }
605
-        }, R.id.ll_wx).setOnClickListener(new LDialog.DialogOnClickListener() {
606
-            @Override
607
-            public void onClick(View v, LDialog lDialog) {
608
-                threeInputButtonsListener.middle();
609
-                lDialog.dismiss();
610
-            }
611
-        }, R.id.ll_pyq).setOnClickListener(new LDialog.DialogOnClickListener() {
612
-            @Override
613
-            public void onClick(View v, LDialog lDialog) {
614
-                threeInputButtonsListener.rightButton();
615
-                lDialog.dismiss();
616
-            }
572
+        lDialog.setMaskValue(0.5f).setGravity(Gravity.CENTER).setOnClickListener((v, lDialog1) -> {
573
+            threeInputButtonsListener.leftButton();
574
+            lDialog1.dismiss();
575
+        }, R.id.ll_wx).setOnClickListener((v, lDialog12) -> {
576
+            threeInputButtonsListener.middle();
577
+            lDialog12.dismiss();
578
+        }, R.id.ll_pyq).setOnClickListener((v, lDialog13) -> {
579
+            threeInputButtonsListener.rightButton();
580
+            lDialog13.dismiss();
617 581
         }, R.id.ll_bctu).show();
618 582
     }
619 583
 
@@ -664,4 +628,13 @@ public class CustomDialog {
664 628
         });
665 629
         lDialog.show();
666 630
     }
631
+
632
+    /**
633
+     * 绿积分使用说明
634
+     */
635
+    public static void getGreenIntegralDialog(Context context) {
636
+        LDialog lDialog = LDialog.newInstance(context, R.layout.green_integral_use_info);
637
+        lDialog.getView(R.id.tv_dialog_iknow).setOnClickListener(v -> lDialog.dismiss());
638
+        lDialog.show();
639
+    }
667 640
 }

+ 12 - 0
app/src/main/res/drawable/shape_bg_mine_top.xml

@@ -0,0 +1,12 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<shape
3
+    xmlns:android="http://schemas.android.com/apk/res/android"
4
+    android:shape="rectangle"
5
+    >
6
+    <gradient
7
+        android:startColor="#FDF8ED"
8
+        android:type="linear"
9
+
10
+        android:endColor="#FEE8E7"
11
+        />
12
+</shape>

+ 7 - 0
app/src/main/res/drawable/shape_ffe2e3_8dp.xml

@@ -0,0 +1,7 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
3
+    android:shape="rectangle"
4
+    >
5
+    <corners android:radius="8dp"/>
6
+    <solid android:color="#ffe2e3"/>
7
+</shape>

+ 13 - 0
app/src/main/res/drawable/shape_white_15dp.xml

@@ -0,0 +1,13 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<shape xmlns:android="http://schemas.android.com/apk/res/android"   android:shape="rectangle" >
3
+
4
+    <solid android:color="#ffffff" />
5
+
6
+    <!--    <stroke-->
7
+    <!--        android:color="@color/gray_9e9e9e"-->
8
+    <!--        android:width="0.5dp"/>-->
9
+
10
+    <corners android:radius="25dp"/>
11
+
12
+
13
+</shape>

+ 98 - 33
app/src/main/res/layout/activity_application_for_drawback.xml

@@ -68,10 +68,11 @@
68 68
                 </LinearLayout>
69 69
 
70 70
                 <View
71
+                    android:id="@+id/view_line_state_goods"
71 72
                     android:layout_width="match_parent"
72 73
                     android:layout_height="0.5dp"
73 74
                     android:layout_marginTop="16dp"
74
-                    android:background="@color/gray_e5e5e5"></View>
75
+                    android:background="@color/gray_e5e5e5"/>
75 76
 
76 77
                 <LinearLayout
77 78
                     android:id="@+id/ll_state_of_goods"
@@ -121,7 +122,7 @@
121 122
                     android:layout_width="match_parent"
122 123
                     android:layout_height="0.5dp"
123 124
                     android:layout_marginTop="16dp"
124
-                    android:background="@color/gray_e5e5e5"></View>
125
+                    android:background="@color/gray_e5e5e5"/>
125 126
 
126 127
                 <LinearLayout
127 128
                     android:id="@+id/ll_a_refund_reason"
@@ -131,6 +132,7 @@
131 132
                     android:orientation="horizontal">
132 133
 
133 134
                     <com.yihucha.hbyhc.view.BoldText
135
+                        android:id="@+id/tv_name_reason"
134 136
                         android:layout_width="wrap_content"
135 137
                         android:layout_height="wrap_content"
136 138
                         android:text="@string/a_refund_reason"
@@ -173,57 +175,120 @@
173 175
                     android:background="@color/gray_e5e5e5"></View>
174 176
 
175 177
                 <LinearLayout
178
+                    android:id="@+id/ll_after_sale_money"
176 179
                     android:layout_width="match_parent"
177 180
                     android:layout_height="wrap_content"
178
-                    android:layout_marginTop="16dp"
179
-                    android:orientation="horizontal">
181
+                    android:orientation="vertical">
180 182
 
181
-                    <com.yihucha.hbyhc.view.BoldText
182
-                        android:layout_width="wrap_content"
183
+                    <LinearLayout
184
+                        android:layout_width="match_parent"
183 185
                         android:layout_height="wrap_content"
184
-                        android:text="@string/refund_amount"
185
-                        android:textColor="@color/black_333333"
186
-                        android:textSize="15sp" />
186
+                        android:layout_marginTop="16dp"
187
+                        android:orientation="horizontal">
188
+
189
+                        <com.yihucha.hbyhc.view.BoldText
190
+                            android:layout_width="wrap_content"
191
+                            android:layout_height="wrap_content"
192
+                            android:text="@string/refund_amount"
193
+                            android:textColor="@color/black_333333"
194
+                            android:textSize="15sp" />
195
+
196
+                        <TextView
197
+                            android:layout_width="wrap_content"
198
+                            android:layout_height="wrap_content"
199
+                            android:layout_marginLeft="5.5dp"
200
+                            android:text="*"
201
+                            android:textColor="@color/red_fe0032"
202
+                            android:textSize="16sp" />
203
+                    </LinearLayout>
204
+
205
+                    <LinearLayout
206
+                        android:layout_width="match_parent"
207
+                        android:layout_height="wrap_content"
208
+                        android:orientation="horizontal">
209
+
210
+                        <com.yihucha.hbyhc.view.BoldText
211
+                            android:id="@+id/btv_jifen"
212
+                            android:layout_width="wrap_content"
213
+                            android:layout_height="wrap_content"
214
+                            android:text="¥"
215
+                            android:textColor="@color/red_fe0032"
216
+                            android:textSize="14.5sp" />
217
+
218
+                        <com.yihucha.hbyhc.view.BoldText
219
+                            android:id="@+id/btv_money"
220
+                            android:layout_width="wrap_content"
221
+                            android:layout_height="wrap_content"
222
+                            android:text="999.00"
223
+                            android:textColor="@color/red_fe0032"
224
+                            android:textSize="19sp" />
225
+                    </LinearLayout>
187 226
 
188 227
                     <TextView
228
+                        android:id="@+id/tv_money_postage"
189 229
                         android:layout_width="wrap_content"
190 230
                         android:layout_height="wrap_content"
191
-                        android:layout_marginLeft="5.5dp"
192
-                        android:text="*"
193
-                        android:textColor="@color/red_fe0032"
194
-                        android:textSize="16sp" />
231
+                        android:layout_marginTop="6dp"
232
+                        android:text="xxxx"
233
+                        android:textColor="@color/gray_999999"
234
+                        android:textSize="13sp" />
195 235
                 </LinearLayout>
196 236
 
197
-                <LinearLayout
237
+                <RelativeLayout
238
+                    android:id="@+id/ll_after_sale_address"
198 239
                     android:layout_width="match_parent"
199 240
                     android:layout_height="wrap_content"
200
-                    android:orientation="horizontal">
241
+                    android:layout_marginTop="16dp"
242
+                    android:visibility="gone"
243
+                    >
201 244
 
202 245
                     <com.yihucha.hbyhc.view.BoldText
203
-                        android:id="@+id/btv_jifen"
246
+                        android:id="@+id/tv_address_title"
204 247
                         android:layout_width="wrap_content"
205 248
                         android:layout_height="wrap_content"
206
-                        android:text="¥"
207
-                        android:textColor="@color/red_fe0032"
208
-                        android:textSize="14.5sp" />
249
+                        android:layout_alignTop="@+id/tv_address"
250
+                        android:layout_alignBottom="@+id/tv_user_info"
251
+                        android:gravity="center"
252
+                        android:text="收货地址"
253
+                        android:textColor="@color/black_333333"
254
+                        android:textSize="15sp" />
209 255
 
210
-                    <com.yihucha.hbyhc.view.BoldText
211
-                        android:id="@+id/btv_money"
256
+                    <TextView
257
+                        android:id="@+id/tv_address"
258
+                        android:layout_width="match_parent"
259
+                        android:layout_height="wrap_content"
260
+                        android:layout_marginLeft="10dp"
261
+                        android:layout_marginRight="10dp"
262
+                        android:layout_toLeftOf="@+id/imgv_address_jiantou"
263
+                        android:layout_toRightOf="@+id/tv_address_title"
264
+                        android:gravity="right"
265
+                        android:text="北京市通州区经开壹中心14号楼9层北京市通州区经开壹中心14号楼9层"
266
+                        android:textColor="@color/black_333333"
267
+                        android:textSize="14sp" />
268
+
269
+                    <TextView
270
+                        android:id="@+id/tv_user_info"
212 271
                         android:layout_width="wrap_content"
213 272
                         android:layout_height="wrap_content"
214
-                        android:text="999.00"
215
-                        android:textColor="@color/red_fe0032"
216
-                        android:textSize="19sp" />
217
-                </LinearLayout>
273
+                        android:layout_below="@+id/tv_address"
274
+                        android:layout_alignRight="@+id/tv_address"
275
+                        android:layout_marginTop="5dp"
276
+                        android:text="郭郭\t188****3833"
277
+                        android:textColor="@color/gray_999999"
278
+                        android:textSize="14sp" />
218 279
 
219
-                <TextView
220
-                    android:id="@+id/tv_money_postage"
221
-                    android:layout_width="wrap_content"
222
-                    android:layout_height="wrap_content"
223
-                    android:layout_marginTop="6dp"
224
-                    android:text="xxxx"
225
-                    android:textColor="@color/gray_999999"
226
-                    android:textSize="13sp" />
280
+                    <ImageView
281
+                        android:id="@+id/imgv_address_jiantou"
282
+                        android:layout_width="wrap_content"
283
+                        android:layout_height="wrap_content"
284
+                        android:layout_alignTop="@+id/tv_address"
285
+                        android:layout_alignBottom="@+id/tv_user_info"
286
+                        android:layout_alignParentRight="true"
287
+                        android:layout_gravity="center"
288
+                        android:layout_marginLeft="8dp"
289
+                        android:scaleType="centerInside"
290
+                        android:src="@mipmap/goin_220619" />
291
+                </RelativeLayout>
227 292
             </LinearLayout>
228 293
 
229 294
             <LinearLayout

+ 2 - 1
app/src/main/res/layout/activity_apply_for_refund_option_page.xml

@@ -117,9 +117,10 @@
117 117
             </LinearLayout>
118 118
         </LinearLayout>
119 119
         <LinearLayout
120
+            android:id="@+id/ll_exchange_products"
120 121
             android:layout_marginTop="20dp"
121 122
             android:layout_width="match_parent"
122
-            android:visibility="gone"
123
+            android:visibility="visible"
123 124
             android:layout_height="wrap_content"
124 125
             android:gravity="center_vertical"
125 126
             android:orientation="horizontal">

+ 173 - 0
app/src/main/res/layout/activity_my_team.xml

@@ -0,0 +1,173 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
+    xmlns:app="http://schemas.android.com/apk/res-auto"
4
+    xmlns:tools="http://schemas.android.com/tools"
5
+    android:layout_width="match_parent"
6
+    android:layout_height="match_parent"
7
+    android:background="@color/white_f8f8f8"
8
+    tools:context=".presentation.mine.MyTeamActivity">
9
+
10
+    <ImageView
11
+        android:id="@+id/imgv_team_bg"
12
+        android:layout_width="match_parent"
13
+        android:layout_height="wrap_content"
14
+        android:layout_marginTop="10dp"
15
+        android:scaleType="fitXY"
16
+        android:src="@mipmap/bg_team_top"
17
+        app:layout_constraintLeft_toLeftOf="parent"
18
+        app:layout_constraintRight_toRightOf="parent"
19
+        app:layout_constraintTop_toTopOf="parent" />
20
+
21
+    <TextView
22
+        android:id="@+id/tv_fans_count_title"
23
+        android:layout_width="wrap_content"
24
+        android:layout_height="wrap_content"
25
+        android:layout_marginLeft="28dp"
26
+        android:layout_marginTop="18dp"
27
+        android:text="粉丝总数"
28
+        android:textColor="@color/white"
29
+        android:textSize="16sp"
30
+        app:layout_constraintLeft_toLeftOf="@+id/imgv_team_bg"
31
+        app:layout_constraintTop_toTopOf="@+id/imgv_team_bg" />
32
+
33
+    <com.yihucha.hbyhc.view.BoldText
34
+        android:id="@+id/tv_fans_count"
35
+        android:layout_width="wrap_content"
36
+        android:layout_height="wrap_content"
37
+        android:layout_marginTop="5dp"
38
+        android:text="5776"
39
+        android:textColor="@color/white"
40
+        android:textSize="18sp"
41
+        app:layout_constraintLeft_toLeftOf="@+id/tv_fans_count_title"
42
+        app:layout_constraintTop_toBottomOf="@+id/tv_fans_count_title" />
43
+
44
+    <LinearLayout
45
+        android:id="@+id/ll_team_invitate"
46
+        android:layout_width="wrap_content"
47
+        android:layout_height="wrap_content"
48
+        android:layout_marginRight="28dp"
49
+        android:background="@drawable/shape_white_15dp"
50
+        android:orientation="horizontal"
51
+        android:paddingLeft="11dp"
52
+        android:paddingTop="8dp"
53
+        android:paddingRight="11dp"
54
+        android:paddingBottom="8dp"
55
+        app:layout_constraintBottom_toBottomOf="@+id/tv_fans_count"
56
+        app:layout_constraintRight_toRightOf="parent"
57
+        app:layout_constraintTop_toTopOf="@+id/tv_fans_count_title">
58
+
59
+        <ImageView
60
+            android:layout_width="wrap_content"
61
+            android:layout_height="wrap_content"
62
+            android:layout_gravity="center_vertical"
63
+            android:src="@mipmap/icon_team_invitate" />
64
+
65
+        <TextView
66
+            android:layout_width="wrap_content"
67
+            android:layout_height="wrap_content"
68
+            android:layout_marginLeft="5dp"
69
+            android:text="邀请好友"
70
+            android:textColor="@color/red_fe0032"
71
+            android:textSize="13sp" />
72
+    </LinearLayout>
73
+
74
+    <View
75
+        android:id="@+id/view_bg_bottom"
76
+        android:layout_width="0dp"
77
+        android:layout_height="60dp"
78
+        android:layout_marginBottom="32dp"
79
+        android:alpha="0.3"
80
+        android:background="@drawable/shape_ffe2e3_8dp"
81
+        app:layout_constraintBottom_toBottomOf="@+id/imgv_team_bg"
82
+        app:layout_constraintLeft_toLeftOf="@+id/tv_fans_count_title"
83
+        app:layout_constraintRight_toRightOf="@+id/ll_team_invitate" />
84
+
85
+    <TextView
86
+        android:id="@+id/tv_fans_zhishu_title"
87
+        android:layout_width="wrap_content"
88
+        android:layout_height="wrap_content"
89
+        android:layout_marginTop="8dp"
90
+        android:text="直属粉丝"
91
+        android:textColor="@color/white"
92
+        android:textSize="13sp"
93
+        app:layout_constraintLeft_toLeftOf="@+id/view_bg_bottom"
94
+        app:layout_constraintRight_toLeftOf="@+id/tv_fans_youxiao_title"
95
+        app:layout_constraintTop_toTopOf="@+id/view_bg_bottom" />
96
+
97
+    <TextView
98
+        android:id="@+id/tv_fans_youxiao_title"
99
+        android:layout_width="wrap_content"
100
+        android:layout_height="wrap_content"
101
+        android:text="有效粉丝"
102
+        android:textColor="@color/white"
103
+        android:textSize="13sp"
104
+        app:layout_constraintLeft_toRightOf="@+id/tv_fans_zhishu_title"
105
+        app:layout_constraintRight_toRightOf="@+id/view_bg_bottom"
106
+        app:layout_constraintTop_toTopOf="@+id/tv_fans_zhishu_title" />
107
+
108
+    <TextView
109
+        android:id="@+id/tv_fans_zhishu"
110
+        android:layout_width="wrap_content"
111
+        android:layout_height="wrap_content"
112
+        android:layout_marginBottom="8dp"
113
+        android:text="3432"
114
+        android:textColor="@color/white"
115
+        android:textSize="13sp"
116
+        app:layout_constraintBottom_toBottomOf="@+id/view_bg_bottom"
117
+        app:layout_constraintLeft_toLeftOf="@+id/view_bg_bottom"
118
+        app:layout_constraintRight_toLeftOf="@+id/tv_fans_youxiao" />
119
+
120
+    <TextView
121
+        android:id="@+id/tv_fans_youxiao"
122
+        android:layout_width="wrap_content"
123
+        android:layout_height="wrap_content"
124
+        android:text="2344"
125
+        android:textColor="@color/white"
126
+        android:textSize="13sp"
127
+        app:layout_constraintLeft_toRightOf="@+id/tv_fans_zhishu"
128
+        app:layout_constraintRight_toRightOf="@+id/view_bg_bottom"
129
+        app:layout_constraintTop_toTopOf="@+id/tv_fans_zhishu" />
130
+
131
+    <View
132
+        android:layout_width="1dp"
133
+        android:layout_height="27dp"
134
+        android:background="@color/white"
135
+        android:paddingTop="5dp"
136
+        android:paddingBottom="5dp"
137
+        app:layout_constraintBottom_toBottomOf="@+id/tv_fans_zhishu"
138
+        app:layout_constraintLeft_toLeftOf="@+id/view_bg_bottom"
139
+        app:layout_constraintRight_toRightOf="@+id/view_bg_bottom"
140
+        app:layout_constraintTop_toTopOf="@+id/tv_fans_zhishu_title" />
141
+
142
+    <TextView
143
+        android:id="@+id/tv_team_list_title"
144
+        android:layout_width="match_parent"
145
+        android:layout_height="wrap_content"
146
+        android:layout_marginTop="10dp"
147
+        android:background="@color/white"
148
+        android:paddingLeft="10dp"
149
+        android:paddingTop="18dp"
150
+        android:paddingBottom="5dp"
151
+        android:text="团队列表"
152
+        android:textColor="@color/black_333333"
153
+        android:textSize="15sp"
154
+        app:layout_constraintTop_toBottomOf="@+id/imgv_team_bg" />
155
+
156
+    <androidx.recyclerview.widget.RecyclerView
157
+        android:id="@+id/rv_team_list"
158
+        android:layout_width="match_parent"
159
+        android:layout_height="0dp"
160
+        android:background="@color/white"
161
+        app:layout_constraintBottom_toBottomOf="parent"
162
+        app:layout_constraintTop_toBottomOf="@+id/tv_team_list_title" />
163
+
164
+    <include
165
+        android:id="@+id/ll_no_search"
166
+        layout="@layout/search_not_found"
167
+        android:layout_width="wrap_content"
168
+        android:layout_height="wrap_content"
169
+        android:visibility="gone"
170
+        app:layout_constraintLeft_toLeftOf="parent"
171
+        app:layout_constraintRight_toRightOf="parent"
172
+        app:layout_constraintTop_toTopOf="@id/rv_team_list" />
173
+</androidx.constraintlayout.widget.ConstraintLayout>

+ 1 - 0
app/src/main/res/layout/activity_pay.xml

@@ -108,6 +108,7 @@
108 108
             android:gravity="center_vertical"
109 109
             android:layout_marginRight="13dp"
110 110
             android:layout_marginLeft="13dp"
111
+            android:visibility="gone"
111 112
             android:orientation="horizontal">
112 113
 
113 114
             <ImageView

+ 54 - 24
app/src/main/res/layout/activity_productdetails.xml

@@ -227,15 +227,13 @@
227 227
                         </LinearLayout>
228 228
                     </LinearLayout>
229 229
 
230
-                    <LinearLayout
230
+                    <RelativeLayout
231 231
                         android:layout_width="match_parent"
232 232
                         android:layout_height="wrap_content"
233 233
                         android:layout_marginTop="13dp"
234 234
                         android:background="@drawable/shape_ffffff_5dp"
235
-                        android:orientation="vertical"
236 235
                         android:paddingLeft="16dp"
237 236
                         android:paddingTop="12dp"
238
-
239 237
                         android:paddingRight="16dp"
240 238
                         android:paddingBottom="16dp">
241 239
 
@@ -310,7 +308,7 @@
310 308
                             android:id="@+id/ll_yanglaojin"
311 309
                             android:layout_width="wrap_content"
312 310
                             android:layout_height="wrap_content"
313
-
311
+                            android:layout_below="@+id/ll_top_price"
314 312
                             android:background="@drawable/shape_line_fe0032_2dp"
315 313
                             android:gravity="center_vertical"
316 314
                             android:orientation="horizontal">
@@ -333,10 +331,14 @@
333 331
                         </LinearLayout>
334 332
 
335 333
                         <RelativeLayout
336
-                            android:layout_width="wrap_content"
334
+                            android:id="@+id/ll_product_name"
335
+                            android:layout_width="match_parent"
337 336
                             android:layout_height="wrap_content"
338 337
                             android:layout_marginTop="3dp"
339
-                            android:orientation="horizontal">
338
+                            android:orientation="horizontal"
339
+                            android:layout_below="@+id/ll_yanglaojin"
340
+                            android:layout_toLeftOf="@+id/tv_collect1"
341
+                            >
340 342
 
341 343
                             <TextView
342 344
                                 android:id="@+id/tv_store_name"
@@ -365,9 +367,12 @@
365 367
 
366 368
                         <RelativeLayout
367 369
                             android:id="@+id/ll_store_info"
368
-                            android:layout_width="wrap_content"
370
+                            android:layout_width="match_parent"
369 371
                             android:layout_height="wrap_content"
370
-                            android:layout_marginTop="5dp">
372
+                            android:layout_below="@+id/ll_product_name"
373
+                            android:layout_marginTop="5dp"
374
+                            android:layout_toLeftOf="@+id/tv_collect1"
375
+                            >
371 376
 
372 377
                             <TextView
373 378
                                 android:id="@+id/tv_store_info"
@@ -376,6 +381,7 @@
376 381
                                 android:ellipsize="end"
377 382
                                 android:padding="4dp"
378 383
                                 android:text="这是商品规格"
384
+                                android:maxLines="2"
379 385
                                 android:textColor="@color/gray_999999"
380 386
                                 android:textSize="12sp" />
381 387
 
@@ -391,7 +397,7 @@
391 397
                                 android:text="展开"
392 398
                                 android:textSize="12sp"
393 399
                                 android:textColor="@color/red_fe0032"
394
-                                android:visibility="visible"
400
+                                android:visibility="gone"
395 401
                                 android:background="@color/white"
396 402
                                 />
397 403
                         </RelativeLayout>
@@ -401,6 +407,7 @@
401 407
                             android:layout_height="wrap_content"
402 408
                             android:layout_marginTop="11dp"
403 409
                             android:gravity="center_vertical"
410
+                            android:layout_below="@+id/ll_store_info"
404 411
                             android:orientation="horizontal">
405 412
 
406 413
                             <TextView
@@ -457,7 +464,40 @@
457 464
                                     android:textSize="12sp" />
458 465
                             </LinearLayout>
459 466
                         </LinearLayout>
460
-                    </LinearLayout>
467
+
468
+                        <TextView
469
+                            android:id="@+id/tv_collect"
470
+                            android:layout_width="wrap_content"
471
+                            android:layout_height="wrap_content"
472
+                            android:text="收藏"
473
+                            android:drawableTop="@mipmap/wjx_unselect"
474
+                            android:drawablePadding="5dp"
475
+                            android:gravity="center"
476
+                            android:layout_alignParentRight="true"
477
+                            android:layout_alignTop="@+id/ll_top_price"
478
+                            android:layout_alignBottom="@+id/ll_yanglaojin"
479
+                            android:layout_marginTop="8dp"
480
+                            android:layout_marginBottom="8dp"
481
+                            android:textSize="10sp"
482
+                            android:textColor="@color/black_333333"
483
+                            />
484
+                        <TextView
485
+                            android:id="@+id/tv_collect1"
486
+                            android:layout_width="wrap_content"
487
+                            android:layout_height="wrap_content"
488
+                            android:text="收藏"
489
+                            android:drawableTop="@mipmap/wjx_unselect"
490
+                            android:drawablePadding="5dp"
491
+                            android:gravity="center"
492
+                            android:layout_alignParentRight="true"
493
+                            android:layout_alignTop="@+id/ll_product_name"
494
+                            android:layout_marginTop="8dp"
495
+                            android:layout_marginBottom="8dp"
496
+                            android:textSize="10sp"
497
+                            android:textColor="@color/black_333333"
498
+                            android:visibility="gone"
499
+                            />
500
+                    </RelativeLayout>
461 501
 
462 502
                     <com.yihucha.hbyhc.view.RoundCornerImageView
463 503
                         android:id="@+id/card_image"
@@ -874,17 +914,6 @@
874 914
                 android:paddingBottom="16dp"
875 915
                 android:visibility="invisible"
876 916
                 android:src="@mipmap/share_product" />
877
-
878
-            <ImageView
879
-                android:id="@+id/iv_collect"
880
-                android:layout_width="wrap_content"
881
-                android:layout_height="wrap_content"
882
-                android:paddingLeft="4dp"
883
-                android:paddingTop="16dp"
884
-                android:paddingRight="16dp"
885
-                android:paddingBottom="16dp"
886
-                android:layout_gravity="center_vertical"
887
-                android:src="@mipmap/wjx_unselect" />
888 917
         </LinearLayout>
889 918
     </LinearLayout>
890 919
     <!--站位-->
@@ -916,7 +945,7 @@
916 945
                     android:layout_width="wrap_content"
917 946
                     android:layout_height="wrap_content"
918 947
                     android:padding="16dp"
919
-                    android:src="@mipmap/product_return_220619" />
948
+                    android:src="@mipmap/icon_title_back" />
920 949
             </LinearLayout>
921 950
 
922 951
             <TextView
@@ -934,17 +963,18 @@
934 963
                 android:layout_height="wrap_content"
935 964
                 android:layout_weight="1"
936 965
                 android:gravity="end"
966
+                android:visibility="invisible"
937 967
                 android:orientation="horizontal">
938 968
 
939 969
                 <ImageView
940
-                    android:id="@+id/iv_collect1"
941 970
                     android:layout_width="wrap_content"
942 971
                     android:layout_height="wrap_content"
943 972
                     android:paddingLeft="4dp"
944 973
                     android:paddingTop="16dp"
945 974
                     android:paddingRight="16dp"
946 975
                     android:paddingBottom="16dp"
947
-                    android:src="@mipmap/product_collect_220619" />
976
+                    android:src="@mipmap/wjx_select"
977
+                    />
948 978
             </LinearLayout>
949 979
         </LinearLayout>
950 980
     </LinearLayout>

+ 215 - 524
app/src/main/res/layout/fragment_mine.xml

@@ -6,7 +6,7 @@
6 6
     android:layout_height="match_parent"
7 7
     android:background="@color/white_f8f8f8"
8 8
     android:orientation="vertical"
9
-    tools:context="com.yihucha.hbyhc.presentation.mine.MineFragment">
9
+    tools:context=".presentation.mine.MineFragment">
10 10
 
11 11
     <ScrollView
12 12
         android:layout_width="match_parent"
@@ -16,73 +16,64 @@
16 16
             android:layout_width="match_parent"
17 17
             android:layout_height="wrap_content"
18 18
             android:orientation="vertical">
19
-            <com.yihucha.hbyhc.view.BoldText
20
-                android:id="@+id/tv_title"
21
-                android:layout_width="match_parent"
22
-                android:layout_height="30dp"
23
-                android:gravity="center"
24
-                android:text=""
25
-                android:textColor="@color/white"
26
-                android:background="@mipmap/mine_bg_220620"
27
-                android:textSize="18sp"
28
-                android:paddingBottom="16dp"
29
-                android:visibility="visible"
30
-                />
19
+
31 20
             <androidx.constraintlayout.widget.ConstraintLayout
32 21
                 android:layout_width="match_parent"
33 22
                 android:layout_height="wrap_content">
34
-                <ImageView
23
+
24
+                <View
35 25
                     android:layout_width="match_parent"
36
-                    android:layout_height="wrap_content"
37
-                    android:background="@mipmap/mine_bg_220620"
26
+                    android:layout_height="210dp"
27
+                    android:background="@drawable/shape_bg_mine_top"
38 28
                     app:layout_constraintLeft_toLeftOf="parent"
39
-                    app:layout_constraintTop_toTopOf="parent"
40
-                    />
29
+                    app:layout_constraintTop_toTopOf="parent" />
30
+
41 31
                 <ImageView
42 32
                     android:id="@+id/iv_avatar"
43 33
                     android:layout_width="51dp"
44 34
                     android:layout_height="51dp"
35
+                    android:layout_marginLeft="16dp"
36
+                    android:layout_marginTop="46dp"
45 37
                     android:src="@mipmap/default_head"
46 38
                     app:layout_constraintLeft_toLeftOf="parent"
47
-                    app:layout_constraintTop_toTopOf="parent"
48
-                    android:layout_marginLeft="16dp"
49
-                    android:layout_marginTop="16dp"
50
-                    />
39
+                    app:layout_constraintTop_toTopOf="parent" />
40
+
51 41
                 <TextView
52 42
                     android:id="@+id/tv_nickname"
53 43
                     android:layout_width="wrap_content"
54 44
                     android:layout_height="wrap_content"
45
+                    android:layout_marginLeft="5dp"
55 46
                     android:ellipsize="end"
56 47
                     android:maxEms="7"
57 48
                     android:singleLine="true"
58
-                    android:text=""
59
-                    android:textColor="@color/white"
49
+                    android:text="清风徐来"
50
+                    android:textColor="@color/black_333333"
60 51
                     android:textSize="15sp"
61
-                    android:layout_marginLeft="5dp"
62 52
                     app:layout_constraintLeft_toRightOf="@+id/iv_avatar"
63
-                    app:layout_constraintTop_toTopOf="@+id/iv_avatar"
64
-                    />
53
+                    app:layout_constraintTop_toTopOf="@+id/iv_avatar" />
54
+
65 55
                 <TextView
66 56
                     android:id="@+id/tv_phone"
67 57
                     android:layout_width="wrap_content"
68 58
                     android:layout_height="wrap_content"
69
-                    android:text=""
70
-                    android:textColor="@color/white"
71
-                    android:textSize="15sp"
72
-                    android:layout_marginLeft="5dp"
73
-                    app:layout_constraintLeft_toRightOf="@+id/tv_nickname"
74
-                    app:layout_constraintTop_toTopOf="@+id/tv_nickname"
75 59
                     android:layout_alignBottom="@+id/tv_nickname"
60
+                    android:layout_marginLeft="5dp"
76 61
                     android:gravity="center_vertical"
77
-                    />
62
+                    android:text="13341145656"
63
+                    android:textColor="@color/black_333333"
64
+                    android:textSize="15sp"
65
+                    app:layout_constraintLeft_toRightOf="@+id/tv_nickname"
66
+                    app:layout_constraintTop_toTopOf="@+id/tv_nickname" />
78 67
 
79 68
                 <LinearLayout
69
+                    android:id="@+id/layout_member"
80 70
                     android:layout_width="wrap_content"
81 71
                     android:layout_height="wrap_content"
82 72
                     android:layout_marginLeft="5dp"
73
+                    android:orientation="horizontal"
83 74
                     app:layout_constraintBottom_toBottomOf="@+id/iv_avatar"
84
-                    app:layout_constraintLeft_toRightOf="@+id/iv_avatar"
85
-                    android:orientation="horizontal">
75
+                    app:layout_constraintLeft_toRightOf="@+id/iv_avatar">
76
+
86 77
                     <ImageView
87 78
                         android:id="@+id/iv_member_member"
88 79
                         android:layout_width="wrap_content"
@@ -96,189 +87,74 @@
96 87
                         android:layout_height="wrap_content"
97 88
                         android:layout_marginLeft="3dp"
98 89
                         android:visibility="gone" />
90
+
99 91
                     <ImageView
100 92
                         android:id="@+id/iv_member_lhcsr"
101 93
                         android:layout_width="wrap_content"
102 94
                         android:layout_height="wrap_content"
103
-                        android:visibility="gone"
104
-                        />
95
+                        android:visibility="gone" />
105 96
                 </LinearLayout>
106 97
 
107
-                <androidx.constraintlayout.widget.ConstraintLayout
98
+                <LinearLayout
108 99
                     android:layout_width="match_parent"
109
-                    android:layout_height="180dp"
100
+                    android:layout_height="wrap_content"
101
+                    android:layout_marginTop="45dp"
102
+                    android:orientation="horizontal"
110 103
                     android:layout_marginLeft="16dp"
111
-                    android:layout_marginTop="30dp"
112 104
                     android:layout_marginRight="16dp"
113
-                    android:background="@drawable/shape_ffffff_8dp"
114
-                    android:paddingLeft="40dp"
115
-                    android:paddingTop="20dp"
116
-                    android:paddingRight="40dp"
117
-                    android:paddingBottom="20dp"
118
-                    android:maxLines="1"
119
-                    android:ellipsize="end"
120
-                    app:layout_constraintLeft_toLeftOf="parent"
121
-                    app:layout_constraintTop_toBottomOf="@+id/iv_avatar"
122
-                    >
105
+                    android:background="@drawable/shape_white_8dp"
106
+                    android:paddingTop="13dp"
107
+                    android:paddingBottom="13dp"
108
+                    app:layout_constraintTop_toBottomOf="@+id/layout_member">
123 109
 
124 110
                     <TextView
125
-                        android:id="@+id/tv_name_annuity"
126
-                        android:layout_width="0dp"
127
-                        android:layout_height="wrap_content"
128
-                        android:text="@string/yanglaojin"
129
-                        android:textColor="@color/black_333333"
130
-                        android:textSize="13sp"
131
-                        app:layout_constraintHorizontal_weight="3"
132
-                        app:layout_constraintLeft_toLeftOf="parent"
133
-                        app:layout_constraintRight_toLeftOf="@+id/tv_name_commission"
134
-                        app:layout_constraintTop_toTopOf="parent" />
135
-
136
-                    <com.yihucha.hbyhc.view.BoldText
137
-                        android:id="@+id/tv_annuity"
138
-                        android:layout_width="0dp"
111
+                        android:id="@+id/tv_mine_yj"
112
+                        android:layout_width="wrap_content"
139 113
                         android:layout_height="wrap_content"
140
-                        android:layout_marginTop="5dp"
141
-                        android:text="0"
142
-                        android:maxLines="1"
143
-                        android:maxLength="7"
144
-                        android:ellipsize="end"
114
+                        android:layout_weight="1"
115
+                        android:drawableTop="@mipmap/icon_mine_yj"
116
+                        android:drawablePadding="8dp"
117
+                        android:gravity="center"
118
+                        android:text="我的佣金"
145 119
                         android:textColor="@color/black_333333"
146
-                        android:textSize="18sp"
147
-                        app:layout_constraintHorizontal_weight="3"
148
-                        app:layout_constraintLeft_toLeftOf="@+id/tv_name_annuity"
149
-                        app:layout_constraintRight_toLeftOf="@+id/tv_my_commission"
150
-                        app:layout_constraintTop_toBottomOf="@+id/tv_name_annuity" />
120
+                        android:textSize="12sp" />
151 121
 
152 122
                     <TextView
153
-                        android:id="@+id/tv_name_commission"
154
-                        android:layout_width="0dp"
155
-                        android:layout_height="wrap_content"
156
-                        android:text="@string/my_commission"
157
-                        android:textColor="@color/black_333333"
158
-                        android:textSize="13sp"
159
-                        android:paddingLeft="25dp"
160
-                        app:layout_constraintHorizontal_weight="2"
161
-                        app:layout_constraintLeft_toRightOf="@+id/tv_name_annuity"
162
-                        app:layout_constraintRight_toRightOf="parent"
163
-                        app:layout_constraintTop_toTopOf="@+id/tv_name_annuity" />
164
-
165
-                    <com.yihucha.hbyhc.view.BoldText
166
-                        android:id="@+id/tv_my_commission"
167
-                        android:layout_width="0dp"
123
+                        android:id="@+id/tv_mine_ljf"
124
+                        android:layout_width="wrap_content"
168 125
                         android:layout_height="wrap_content"
169
-                        android:ellipsize="end"
170
-                        android:maxLines="1"
171
-                        android:maxLength="7"
172
-                        android:paddingLeft="25dp"
173
-                        android:text="0"
126
+                        android:layout_weight="1"
127
+                        android:drawableTop="@mipmap/icon_mine_lvf"
128
+                        android:drawablePadding="8dp"
129
+                        android:gravity="center"
130
+                        android:text="我的绿积分"
174 131
                         android:textColor="@color/black_333333"
175
-                        android:textSize="18sp"
176
-                        app:layout_constraintHorizontal_weight="2"
177
-                        app:layout_constraintLeft_toRightOf="@+id/tv_annuity"
178
-                        app:layout_constraintRight_toRightOf="parent"
179
-                        app:layout_constraintTop_toTopOf="@+id/tv_annuity" />
132
+                        android:textSize="12sp" />
180 133
 
181 134
                     <TextView
182
-                        android:id="@+id/tv_name_integral"
183
-                        android:layout_width="0dp"
184
-                        android:layout_height="wrap_content"
185
-                        android:layout_marginTop="50dp"
186
-                        android:text="@string/my_integral"
187
-                        android:textColor="@color/black_333333"
188
-                        android:textSize="13sp"
189
-                        app:layout_constraintHorizontal_weight="3"
190
-                        app:layout_constraintLeft_toLeftOf="@+id/tv_name_annuity"
191
-                        app:layout_constraintRight_toLeftOf="@+id/tv_name_redintegral"
192
-                        app:layout_constraintTop_toBottomOf="@+id/tv_annuity" />
193
-                    <View
194
-                        android:layout_width="1.5dp"
195
-                        android:layout_height="20dp"
196
-                        android:background="@color/gray_e5e5e5"
197
-                        app:layout_constraintTop_toTopOf="@+id/tv_name_integral"
198
-                        app:layout_constraintBottom_toBottomOf="@+id/tv_my_integral"
199
-                        app:layout_constraintLeft_toRightOf="@+id/tv_name_integral"
200
-                        />
201
-                    <View
202
-                        android:layout_width="1.5dp"
203
-                        android:layout_height="20dp"
204
-                        android:background="@color/gray_e5e5e5"
205
-                        app:layout_constraintTop_toTopOf="@+id/tv_name_redintegral"
206
-                        app:layout_constraintBottom_toBottomOf="@+id/tv_red_integral"
207
-                        app:layout_constraintLeft_toRightOf="@+id/tv_name_redintegral"
208
-                        />
209
-                    <TextView
210
-                        android:id="@+id/tv_name_redintegral"
211
-                        android:layout_width="0dp"
135
+                        android:id="@+id/tv_mine_td"
136
+                        android:layout_width="wrap_content"
212 137
                         android:layout_height="wrap_content"
213
-                        android:text="@string/red_integral"
138
+                        android:layout_weight="1"
139
+                        android:drawableTop="@mipmap/icon_mine_td"
140
+                        android:drawablePadding="8dp"
141
+                        android:gravity="center"
142
+                        android:text="我的团队"
214 143
                         android:textColor="@color/black_333333"
215
-                        android:textSize="13sp"
216
-                        android:layout_marginLeft="15dp"
217
-                        app:layout_constraintHorizontal_weight="3"
218
-                        app:layout_constraintLeft_toRightOf="@+id/tv_name_integral"
219
-                        app:layout_constraintRight_toLeftOf="@+id/tv_name_team_count"
220
-                        app:layout_constraintTop_toTopOf="@+id/tv_name_integral" />
144
+                        android:textSize="12sp" />
221 145
 
222 146
                     <TextView
223
-                        android:id="@+id/tv_name_team_count"
224
-                        android:layout_width="0dp"
225
-                        android:layout_height="wrap_content"
226
-                        android:text="@string/team_count"
227
-                        android:textColor="@color/black_333333"
228
-                        android:textSize="13sp"
229
-                        android:layout_marginLeft="15dp"
230
-                        app:layout_constraintHorizontal_weight="2"
231
-                        app:layout_constraintLeft_toRightOf="@+id/tv_name_redintegral"
232
-                        app:layout_constraintRight_toRightOf="parent"
233
-                        app:layout_constraintTop_toTopOf="@+id/tv_name_integral" />
234
-
235
-                    <com.yihucha.hbyhc.view.BoldText
236
-                        android:id="@+id/tv_my_integral"
237
-                        android:layout_width="0dp"
238
-                        android:layout_height="wrap_content"
239
-                        android:layout_marginTop="5dp"
240
-                        android:text="0"
241
-                        android:textColor="@color/black_333333"
242
-                        android:textSize="15sp"
243
-                        android:maxLength="7"
244
-                        android:ellipsize="end"
245
-                        app:layout_constraintHorizontal_weight="3"
246
-                        app:layout_constraintLeft_toLeftOf="@+id/tv_name_annuity"
247
-                        app:layout_constraintRight_toLeftOf="@+id/tv_red_integral"
248
-                        app:layout_constraintTop_toBottomOf="@+id/tv_name_integral" />
249
-
250
-                    <com.yihucha.hbyhc.view.BoldText
251
-                        android:id="@+id/tv_red_integral"
252
-                        android:layout_width="0dp"
253
-                        android:layout_height="wrap_content"
254
-                        android:text="0"
255
-                        android:textColor="@color/black_333333"
256
-                        android:textSize="15sp"
257
-                        android:layout_marginLeft="15dp"
258
-                        android:maxLines="1"
259
-                        android:maxLength="7"
260
-                        android:ellipsize="end"
261
-                        app:layout_constraintHorizontal_weight="3"
262
-                        app:layout_constraintLeft_toRightOf="@+id/tv_my_integral"
263
-                        app:layout_constraintRight_toLeftOf="@+id/tv_team_count"
264
-                        app:layout_constraintTop_toTopOf="@+id/tv_my_integral" />
265
-
266
-                    <com.yihucha.hbyhc.view.BoldText
267
-                        android:id="@+id/tv_team_count"
268
-                        android:layout_width="0dp"
147
+                        android:id="@+id/tv_mine_yq"
148
+                        android:layout_width="wrap_content"
269 149
                         android:layout_height="wrap_content"
270
-                        android:layout_marginLeft="15dp"
271
-                        android:text="0"
272
-                        android:maxLines="1"
273
-                        android:maxLength="7"
274
-                        android:ellipsize="end"
150
+                        android:layout_weight="1"
151
+                        android:drawableTop="@mipmap/icon_mine_yq"
152
+                        android:drawablePadding="8dp"
153
+                        android:gravity="center"
154
+                        android:text="分享邀请"
275 155
                         android:textColor="@color/black_333333"
276
-                        android:textSize="15sp"
277
-                        app:layout_constraintHorizontal_weight="2"
278
-                        app:layout_constraintLeft_toRightOf="@+id/tv_red_integral"
279
-                        app:layout_constraintRight_toRightOf="parent"
280
-                        app:layout_constraintTop_toTopOf="@+id/tv_my_integral" />
281
-                </androidx.constraintlayout.widget.ConstraintLayout>
156
+                        android:textSize="12sp" />
157
+                </LinearLayout>
282 158
             </androidx.constraintlayout.widget.ConstraintLayout>
283 159
 
284 160
             <LinearLayout
@@ -597,383 +473,198 @@
597 473
                 <LinearLayout
598 474
                     android:layout_width="match_parent"
599 475
                     android:layout_height="wrap_content"
600
-                    android:orientation="vertical">
476
+                    android:layout_marginTop="16dp"
477
+                    android:orientation="horizontal">
601 478
 
602 479
                     <LinearLayout
603
-                        android:layout_width="match_parent"
480
+                        android:id="@+id/ll_address"
481
+                        android:layout_width="0dp"
604 482
                         android:layout_height="wrap_content"
605
-                        android:layout_marginTop="16dp"
606
-                        android:orientation="horizontal">
483
+                        android:layout_weight="1"
484
+                        android:gravity="center"
485
+                        android:orientation="vertical">
607 486
 
608
-                        <LinearLayout
609
-                            android:id="@+id/ll_my_invitation"
610
-                            android:layout_width="0dp"
487
+                        <ImageView
488
+                            android:layout_width="wrap_content"
611 489
                             android:layout_height="wrap_content"
612
-                            android:layout_weight="1"
613
-                            android:gravity="center"
614
-                            android:orientation="vertical">
490
+                            android:src="@mipmap/wodedizhi_220620" />
615 491
 
616
-                            <ImageView
617
-                                android:layout_width="wrap_content"
618
-                                android:layout_height="wrap_content"
619
-                                android:src="@mipmap/wodeyaoqing_220620" />
620
-
621
-                            <TextView
622
-                                android:layout_width="wrap_content"
623
-                                android:layout_height="wrap_content"
624
-                                android:layout_marginTop="13dp"
625
-                                android:text="@string/wodeyaoqing"
626
-                                android:textColor="@color/black_5f6060"
627
-                                android:textSize="12sp" />
628
-                        </LinearLayout>
629
-
630
-                        <LinearLayout
631
-                            android:id="@+id/ll_address"
632
-                            android:layout_width="0dp"
492
+                        <TextView
493
+                            android:layout_width="wrap_content"
633 494
                             android:layout_height="wrap_content"
634
-                            android:layout_weight="1"
635
-                            android:gravity="center"
636
-                            android:orientation="vertical">
495
+                            android:layout_marginTop="13dp"
496
+                            android:text="@string/wodedizhi"
497
+                            android:textColor="@color/black_5f6060"
498
+                            android:textSize="12sp" />
499
+                    </LinearLayout>
637 500
 
638
-                            <ImageView
639
-                                android:layout_width="wrap_content"
640
-                                android:layout_height="wrap_content"
641
-                                android:src="@mipmap/wodedizhi_220620" />
642
-
643
-                            <TextView
644
-                                android:layout_width="wrap_content"
645
-                                android:layout_height="wrap_content"
646
-                                android:layout_marginTop="13dp"
647
-                                android:text="@string/wodedizhi"
648
-                                android:textColor="@color/black_5f6060"
649
-                                android:textSize="12sp" />
650
-                        </LinearLayout>
651
-
652
-                        <LinearLayout
653
-                            android:id="@+id/ll_my_favorite"
654
-                            android:layout_width="0dp"
655
-                            android:layout_height="wrap_content"
656
-                            android:layout_weight="1"
657
-                            android:gravity="center"
658
-                            android:orientation="vertical">
501
+                    <LinearLayout
502
+                        android:id="@+id/ll_my_favorite"
503
+                        android:layout_width="0dp"
504
+                        android:layout_height="wrap_content"
505
+                        android:layout_weight="1"
506
+                        android:gravity="center"
507
+                        android:orientation="vertical">
659 508
 
660
-                            <ImageView
661
-                                android:layout_width="wrap_content"
662
-                                android:layout_height="wrap_content"
663
-                                android:src="@mipmap/wodeshoucang_220620" />
664
-
665
-                            <TextView
666
-                                android:layout_width="wrap_content"
667
-                                android:layout_height="wrap_content"
668
-                                android:layout_marginTop="13dp"
669
-                                android:text="@string/wodeshoucang"
670
-                                android:textColor="@color/black_5f6060"
671
-                                android:textSize="12sp" />
672
-                        </LinearLayout>
673
-
674
-                        <LinearLayout
675
-                            android:id="@+id/ll_wodeguanzhu"
676
-                            android:layout_width="0dp"
509
+                        <ImageView
510
+                            android:layout_width="wrap_content"
677 511
                             android:layout_height="wrap_content"
678
-                            android:layout_weight="1"
679
-                            android:gravity="center"
680
-                            android:orientation="vertical">
512
+                            android:src="@mipmap/wodeshoucang_220620" />
681 513
 
682
-                            <ImageView
683
-                                android:layout_width="wrap_content"
684
-                                android:layout_height="wrap_content"
685
-                                android:src="@mipmap/wodeguanzhu_220620" />
686
-
687
-                            <TextView
688
-                                android:layout_width="wrap_content"
689
-                                android:layout_height="wrap_content"
690
-                                android:layout_marginTop="13dp"
691
-                                android:text="@string/wodeguanzhu"
692
-                                android:textColor="@color/black_5f6060"
693
-                                android:textSize="12sp" />
694
-                        </LinearLayout>
514
+                        <TextView
515
+                            android:layout_width="wrap_content"
516
+                            android:layout_height="wrap_content"
517
+                            android:layout_marginTop="13dp"
518
+                            android:text="@string/wodeshoucang"
519
+                            android:textColor="@color/black_5f6060"
520
+                            android:textSize="12sp" />
695 521
                     </LinearLayout>
696 522
 
697 523
                     <LinearLayout
698
-                        android:layout_width="match_parent"
524
+                        android:id="@+id/ll_wodepingjia"
525
+                        android:layout_width="0dp"
699 526
                         android:layout_height="wrap_content"
700
-                        android:layout_marginTop="16dp"
701
-                        android:orientation="horizontal">
527
+                        android:layout_weight="1"
528
+                        android:gravity="center"
529
+                        android:orientation="vertical">
702 530
 
703
-                        <LinearLayout
704
-                            android:id="@+id/ll_sanfangdingdan"
705
-                            android:layout_width="0dp"
531
+                        <ImageView
532
+                            android:layout_width="wrap_content"
706 533
                             android:layout_height="wrap_content"
707
-                            android:layout_weight="1"
708
-                            android:gravity="center"
709
-                            android:orientation="vertical">
534
+                            android:src="@mipmap/wodepingjia_220620" />
710 535
 
711
-                            <ImageView
712
-                                android:layout_width="wrap_content"
713
-                                android:layout_height="wrap_content"
714
-                                android:src="@mipmap/sanfangdingdan_220620" />
715
-
716
-                            <TextView
717
-                                android:layout_width="wrap_content"
718
-                                android:layout_height="wrap_content"
719
-                                android:layout_marginTop="13dp"
720
-                                android:text="@string/sanfangdingdan"
721
-                                android:textColor="@color/black_5f6060"
722
-                                android:textSize="12sp" />
723
-                        </LinearLayout>
724
-
725
-
726
-
727
-                        <LinearLayout
728
-                            android:id="@+id/ll_wodepingjia"
729
-                            android:layout_width="0dp"
536
+                        <TextView
537
+                            android:layout_width="wrap_content"
730 538
                             android:layout_height="wrap_content"
731
-                            android:layout_weight="1"
732
-                            android:gravity="center"
733
-                            android:orientation="vertical">
539
+                            android:layout_marginTop="13dp"
540
+                            android:text="@string/wodepingjia"
541
+                            android:textColor="@color/black_5f6060"
542
+                            android:textSize="12sp" />
543
+                    </LinearLayout>
734 544
 
735
-                            <ImageView
736
-                                android:layout_width="wrap_content"
737
-                                android:layout_height="wrap_content"
738
-                                android:src="@mipmap/wodepingjia_220620" />
739
-
740
-                            <TextView
741
-                                android:layout_width="wrap_content"
742
-                                android:layout_height="wrap_content"
743
-                                android:layout_marginTop="13dp"
744
-                                android:text="@string/wodepingjia"
745
-                                android:textColor="@color/black_5f6060"
746
-                                android:textSize="12sp" />
747
-                        </LinearLayout>
748
-
749
-                        <LinearLayout
750
-                            android:id="@+id/ll_wodeerweima"
751
-                            android:layout_width="0dp"
752
-                            android:layout_height="wrap_content"
753
-                            android:layout_weight="1"
754
-                            android:gravity="center"
755
-                            android:orientation="vertical">
545
+                    <LinearLayout
546
+                        android:id="@+id/ll_bangzhuzhongxin"
547
+                        android:layout_width="0dp"
548
+                        android:layout_height="wrap_content"
549
+                        android:layout_weight="1"
550
+                        android:gravity="center"
551
+                        android:orientation="vertical">
756 552
 
757
-                            <ImageView
758
-                                android:layout_width="wrap_content"
759
-                                android:layout_height="wrap_content"
760
-                                android:src="@mipmap/invite_friends_221023" />
761
-
762
-                            <TextView
763
-                                android:layout_width="wrap_content"
764
-                                android:layout_height="wrap_content"
765
-                                android:layout_marginTop="13dp"
766
-                                android:text="@string/invite_friends"
767
-                                android:textColor="@color/black_5f6060"
768
-                                android:textSize="12sp" />
769
-                        </LinearLayout>
770
-                        <LinearLayout
771
-                            android:id="@+id/ll_shangpuruzhu"
772
-                            android:layout_width="0dp"
553
+                        <ImageView
554
+                            android:layout_width="wrap_content"
773 555
                             android:layout_height="wrap_content"
774
-                            android:layout_weight="1"
775
-                            android:gravity="center"
776
-                            android:orientation="vertical">
556
+                            android:src="@mipmap/bangzhuzhongxin_220620" />
777 557
 
778
-                            <ImageView
779
-                                android:layout_width="wrap_content"
780
-                                android:layout_height="wrap_content"
781
-                                android:src="@mipmap/dianpuruzhu_220620" />
782
-
783
-                            <TextView
784
-                                android:id="@+id/tv_dianpu"
785
-                                android:layout_width="wrap_content"
786
-                                android:layout_height="wrap_content"
787
-                                android:layout_marginTop="13dp"
788
-                                android:text="@string/shangpuruzhu"
789
-                                android:textColor="@color/black_5f6060"
790
-                                android:textSize="12sp" />
791
-                        </LinearLayout>
558
+                        <TextView
559
+                            android:layout_width="wrap_content"
560
+                            android:layout_height="wrap_content"
561
+                            android:layout_marginTop="13dp"
562
+                            android:text="@string/bangzhuzhongxin"
563
+                            android:textColor="@color/black_5f6060"
564
+                            android:textSize="12sp" />
792 565
                     </LinearLayout>
566
+                </LinearLayout>
567
+
568
+                <LinearLayout
569
+                    android:layout_width="match_parent"
570
+                    android:layout_height="wrap_content"
571
+                    android:layout_marginTop="16dp"
572
+                    android:orientation="horizontal">
793 573
 
794 574
                     <LinearLayout
795
-                        android:layout_width="match_parent"
575
+                        android:id="@+id/ll_connect_us"
576
+                        android:layout_width="0dp"
796 577
                         android:layout_height="wrap_content"
797
-                        android:layout_marginTop="16dp"
798
-                        android:orientation="horizontal">
799
-                        <LinearLayout
800
-                            android:id="@+id/ll_settingup"
801
-                            android:layout_width="0dp"
578
+                        android:layout_weight="1"
579
+                        android:gravity="center"
580
+                        android:orientation="vertical">
581
+
582
+                        <ImageView
583
+                            android:layout_width="wrap_content"
802 584
                             android:layout_height="wrap_content"
803
-                            android:layout_weight="1"
804
-                            android:gravity="center"
805
-                            android:orientation="vertical">
585
+                            android:src="@mipmap/connect_us" />
806 586
 
807
-                            <ImageView
808
-                                android:layout_width="wrap_content"
809
-                                android:layout_height="wrap_content"
810
-                                android:src="@mipmap/mine_setting_220620" />
811
-
812
-                            <TextView
813
-                                android:layout_width="wrap_content"
814
-                                android:layout_height="wrap_content"
815
-                                android:layout_marginTop="13dp"
816
-                                android:text="@string/setting"
817
-                                android:textColor="@color/black_5f6060"
818
-                                android:textSize="12sp" />
819
-                        </LinearLayout>
820
-                        <LinearLayout
821
-                            android:id="@+id/ll_bangfuzhongxin"
822
-                            android:layout_width="0dp"
587
+                        <TextView
588
+                            android:layout_width="wrap_content"
823 589
                             android:layout_height="wrap_content"
824
-                            android:layout_weight="1"
825
-                            android:gravity="center"
826
-                            android:visibility="invisible"
827
-                            android:orientation="vertical">
590
+                            android:layout_marginTop="13dp"
591
+                            android:text="@string/connect_kefu"
592
+                            android:textColor="@color/black_5f6060"
593
+                            android:textSize="12sp" />
594
+                    </LinearLayout>
828 595
 
829
-                            <ImageView
830
-                                android:layout_width="wrap_content"
831
-                                android:layout_height="wrap_content"
832
-                                android:src="@mipmap/bfzx3" />
596
+                    <LinearLayout
597
+                        android:id="@+id/ll_settingup"
598
+                        android:layout_width="0dp"
599
+                        android:layout_height="wrap_content"
600
+                        android:layout_weight="1"
601
+                        android:gravity="center"
602
+                        android:orientation="vertical">
833 603
 
834
-                            <TextView
835
-                                android:layout_width="wrap_content"
836
-                                android:layout_height="wrap_content"
837
-                                android:layout_marginTop="13dp"
838
-                                android:text="帮扶中心"
839
-                                android:textColor="@color/black_5f6060"
840
-                                android:textSize="12sp" />
841
-                        </LinearLayout>
604
+                        <ImageView
605
+                            android:layout_width="wrap_content"
606
+                            android:layout_height="wrap_content"
607
+                            android:src="@mipmap/mine_setting_220620" />
842 608
 
609
+                        <TextView
610
+                            android:layout_width="wrap_content"
611
+                            android:layout_height="wrap_content"
612
+                            android:layout_marginTop="13dp"
613
+                            android:text="@string/setting"
614
+                            android:textColor="@color/black_5f6060"
615
+                            android:textSize="12sp" />
616
+                    </LinearLayout>
843 617
 
844 618
 
845
-                        <LinearLayout
846
-                            android:id="@+id/ll_chuangfubao"
847
-                            android:layout_width="0dp"
848
-                            android:layout_height="wrap_content"
849
-                            android:layout_weight="1"
850
-                            android:gravity="center"
851
-                            android:orientation="vertical"
852
-                            android:visibility="gone">
619
+                    <LinearLayout
620
+                        android:id="@+id/ll_wodeerweima_x"
621
+                        android:layout_width="0dp"
622
+                        android:layout_height="wrap_content"
623
+                        android:layout_weight="1"
624
+                        android:gravity="center"
625
+                        android:orientation="vertical"
626
+                        android:visibility="invisible">
853 627
 
854
-                            <ImageView
855
-                                android:layout_width="wrap_content"
856
-                                android:layout_height="wrap_content"
857
-                                android:src="@mipmap/me_chuangfubao_logo_230331" />
858
-
859
-                            <TextView
860
-                                android:layout_width="wrap_content"
861
-                                android:layout_height="wrap_content"
862
-                                android:layout_marginTop="13dp"
863
-                                android:text="创富宝"
864
-                                android:textColor="@color/black_5f6060"
865
-                                android:textSize="12sp" />
866
-                        </LinearLayout>
867
-
868
-                        <LinearLayout
869
-                            android:id="@+id/ll_account_service_fee"
870
-                            android:layout_width="0dp"
628
+                        <ImageView
629
+                            android:layout_width="wrap_content"
871 630
                             android:layout_height="wrap_content"
872
-                            android:layout_weight="1"
873
-                            android:gravity="center"
874
-                            android:orientation="vertical"
875
-                            android:visibility="invisible">
631
+                            android:src="@mipmap/invite_friends_221023" />
876 632
 
877
-                            <ImageView
878
-                                android:layout_width="wrap_content"
879
-                                android:layout_height="wrap_content"
880
-                                android:src="@mipmap/zhanghaofuwufei_230411" />
881
-
882
-                            <TextView
883
-                                android:layout_width="wrap_content"
884
-                                android:layout_height="wrap_content"
885
-                                android:layout_marginTop="13dp"
886
-                                android:text="账号服务费"
887
-                                android:textColor="@color/black_5f6060"
888
-                                android:textSize="12sp" />
889
-                        </LinearLayout>
890
-                        <View
891
-                            android:layout_width="0dp"
633
+                        <TextView
634
+                            android:layout_width="wrap_content"
892 635
                             android:layout_height="wrap_content"
893
-                            android:layout_weight="1"
894
-                            />
636
+                            android:layout_marginTop="13dp"
637
+                            android:text="@string/invite_friends"
638
+                            android:textColor="@color/black_5f6060"
639
+                            android:textSize="12sp" />
895 640
                     </LinearLayout>
896
-                </LinearLayout>
897
-            </LinearLayout>
898
-        <LinearLayout
899
-            android:layout_width="match_parent"
900
-            android:layout_height="wrap_content"
901
-            android:layout_marginLeft="16dp"
902
-            android:layout_marginTop="13dp"
903
-            android:layout_marginRight="16dp"
904
-            android:background="@drawable/shape_ffffff_8dp"
905
-            android:orientation="vertical"
906
-            android:paddingLeft="10dp"
907
-            android:paddingTop="16dp"
908
-            android:paddingRight="10dp"
909
-            android:paddingBottom="16dp">
910
-            <TextView
911
-                android:layout_width="wrap_content"
912
-                android:layout_height="wrap_content"
913
-                android:text="@string/connect_us"
914
-                android:textColor="@color/black_333333"
915
-                android:textSize="15dp" />
916
-            <LinearLayout
917
-                android:layout_width="match_parent"
918
-                android:layout_height="wrap_content"
919
-                android:orientation="horizontal"
920
-                android:layout_marginTop="15dp"
921
-                >
922
-                <LinearLayout
923
-                    android:id="@+id/ll_connect_us"
924
-                    android:layout_width="0dp"
925
-                    android:layout_height="wrap_content"
926
-                    android:layout_weight="1"
927
-                    android:gravity="center"
928
-                    android:orientation="vertical">
929 641
 
930
-                    <ImageView
931
-                        android:layout_width="wrap_content"
932
-                        android:layout_height="wrap_content"
933
-                        android:src="@mipmap/connect_us" />
934
-
935
-                    <TextView
936
-                        android:layout_width="wrap_content"
642
+                    <LinearLayout
643
+                        android:id="@+id/ll_shangpuruzhu_x"
644
+                        android:layout_width="0dp"
937 645
                         android:layout_height="wrap_content"
938
-                        android:layout_marginTop="13dp"
939
-                        android:text="@string/connect_kefu"
940
-                        android:textColor="@color/black_5f6060"
941
-                        android:textSize="12sp" />
942
-                </LinearLayout>
943
-                <LinearLayout
944
-                    android:id="@+id/ll_bangzhuzhongxin"
945
-                    android:layout_width="0dp"
946
-                    android:layout_height="wrap_content"
947
-                    android:layout_weight="1"
948
-                    android:gravity="center"
949
-                    android:orientation="vertical">
646
+                        android:layout_weight="1"
647
+                        android:gravity="center"
648
+                        android:orientation="vertical"
649
+                        android:visibility="invisible">
950 650
 
951
-                    <ImageView
952
-                        android:layout_width="wrap_content"
953
-                        android:layout_height="wrap_content"
954
-                        android:src="@mipmap/bangzhuzhongxin_220620" />
651
+                        <ImageView
652
+                            android:layout_width="wrap_content"
653
+                            android:layout_height="wrap_content"
654
+                            android:src="@mipmap/dianpuruzhu_220620" />
955 655
 
956
-                    <TextView
957
-                        android:layout_width="wrap_content"
958
-                        android:layout_height="wrap_content"
959
-                        android:layout_marginTop="13dp"
960
-                        android:text="@string/bangzhuzhongxin"
961
-                        android:textColor="@color/black_5f6060"
962
-                        android:textSize="12sp" />
656
+                        <TextView
657
+                            android:id="@+id/tv_dianpu_x"
658
+                            android:layout_width="wrap_content"
659
+                            android:layout_height="wrap_content"
660
+                            android:layout_marginTop="13dp"
661
+                            android:text="@string/shangpuruzhu"
662
+                            android:textColor="@color/black_5f6060"
663
+                            android:textSize="12sp" />
664
+                    </LinearLayout>
963 665
                 </LinearLayout>
964
-                <View
965
-                    android:layout_width="0dp"
966
-                    android:layout_height="wrap_content"
967
-                    android:layout_weight="1"
968
-                    />
969
-                <View
970
-                    android:layout_width="0dp"
971
-                    android:layout_height="wrap_content"
972
-                    android:layout_weight="1"
973
-                    />
974 666
             </LinearLayout>
975 667
 
976 668
         </LinearLayout>
977
-        </LinearLayout>
978 669
     </ScrollView>
979 670
 </LinearLayout>

+ 56 - 0
app/src/main/res/layout/green_integral_use_info.xml

@@ -0,0 +1,56 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
+    android:layout_width="315dp"
4
+    android:layout_height="wrap_content"
5
+    android:background="@drawable/shape_white_8dp"
6
+    android:padding="20dp">
7
+
8
+    <TextView
9
+        android:id="@+id/tv_dialog_title"
10
+        android:layout_width="match_parent"
11
+        android:layout_height="wrap_content"
12
+        android:gravity="center"
13
+        android:text="绿积分使用说明"
14
+        android:textColor="@color/black_333333"
15
+        android:textSize="19sp" />
16
+
17
+    <TextView
18
+        android:id="@+id/tv_dialog_second_title"
19
+        android:layout_width="wrap_content"
20
+        android:layout_height="wrap_content"
21
+        android:layout_below="@+id/tv_dialog_title"
22
+        android:layout_marginTop="16dp"
23
+        android:text="使用条件"
24
+        android:textColor="@color/black_333333"
25
+        android:textSize="15sp" />
26
+
27
+    <TextView
28
+        android:id="@+id/tv_dialog_content"
29
+        android:layout_width="wrap_content"
30
+        android:layout_height="wrap_content"
31
+        android:layout_below="@+id/tv_dialog_second_title"
32
+        android:layout_marginTop="10dp"
33
+        android:text="1.必须邀请2个用户在会员区下单,绿积分才可使用;\n
34
+2.绿积分数≥单笔订单金额,才可使用;\n
35
+3.绿积分不支持兑换低于当前身份的商品;\n
36
+4.绿积分只能整数兑换,不支持小数扣减;\n
37
+5、使用绿积分兑换没有养老金。"
38
+        android:textColor="@color/black_333333"
39
+        android:textSize="14sp" />
40
+
41
+    <TextView
42
+        android:id="@+id/tv_dialog_iknow"
43
+        android:layout_width="match_parent"
44
+        android:layout_height="wrap_content"
45
+        android:layout_below="@+id/tv_dialog_content"
46
+        android:layout_marginLeft="16dp"
47
+        android:layout_marginTop="16dp"
48
+        android:layout_marginRight="16dp"
49
+        android:background="@drawable/shape_fe0032_50dp"
50
+        android:gravity="center"
51
+        android:paddingTop="10dp"
52
+        android:paddingBottom="10dp"
53
+        android:text="我知道了"
54
+        android:textColor="@color/white"
55
+        android:textSize="16sp" />
56
+</RelativeLayout>

+ 81 - 9
app/src/main/res/layout/item_order_shop.xml

@@ -116,27 +116,27 @@
116 116
                     android:layout_marginLeft="4dp"
117 117
                     android:src="@mipmap/order_other_entry_220624" />
118 118
             </LinearLayout>
119
+
119 120
             <LinearLayout
120
-                android:id="@+id/layout_yhq"
121
+                android:id="@+id/layout_yf"
121 122
                 android:layout_width="match_parent"
122 123
                 android:layout_height="wrap_content"
123 124
                 android:layout_marginTop="25dp"
124 125
                 android:orientation="horizontal">
125 126
 
126 127
                 <TextView
127
-
128 128
                     android:layout_width="0dp"
129 129
                     android:layout_height="wrap_content"
130 130
                     android:layout_weight="1"
131
-                    android:text="@string/discount_coupon"
131
+                    android:text="@string/freight"
132 132
                     android:textColor="@color/black_333333"
133 133
                     android:textSize="14sp" />
134 134
 
135 135
                 <TextView
136
-                    android:id="@+id/tv_yhq"
136
+                    android:id="@+id/tv_yf"
137 137
                     android:layout_width="wrap_content"
138 138
                     android:layout_height="wrap_content"
139
-                    android:text="暂无可用优惠券"
139
+                    android:text="¥0.00"
140 140
                     android:textColor="@color/gray_999999"
141 141
                     android:textSize="14sp" />
142 142
 
@@ -144,29 +144,59 @@
144 144
                     android:layout_width="wrap_content"
145 145
                     android:layout_height="wrap_content"
146 146
                     android:layout_marginLeft="4dp"
147
+                    android:visibility="invisible"
147 148
                     android:src="@mipmap/order_other_entry_220624" />
148 149
             </LinearLayout>
150
+            <LinearLayout
151
+                android:id="@+id/layout_sjj"
152
+                android:layout_width="match_parent"
153
+                android:layout_height="wrap_content"
154
+                android:layout_marginTop="25dp"
155
+                android:orientation="horizontal">
156
+
157
+                <TextView
158
+                    android:layout_width="0dp"
159
+                    android:layout_height="wrap_content"
160
+                    android:layout_weight="1"
161
+                    android:text="随机减"
162
+                    android:textColor="@color/black_333333"
163
+                    android:textSize="14sp" />
164
+
165
+                <TextView
166
+                    android:id="@+id/tv_sjj"
167
+                    android:layout_width="wrap_content"
168
+                    android:layout_height="wrap_content"
169
+                    android:text="¥0.00"
170
+                    android:textColor="@color/red_fe0032"
171
+                    android:textSize="14sp" />
149 172
 
173
+                <ImageView
174
+                    android:layout_width="wrap_content"
175
+                    android:layout_height="wrap_content"
176
+                    android:layout_marginLeft="4dp"
177
+                    android:src="@mipmap/order_other_entry_220624" />
178
+            </LinearLayout>
150 179
             <LinearLayout
151
-                android:id="@+id/layout_yf"
180
+                android:id="@+id/layout_yhq"
152 181
                 android:layout_width="match_parent"
153 182
                 android:layout_height="wrap_content"
154 183
                 android:layout_marginTop="25dp"
155 184
                 android:orientation="horizontal">
156 185
 
157 186
                 <TextView
187
+
158 188
                     android:layout_width="0dp"
159 189
                     android:layout_height="wrap_content"
160 190
                     android:layout_weight="1"
161
-                    android:text="@string/freight"
191
+                    android:text="@string/discount_coupon"
162 192
                     android:textColor="@color/black_333333"
163 193
                     android:textSize="14sp" />
164 194
 
165 195
                 <TextView
166
-                    android:id="@+id/tv_yf"
196
+                    android:id="@+id/tv_yhq"
167 197
                     android:layout_width="wrap_content"
168 198
                     android:layout_height="wrap_content"
169
-                    android:text="@string/freight_free"
199
+                    android:text="无可用"
170 200
                     android:textColor="@color/gray_999999"
171 201
                     android:textSize="14sp" />
172 202
 
@@ -176,7 +206,49 @@
176 206
                     android:layout_marginLeft="4dp"
177 207
                     android:src="@mipmap/order_other_entry_220624" />
178 208
             </LinearLayout>
209
+            <LinearLayout
210
+                android:id="@+id/layout_hjf"
211
+                android:layout_width="match_parent"
212
+                android:layout_height="wrap_content"
213
+                android:layout_marginTop="25dp"
214
+                android:orientation="horizontal">
215
+
216
+                <TextView
217
+                    android:layout_width="wrap_content"
218
+                    android:layout_height="wrap_content"
219
+                    android:text="红积分"
220
+                    android:textColor="@color/black_333333"
221
+                    android:textSize="14sp" />
222
+                <ImageView
223
+                    android:id="@+id/imgv_wh"
224
+                    android:layout_width="wrap_content"
225
+                    android:layout_height="wrap_content"
226
+                    android:src="@mipmap/icon_wh"
227
+                    android:layout_gravity="center_vertical"
228
+                    android:layout_marginLeft="6dp"
229
+                    android:padding="5dp"
230
+                    />
231
+                <View
232
+                    android:layout_width="0dp"
233
+                    android:layout_height="1dp"
234
+                    android:layout_weight="1"
235
+                    />
236
+                <TextView
237
+                    android:id="@+id/tv_hjf"
238
+                    android:layout_width="wrap_content"
239
+                    android:layout_height="wrap_content"
240
+                    android:text="共18000个,本次扣除3000个"
241
+                    android:textColor="@color/gray_999999"
242
+                    android:textSize="14sp" />
179 243
 
244
+                <ImageView
245
+                    android:layout_width="wrap_content"
246
+                    android:layout_height="wrap_content"
247
+                    android:layout_marginLeft="4dp"
248
+                    android:src="@mipmap/icon_jh"
249
+                    android:layout_gravity="center_vertical"
250
+                    />
251
+            </LinearLayout>
180 252
             <LinearLayout
181 253
                 android:layout_width="match_parent"
182 254
                 android:layout_height="wrap_content"

BIN=BIN
app/src/main/res/mipmap-xxxhdpi/after_sale_220620.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/bangzhuzhongxin_220620.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/bg_team_top.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/connect_us.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/daifahuo_220620.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/daipingjia_220620.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/daishouhuo_220620.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/icon_daili_qu.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/icon_daili_sheng.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/icon_daili_shequ.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/icon_daili_shi.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/icon_daili_xiang.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/icon_jh.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/icon_member_dongshi.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/icon_member_gongsi.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/icon_member_hehuoren.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/icon_member_jingli.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/icon_member_shanghu.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/icon_member_yonghu.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/icon_member_zhuren.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/icon_member_zongjian.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/icon_mine_lvf.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/icon_mine_td.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/icon_mine_yj.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/icon_mine_yq.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/icon_qiye.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/icon_team_invitate.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/icon_wh.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/img_xsms2.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/mine_setting_220620.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/obligation_220620.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/pyq_221121.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/shangpinxiangqing_dianpu.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/shangpinxiangqing_kefu.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/wodedizhi_220620.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/wodepingjia_220620.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/wodeshoucang_220620.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/woyaohuanhuo.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/woyaotuihuotuikuan.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/woyaotuikuan.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/wx_logo.png


BIN=BIN
app/src/main/res/mipmap-xxxhdpi/wx_share_221121.png