Explorar el Código

2024-2-23 代码备份
提现功能调整
绑定银行卡页面开发完成,接口调试完成(部分toast样式没适配)
红积分页面返回键失效问题解决

zhangbing hace 2 años
padre
commit
e60bfeb907
Se han modificado 24 ficheros con 1017 adiciones y 127 borrados
  1. 13 0
      .idea/ApifoxUploaderProjectSetting.xml
  2. 7 2
      app/src/main/AndroidManifest.xml
  3. 9 0
      app/src/main/java/com/yihucha/hbyhc/network/service/UserService.java
  4. 1 1
      app/src/main/java/com/yihucha/hbyhc/presentation/annuity/AnnuityFragment.kt
  5. 2 0
      app/src/main/java/com/yihucha/hbyhc/presentation/integral/NewRedIntegralActivity.java
  6. 176 0
      app/src/main/java/com/yihucha/hbyhc/presentation/invitation/AddBankCardActivity.kt
  7. 88 45
      app/src/main/java/com/yihucha/hbyhc/presentation/invitation/ImmediateWithdrawalActivity.java
  8. 184 0
      app/src/main/java/com/yihucha/hbyhc/presentation/invitation/model/BankCardBean.java
  9. 50 0
      app/src/main/java/com/yihucha/hbyhc/presentation/invitation/view_model/InviteViewModel.java
  10. 0 15
      app/src/main/java/com/yihucha/hbyhc/presentation/mine/MineFragment.java
  11. 28 0
      app/src/main/java/com/yihucha/hbyhc/utils/EditTextListener.kt
  12. 46 3
      app/src/main/java/com/yihucha/hbyhc/utils/StringsUtil.java
  13. 1 1
      app/src/main/java/com/yihucha/hbyhc/view/PopCommissionSelector.java
  14. 9 0
      app/src/main/res/drawable/shape_bg_area.xml
  15. 247 0
      app/src/main/res/layout/activity_add_bank_card.xml
  16. 150 59
      app/src/main/res/layout/activity_immediate_withdrawal.xml
  17. 3 1
      app/src/main/res/layout/activity_pay.xml
  18. BIN
      app/src/main/res/mipmap-xxxhdpi/bg_bankcard_area.png
  19. BIN
      app/src/main/res/mipmap-xxxhdpi/icon_add.png
  20. BIN
      app/src/main/res/mipmap-xxxhdpi/icon_bank_card.png
  21. BIN
      app/src/main/res/mipmap-xxxhdpi/icon_duigou_red.png
  22. BIN
      app/src/main/res/mipmap-xxxhdpi/icon_wx.png
  23. 1 0
      app/src/main/res/values/colors.xml
  24. 2 0
      app/src/main/res/values/strings.xml

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 13 - 0
.idea/ApifoxUploaderProjectSetting.xml


+ 7 - 2
app/src/main/AndroidManifest.xml

@@ -78,9 +78,14 @@
78 78
         tools:replace="android:theme"
79 79
         tools:targetApi="31">
80 80
         <activity
81
+            android:name=".presentation.invitation.AddBankCardActivity"
82
+            android:exported="false"
83
+            android:label="添加银行卡"
84
+            />
85
+        <activity
81 86
             android:name=".presentation.pay.ShareFriendsPayActivity"
82
-            android:label="代付详情"
83
-            android:exported="false" />
87
+            android:exported="false"
88
+            android:label="代付详情" />
84 89
         <activity
85 90
             android:name=".presentation.integral.NewRedIntegralActivity"
86 91
             android:exported="false"

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

@@ -20,6 +20,7 @@ import com.yihucha.hbyhc.presentation.integral.model.RedIntegralBean;
20 20
 import com.yihucha.hbyhc.presentation.integral.model.RedIntegralBean2;
21 21
 import com.yihucha.hbyhc.presentation.integral.model.RedIntegralListBean;
22 22
 import com.yihucha.hbyhc.presentation.invitation.model.AccumulatedincomeBean;
23
+import com.yihucha.hbyhc.presentation.invitation.model.BankCardBean;
23 24
 import com.yihucha.hbyhc.presentation.invitation.model.InviteFriendsClassifyBean;
24 25
 import com.yihucha.hbyhc.presentation.invitation.model.InviteFriendsPicBean;
25 26
 import com.yihucha.hbyhc.presentation.invitation.model.InviteJavaBean;
@@ -560,6 +561,14 @@ public interface UserService {
560 561
 
561 562
     @GET("api/user/green_integral_list")
562 563
     Observable<DataResponse<List<RedIntegralListBean>>> getRedIntegralBean(@QueryMap Map<String,Object> map);
564
+
565
+    @GET("api/bank/list")
566
+    Observable<DataJavaResponse<List<BankCardBean>>> getBankCardList();
567
+
568
+    @POST("/api/bank/create")
569
+    Observable<DataJavaResponse<String>> addBankCard(@QueryMap Map<String,Object> map);
570
+
571
+
563 572
 //    /**
564 573
 //     *检测用户年费状态
565 574
 //     * @param

+ 1 - 1
app/src/main/java/com/yihucha/hbyhc/presentation/annuity/AnnuityFragment.kt

@@ -134,7 +134,7 @@ class AnnuityFragment : BaseFragment(), View.OnClickListener {
134 134
                 AlreadyRealNameActivity.launch(context)
135 135
             }
136 136
         } else if (view == mViewBinding.llPaymentPlatformBinding) {
137
-            ThirdPartyBindingActivity.launch(context)
137
+//            ThirdPartyBindingActivity.launch(context)
138 138
         } else if (
139 139
             view == mViewBinding.llCiticNotaryOfficeToCheck ||
140 140
             view == mViewBinding.llZxgzc

+ 2 - 0
app/src/main/java/com/yihucha/hbyhc/presentation/integral/NewRedIntegralActivity.java

@@ -161,6 +161,8 @@ public class NewRedIntegralActivity extends ViewBindingTitleBaseActivity<Activit
161 161
             resetSelector();
162 162
             page = 1;
163 163
             loadData();
164
+        }else {
165
+            super.onClick(v);
164 166
         }
165 167
     }
166 168
 

+ 176 - 0
app/src/main/java/com/yihucha/hbyhc/presentation/invitation/AddBankCardActivity.kt

@@ -0,0 +1,176 @@
1
+package com.yihucha.hbyhc.presentation.invitation
2
+
3
+import android.app.Activity
4
+import android.content.Intent
5
+import android.graphics.Color
6
+import android.os.Bundle
7
+import android.view.View
8
+import android.widget.Toast
9
+import androidx.lifecycle.ViewModelProvider
10
+import com.yihucha.hbyhc.R
11
+import com.yihucha.hbyhc.base.ViewBindingTitleBaseActivity
12
+import com.yihucha.hbyhc.databinding.ActivityAddBankCardBinding
13
+import com.yihucha.hbyhc.presentation.annuity.view_model.RealNameAuthenticationViewModel
14
+import com.yihucha.hbyhc.presentation.invitation.model.BankCardBean
15
+import com.yihucha.hbyhc.presentation.invitation.view_model.InviteViewModel
16
+import com.yihucha.hbyhc.utils.EditTextListener
17
+import com.yihucha.hbyhc.utils.EmptyCheckUtils
18
+import com.yihucha.hbyhc.utils.StringsUtil
19
+
20
+class AddBankCardActivity : ViewBindingTitleBaseActivity<ActivityAddBankCardBinding>() {
21
+    var cardImg: String? = null
22
+    var bankCardBean: BankCardBean? = null
23
+    var userNameEmpty = true
24
+    var userCardEmpty = true
25
+    var bankNameEmpty = true
26
+    var bankName2Empty = true
27
+    var bankCardEmpty = true
28
+    private val viewModel by lazy {
29
+        ViewModelProvider(this)[InviteViewModel::class.java]
30
+    }
31
+    private val realNameViewModel by lazy {
32
+        ViewModelProvider(this)[RealNameAuthenticationViewModel::class.java]
33
+    }
34
+
35
+    override fun onCreate(savedInstanceState: Bundle?) {
36
+        super.onCreate(savedInstanceState)
37
+        initView()
38
+        initData()
39
+        initListener()
40
+    }
41
+
42
+    private fun initView() {
43
+        bankCardBean = intent.getSerializableExtra("beans") as BankCardBean
44
+        mViewBinding.apply {
45
+            EditTextListener.onTextListener(edtUserName) {
46
+                userNameEmpty = it
47
+                checkBtnEnabled()
48
+            }
49
+            EditTextListener.onTextListener(edtCardNumber) {
50
+                userCardEmpty = it
51
+                checkBtnEnabled()
52
+            }
53
+            EditTextListener.onTextListener(edtBankName) {
54
+                bankNameEmpty = it
55
+                checkBtnEnabled()
56
+            }
57
+            EditTextListener.onTextListener(edtBankName2) {
58
+                bankName2Empty = it
59
+                checkBtnEnabled()
60
+            }
61
+            EditTextListener.onTextListener(edtBankCardNumber) {
62
+                bankCardEmpty = it
63
+                checkBtnEnabled()
64
+            }
65
+        }
66
+    }
67
+
68
+    private fun initData() {
69
+        if (EmptyCheckUtils.isEmpty(bankCardBean)) {
70
+            val map = mutableMapOf<String, Any>()
71
+            map["type"] = 1
72
+            realNameViewModel.getAutonym(map)
73
+        } else {
74
+            bankCardBean?.let {
75
+                mViewBinding.apply {
76
+                    edtUserName.setText(it.userName)
77
+                    edtCardNumber.setText(it.userCard)
78
+                    edtBankName.setText(it.bankName)
79
+                    edtBankName2.setText(it.bankOpenName)
80
+                    edtBankCardNumber.setText(it.account)
81
+                }
82
+            }
83
+        }
84
+        realNameViewModel.mAutonymData.observe(this) {
85
+            mViewBinding.edtUserName.setText(it.user_name)
86
+            mViewBinding.edtCardNumber.setText(it.user_card)
87
+        }
88
+        viewModel.addBankCardResult.observe(this) {
89
+            Toast.makeText(this, it, Toast.LENGTH_LONG).show()
90
+            finish()
91
+        }
92
+        viewModel.failed.observe(this) {
93
+            Toast.makeText(this, it, Toast.LENGTH_LONG).show()
94
+        }
95
+    }
96
+
97
+    private fun initListener() {
98
+        mViewBinding.apply {
99
+            btnSubmit.setOnClickListener(this@AddBankCardActivity)
100
+        }
101
+    }
102
+
103
+    private fun checkBtnEnabled() {
104
+        val enabled =
105
+            !(userNameEmpty && userCardEmpty && bankNameEmpty && bankName2Empty && bankCardEmpty)
106
+        mViewBinding.btnSubmit.isClickable = enabled
107
+        if (enabled) {
108
+            mViewBinding.btnSubmit.background = getDrawable(R.drawable.shape_fe0032_50dp)
109
+        } else {
110
+            mViewBinding.btnSubmit.background = getDrawable(R.drawable.shape_fe7577_50dp)
111
+        }
112
+
113
+    }
114
+
115
+    companion object {
116
+        @JvmStatic
117
+        fun launch(activity: Activity, bankCardBean: BankCardBean?) {
118
+            val intent = Intent(activity, AddBankCardActivity::class.java)
119
+            if (EmptyCheckUtils.isNotEmpty(bankCardBean)) {
120
+                intent.putExtra("beans", bankCardBean)
121
+            }
122
+            activity.startActivity(intent)
123
+        }
124
+    }
125
+
126
+    override fun onClick(v: View?) {
127
+
128
+        if (v == mViewBinding.btnSubmit) {
129
+            mViewBinding.apply {
130
+                //提交
131
+                if (EmptyCheckUtils.isEmpty(edtUserName.text.toString())) {
132
+                    Toast.makeText(this@AddBankCardActivity, "请输入持卡人姓名", Toast.LENGTH_LONG).show()
133
+                    return
134
+                }
135
+                if (EmptyCheckUtils.isEmpty(edtCardNumber.text.toString())) {
136
+                    Toast.makeText(this@AddBankCardActivity, "请输入持卡人身份证号", Toast.LENGTH_LONG).show()
137
+                    return
138
+                }
139
+                if (EmptyCheckUtils.isEmpty(edtBankName.text.toString())) {
140
+                    Toast.makeText(this@AddBankCardActivity, "请输入银行", Toast.LENGTH_LONG).show()
141
+                    return
142
+                }
143
+                if (EmptyCheckUtils.isEmpty(edtBankName2.text.toString())) {
144
+                    Toast.makeText(this@AddBankCardActivity, "请输入开户支行", Toast.LENGTH_LONG).show()
145
+                    return
146
+                }
147
+                if (EmptyCheckUtils.isEmpty(edtBankCardNumber.text.toString())) {
148
+                    Toast.makeText(this@AddBankCardActivity, "请输入银行卡号", Toast.LENGTH_LONG).show()
149
+                    return
150
+                }
151
+                if (!StringsUtil.isIdCard(edtCardNumber.text.toString())) {
152
+                    Toast.makeText(this@AddBankCardActivity, "身份证号格式错误", Toast.LENGTH_LONG).show()
153
+                    return
154
+                }
155
+/*                if (!StringsUtil.isBank(edtBankCardNumber.text.toString())) {
156
+                    Toast.makeText(this@AddBankCardActivity, "银行卡号格式错误", Toast.LENGTH_LONG).show()
157
+                    return
158
+                }*/
159
+                val map = mutableMapOf<String, Any>()
160
+                map["account"] = edtBankCardNumber //卡号
161
+//                map["valid_date"] = edtBankCardNumber //有效期
162
+                map["bank_card_type"] = 1 //类型
163
+                map["bank_name"] = edtBankName //银行
164
+                map["user_name"] = edtUserName //姓名
165
+                map["user_card"] = edtCardNumber //证件号
166
+                if (EmptyCheckUtils.isNotEmpty(cardImg)) {
167
+                    map["pic"] = cardImg!! //图片
168
+                }
169
+                map["bank_open_name"] = edtBankName2 //开户行
170
+                viewModel.addBankCard(map)
171
+            }
172
+        } else {
173
+            super.onClick(v)
174
+        }
175
+    }
176
+}

+ 88 - 45
app/src/main/java/com/yihucha/hbyhc/presentation/invitation/ImmediateWithdrawalActivity.java

@@ -28,6 +28,7 @@ import com.yihucha.hbyhc.base.WebViewTitleBaseActivity;
28 28
 import com.yihucha.hbyhc.config.Constants;
29 29
 import com.yihucha.hbyhc.databinding.ActivityImmediateWithdrawalBinding;
30 30
 import com.yihucha.hbyhc.presentation.annuity.RealNameAuthenticationActivity;
31
+import com.yihucha.hbyhc.presentation.invitation.model.BankCardBean;
31 32
 import com.yihucha.hbyhc.presentation.invitation.model.SpreadInfoBean;
32 33
 import com.yihucha.hbyhc.presentation.invitation.model.WithdrawalConfigurationBean;
33 34
 import com.yihucha.hbyhc.presentation.invitation.model.WithdrawalServiceBean;
@@ -37,7 +38,9 @@ import com.yihucha.hbyhc.presentation.mine.model.UpdateAccountBean;
37 38
 import com.yihucha.hbyhc.presentation.mine.model.UserAnnuityInfoBean;
38 39
 import com.yihucha.hbyhc.presentation.mine.model.UserInfoModel;
39 40
 import com.yihucha.hbyhc.presentation.mine.view_model.BindingStateBViewModel;
41
+import com.yihucha.hbyhc.utils.EmptyCheckUtils;
40 42
 import com.yihucha.hbyhc.utils.LogUtil;
43
+import com.yihucha.hbyhc.utils.StringsUtil;
41 44
 import com.yihucha.hbyhc.view.MyToast;
42 45
 import com.tencent.mm.opensdk.modelmsg.SendAuth;
43 46
 
@@ -65,6 +68,7 @@ public class ImmediateWithdrawalActivity extends ViewBindingTitleBaseActivity<Ac
65 68
     private String mWithdrawal_wchat;//微信提现0:关闭;1:开启
66 69
     private String mWithdrawal_status;//提现功能0:关闭;1:开启
67 70
     private String type = "2";//1-微信。2-支付宝
71
+    private BankCardBean bankCardBean;
68 72
     private static final int SDK_AUTH_FLAG = 2;
69 73
     private boolean isRed = false;
70 74
     private volatile boolean isShow = false;
@@ -120,7 +124,6 @@ public class ImmediateWithdrawalActivity extends ViewBindingTitleBaseActivity<Ac
120 124
     };
121 125
 
122 126
 
123
-
124 127
     @Override
125 128
     protected void onCreate(Bundle savedInstanceState) {
126 129
         super.onCreate(savedInstanceState);
@@ -135,6 +138,8 @@ public class ImmediateWithdrawalActivity extends ViewBindingTitleBaseActivity<Ac
135 138
         initClick();
136 139
         initData();
137 140
     }
141
+
142
+    @SuppressLint("SetTextI18n")
138 143
     private void initData() {
139 144
         //佣金信息
140 145
         mInviteViewModel.getSpreadInfo();
@@ -146,7 +151,7 @@ public class ImmediateWithdrawalActivity extends ViewBindingTitleBaseActivity<Ac
146 151
                 mMemberBrokeragePrice = spreadInfoBean.getMember_brokerage_price();
147 152
                 mViewBinding.tvRedIntegral.setText("可提现金额:" + mMemberBrokeragePrice);
148 153
                 try {
149
-                    if (mWithdrawal_money!=null&&!isShow){
154
+                    if (mWithdrawal_money != null && !isShow) {
150 155
                         if ((Double.parseDouble(mBrokeragePrice) < Double.parseDouble(mWithdrawal_money))) {
151 156
                             Toast toast = Toast.makeText(context, "满" + mWithdrawal_money + "才可以提现~", Toast.LENGTH_SHORT);
152 157
                             toast.setGravity(Gravity.CENTER, 0, 0);
@@ -167,12 +172,13 @@ public class ImmediateWithdrawalActivity extends ViewBindingTitleBaseActivity<Ac
167 172
                 for (int i = 0; i < bindingStateBeans.size(); i++) {
168 173
                     if (bindingStateBeans.get(i).getType().equals("1")) {
169 174
                         type = "1";
170
-                        mViewBinding.ivWx.setImageResource(R.mipmap.shopping_selected);
171
-                        mViewBinding.ivZfb.setImageResource(R.mipmap.shopping_unselected);
175
+                        mViewBinding.tvClickToAccredit.setText("已授权,点击可修改");
176
+//                        mViewBinding.ivWx.setImageResource(R.mipmap.shopping_selected);
177
+//                        mViewBinding.ivZfb.setImageResource(R.mipmap.shopping_unselected);
172 178
                     } else if (bindingStateBeans.get(i).getType().equals("2")) {
173 179
                         type = "2";
174
-                        mViewBinding.ivZfb.setImageResource(R.mipmap.shopping_selected);
175
-                        mViewBinding.ivWx.setImageResource(R.mipmap.shopping_unselected);
180
+//                        mViewBinding.ivZfb.setImageResource(R.mipmap.shopping_selected);
181
+//                        mViewBinding.ivWx.setImageResource(R.mipmap.shopping_unselected);
176 182
                         break;
177 183
                     }
178 184
                 }
@@ -188,7 +194,7 @@ public class ImmediateWithdrawalActivity extends ViewBindingTitleBaseActivity<Ac
188 194
                 mWithdrawal_wchat = withdrawalConfigurationBean.getWithdrawal_wchat();
189 195
                 mWithdrawal_status = withdrawalConfigurationBean.getWithdrawal_status();
190 196
                 try {
191
-                    if (mBrokeragePrice!=null&&!isShow){
197
+                    if (mBrokeragePrice != null && !isShow) {
192 198
                         if ((Double.parseDouble(mBrokeragePrice) < Double.parseDouble(mWithdrawal_money))) {
193 199
                             Toast toast = Toast.makeText(context, "满" + mWithdrawal_money + "才可以提现~", Toast.LENGTH_SHORT);
194 200
                             toast.setGravity(Gravity.CENTER, 0, 0);
@@ -203,28 +209,28 @@ public class ImmediateWithdrawalActivity extends ViewBindingTitleBaseActivity<Ac
203 209
             }
204 210
         });
205 211
         //提现检测是否绑定提交账户接口数据
206
-        mInviteViewModel.mBandAccountInfoSucceed.observe(this, new Observer<String>() {
207
-            @Override
208
-            public void onChanged(String s) {
209
-                if ("400".equals(s)) {
210
-                    if (type.equals("1")) {
211
-                        //微信授权
212
-                        regToWx();
213
-                        type = "1";
214
-                    } else {
215
-                        //支付宝授权
216
-                        mInviteViewModel.getAuthInfo();
217
-                    }
218
-                }else if ("200".equals(s)){
219
-                    //授权成功状态
220
-                    if (type.equals("1")) {
221
-                        //微信授权
222
-                        mViewBinding.ivWx.setImageResource(R.mipmap.shopping_selected);
223
-                        mViewBinding.ivZfb.setImageResource(R.mipmap.shopping_unselected);
224
-                    } else if (type.equals("2")){
225
-                        mViewBinding.ivZfb.setImageResource(R.mipmap.shopping_selected);
226
-                        mViewBinding.ivWx.setImageResource(R.mipmap.shopping_unselected);
227
-                    }
212
+        mInviteViewModel.mBandAccountInfoSucceed.observe(this, s -> {
213
+            if ("400".equals(s)) {
214
+                if (type.equals("1")) {
215
+                    //微信授权
216
+                    regToWx();
217
+                    type = "1";
218
+                } else {
219
+                    //支付宝授权
220
+                    mInviteViewModel.getAuthInfo();
221
+                }
222
+            } else if ("200".equals(s)) {
223
+                //授权成功状态
224
+                if (type.equals("1")) {
225
+                    //微信授权
226
+                    mViewBinding.tvClickToAccredit.setText("已授权,点击可修改");
227
+/*                    mViewBinding.ivWx.setImageResource(R.mipmap.icon_duigou_red);
228
+                    mViewBinding.ivWx.setVisibility(View.VISIBLE);
229
+                    mViewBinding.ivYhk.setVisibility(View.INVISIBLE);
230
+                    mViewBinding.ivZfb.setImageResource(R.mipmap.shopping_unselected);*/
231
+                } else if (type.equals("2")) {
232
+                    mViewBinding.ivZfb.setImageResource(R.mipmap.shopping_selected);
233
+                    mViewBinding.ivWx.setImageResource(R.mipmap.shopping_unselected);
228 234
                 }
229 235
             }
230 236
         });
@@ -283,21 +289,21 @@ public class ImmediateWithdrawalActivity extends ViewBindingTitleBaseActivity<Ac
283 289
                 WithdrawalRecordActivity.launch(context);
284 290
             }
285 291
         });
286
-
287
-        mInviteViewModel.failed.observe(this, new Observer<String>() {
288
-            @Override
289
-            public void onChanged(String s) {
290
-                ToastUtils.showLong(s);
292
+        mInviteViewModel.bankCardList.observe(this, bankCardBeans -> {
293
+            if (EmptyCheckUtils.isEmpty(bankCardBeans)) {
294
+                mViewBinding.tvClickToSelectCard.setText("点击添加银行卡");
295
+            } else {
296
+                bankCardBean = bankCardBeans.get(0);
297
+                String account = bankCardBean.getAccount();
298
+                mViewBinding.tvTitleBankCard.setText(bankCardBean.getBankName()
299
+                        + " 储蓄卡 (" + account.substring(account.length() - 4) + ")");
300
+                mViewBinding.tvClickToSelectCard.setText("点击可修改银行卡信息");
291 301
             }
292 302
         });
303
+        mInviteViewModel.failed.observe(this, s -> ToastUtils.showLong(s));
293 304
 
294 305
 
295
-        mInviteViewModel.userModel.observe(this, new Observer<UserInfoModel>() {
296
-            @Override
297
-            public void onChanged(UserInfoModel uesrInfoModel) {
298
-                mViewBinding.tvIntegral.setText("可用积分:" + uesrInfoModel.getScore());
299
-            }
300
-        });
306
+        mInviteViewModel.userModel.observe(this, uesrInfoModel -> mViewBinding.tvIntegral.setText("可用积分:" + uesrInfoModel.getScore()));
301 307
     }
302 308
 
303 309
     private void initClick() {
@@ -307,6 +313,10 @@ public class ImmediateWithdrawalActivity extends ViewBindingTitleBaseActivity<Ac
307 313
         mViewBinding.llZfb.setOnClickListener(this);
308 314
         mViewBinding.tvTixianguize.setOnClickListener(this);
309 315
 
316
+        mViewBinding.tvClickToAccredit.setOnClickListener(this);
317
+        mViewBinding.tvClickToSelectCard.setOnClickListener(this);
318
+        mViewBinding.llYhk.setOnClickListener(this);
319
+
310 320
         mViewBinding.etCashWithdrawalAmount.addTextChangedListener(new TextWatcher() {
311 321
             @Override
312 322
             public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {
@@ -327,7 +337,7 @@ public class ImmediateWithdrawalActivity extends ViewBindingTitleBaseActivity<Ac
327 337
                     }
328 338
                     if (StringUtil.isBlank(mViewBinding.etCashWithdrawalAmount.getText().toString())) {
329 339
                         mViewBinding.tvService.setText("平台服务费 ¥");
330
-                        mViewBinding.tvServiceMoney.setText("本次提取将扣除服务费 ¥" );
340
+                        mViewBinding.tvServiceMoney.setText("本次提取将扣除服务费 ¥");
331 341
                         mViewBinding.tvMoney.setText("本次提取实际到账额度 ¥");
332 342
                         return;
333 343
                     }
@@ -384,10 +394,18 @@ public class ImmediateWithdrawalActivity extends ViewBindingTitleBaseActivity<Ac
384 394
                 ToastUtils.showLong("微信提现功能关闭");
385 395
                 return;
386 396
             }
397
+            if ("1".equals(type) && mViewBinding.tvClickToAccredit.getText().toString().contains("未授权")) {
398
+                ToastUtils.showLong("您还没有授权微信,请先授权");
399
+                return;
400
+            }
387 401
             if ("2".equals(type) && "0".equals(mWithdrawal_alipay)) {
388 402
                 ToastUtils.showLong("支付宝提现功能关闭");
389 403
                 return;
390 404
             }
405
+            if ("3".equals(type) && mViewBinding.tvClickToSelectCard.getText().toString().equals("点击添加银行卡")) {
406
+                ToastUtils.showLong("您还没有绑定银行卡,请先绑定银行卡");
407
+                return;
408
+            }
391 409
             if (type.equals("")) {
392 410
                 ToastUtils.showLong("选择提现方式");
393 411
                 return;
@@ -407,7 +425,7 @@ public class ImmediateWithdrawalActivity extends ViewBindingTitleBaseActivity<Ac
407 425
                     toast.show();
408 426
                     return;
409 427
                 }
410
-            }else {
428
+            } else {
411 429
                 if (tixian > Double.parseDouble(mBrokeragePrice)) {
412 430
 //                        ToastUtils.showLong("输入金额超过可提现余额");
413 431
                     Toast toast = Toast.makeText(context, "输入金额超过可提现余额", Toast.LENGTH_SHORT);
@@ -429,7 +447,10 @@ public class ImmediateWithdrawalActivity extends ViewBindingTitleBaseActivity<Ac
429 447
             //微信
430 448
             type = "1";
431 449
             //提现检测是否绑定提交账户接口
432
-            mInviteViewModel.getBandAccountInfo(type, "");
450
+//            mInviteViewModel.getBandAccountInfo(type, "");
451
+            mViewBinding.ivWx.setVisibility(View.VISIBLE);
452
+            mViewBinding.ivYhk.setVisibility(View.INVISIBLE);
453
+            mViewBinding.ivWx.setImageResource(R.mipmap.icon_duigou_red);
433 454
         } else if (v == mViewBinding.llZfb) {
434 455
             //支付宝
435 456
             type = "2";
@@ -438,6 +459,26 @@ public class ImmediateWithdrawalActivity extends ViewBindingTitleBaseActivity<Ac
438 459
         } else if (v == mViewBinding.tvTixianguize) {
439 460
             WebViewTitleBaseActivity.launch(ImmediateWithdrawalActivity.this, getString(R.string.withdrawal_rules),
440 461
                     Constants.PROTOCOL + Constants.WITHDRAWAL_RULES);
462
+        } else if (v == mViewBinding.tvClickToAccredit) {
463
+            //去绑定微信
464
+            //微信
465
+            type = "1";
466
+            //提现检测是否绑定提交账户接口
467
+            mInviteViewModel.getBandAccountInfo(type, "");
468
+        } else if (v == mViewBinding.tvClickToSelectCard) {
469
+            //去绑定银行卡
470
+            AddBankCardActivity.launch(this, bankCardBean);
471
+        } else if (v == mViewBinding.llYhk) {
472
+            //选中银行卡
473
+/*            if (EmptyCheckUtils.isNotEmpty(bankCardBean)) {
474
+
475
+            }else {
476
+
477
+            }*/
478
+            type = "3";
479
+            mViewBinding.ivWx.setVisibility(View.INVISIBLE);
480
+            mViewBinding.ivYhk.setVisibility(View.VISIBLE);
481
+            mViewBinding.ivYhk.setImageResource(R.mipmap.icon_duigou_red);
441 482
         }
442 483
     }
443 484
 
@@ -464,6 +505,8 @@ public class ImmediateWithdrawalActivity extends ViewBindingTitleBaseActivity<Ac
464 505
         mInviteViewModel.getYanglaojinInfo();
465 506
         //用户信息
466 507
         mInviteViewModel.getUserInfo();
508
+        //获取银行卡列表
509
+        mInviteViewModel.getBankCardList();
467 510
     }
468 511
 
469 512
     public static void launch(Context context, Bundle bundle) {
@@ -478,12 +521,12 @@ public class ImmediateWithdrawalActivity extends ViewBindingTitleBaseActivity<Ac
478 521
     }
479 522
 
480 523
     @Subscribe(threadMode = ThreadMode.MAIN)
481
-    public void onBindResult(String result){
524
+    public void onBindResult(String result) {
482 525
         System.out.println("onBindResult result = " + result);
483 526
         if ("success".equals(result)) {
484 527
             mViewBinding.ivWx.setImageResource(R.mipmap.shopping_selected);
485 528
             mViewBinding.ivZfb.setImageResource(R.mipmap.shopping_unselected);
486
-        }else {
529
+        } else {
487 530
             type = "";
488 531
             mViewBinding.ivWx.setImageResource(R.mipmap.shopping_unselected);
489 532
         }

+ 184 - 0
app/src/main/java/com/yihucha/hbyhc/presentation/invitation/model/BankCardBean.java

@@ -0,0 +1,184 @@
1
+package com.yihucha.hbyhc.presentation.invitation.model;
2
+
3
+import com.google.gson.annotations.SerializedName;
4
+
5
+import java.io.Serializable;
6
+
7
+/**
8
+ * author : zhangbing
9
+ * time   : 2024/2/26 14:09
10
+ * com.yihucha.hbyhc.presentation.invitation.model
11
+ */
12
+public class BankCardBean implements Serializable {
13
+
14
+    @SerializedName("id")
15
+    private String id;
16
+    @SerializedName("user_id")
17
+    private String userId;
18
+    @SerializedName("account_type")
19
+    private String accountType;
20
+    @SerializedName("account")
21
+    private String account;
22
+    @SerializedName("is_default")
23
+    private String isDefault;
24
+    @SerializedName("create_time")
25
+    private String createTime;
26
+    @SerializedName("info")
27
+    private String info;
28
+    @SerializedName("update_time")
29
+    private String updateTime;
30
+    @SerializedName("status")
31
+    private String status;
32
+    @SerializedName("valid_date")
33
+    private String validDate;
34
+    @SerializedName("bank_name")
35
+    private String bankName;
36
+    @SerializedName("phone")
37
+    private String phone;
38
+    @SerializedName("bank_card_type")
39
+    private String bankCardType;
40
+    @SerializedName("user_name")
41
+    private String userName;
42
+    @SerializedName("user_card")
43
+    private String userCard;
44
+    @SerializedName("bank_open_name")
45
+    private String bankOpenName;
46
+    @SerializedName("pic")
47
+    private String pic;
48
+
49
+    public String getId() {
50
+        return id;
51
+    }
52
+
53
+    public void setId(String id) {
54
+        this.id = id;
55
+    }
56
+
57
+    public String getUserId() {
58
+        return userId;
59
+    }
60
+
61
+    public void setUserId(String userId) {
62
+        this.userId = userId;
63
+    }
64
+
65
+    public String getAccountType() {
66
+        return accountType;
67
+    }
68
+
69
+    public void setAccountType(String accountType) {
70
+        this.accountType = accountType;
71
+    }
72
+
73
+    public String getAccount() {
74
+        return account;
75
+    }
76
+
77
+    public void setAccount(String account) {
78
+        this.account = account;
79
+    }
80
+
81
+    public String getIsDefault() {
82
+        return isDefault;
83
+    }
84
+
85
+    public void setIsDefault(String isDefault) {
86
+        this.isDefault = isDefault;
87
+    }
88
+
89
+    public String getCreateTime() {
90
+        return createTime;
91
+    }
92
+
93
+    public void setCreateTime(String createTime) {
94
+        this.createTime = createTime;
95
+    }
96
+
97
+    public String getInfo() {
98
+        return info;
99
+    }
100
+
101
+    public void setInfo(String info) {
102
+        this.info = info;
103
+    }
104
+
105
+    public String getUpdateTime() {
106
+        return updateTime;
107
+    }
108
+
109
+    public void setUpdateTime(String updateTime) {
110
+        this.updateTime = updateTime;
111
+    }
112
+
113
+    public String getStatus() {
114
+        return status;
115
+    }
116
+
117
+    public void setStatus(String status) {
118
+        this.status = status;
119
+    }
120
+
121
+    public String getValidDate() {
122
+        return validDate;
123
+    }
124
+
125
+    public void setValidDate(String validDate) {
126
+        this.validDate = validDate;
127
+    }
128
+
129
+    public String getBankName() {
130
+        return bankName;
131
+    }
132
+
133
+    public void setBankName(String bankName) {
134
+        this.bankName = bankName;
135
+    }
136
+
137
+    public String getPhone() {
138
+        return phone;
139
+    }
140
+
141
+    public void setPhone(String phone) {
142
+        this.phone = phone;
143
+    }
144
+
145
+    public String getBankCardType() {
146
+        return bankCardType;
147
+    }
148
+
149
+    public void setBankCardType(String bankCardType) {
150
+        this.bankCardType = bankCardType;
151
+    }
152
+
153
+    public String getUserName() {
154
+        return userName;
155
+    }
156
+
157
+    public void setUserName(String userName) {
158
+        this.userName = userName;
159
+    }
160
+
161
+    public String getUserCard() {
162
+        return userCard;
163
+    }
164
+
165
+    public void setUserCard(String userCard) {
166
+        this.userCard = userCard;
167
+    }
168
+
169
+    public String getBankOpenName() {
170
+        return bankOpenName;
171
+    }
172
+
173
+    public void setBankOpenName(String bankOpenName) {
174
+        this.bankOpenName = bankOpenName;
175
+    }
176
+
177
+    public String getPic() {
178
+        return pic;
179
+    }
180
+
181
+    public void setPic(String pic) {
182
+        this.pic = pic;
183
+    }
184
+}

+ 50 - 0
app/src/main/java/com/yihucha/hbyhc/presentation/invitation/view_model/InviteViewModel.java

@@ -19,6 +19,7 @@ import com.yihucha.hbyhc.network.request_bean.SpreadNumberRequest;
19 19
 import com.yihucha.hbyhc.network.service.UserService;
20 20
 import com.yihucha.hbyhc.presentation.integral.model.RedIntegralListBean;
21 21
 import com.yihucha.hbyhc.presentation.invitation.model.AccumulatedincomeBean;
22
+import com.yihucha.hbyhc.presentation.invitation.model.BankCardBean;
22 23
 import com.yihucha.hbyhc.presentation.invitation.model.InviteFriendsClassifyBean;
23 24
 import com.yihucha.hbyhc.presentation.invitation.model.InviteFriendsPicBean;
24 25
 import com.yihucha.hbyhc.presentation.invitation.model.InviteJavaBean;
@@ -33,6 +34,7 @@ import com.yihucha.hbyhc.presentation.invitation.model.UserShareProductListBean;
33 34
 import com.yihucha.hbyhc.presentation.invitation.model.WithdrawalBean;
34 35
 import com.yihucha.hbyhc.presentation.invitation.model.WithdrawalConfigurationBean;
35 36
 import com.yihucha.hbyhc.presentation.invitation.model.WithdrawalServiceBean;
37
+import com.yihucha.hbyhc.presentation.login.model.LoginModel;
36 38
 import com.yihucha.hbyhc.presentation.mine.model.CommissionBean;
37 39
 import com.yihucha.hbyhc.presentation.mine.model.UpdateAccountBean;
38 40
 import com.yihucha.hbyhc.presentation.mine.model.UserAnnuityInfoBean;
@@ -95,6 +97,8 @@ public class InviteViewModel extends BaseViewModel {
95 97
     public MutableLiveData<String> mShareImgsData = new MutableLiveData<>();//生成的图片
96 98
     public MutableLiveData<CommissionBean> commissionDetail = new MutableLiveData<>();//收益详情
97 99
 
100
+    public MutableLiveData<List<BankCardBean>> bankCardList = new MutableLiveData<>(); //银行卡列表
101
+    public MutableLiveData<String> addBankCardResult = new MutableLiveData<>(); //添加银行卡
98 102
 
99 103
 //    /**
100 104
 //     * 检查年费状态
@@ -465,6 +469,52 @@ public class InviteViewModel extends BaseViewModel {
465 469
     }
466 470
 
467 471
     /**
472
+     * 银行卡列表
473
+     */
474
+    @SuppressLint("CheckResult")
475
+    public void getBankCardList(){
476
+        UserService userService = NetworkApi.createService(UserService.class);
477
+        userService.getBankCardList().compose(NetworkApi.applySchedulers(new BaseObserver<DataJavaResponse<List<BankCardBean>>>() {
478
+            @Override
479
+            public void onSuccess(DataJavaResponse<List<BankCardBean>> response) {
480
+                if (response.responseCode == 200) {
481
+                    bankCardList.postValue(response.getData());
482
+                }else {
483
+                    failed.postValue(response.responseError);
484
+                }
485
+            }
486
+
487
+            @Override
488
+            public void onFailure(Throwable e) {
489
+                e.printStackTrace();
490
+            }
491
+        }));
492
+    }
493
+
494
+    /**
495
+     * 添加银行卡
496
+     */
497
+    @SuppressWarnings("checkResult")
498
+    public void addBankCard(Map<String,Object> map){
499
+        UserService userService = NetworkApi.createService(UserService.class);
500
+        userService.addBankCard(map).compose(NetworkApi.applySchedulers(new BaseObserver<DataJavaResponse<String>>() {
501
+            @Override
502
+            public void onSuccess(DataJavaResponse<String> response) {
503
+                if (response.responseCode==200) {
504
+                    addBankCardResult.postValue(response.responseError);
505
+                }else {
506
+                    failed.postValue(response.responseError);
507
+                }
508
+            }
509
+
510
+            @Override
511
+            public void onFailure(Throwable e) {
512
+                failed.postValue("添加失败");
513
+            }
514
+        }));
515
+    }
516
+
517
+    /**
468 518
      * 提现申请
469 519
      *
470 520
      * @param extract_price

+ 0 - 15
app/src/main/java/com/yihucha/hbyhc/presentation/mine/MineFragment.java

@@ -13,37 +13,22 @@ import androidx.lifecycle.ViewModelProvider;
13 13
 import com.blankj.utilcode.util.ToastUtils;
14 14
 import com.yihucha.hbyhc.R;
15 15
 import com.yihucha.hbyhc.base.BaseFragment;
16
-import com.yihucha.hbyhc.base.H5TitleActivity;
17 16
 import com.yihucha.hbyhc.config.Constants;
18
-import com.yihucha.hbyhc.config.HttpUrl;
19 17
 import com.yihucha.hbyhc.databinding.FragmentMineBinding;
20
-import com.yihucha.hbyhc.presentation.annuity.AnnuityActivity;
21
-import com.yihucha.hbyhc.presentation.integral.MyIntegralActivity;
22 18
 import com.yihucha.hbyhc.presentation.integral.NewRedIntegralActivity;
23
-import com.yihucha.hbyhc.presentation.integral.RedIntegralActivity;
24
-import com.yihucha.hbyhc.presentation.invitation.InviteFriendsActivity;
25 19
 import com.yihucha.hbyhc.presentation.invitation.MyInvitationActivity;
26
-import com.yihucha.hbyhc.presentation.mine.model.MyInvitationBean;
27
-import com.yihucha.hbyhc.presentation.mine.model.OrderQuantityBean;
28 20
 import com.yihucha.hbyhc.presentation.mine.model.UserInfoModel;
29
-import com.yihucha.hbyhc.presentation.mine.model.YanglaojinBean;
30
-import com.yihucha.hbyhc.presentation.mine.view_model.MineSpreadInfo;
31 21
 import com.yihucha.hbyhc.presentation.mine.view_model.MineViewModel;
32 22
 import com.yihucha.hbyhc.presentation.order.AfterSalesOrderListActivity;
33 23
 import com.yihucha.hbyhc.presentation.order.OrderActivity;
34
-import com.yihucha.hbyhc.presentation.order.TripartiteOrderActivity;
35
-import com.yihucha.hbyhc.presentation.pay.PensionAccountPaySucceedActivity;
36 24
 import com.yihucha.hbyhc.utils.GlideUtils;
37 25
 import com.yihucha.hbyhc.utils.MVUtils;
38 26
 import com.yihucha.hbyhc.utils.StringsUtil;
39
-import com.yihucha.hbyhc.view.CustomDialog;
40 27
 import com.tencent.mm.opensdk.constants.Build;
41
-import com.tencent.mm.opensdk.modelbiz.WXLaunchMiniProgram;
42 28
 import com.tencent.mm.opensdk.modelbiz.WXOpenCustomerServiceChat;
43 29
 import com.tencent.mm.opensdk.openapi.IWXAPI;
44 30
 import com.tencent.mm.opensdk.openapi.WXAPIFactory;
45 31
 
46
-import java.util.List;
47 32
 
48 33
 /**
49 34
  * @author qmzh

+ 28 - 0
app/src/main/java/com/yihucha/hbyhc/utils/EditTextListener.kt

@@ -0,0 +1,28 @@
1
+package com.yihucha.hbyhc.utils
2
+
3
+import android.text.Editable
4
+import android.text.TextWatcher
5
+import android.widget.EditText
6
+
7
+/**
8
+ *  author : zhangbing
9
+ *  time   : 2024/2/26 16:23
10
+ *  com.yihucha.hbyhc.utils
11
+ */
12
+object EditTextListener {
13
+    @JvmStatic
14
+    fun onTextListener(editText: EditText, listener: (Boolean) -> Unit){
15
+        editText.addTextChangedListener(object : TextWatcher{
16
+            override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) {
17
+            }
18
+
19
+            override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) {
20
+            }
21
+
22
+            override fun afterTextChanged(s: Editable?) {
23
+                listener(EmptyCheckUtils.isEmpty(s.toString()))
24
+            }
25
+
26
+        })
27
+    }
28
+}

+ 46 - 3
app/src/main/java/com/yihucha/hbyhc/utils/StringsUtil.java

@@ -6,8 +6,12 @@ import android.content.Context;
6 6
 import android.content.pm.PackageInfo;
7 7
 import android.content.pm.PackageManager;
8 8
 import android.content.pm.PackageManager.NameNotFoundException;
9
+import android.text.Editable;
9 10
 import android.text.TextUtils;
10 11
 
12
+import org.jetbrains.annotations.NotNull;
13
+import org.jetbrains.annotations.Nullable;
14
+
11 15
 import java.math.BigDecimal;
12 16
 import java.text.DecimalFormat;
13 17
 import java.text.ParseException;
@@ -224,9 +228,9 @@ public class StringsUtil {
224 228
     public static String encodeIdCard2(String string) {
225 229
         StringBuilder temp = new StringBuilder();
226 230
         if (!TextUtils.isEmpty(string)) {
227
-            temp.append(string.substring(0,1));
231
+            temp.append(string.substring(0, 1));
228 232
             temp.append("****************");
229
-            temp.append(string.substring(string.length()-1,string.length()));
233
+            temp.append(string.substring(string.length() - 1, string.length()));
230 234
         } else {
231 235
             return "";
232 236
         }
@@ -266,7 +270,7 @@ public class StringsUtil {
266 270
      * 银行卡加密显示
267 271
      */
268 272
     public static String encodeBankCard(String string) {
269
-        StringBuffer temp = new StringBuffer("");
273
+        StringBuffer temp = new StringBuffer();
270 274
         if (string != null && string.length() >= 16) {
271 275
             for (int i = 0; i < 12; i++) {
272 276
                 temp.append("*");
@@ -277,6 +281,21 @@ public class StringsUtil {
277 281
         }
278 282
         return temp.toString();
279 283
     }
284
+    /**
285
+     * 银行卡加密并格式化
286
+     */
287
+
288
+    public static String encodeAndFormatCard(String card){
289
+        if (EmptyCheckUtils.isEmpty(card)) {
290
+            return card+"";
291
+        }
292
+        StringBuffer sb = new StringBuffer();
293
+        sb.append(card.substring(0,4));
294
+        sb.append(" ");
295
+        sb.append("**** **** **** ");
296
+        sb.append(card.substring(card.length()-3));
297
+        return sb.toString();
298
+    }
280 299
 
281 300
     /**
282 301
      * 银行卡格式化
@@ -807,4 +826,28 @@ public class StringsUtil {
807 826
         }
808 827
         return false;
809 828
     }
829
+
830
+    /**
831
+     * 银行卡号校验
832
+     *
833
+     * @param text
834
+     * @return
835
+     */
836
+    public static boolean isBank(@Nullable String text) {
837
+        String patternStr = "^([1-9])(\\d{14}|\\d{18})";
838
+        Pattern pattern = Pattern.compile(patternStr);
839
+        return pattern.matcher(text).matches();
840
+    }
841
+
842
+    /**
843
+     * 身份证号正则校验
844
+     *
845
+     * @param idcard
846
+     * @return
847
+     */
848
+    public static boolean isIdCard(@NotNull String idcard) {
849
+        String patternStr = "^\\d{17}(\\d|[Xx])";
850
+        Pattern pattern = Pattern.compile(patternStr);
851
+        return pattern.matcher(idcard).matches();
852
+    }
810 853
 }

+ 1 - 1
app/src/main/java/com/yihucha/hbyhc/view/PopCommissionSelector.java

@@ -63,7 +63,7 @@ public class PopCommissionSelector extends PopupWindow implements View.OnClickLi
63 63
         sourceBeans.add(new SelectorBean("业绩奖", "2", false));
64 64
         sourceBeans.add(new SelectorBean("代理商分红", "3", false));
65 65
         sourceBeans.add(new SelectorBean("推荐代理商收益", "4", false));
66
-        sourceBeans.add(new SelectorBean("消费增值系统收益", "5", false));
66
+        sourceBeans.add(new SelectorBean("消费增值系统佣金", "5", false));
67 67
         sourceBeans.add(new SelectorBean("运营中心收益", "5", false));
68 68
         GridLayoutManager sourceManager = new GridLayoutManager(context, 2);
69 69
         binding.rvTypeItem.setLayoutManager(sourceManager);

+ 9 - 0
app/src/main/res/drawable/shape_bg_area.xml

@@ -0,0 +1,9 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
3
+    <stroke
4
+        android:width="1dp"
5
+        android:color="@color/black_333333"
6
+        android:dashWidth="5dp"
7
+        android:dashGap="5dp"
8
+        />
9
+</shape>

+ 247 - 0
app/src/main/res/layout/activity_add_bank_card.xml

@@ -0,0 +1,247 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
+    xmlns:tools="http://schemas.android.com/tools"
4
+    android:layout_width="match_parent"
5
+    android:layout_height="match_parent"
6
+    android:background="@color/white_f8f8f8"
7
+    tools:context=".presentation.invitation.AddBankCardActivity">
8
+
9
+    <ScrollView
10
+        android:layout_width="match_parent"
11
+        android:layout_height="wrap_content"
12
+        android:scrollbars="none">
13
+        <LinearLayout
14
+            android:layout_width="match_parent"
15
+            android:layout_height="match_parent"
16
+            android:orientation="vertical"
17
+            android:padding="16dp">
18
+
19
+            <com.yihucha.hbyhc.view.BoldText
20
+                android:id="@+id/tv_title_user_info"
21
+                android:layout_width="wrap_content"
22
+                android:layout_height="wrap_content"
23
+                android:layout_marginTop="16dp"
24
+                android:layout_marginBottom="16dp"
25
+                android:text="持卡人信息"
26
+                android:textColor="@color/black_333333"
27
+                android:textSize="16sp" />
28
+
29
+            <RelativeLayout
30
+                android:id="@+id/layout_user_info"
31
+                android:layout_width="match_parent"
32
+                android:layout_height="wrap_content"
33
+                android:layout_below="@id/tv_title_user_info"
34
+                android:background="@drawable/shape_white_8dp"
35
+                android:padding="16dp">
36
+
37
+                <TextView
38
+                    android:id="@+id/tv_title_user_name"
39
+                    android:layout_width="80dp"
40
+                    android:layout_height="wrap_content"
41
+                    android:paddingTop="10dp"
42
+                    android:paddingBottom="10dp"
43
+                    android:text="姓名"
44
+                    android:textColor="@color/black_333333"
45
+                    android:textSize="16sp" />
46
+
47
+                <EditText
48
+                    android:id="@+id/edt_user_name"
49
+                    android:layout_width="match_parent"
50
+                    android:layout_height="wrap_content"
51
+                    android:layout_alignTop="@+id/tv_title_user_name"
52
+                    android:layout_alignBottom="@+id/tv_title_user_name"
53
+                    android:layout_toRightOf="@+id/tv_title_user_name"
54
+                    android:background="@null"
55
+                    android:gravity="center_vertical"
56
+                    android:hint="请输入持卡人姓名"
57
+                    android:textColor="@color/black_333333"
58
+                    android:textSize="14sp" />
59
+
60
+                <TextView
61
+                    android:id="@+id/tv_title_card_number"
62
+                    android:layout_width="80dp"
63
+                    android:layout_height="wrap_content"
64
+                    android:layout_below="@+id/tv_title_user_name"
65
+                    android:layout_marginTop="10dp"
66
+                    android:paddingTop="10dp"
67
+                    android:paddingBottom="10dp"
68
+                    android:text="身份证号"
69
+                    android:textColor="@color/black_333333"
70
+                    android:textSize="16sp" />
71
+
72
+                <EditText
73
+                    android:id="@+id/edt_card_number"
74
+                    android:layout_width="match_parent"
75
+                    android:layout_height="wrap_content"
76
+                    android:layout_alignTop="@+id/tv_title_card_number"
77
+                    android:layout_alignBottom="@+id/tv_title_card_number"
78
+                    android:layout_toRightOf="@+id/tv_title_user_name"
79
+                    android:background="@null"
80
+                    android:gravity="center_vertical"
81
+                    android:hint="请输入持卡人身份证号"
82
+                    android:textColor="@color/black_333333"
83
+                    android:textSize="14sp" />
84
+            </RelativeLayout>
85
+
86
+            <com.yihucha.hbyhc.view.BoldText
87
+                android:id="@+id/tv_title_card_info"
88
+                android:layout_width="wrap_content"
89
+                android:layout_height="wrap_content"
90
+                android:layout_below="@+id/layout_user_info"
91
+                android:layout_marginTop="16dp"
92
+                android:layout_marginBottom="16dp"
93
+                android:text="银行卡信息"
94
+                android:textColor="@color/black_333333"
95
+                android:textSize="16sp" />
96
+
97
+            <RelativeLayout
98
+                android:id="@+id/layout_bank_info"
99
+                android:layout_width="match_parent"
100
+                android:layout_height="wrap_content"
101
+                android:layout_below="@+id/tv_title_card_info"
102
+                android:background="@drawable/shape_white_8dp"
103
+                android:padding="16dp">
104
+
105
+                <TextView
106
+                    android:id="@+id/tv_title_select_bank"
107
+                    android:layout_width="80dp"
108
+                    android:layout_height="wrap_content"
109
+                    android:paddingTop="10dp"
110
+                    android:paddingBottom="10dp"
111
+                    android:text="所属银行"
112
+                    android:textColor="@color/black_333333"
113
+                    android:textSize="16sp" />
114
+
115
+                <EditText
116
+                    android:id="@+id/edt_bank_name"
117
+                    android:layout_width="match_parent"
118
+                    android:layout_height="wrap_content"
119
+                    android:layout_alignTop="@+id/tv_title_select_bank"
120
+                    android:layout_alignBottom="@+id/tv_title_select_bank"
121
+                    android:layout_toRightOf="@+id/tv_title_select_bank"
122
+                    android:background="@null"
123
+                    android:gravity="center_vertical"
124
+                    android:hint="请输入银行名称,如:中国银行"
125
+                    android:textColor="@color/black_333333"
126
+                    android:textSize="14sp" />
127
+
128
+                <TextView
129
+                    android:id="@+id/tv_title_bank_name_2"
130
+                    android:layout_width="80dp"
131
+                    android:layout_height="wrap_content"
132
+                    android:layout_below="@+id/tv_title_select_bank"
133
+                    android:layout_marginTop="10dp"
134
+                    android:paddingTop="10dp"
135
+                    android:paddingBottom="10dp"
136
+                    android:text="开户支行"
137
+                    android:textColor="@color/black_333333"
138
+                    android:textSize="16sp" />
139
+
140
+                <EditText
141
+                    android:id="@+id/edt_bank_name_2"
142
+                    android:layout_width="match_parent"
143
+                    android:layout_height="wrap_content"
144
+                    android:layout_alignTop="@+id/tv_title_bank_name_2"
145
+                    android:layout_alignBottom="@+id/tv_title_bank_name_2"
146
+                    android:layout_toRightOf="@+id/tv_title_select_bank"
147
+                    android:background="@null"
148
+                    android:gravity="center_vertical"
149
+                    android:hint="请输入开户支行"
150
+                    android:textColor="@color/black_333333"
151
+                    android:textSize="14sp" />
152
+
153
+                <TextView
154
+                    android:id="@+id/tv_title_bank_card"
155
+                    android:layout_width="80dp"
156
+                    android:layout_height="wrap_content"
157
+                    android:layout_below="@+id/tv_title_bank_name_2"
158
+                    android:layout_marginTop="10dp"
159
+                    android:paddingTop="10dp"
160
+                    android:paddingBottom="10dp"
161
+                    android:text="银行卡号"
162
+                    android:textColor="@color/black_333333"
163
+                    android:textSize="16sp" />
164
+
165
+                <EditText
166
+                    android:id="@+id/edt_bank_card_number"
167
+                    android:layout_width="match_parent"
168
+                    android:layout_height="wrap_content"
169
+                    android:layout_alignTop="@+id/tv_title_bank_card"
170
+                    android:layout_alignBottom="@+id/tv_title_bank_card"
171
+                    android:layout_toRightOf="@+id/tv_title_select_bank"
172
+                    android:background="@null"
173
+                    android:gravity="center_vertical"
174
+                    android:hint="@string/bank_card_hint"
175
+                    android:inputType="number"
176
+                    android:textColor="@color/black_333333"
177
+                    android:textSize="14sp" />
178
+            </RelativeLayout>
179
+
180
+            <com.yihucha.hbyhc.view.BoldText
181
+                android:layout_width="wrap_content"
182
+                android:layout_height="wrap_content"
183
+                android:layout_below="@+id/layout_bank_info"
184
+                android:layout_marginTop="16dp"
185
+                android:layout_marginBottom="16dp"
186
+                android:text="银行卡照片(选填)"
187
+                android:textColor="@color/black_333333"
188
+                android:textSize="16sp"
189
+                android:visibility="gone"
190
+                />
191
+
192
+            <RelativeLayout
193
+                android:layout_width="match_parent"
194
+                android:layout_height="200dp"
195
+                android:background="@drawable/shape_white_8dp"
196
+                android:padding="16dp"
197
+                android:visibility="gone"
198
+                >
199
+
200
+                <ImageView
201
+                    android:layout_width="match_parent"
202
+                    android:layout_height="match_parent"
203
+                    android:layout_marginLeft="20dp"
204
+                    android:layout_marginRight="20dp"
205
+                    android:background="@drawable/shape_bg_area" />
206
+
207
+                <ImageView
208
+                    android:id="@+id/imgv_bank_card"
209
+                    android:layout_width="match_parent"
210
+                    android:layout_height="match_parent"
211
+                    android:layout_marginLeft="22dp"
212
+                    android:layout_marginTop="2dp"
213
+                    android:layout_marginRight="22dp"
214
+                    android:layout_marginBottom="5dp"
215
+                    android:scaleType="centerCrop"
216
+                    android:src="@mipmap/bg_bankcard_area" />
217
+
218
+                <TextView
219
+                    android:id="@+id/tv_add_card_img"
220
+                    android:layout_width="wrap_content"
221
+                    android:layout_height="wrap_content"
222
+                    android:layout_centerInParent="true"
223
+                    android:drawableTop="@mipmap/icon_add"
224
+                    android:drawablePadding="20dp"
225
+                    android:text="上传银行卡正面照片"
226
+                    android:textColor="@color/gray_999999"
227
+                    android:textSize="14sp" />
228
+            </RelativeLayout>
229
+
230
+            <Button
231
+                android:id="@+id/btn_submit"
232
+                android:layout_width="match_parent"
233
+                android:layout_height="wrap_content"
234
+                android:layout_below="@+id/layout_bank_info"
235
+                android:layout_marginLeft="32dp"
236
+                android:layout_marginTop="40dp"
237
+                android:layout_marginRight="32dp"
238
+                android:background="@drawable/shape_fe7577_50dp"
239
+                android:text="提交"
240
+                android:textColor="@color/white"
241
+                android:textSize="16sp"
242
+                android:clickable="false"
243
+                />
244
+        </LinearLayout>
245
+    </ScrollView>
246
+
247
+</FrameLayout>

+ 150 - 59
app/src/main/res/layout/activity_immediate_withdrawal.xml

@@ -4,16 +4,17 @@
4 4
     android:layout_height="match_parent"
5 5
     android:background="@color/white_f8f8f8"
6 6
     android:orientation="vertical">
7
+
7 8
     <ScrollView
8 9
         android:layout_width="match_parent"
9 10
         android:layout_height="wrap_content"
10
-        android:scrollbars="none"
11
-        >
11
+        android:scrollbars="none">
12
+
12 13
         <LinearLayout
13 14
             android:layout_width="match_parent"
14 15
             android:layout_height="match_parent"
15
-            android:orientation="vertical"
16
-            >
16
+            android:orientation="vertical">
17
+
17 18
             <LinearLayout
18 19
                 android:layout_width="match_parent"
19 20
                 android:layout_height="wrap_content"
@@ -21,33 +22,35 @@
21 22
                 android:layout_marginTop="13dp"
22 23
                 android:layout_marginRight="16dp"
23 24
                 android:background="@drawable/shape_ffffff_8dp"
25
+                android:orientation="vertical"
24 26
                 android:paddingLeft="13dp"
25
-                android:paddingRight="13dp"
26 27
                 android:paddingTop="16dp"
27
-                android:paddingBottom="16dp"
28
-                android:orientation="vertical">
28
+                android:paddingRight="13dp"
29
+                android:paddingBottom="16dp">
30
+
29 31
                 <LinearLayout
30 32
                     android:layout_width="match_parent"
31
-                    android:gravity="center_vertical"
32 33
                     android:layout_height="wrap_content"
34
+                    android:gravity="center_vertical"
33 35
                     android:orientation="horizontal">
34 36
 
35 37
                     <com.yihucha.hbyhc.view.BoldText
36 38
                         android:layout_width="0dp"
37 39
                         android:layout_height="wrap_content"
38 40
                         android:layout_weight="1"
39
-                        android:textSize="15sp"
40 41
                         android:text="@string/cash_withdrawal_amount"
41
-                        android:textColor="@color/black_333333"/>
42
+                        android:textColor="@color/black_333333"
43
+                        android:textSize="15sp" />
42 44
 
43 45
                     <TextView
44 46
                         android:id="@+id/tv_tixianguize"
45 47
                         android:layout_width="wrap_content"
46
-                        android:textSize="11sp"
47
-                        android:textColor="@color/gray_999999"
48
+                        android:layout_height="wrap_content"
48 49
                         android:text="@string/withdrawal_rules"
49
-                        android:layout_height="wrap_content" />
50
+                        android:textColor="@color/gray_999999"
51
+                        android:textSize="11sp" />
50 52
                 </LinearLayout>
53
+
51 54
                 <LinearLayout
52 55
                     android:layout_width="match_parent"
53 56
                     android:layout_height="wrap_content"
@@ -57,10 +60,9 @@
57 60
                     <com.yihucha.hbyhc.view.BoldText
58 61
                         android:layout_width="wrap_content"
59 62
                         android:layout_height="wrap_content"
60
-                        android:textColor="@color/black_333333"
61
-                        android:textSize="27sp"
62 63
                         android:text="¥"
63
-                        />
64
+                        android:textColor="@color/black_333333"
65
+                        android:textSize="27sp" />
64 66
 
65 67
                     <EditText
66 68
                         android:id="@+id/et_cash_withdrawal_amount"
@@ -70,29 +72,32 @@
70 72
                         android:layout_marginRight="5dp"
71 73
                         android:layout_weight="1"
72 74
                         android:background="@null"
73
-                        android:textSize="34sp"
74 75
                         android:inputType="number|numberDecimal"
75
-                        android:textColor="@color/black_333333"/>
76
+                        android:textColor="@color/black_333333"
77
+                        android:textSize="34sp" />
76 78
 
77 79
                     <TextView
78 80
                         android:id="@+id/tv_all_withdrawal"
79 81
                         android:layout_width="wrap_content"
80 82
                         android:layout_height="wrap_content"
81
-                        android:textSize="13sp"
82 83
                         android:layout_gravity="center_vertical"
83 84
                         android:text="@string/all_withdrawal"
84
-                        android:textColor="@color/red_fe0032"/>
85
+                        android:textColor="@color/red_fe0032"
86
+                        android:textSize="13sp" />
85 87
                 </LinearLayout>
88
+
86 89
                 <View
87 90
                     android:layout_width="match_parent"
88
-                    android:background="@color/gray_e5e5e5"
91
+                    android:layout_height="0.5dp"
89 92
                     android:layout_marginTop="15.5dp"
90
-                    android:layout_height="0.5dp"></View>
93
+                    android:background="@color/gray_e5e5e5"></View>
94
+
91 95
                 <LinearLayout
92 96
                     android:layout_width="wrap_content"
93
-                    android:layout_marginTop="13dp"
94 97
                     android:layout_height="wrap_content"
98
+                    android:layout_marginTop="13dp"
95 99
                     android:orientation="horizontal">
100
+
96 101
                     <TextView
97 102
                         android:id="@+id/tv_brokerage_price"
98 103
                         android:layout_width="wrap_content"
@@ -101,6 +106,7 @@
101 106
                         android:text="可用余额:¥"
102 107
                         android:textColor="@color/gray_999999"
103 108
                         android:textSize="15sp" />
109
+
104 110
                     <TextView
105 111
                         android:id="@+id/tv_integral"
106 112
                         android:layout_width="wrap_content"
@@ -110,6 +116,7 @@
110 116
                         android:text="可用积分:"
111 117
                         android:textColor="@color/gray_999999"
112 118
                         android:textSize="15sp" />
119
+
113 120
                     <TextView
114 121
                         android:id="@+id/tv_red_integral"
115 122
                         android:layout_width="wrap_content"
@@ -120,6 +127,7 @@
120 127
                         android:textSize="15sp" />
121 128
                 </LinearLayout>
122 129
             </LinearLayout>
130
+
123 131
             <LinearLayout
124 132
                 android:layout_width="match_parent"
125 133
                 android:layout_height="wrap_content"
@@ -127,74 +135,153 @@
127 135
                 android:layout_marginTop="13dp"
128 136
                 android:layout_marginRight="16dp"
129 137
                 android:background="@drawable/shape_ffffff_8dp"
138
+                android:orientation="vertical"
130 139
                 android:paddingLeft="13dp"
131
-                android:paddingRight="13dp"
132 140
                 android:paddingTop="16dp"
133
-                android:paddingBottom="16dp"
134
-                android:orientation="vertical">
141
+                android:paddingRight="13dp"
142
+                android:paddingBottom="16dp">
135 143
 
136 144
                 <com.yihucha.hbyhc.view.BoldText
137 145
                     android:layout_width="wrap_content"
138 146
                     android:layout_height="wrap_content"
139
-                    android:textSize="15sp"
147
+                    android:text="提现至"
140 148
                     android:textColor="@color/black_333333"
141
-                    android:text="提现至"/>
149
+                    android:textSize="15sp" />
150
+
142 151
                 <View
143 152
                     android:layout_width="match_parent"
144
-                    android:background="@color/gray_e5e5e5"
153
+                    android:layout_height="0.5dp"
145 154
                     android:layout_marginTop="15.5dp"
146
-                    android:layout_height="0.5dp"></View>
155
+                    android:background="@color/gray_e5e5e5"></View>
156
+
147 157
                 <LinearLayout
148 158
                     android:id="@+id/ll_zfb"
149 159
                     android:layout_width="match_parent"
150
-                    android:layout_marginTop="16dp"
151 160
                     android:layout_height="wrap_content"
161
+                    android:layout_marginTop="16dp"
152 162
                     android:gravity="center_vertical"
153
-                    android:orientation="horizontal">
163
+                    android:orientation="horizontal"
164
+                    android:visibility="gone">
154 165
 
155 166
                     <ImageView
156 167
                         android:layout_width="32.5dp"
157 168
                         android:layout_height="32.5dp"
158
-                        android:src="@mipmap/zfb_logo"/>
169
+                        android:src="@mipmap/zfb_logo" />
159 170
 
160 171
                     <TextView
161 172
                         android:layout_width="0dp"
162
-                        android:layout_weight="1"
163 173
                         android:layout_height="wrap_content"
164 174
                         android:layout_marginLeft="8dp"
165
-                        android:text="@string/alipay"/>
175
+                        android:layout_weight="1"
176
+                        android:text="@string/alipay" />
166 177
 
167 178
                     <ImageView
168 179
                         android:id="@+id/iv_zfb"
169 180
                         android:layout_width="wrap_content"
170 181
                         android:layout_height="wrap_content"
171
-                        android:src="@mipmap/shopping_unselected"/>
182
+                        android:src="@mipmap/shopping_unselected" />
172 183
                 </LinearLayout>
184
+
173 185
                 <LinearLayout
174 186
                     android:id="@+id/ll_wx"
175 187
                     android:layout_width="match_parent"
188
+                    android:layout_height="wrap_content"
176 189
                     android:layout_marginTop="16dp"
190
+                    android:gravity="center_vertical"
191
+                    android:orientation="horizontal">
192
+                    <ImageView
193
+                        android:layout_width="32.5dp"
194
+                        android:layout_height="32.5dp"
195
+                        android:src="@mipmap/icon_wx"
196
+                        android:layout_marginLeft="5dp"
197
+                        />
198
+                    <LinearLayout
199
+                        android:layout_width="0dp"
200
+                        android:layout_height="wrap_content"
201
+                        android:orientation="vertical"
202
+                        android:layout_weight="1"
203
+                        android:paddingLeft="16dp"
204
+                        android:paddingTop="5dp"
205
+                        android:paddingBottom="5dp"
206
+                        >
207
+                        <TextView
208
+                            android:layout_width="match_parent"
209
+                            android:layout_height="wrap_content"
210
+                            android:textColor="@color/black_333333"
211
+                            android:text="@string/wechat"
212
+                            android:textSize="16sp"
213
+                            />
214
+
215
+                        <TextView
216
+                            android:id="@+id/tv_click_to_accredit"
217
+                            android:layout_width="match_parent"
218
+                            android:layout_height="wrap_content"
219
+                            android:paddingTop="5dp"
220
+                            android:text="未授权,点击去授权"
221
+                            android:textSize="14sp"
222
+                            android:textColor="@color/black_808080"
223
+                            />
224
+                    </LinearLayout>
225
+
226
+                    <ImageView
227
+                        android:id="@+id/iv_wx"
228
+                        android:layout_width="wrap_content"
229
+                        android:layout_height="wrap_content"
230
+                        android:src="@mipmap/shopping_unselected"
231
+                        android:padding="5dp"
232
+                        android:visibility="invisible"
233
+                        />
234
+                </LinearLayout>
235
+
236
+                <LinearLayout
237
+                    android:id="@+id/ll_yhk"
238
+                    android:layout_width="match_parent"
177 239
                     android:layout_height="wrap_content"
240
+                    android:layout_marginTop="16dp"
178 241
                     android:gravity="center_vertical"
179 242
                     android:orientation="horizontal">
180 243
 
181 244
                     <ImageView
182 245
                         android:layout_width="32.5dp"
183 246
                         android:layout_height="32.5dp"
184
-                        android:src="@mipmap/wx_logo"/>
185
-
186
-                    <TextView
247
+                        android:src="@mipmap/icon_bank_card"
248
+                        android:layout_marginLeft="5dp"
249
+                        />
250
+                    <LinearLayout
187 251
                         android:layout_width="0dp"
188
-                        android:layout_weight="1"
189 252
                         android:layout_height="wrap_content"
190
-                        android:layout_marginLeft="8dp"
191
-                        android:text="@string/wechat"/>
253
+                        android:orientation="vertical"
254
+                        android:layout_weight="1"
255
+                        android:paddingLeft="16dp"
256
+                        android:paddingTop="5dp"
257
+                        android:paddingBottom="5dp"
258
+                        >
259
+                        <TextView
260
+                            android:id="@+id/tv_title_bank_card"
261
+                            android:layout_width="match_parent"
262
+                            android:layout_height="wrap_content"
263
+                            android:text="@string/yhk"
264
+                            android:textSize="16sp"
265
+                            android:textColor="@color/black_333333"
266
+                            />
267
+
268
+                        <TextView
269
+                            android:id="@+id/tv_click_to_select_card"
270
+                            android:layout_width="match_parent"
271
+                            android:layout_height="wrap_content"
272
+                            android:paddingTop="5dp"
273
+                            android:textSize="14sp"
274
+                            android:textColor="@color/black_808080"
275
+                            android:text="点击添加银行卡" />
276
+                    </LinearLayout>
192 277
 
193 278
                     <ImageView
194
-                        android:id="@+id/iv_wx"
279
+                        android:id="@+id/iv_yhk"
195 280
                         android:layout_width="wrap_content"
196 281
                         android:layout_height="wrap_content"
197
-                        android:src="@mipmap/shopping_unselected"/>
282
+                        android:padding="5dp"
283
+                        android:visibility="invisible"
284
+                        android:src="@mipmap/shopping_unselected" />
198 285
                 </LinearLayout>
199 286
 
200 287
             </LinearLayout>
@@ -202,58 +289,62 @@
202 289
             <TextView
203 290
                 android:id="@+id/tv_immediate_withdrawal"
204 291
                 android:layout_width="match_parent"
205
-                android:layout_marginTop="25dp"
206 292
                 android:layout_height="44dp"
207 293
                 android:layout_marginLeft="16dp"
294
+                android:layout_marginTop="25dp"
208 295
                 android:layout_marginRight="16dp"
209
-                android:textColor="@color/white"
296
+                android:background="@drawable/selector_button_immediate_withdrawal"
297
+                android:enabled="false"
210 298
                 android:gravity="center"
211
-                android:textSize="16sp"
212 299
                 android:text="@string/immediate_withdrawal"
213
-                android:enabled="false"
214
-                android:background="@drawable/selector_button_immediate_withdrawal"/>
300
+                android:textColor="@color/white"
301
+                android:textSize="16sp" />
302
+
215 303
             <LinearLayout
216 304
                 android:id="@+id/ll_layout_shuoming"
217 305
                 android:layout_width="match_parent"
218 306
                 android:layout_height="wrap_content"
219
-                android:orientation="vertical"
220 307
                 android:layout_marginBottom="20dp"
221
-                >
308
+                android:orientation="vertical">
309
+
222 310
                 <TextView
223 311
                     android:layout_width="wrap_content"
224 312
                     android:layout_height="wrap_content"
225
-                    android:textSize="15sp"
226 313
                     android:layout_marginLeft="16dp"
227 314
                     android:layout_marginTop="25dp"
315
+                    android:text="详细说明"
228 316
                     android:textColor="@color/gray_999999"
229
-                    android:text="详细说明"/>
317
+                    android:textSize="15sp" />
318
+
230 319
                 <TextView
231 320
                     android:id="@+id/tv_service"
232 321
                     android:layout_width="wrap_content"
233 322
                     android:layout_height="wrap_content"
234
-                    android:textSize="15sp"
235 323
                     android:layout_marginLeft="16dp"
236 324
                     android:layout_marginTop="15dp"
325
+                    android:text="平台服务费 ¥"
237 326
                     android:textColor="@color/gray_999999"
238
-                    android:text="平台服务费 ¥"/>
327
+                    android:textSize="15sp" />
328
+
239 329
                 <TextView
240 330
                     android:id="@+id/tv_service_money"
241 331
                     android:layout_width="wrap_content"
242 332
                     android:layout_height="wrap_content"
243
-                    android:textSize="15sp"
244 333
                     android:layout_marginLeft="16dp"
245 334
                     android:layout_marginTop="15dp"
335
+                    android:text="本次提取将扣除服务费 ¥"
246 336
                     android:textColor="@color/gray_999999"
247
-                    android:text="本次提取将扣除服务费 ¥"/>
337
+                    android:textSize="15sp" />
338
+
248 339
                 <TextView
249 340
                     android:id="@+id/tv_money"
250 341
                     android:layout_width="wrap_content"
251 342
                     android:layout_height="wrap_content"
252
-                    android:textSize="15sp"
253 343
                     android:layout_marginLeft="16dp"
254 344
                     android:layout_marginTop="15dp"
345
+                    android:text="本次提取实际到账额度 ¥"
255 346
                     android:textColor="@color/gray_999999"
256
-                    android:text="本次提取实际到账额度 ¥"/>
347
+                    android:textSize="15sp" />
257 348
             </LinearLayout>
258 349
         </LinearLayout>
259 350
     </ScrollView>

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

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

BIN
app/src/main/res/mipmap-xxxhdpi/bg_bankcard_area.png


BIN
app/src/main/res/mipmap-xxxhdpi/icon_add.png


BIN
app/src/main/res/mipmap-xxxhdpi/icon_bank_card.png


BIN
app/src/main/res/mipmap-xxxhdpi/icon_duigou_red.png


BIN
app/src/main/res/mipmap-xxxhdpi/icon_wx.png


+ 1 - 0
app/src/main/res/values/colors.xml

@@ -53,6 +53,7 @@
53 53
     <color name="gray_f5f5f5">#f5f5f5</color>
54 54
     <color name="yellow_f4d9ab">#F4D9AB</color>
55 55
     <color name="yellow_ffa802">#FFA802</color>
56
+    <color name="black_808080">#808080</color>
56 57
     <color name="yellow_ffdd99">#FFDD99</color>
57 58
     <color name="yellow_ffedc6">#FFEDC6</color>
58 59
     <color name="yellow_ffede5">#ffede5</color>

+ 2 - 0
app/src/main/res/values/strings.xml

@@ -327,6 +327,7 @@
327 327
     <!--    分享-->
328 328
     <string name="sharein">分享到</string>
329 329
     <string name="wechat">微信</string>
330
+    <string name="yhk">银行卡</string>
330 331
     <string name="circlefriends">朋友圈</string>
331 332
     <string name="copylink">复制链接</string>
332 333
     <!--    附近-->
@@ -422,4 +423,5 @@
422 423
     <string name="jpdc">精品大仓</string>
423 424
     <string name="jpsc">精品商城</string>
424 425
     <string name="dslm">鼎盛联盟</string>
426
+    <string name="bank_card_hint">请输入银行卡号(仅支持储蓄卡)</string>
425 427
 </resources>