瀏覽代碼

2024-1-30 代码备份
1、养老金页面及关联子页面开发完成
2、实名认证及关联页面开发完成

zhangbing 2 年之前
父節點
當前提交
95a13b8668
共有 39 個文件被更改,包括 2813 次插入1534 次删除
  1. 0 40
      app/build.gradle
  2. 54 58
      app/src/main/AndroidManifest.xml
  3. 7 0
      app/src/main/java/com/yihucha/hbyhc/network/service/UserService.java
  4. 7 2
      app/src/main/java/com/yihucha/hbyhc/presentation/MainActivity.java
  5. 10 8
      app/src/main/java/com/yihucha/hbyhc/presentation/annuity/AlreadyRealNameActivity.java
  6. 5 12
      app/src/main/java/com/yihucha/hbyhc/presentation/annuity/AnnuityActivity.java
  7. 166 0
      app/src/main/java/com/yihucha/hbyhc/presentation/annuity/AnnuityFragment.kt
  8. 235 0
      app/src/main/java/com/yihucha/hbyhc/presentation/annuity/AnnuityRecordsActivity.kt
  9. 38 47
      app/src/main/java/com/yihucha/hbyhc/presentation/annuity/RealNameAuthenticationActivity.java
  10. 86 0
      app/src/main/java/com/yihucha/hbyhc/presentation/annuity/adapter/AnnuityRecordsAdapter.kt
  11. 89 0
      app/src/main/java/com/yihucha/hbyhc/presentation/annuity/adapter/ItemAnnuitySelectorAdapter.kt
  12. 863 0
      app/src/main/java/com/yihucha/hbyhc/presentation/annuity/model/AnnuityRecordsBean.java
  13. 8 0
      app/src/main/java/com/yihucha/hbyhc/presentation/annuity/model/SelectorBean.kt
  14. 0 517
      app/src/main/java/com/yihucha/hbyhc/presentation/mine/MineFragment_copy.java
  15. 106 65
      app/src/main/java/com/yihucha/hbyhc/presentation/mine/view_model/MineViewModel.java
  16. 7 0
      app/src/main/java/com/yihucha/hbyhc/utils/DateUtil.java
  17. 131 0
      app/src/main/java/com/yihucha/hbyhc/view/PopAnnuitySelector.java
  18. 7 0
      app/src/main/res/drawable/shape_annuity_rules.xml
  19. 5 0
      app/src/main/res/drawable/shape_f5f5f5_50dp.xml
  20. 15 0
      app/src/main/res/drawable/shape_line_999999_50dp.xml
  21. 10 0
      app/src/main/res/drawable/shape_line_fe0032_fff1f2_50dp.xml
  22. 13 0
      app/src/main/res/drawable/shaple_black_50dp.xml
  23. 66 61
      app/src/main/res/layout/activity_alreadyrealname.xml
  24. 106 386
      app/src/main/res/layout/activity_annuity.xml
  25. 226 0
      app/src/main/res/layout/activity_annuity_records.xml
  26. 12 39
      app/src/main/res/layout/activity_main.xml
  27. 36 0
      app/src/main/res/layout/activity_real_name_authentication.xml
  28. 308 299
      app/src/main/res/layout/activity_settingup.xml
  29. 75 0
      app/src/main/res/layout/item_annuity_records.xml
  30. 22 0
      app/src/main/res/layout/item_annuity_selector.xml
  31. 100 0
      app/src/main/res/layout/popwindow_annuity_records_selector.xml
  32. 二進制
      app/src/main/res/mipmap-xxxhdpi/bg_annuity_record.png
  33. 二進制
      app/src/main/res/mipmap-xxxhdpi/bg_annuity_top.png
  34. 二進制
      app/src/main/res/mipmap-xxxhdpi/icon_jt_right_333333.png
  35. 二進制
      app/src/main/res/mipmap-xxxhdpi/img_real_name.png
  36. 二進制
      app/src/main/res/mipmap-xxxhdpi/ylj_rz_220914.png
  37. 二進制
      app/src/main/res/mipmap-xxxhdpi/ylj_rz_220914_bangding.png
  38. 二進制
      app/src/main/res/mipmap-xxxhdpi/ylj_rz_220914_jiesuan.png
  39. 二進制
      app/src/main/res/mipmap-xxxhdpi/ylj_rz_220914_renzheng.png

+ 0 - 40
app/build.gradle

@@ -43,46 +43,6 @@ android {
43 43
         includeInApk false
44 44
     }
45 45
 
46
-    //优化二
47
-    productFlavors {
48
-        Tencent {
49
-        }
50
-        Huawei {
51
-        }
52
-        Xiaomi {
53
-        }
54
-        Oppo {
55
-
56
-        }
57
-        VIVO {
58
-
59
-        }
60
-        Baidu {
61
-
62
-        }
63
-        Chan360 {
64
-
65
-        }
66
-        Dog {
67
-
68
-        }
69
-        Al {
70
-
71
-        }
72
-        PP {
73
-
74
-        }
75
-        UC {
76
-
77
-        }
78
-        Wandoujia {
79
-
80
-        }
81
-    }
82
-    productFlavors.all { flavor ->
83
-        flavor.manifestPlaceholders = [UMENG_CHANNEL_VALUE: name]
84
-    }
85
-
86 46
     applicationVariants.all { variant ->
87 47
         variant.outputs.all { output ->
88 48
             def outputFile = output.outputFile

+ 54 - 58
app/src/main/AndroidManifest.xml

@@ -37,7 +37,7 @@
37 37
     <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <!-- 检查Wi-Fi网络状态 -->
38 38
     <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /> <!-- 切换网络通道 -->
39 39
     <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> <!-- 开关Wi-Fi状态,解决国内机型移动网络权限问题需要 -->
40
-    <permission-group android:name="com.yihucha.hbyhc.andpermission" /> <!-- 必要权限,解决安全风险漏洞,发送和注册广播事件需要调用带有传递权限的接口 -->
40
+    <permission-group android:name=".andpermission" /> <!-- 必要权限,解决安全风险漏洞,发送和注册广播事件需要调用带有传递权限的接口 -->
41 41
     <permission
42 42
         android:name="com.yihucha.hbyhc.openadsdk.permission.TT_PANGOLIN"
43 43
         android:protectionLevel="signature" />
@@ -78,11 +78,15 @@
78 78
         tools:replace="android:theme"
79 79
         tools:targetApi="31">
80 80
         <activity
81
-            android:name=".presentation.home.YHCHomeSearchActivity"
81
+            android:name=".presentation.annuity.AnnuityRecordsActivity"
82 82
             android:exported="false"
83 83
             android:screenOrientation="portrait"
84 84
             />
85 85
         <activity
86
+            android:name=".presentation.home.YHCHomeSearchActivity"
87
+            android:exported="false"
88
+            android:screenOrientation="portrait" />
89
+        <activity
86 90
             android:name=".utils.explainpermissions.ExplainPermissionsUtil"
87 91
             android:exported="false"
88 92
             android:screenOrientation="portrait"
@@ -172,7 +176,7 @@
172 176
                 android:value="" />
173 177
         </activity>
174 178
         <activity
175
-            android:name="com.yihucha.hbyhc.presentation.shop.VipAreaActivity"
179
+            android:name=".presentation.shop.VipAreaActivity"
176 180
             android:exported="false"
177 181
             android:launchMode="singleTop"
178 182
             android:screenOrientation="portrait">
@@ -189,7 +193,7 @@
189 193
                 android:value="" />
190 194
         </activity>
191 195
         <activity
192
-            android:name="com.yihucha.hbyhc.presentation.integral.RedIntegralActivity"
196
+            android:name=".presentation.integral.RedIntegralActivity"
193 197
             android:exported="false"
194 198
             android:screenOrientation="portrait">
195 199
             <meta-data
@@ -201,7 +205,7 @@
201 205
             android:required="false" />
202 206
 
203 207
         <activity
204
-            android:name="com.yihucha.hbyhc.presentation.launch.SplashActivity"
208
+            android:name=".presentation.launch.SplashActivity"
205 209
             android:exported="true"
206 210
             android:label="@string/app_name">
207 211
             <intent-filter>
@@ -226,31 +230,31 @@
226 230
             android:value="812" />
227 231
 
228 232
         <activity
229
-            android:name="com.yihucha.hbyhc.presentation.MainActivity"
233
+            android:name=".presentation.MainActivity"
230 234
             android:launchMode="singleTask"
231 235
             android:screenOrientation="portrait" />
232 236
         <activity
233
-            android:name="com.yihucha.hbyhc.presentation.login.LoginHomeActivity"
237
+            android:name=".presentation.login.LoginHomeActivity"
234 238
             android:label="@string/login"
235 239
             android:launchMode="singleTask"
236 240
             android:screenOrientation="portrait" />
237 241
         <activity
238
-            android:name="com.yihucha.hbyhc.presentation.login.LoginActivity"
242
+            android:name=".presentation.login.LoginActivity"
239 243
             android:label="@string/phone_login"
240 244
             android:launchMode="singleTask"
241 245
             android:screenOrientation="portrait" />
242 246
         <activity
243
-            android:name="com.yihucha.hbyhc.presentation.launch.IntroductoryActivity"
247
+            android:name=".presentation.launch.IntroductoryActivity"
244 248
             android:label="@string/phone_login"
245 249
             android:launchMode="singleTask"
246 250
             android:screenOrientation="portrait" />
247 251
         <activity
248
-            android:name="com.yihucha.hbyhc.base.WebViewTitleBaseActivity"
252
+            android:name=".base.WebViewTitleBaseActivity"
249 253
             android:label=""
250 254
             android:launchMode="singleTask"
251 255
             android:screenOrientation="portrait" />
252 256
         <activity
253
-            android:name="com.yihucha.hbyhc.base.H5TitleActivity"
257
+            android:name=".base.H5TitleActivity"
254 258
             android:label=""
255 259
             android:launchMode="singleTask"
256 260
             android:screenOrientation="portrait" /> <!-- 搜索 -->
@@ -275,22 +279,22 @@
275 279
             android:launchMode="standard"
276 280
             android:screenOrientation="portrait" /> <!-- 提交订单 -->
277 281
         <activity
278
-            android:name="com.yihucha.hbyhc.presentation.members.AGuestMemberActivity"
282
+            android:name=".presentation.members.AGuestMemberActivity"
279 283
             android:label="创客会员"
280 284
             android:launchMode="singleTask"
281 285
             android:screenOrientation="portrait" />
282 286
         <activity
283
-            android:name="com.yihucha.hbyhc.presentation.invitation.InviteFriendsActivity"
287
+            android:name=".presentation.invitation.InviteFriendsActivity"
284 288
             android:label="邀请好友"
285 289
             android:launchMode="singleTask"
286 290
             android:screenOrientation="portrait" />
287 291
         <activity
288
-            android:name="com.yihucha.hbyhc.presentation.integral.MeetScanCodeActivity"
292
+            android:name=".presentation.integral.MeetScanCodeActivity"
289 293
             android:label=""
290 294
             android:launchMode="singleTask"
291 295
             android:screenOrientation="portrait" />
292 296
         <activity
293
-            android:name="com.yihucha.hbyhc.presentation.integral.IntegralListActivity"
297
+            android:name=".presentation.integral.IntegralListActivity"
294 298
             android:label="@string/the_integral_subsidiary"
295 299
             android:launchMode="singleTask"
296 300
             android:screenOrientation="portrait" />
@@ -305,7 +309,7 @@
305 309
             android:launchMode="singleTask"
306 310
             android:screenOrientation="portrait" />
307 311
         <activity
308
-            android:name="com.yihucha.hbyhc.presentation.message.TheAnnouncementActivity"
312
+            android:name=".presentation.message.TheAnnouncementActivity"
309 313
             android:label="@string/gonggao"
310 314
             android:launchMode="singleTask"
311 315
             android:screenOrientation="portrait" />
@@ -322,7 +326,7 @@
322 326
             android:launchMode="singleTask"
323 327
             android:screenOrientation="portrait" />
324 328
         <activity
325
-            android:name="com.yihucha.hbyhc.presentation.pay.PayActivity"
329
+            android:name=".presentation.pay.PayActivity"
326 330
             android:label="@string/pay_type"
327 331
             android:launchMode="singleTask"
328 332
             android:screenOrientation="portrait" />
@@ -337,7 +341,7 @@
337 341
             android:launchMode="singleTask"
338 342
             android:screenOrientation="portrait" />
339 343
         <activity
340
-            android:name="com.yihucha.hbyhc.presentation.integral.InviteFriendsActivity"
344
+            android:name=".presentation.integral.InviteFriendsActivity"
341 345
             android:label="邀请好友"
342 346
             android:launchMode="singleTask"
343 347
             android:screenOrientation="portrait" />
@@ -368,11 +372,11 @@
368 372
             android:launchMode="singleTask"
369 373
             android:screenOrientation="portrait" />
370 374
         <activity
371
-            android:name="com.yihucha.hbyhc.presentation.annuity.AnnuityActivity"
375
+            android:name=".presentation.annuity.AnnuityActivity"
372 376
             android:launchMode="singleTask"
373 377
             android:screenOrientation="portrait" />
374 378
         <activity
375
-            android:name="com.yihucha.hbyhc.presentation.annuity.PensionAccountActivity"
379
+            android:name=".presentation.annuity.PensionAccountActivity"
376 380
             android:label="@string/my_annuity"
377 381
             android:launchMode="singleTask"
378 382
             android:screenOrientation="portrait" />
@@ -382,17 +386,17 @@
382 386
             android:launchMode="singleTask"
383 387
             android:screenOrientation="portrait" />
384 388
         <activity
385
-            android:name="com.yihucha.hbyhc.presentation.annuity.RealNameAuthenticationActivity"
389
+            android:name=".presentation.annuity.RealNameAuthenticationActivity"
386 390
             android:label="@string/real_name_authentication"
387 391
             android:launchMode="singleTask"
388 392
             android:screenOrientation="portrait" />
389 393
         <activity
390
-            android:name="com.yihucha.hbyhc.presentation.annuity.AutonymSucceedActivity"
394
+            android:name=".presentation.annuity.AutonymSucceedActivity"
391 395
             android:label="@string/real_name_authentication"
392 396
             android:launchMode="singleTask"
393 397
             android:screenOrientation="portrait" />
394 398
         <activity
395
-            android:name="com.yihucha.hbyhc.presentation.annuity.PensionRecordsActivity"
399
+            android:name=".presentation.annuity.PensionRecordsActivity"
396 400
             android:label="@string/pension_record"
397 401
             android:launchMode="singleTask"
398 402
             android:screenOrientation="portrait" />
@@ -417,22 +421,22 @@
417 421
             android:launchMode="singleTask"
418 422
             android:screenOrientation="portrait" />
419 423
         <activity
420
-            android:name="com.yihucha.hbyhc.presentation.shop.ShopActivity"
424
+            android:name=".presentation.shop.ShopActivity"
421 425
             android:label=""
422 426
             android:launchMode="singleTask"
423 427
             android:screenOrientation="portrait" />
424 428
         <activity
425
-            android:name="com.yihucha.hbyhc.presentation.annuity.PensionRecordsListActivity"
429
+            android:name=".presentation.annuity.PensionRecordsListActivity"
426 430
             android:label="@string/yanglaojin"
427 431
             android:launchMode="singleTask"
428 432
             android:screenOrientation="portrait" />
429 433
         <activity
430
-            android:name="com.yihucha.hbyhc.presentation.annuity.PensionChoicePlatformActivity"
434
+            android:name=".presentation.annuity.PensionChoicePlatformActivity"
431 435
             android:label="@string/yanglaojinxiangqing"
432 436
             android:launchMode="singleTask"
433 437
             android:screenOrientation="portrait" />
434 438
         <activity
435
-            android:name="com.yihucha.hbyhc.presentation.annuity.PensionDetailsActivity"
439
+            android:name=".presentation.annuity.PensionDetailsActivity"
436 440
             android:label=""
437 441
             android:launchMode="singleTask"
438 442
             android:screenOrientation="portrait" />
@@ -442,22 +446,22 @@
442 446
             android:launchMode="singleTask"
443 447
             android:screenOrientation="portrait" />
444 448
         <activity
445
-            android:name="com.yihucha.hbyhc.presentation.pay.PaySucceedActivity"
449
+            android:name=".presentation.pay.PaySucceedActivity"
446 450
             android:label="@string/pay_success1"
447 451
             android:launchMode="singleTask"
448 452
             android:screenOrientation="portrait" />
449 453
         <activity
450
-            android:name="com.yihucha.hbyhc.presentation.message.MessageActivity"
454
+            android:name=".presentation.message.MessageActivity"
451 455
             android:label="@string/message"
452 456
             android:launchMode="singleTask"
453 457
             android:screenOrientation="portrait" />
454 458
         <activity
455
-            android:name="com.yihucha.hbyhc.presentation.shop.ShopSearchActivity"
459
+            android:name=".presentation.shop.ShopSearchActivity"
456 460
             android:label=""
457 461
             android:launchMode="standard"
458 462
             android:screenOrientation="portrait" />
459 463
         <activity
460
-            android:name="com.yihucha.hbyhc.presentation.integral.MyIntegralActivity"
464
+            android:name=".presentation.integral.MyIntegralActivity"
461 465
             android:label="@string/my_integral"
462 466
             android:launchMode="singleTask"
463 467
             android:screenOrientation="portrait" />
@@ -472,11 +476,11 @@
472 476
             android:launchMode="singleTask"
473 477
             android:screenOrientation="portrait" />
474 478
         <activity
475
-            android:name="com.yihucha.hbyhc.presentation.apply_channel.ChannelOpenSuccessActivity"
479
+            android:name=".presentation.apply_channel.ChannelOpenSuccessActivity"
476 480
             android:label="@string/opened_successfully"
477 481
             android:launchMode="singleTask"
478 482
             android:screenOrientation="portrait" /> <!-- <activity -->
479
-        <!-- android:name="com.yihucha.hbyhc.presentation.big_storehouse.DcMemberActivity" -->
483
+        <!-- android:name=".presentation.big_storehouse.DcMemberActivity" -->
480 484
         <!-- android:label="@string/chuxubao_member" -->
481 485
         <!-- android:launchMode="singleTask" -->
482 486
         <!-- android:screenOrientation="portrait" /> -->
@@ -513,7 +517,7 @@
513 517
             android:launchMode="singleTask"
514 518
             android:screenOrientation="portrait" />
515 519
         <activity
516
-            android:name="com.yihucha.hbyhc.presentation.apply_channel.ApplyChannelActivity"
520
+            android:name=".presentation.apply_channel.ApplyChannelActivity"
517 521
             android:label="申请渠道商"
518 522
             android:launchMode="singleTask"
519 523
             android:screenOrientation="portrait" />
@@ -523,8 +527,8 @@
523 527
             android:launchMode="singleTask"
524 528
             android:screenOrientation="portrait" />
525 529
         <activity
526
-            android:name="com.yihucha.hbyhc.presentation.annuity.AlreadyRealNameActivity"
527
-            android:label=""
530
+            android:name=".presentation.annuity.AlreadyRealNameActivity"
531
+            android:label="实名认证"
528 532
             android:launchMode="singleTask"
529 533
             android:screenOrientation="portrait" />
530 534
         <activity
@@ -543,7 +547,7 @@
543 547
             android:launchMode="singleTask"
544 548
             android:screenOrientation="portrait" />
545 549
         <activity
546
-            android:name="com.yihucha.hbyhc.presentation.invitation.MyInvitationActivity"
550
+            android:name=".presentation.invitation.MyInvitationActivity"
547 551
             android:label=""
548 552
             android:launchMode="singleTask"
549 553
             android:screenOrientation="portrait" />
@@ -558,48 +562,48 @@
558 562
             android:launchMode="singleTask"
559 563
             android:screenOrientation="portrait" />
560 564
         <activity
561
-            android:name="com.yihucha.hbyhc.presentation.pay.PensionAccountPayActivity"
565
+            android:name=".presentation.pay.PensionAccountPayActivity"
562 566
             android:label="开通养老金账号"
563 567
             android:launchMode="singleTask"
564 568
             android:screenOrientation="portrait" />
565 569
         <activity
566
-            android:name="com.yihucha.hbyhc.presentation.pay.PensionAccountPaySucceedActivity"
570
+            android:name=".presentation.pay.PensionAccountPaySucceedActivity"
567 571
             android:label="开通成功"
568 572
             android:launchMode="singleTask"
569 573
             android:screenOrientation="portrait" />
570 574
         <activity
571
-            android:name="com.yihucha.hbyhc.presentation.invitation.InviteRulesActivity"
575
+            android:name=".presentation.invitation.InviteRulesActivity"
572 576
             android:label="@string/rule"
573 577
             android:launchMode="singleTask"
574 578
             android:screenOrientation="portrait" />
575 579
         <activity
576
-            android:name="com.yihucha.hbyhc.presentation.invitation.InvitePartnersActivity"
580
+            android:name=".presentation.invitation.InvitePartnersActivity"
577 581
             android:label=""
578 582
             android:launchMode="singleTask"
579 583
             android:screenOrientation="portrait" />
580 584
         <activity
581
-            android:name="com.yihucha.hbyhc.presentation.invitation.RevenueSharingActivity"
585
+            android:name=".presentation.invitation.RevenueSharingActivity"
582 586
             android:label=""
583 587
             android:launchMode="singleTask"
584 588
             android:screenOrientation="portrait" />
585 589
         <activity
586
-            android:name="com.yihucha.hbyhc.presentation.invitation.ShareTheProductActivity"
590
+            android:name=".presentation.invitation.ShareTheProductActivity"
587 591
             android:label=""
588 592
             android:launchMode="singleTask"
589 593
             android:screenOrientation="portrait" />
590 594
         <activity
591
-            android:name="com.yihucha.hbyhc.presentation.invitation.AccumulatedincomeActivity"
595
+            android:name=".presentation.invitation.AccumulatedincomeActivity"
592 596
             android:label="累计收益"
593 597
             android:launchMode="singleTask"
594 598
             android:screenOrientation="portrait" />
595 599
         <activity
596
-            android:name="com.yihucha.hbyhc.presentation.invitation.ImmediateWithdrawalActivity"
600
+            android:name=".presentation.invitation.ImmediateWithdrawalActivity"
597 601
             android:label="@string/immediate_withdrawal"
598 602
             android:launchMode="singleTask"
599 603
             android:screenOrientation="portrait"
600 604
             android:windowSoftInputMode="adjustPan" />
601 605
         <activity
602
-            android:name="com.yihucha.hbyhc.presentation.invitation.WithdrawalRecordActivity"
606
+            android:name=".presentation.invitation.WithdrawalRecordActivity"
603 607
             android:label="@string/withdrawal_record"
604 608
             android:launchMode="singleTask"
605 609
             android:screenOrientation="portrait" />
@@ -631,7 +635,7 @@
631 635
             android:name="com.kepler.jd.sdk.WebViewActivity"
632 636
             android:screenOrientation="portrait" /> <!-- 微信登录 -->
633 637
         <activity
634
-            android:name="com.yihucha.hbyhc.wxapi.WXEntryActivity"
638
+            android:name=".wxapi.WXEntryActivity"
635 639
             android:exported="true"
636 640
             android:label="WXEntryActivity"
637 641
             android:launchMode="singleTask"
@@ -654,12 +658,12 @@
654 658
             android:launchMode="singleTop"
655 659
             android:screenOrientation="behind" />
656 660
         <activity
657
-            android:name="com.yihucha.hbyhc.presentation.login.ali.OneKeyLoginActivity"
661
+            android:name=".presentation.login.ali.OneKeyLoginActivity"
658 662
             android:configChanges="orientation|keyboardHidden|screenSize|uiMode|fontScale"
659 663
             android:screenOrientation="sensorPortrait" /> <!-- 拍照用得 -->
660 664
         <provider
661 665
             android:name="androidx.core.content.FileProvider"
662
-            android:authorities="com.yihucha.hbyhc.fileprovider"
666
+            android:authorities=".fileprovider"
663 667
             android:exported="false"
664 668
             android:grantUriPermissions="true">
665 669
             <meta-data
@@ -668,21 +672,13 @@
668 672
         </provider>
669 673
         <provider
670 674
             android:name="com.bytedance.sdk.openadsdk.TTFileProvider"
671
-            android:authorities="com.yihucha.hbyhc.TTFileProvider"
675
+            android:authorities=".TTFileProvider"
672 676
             android:exported="false"
673 677
             android:grantUriPermissions="true">
674 678
             <meta-data
675 679
                 android:name="android.support.FILE_PROVIDER_PATHS"
676 680
                 android:resource="@xml/file_paths" />
677 681
         </provider>
678
-        <provider
679
-            android:name="com.bytedance.sdk.openadsdk.multipro.TTMultiProvider"
680
-            android:authorities="com.yihucha.hbyhc.TTMultiProvider"
681
-            android:exported="false"
682
-            tools:replace="android:authorities" /> <!-- 友盟多渠道打包 -->
683
-        <meta-data
684
-            android:name="UMENG_CHANNEL"
685
-            android:value="${UMENG_CHANNEL_VALUE}" />
686 682
     </application>
687 683
 
688 684
 </manifest>

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

@@ -12,6 +12,7 @@ import com.yihucha.hbyhc.network.request_bean.SpreadNumberRequest;
12 12
 import com.yihucha.hbyhc.network.request_bean.UidRequest;
13 13
 import com.yihucha.hbyhc.network.request_bean.UpdateUserInfoRequest;
14 14
 import com.yihucha.hbyhc.presentation.annuity.model.AmountFromGzcBean;
15
+import com.yihucha.hbyhc.presentation.annuity.model.AnnuityRecordsBean;
15 16
 import com.yihucha.hbyhc.presentation.annuity.model.YanglaojinLogXSBean;
16 17
 import com.yihucha.hbyhc.presentation.annuity.model.YanglaojinLogXXBean;
17 18
 import com.yihucha.hbyhc.presentation.integral.model.IntegralListBean;
@@ -69,6 +70,12 @@ import retrofit2.http.QueryMap;
69 70
  * note:
70 71
  */
71 72
 public interface UserService {
73
+    /**
74
+     * 养老金列表
75
+     */
76
+    @GET("/api/user/yanglaolog")
77
+    Observable<DataResponse<AnnuityRecordsBean>> getYanglaoList(@QueryMap Map<String,Object> map);
78
+
72 79
     @GET("api/user/bill")
73 80
     Call<JiangjinBean> getJiangjin(@Query("page") int page, @Query("limit") int limit, @Query("is_red") boolean is_red);
74 81
 

+ 7 - 2
app/src/main/java/com/yihucha/hbyhc/presentation/MainActivity.java

@@ -31,6 +31,7 @@ import com.yihucha.hbyhc.config.HttpUrl;
31 31
 import com.yihucha.hbyhc.databinding.ActivityMainBinding;
32 32
 import com.yihucha.hbyhc.db.UserDB;
33 33
 import com.yihucha.hbyhc.manager.AgreeToADealManager;
34
+import com.yihucha.hbyhc.presentation.annuity.AnnuityFragment;
34 35
 import com.yihucha.hbyhc.presentation.big_storehouse.BigWarehouseFragment;
35 36
 import com.yihucha.hbyhc.presentation.home.HomeFragment;
36 37
 import com.yihucha.hbyhc.presentation.mine.MineFragment;
@@ -70,7 +71,8 @@ public class MainActivity extends BaseActivity implements View.OnClickListener {
70 71
     private HomeFragment homeFragment;
71 72
     private MineFragment mineFragment;
72 73
     private ShoppingFragment shoppingFragment;
73
-    private NearbyFragment nearbyFragment;
74
+//    private NearbyFragment nearbyFragment;
75
+    private AnnuityFragment nearbyFragment;
74 76
     private BigWarehouseFragment bigWarehouseFragment;
75 77
 
76 78
     private ActivityMainBinding binding;
@@ -566,11 +568,14 @@ public class MainActivity extends BaseActivity implements View.OnClickListener {
566 568
     }
567 569
 
568 570
     private void showNearbyFragment() {
571
+        if (!LoginUtils.isLogin(this)) {
572
+            return;
573
+        }
569 574
         //开启事务,Fragment的切换是由事务控制
570 575
         FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
571 576
         //判断Fragment是否为空
572 577
         if (nearbyFragment == null) {
573
-            nearbyFragment = new NearbyFragment();
578
+            nearbyFragment = new AnnuityFragment();
574 579
             //添加Fragmet1到事务中
575 580
             transaction.add(R.id.content_layout, nearbyFragment);
576 581
         }

+ 10 - 8
app/src/main/java/com/yihucha/hbyhc/presentation/annuity/AlreadyRealNameActivity.java

@@ -40,18 +40,15 @@ public class AlreadyRealNameActivity extends ViewBindingTitleBaseActivity<Activi
40 40
         Map<String, Object> map = new HashMap<>();
41 41
         map.put("type", "1");
42 42
         mRealNameAuthenticationViewModel.getAutonym(map);
43
-        mRealNameAuthenticationViewModel.mAutonymData.observe(this, new Observer<AutonymRequest>() {
44
-            @Override
45
-            public void onChanged(AutonymRequest autonymRequest) {
46
-                mViewBinding.tvUserName.setText(autonymRequest.getUser_name());
47
-                mViewBinding.tvUserCard.setText(StringsUtil.encodeIdCard(autonymRequest.getUser_card()));
48
-                GlideUtils.loadImage(context, autonymRequest.getCard_positive(), mViewBinding.ivCardPositive);
49
-                GlideUtils.loadImage(context, autonymRequest.getCard_reverse(), mViewBinding.ivCardReverse);
50
-            }
43
+        mRealNameAuthenticationViewModel.mAutonymData.observe(this, autonymRequest -> {
44
+            mViewBinding.tvUserName.setText("已认证("+autonymRequest.getUser_name()+")");
45
+            mViewBinding.tvUserCard.setText(StringsUtil.encodeIdCard(autonymRequest.getUser_card()));
51 46
         });
52 47
     }
53 48
 
54 49
     private void initClick() {
50
+        mViewBinding.tvBack.setOnClickListener(this);
51
+        mViewBinding.tvUpdate.setOnClickListener(this);
55 52
     }
56 53
 
57 54
     private void initView() {
@@ -60,6 +57,11 @@ public class AlreadyRealNameActivity extends ViewBindingTitleBaseActivity<Activi
60 57
     @Override
61 58
     public void onClick(View v) {
62 59
         super.onClick(v);
60
+        if (v==mViewBinding.tvBack){
61
+            finish();
62
+        }else if (v == mViewBinding.tvUpdate){
63
+            RealNameAuthenticationActivity.launch(this,2);
64
+        }
63 65
     }
64 66
     public static void launch(Context context) {
65 67
         Intent intent = new Intent(context, AlreadyRealNameActivity.class);

+ 5 - 12
app/src/main/java/com/yihucha/hbyhc/presentation/annuity/AnnuityActivity.java

@@ -34,8 +34,8 @@ import com.tencent.mm.opensdk.openapi.WXAPIFactory;
34 34
  * @date 2022/7/13
35 35
  * note:养老金主页
36 36
  */
37
-public class AnnuityActivity extends ViewBindingChangeTitleColorTitleBaseActivity<ActivityAnnuityBinding> implements View.OnClickListener {
38
-    private MineViewModel mMineViewModel;
37
+public class AnnuityActivity/* extends ViewBindingChangeTitleColorTitleBaseActivity<ActivityAnnuityBinding> implements View.OnClickListener*/ {
38
+    /*private MineViewModel mMineViewModel;
39 39
     private   String is_certification;//是否实名认证:1是
40 40
     @Override
41 41
     protected void onCreate(Bundle savedInstanceState) {
@@ -59,13 +59,6 @@ public class AnnuityActivity extends ViewBindingChangeTitleColorTitleBaseActivit
59 59
                 mViewBinding.btvOnLineTakeNo.setText("¥" + NumberUtil.subtract(yanglaojinBean.getAll_yanglao(),yanglaojinBean.getAll_yanglao_a(),2));
60 60
             }
61 61
         });
62
-//        mMineViewModel.getYanglaojinInfo();
63
-//        mMineViewModel.userAnnuityInfoBeanMutableLiveData.observe(this, new Observer<UserAnnuityInfoBean>() {
64
-//            @Override
65
-//            public void onChanged(UserAnnuityInfoBean userAnnuityInfoBean) {
66
-//
67
-//            }
68
-//        });
69 62
 
70 63
         mMineViewModel.userAnnuityInfoBeanMutableLiveData.observe(this, new Observer<UserAnnuityInfoBean>() {
71 64
             @Override
@@ -81,8 +74,8 @@ public class AnnuityActivity extends ViewBindingChangeTitleColorTitleBaseActivit
81 74
                     mViewBinding.tvBirthday60.setText(userAnnuityInfoBean.getBirthday60());
82 75
                 } else {
83 76
                     //未认证
84
-                    /*mViewBinding.tvIsApprove.setText(R.string.real_name_authentication);
85
-                    mViewBinding.tvIsApprove.getPaint().setFlags(Paint.UNDERLINE_TEXT_FLAG);*/
77
+                    *//*mViewBinding.tvIsApprove.setText(R.string.real_name_authentication);
78
+                    mViewBinding.tvIsApprove.getPaint().setFlags(Paint.UNDERLINE_TEXT_FLAG);*//*
86 79
                     mViewBinding.imgRenzheng.setImageResource(R.mipmap.shimingrenzheng);
87 80
                     mViewBinding.tvBirthday60.setText("未实名认证");
88 81
                     CustomDialog.defaultDialog2(AnnuityActivity.this,
@@ -201,7 +194,7 @@ public class AnnuityActivity extends ViewBindingChangeTitleColorTitleBaseActivit
201 194
         //养老金信息
202 195
         mMineViewModel.getYanglaojinInfo();
203 196
     }
204
-
197
+*/
205 198
     public static void launch(Context context) {
206 199
         Intent intent = new Intent(context, AnnuityActivity.class);
207 200
         context.startActivity(intent);

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

@@ -0,0 +1,166 @@
1
+package com.yihucha.hbyhc.presentation.annuity
2
+
3
+import android.annotation.SuppressLint
4
+import android.os.Bundle
5
+import android.view.LayoutInflater
6
+import android.view.View
7
+import android.view.ViewGroup
8
+import android.widget.RelativeLayout
9
+import androidx.core.view.marginTop
10
+import androidx.core.view.setMargins
11
+import androidx.lifecycle.ViewModelProvider
12
+import com.tencent.mm.opensdk.modelbiz.WXLaunchMiniProgram
13
+import com.tencent.mm.opensdk.openapi.WXAPIFactory
14
+import com.yihucha.hbyhc.R
15
+import com.yihucha.hbyhc.base.BaseFragment
16
+import com.yihucha.hbyhc.base.WebViewTitleBaseActivity
17
+import com.yihucha.hbyhc.callback.TwoButtonsListener
18
+import com.yihucha.hbyhc.config.Constants
19
+import com.yihucha.hbyhc.config.HttpUrl
20
+import com.yihucha.hbyhc.databinding.ActivityAnnuityBinding
21
+import com.yihucha.hbyhc.presentation.mine.ThirdPartyBindingActivity
22
+import com.yihucha.hbyhc.presentation.mine.view_model.MineViewModel
23
+import com.yihucha.hbyhc.utils.GlideUtils
24
+import com.yihucha.hbyhc.utils.ImmersedStatusbarUtils
25
+import com.yihucha.hbyhc.utils.NumberUtil
26
+import com.yihucha.hbyhc.utils.ScreenUtils
27
+import com.yihucha.hbyhc.utils.StringUtils
28
+import com.yihucha.hbyhc.view.CustomDialog
29
+
30
+class AnnuityFragment : BaseFragment(), View.OnClickListener {
31
+    private val mViewBinding by lazy {
32
+        ActivityAnnuityBinding.inflate(layoutInflater)
33
+    }
34
+    private lateinit var mMineViewModel: MineViewModel
35
+    private var is_certification = ""//是否实名认证:1是
36
+
37
+    override fun onCreateView(
38
+        inflater: LayoutInflater,
39
+        container: ViewGroup?,
40
+        savedInstanceState: Bundle?
41
+    ): View {
42
+        mMineViewModel = ViewModelProvider(this)[MineViewModel::class.java]
43
+        var statusBarHeight = ScreenUtils.getStatusBarHeight(activity)
44
+        var params = mViewBinding.customTitleBar.layoutParams as RelativeLayout.LayoutParams
45
+        params.setMargins(0, statusBarHeight, 0, 0)
46
+        initView()
47
+        initClick()
48
+        initData()
49
+        return mViewBinding.root
50
+    }
51
+
52
+    @SuppressLint("SetTextI18n")
53
+    private fun initData() {
54
+        //养老金数据
55
+        mMineViewModel.getYanglaojin()
56
+        mMineViewModel.yanglaojinBeanMutableLiveData.observe(
57
+            viewLifecycleOwner
58
+        ) { yanglaojinBean ->
59
+            mViewBinding.btvAllYanglao.text = "¥" + yanglaojinBean.all_yanglao
60
+            mViewBinding.btvAllYanglaoA.text = "¥" + yanglaojinBean.all_yanglao_a
61
+            mViewBinding.btvOnLineTakeNo.text = "¥" + NumberUtil.subtract(
62
+                yanglaojinBean.all_yanglao,
63
+                yanglaojinBean.all_yanglao_a,
64
+                2
65
+            )
66
+        }
67
+        mMineViewModel.userAnnuityInfoBeanMutableLiveData.observe(
68
+            viewLifecycleOwner
69
+        ) { userAnnuityInfoBean ->
70
+            is_certification = userAnnuityInfoBean.is_certification
71
+            if (is_certification == "1") {
72
+                //已认证
73
+                mViewBinding.imgRenzheng.setImageResource(R.mipmap.weirenzheng)
74
+                mViewBinding.tvAnnuityTime.text = userAnnuityInfoBean.birthday60 + ""
75
+            } else {
76
+                //未认证
77
+                mViewBinding.imgRenzheng.setImageResource(R.mipmap.shimingrenzheng)
78
+                mViewBinding.tvAnnuityTime.text = "未实名认证"
79
+                CustomDialog.defaultDialog2(activity,
80
+                    R.string.warm_prompt,
81
+                    "实名认证后才可查看获得的\n养老金哦~",
82
+                    R.string.cancel,
83
+                    R.string.go_real_name_authentication,
84
+                    object : TwoButtonsListener {
85
+                        override fun leftButton() {
86
+                        }
87
+
88
+                        override fun rightButton() {
89
+                            RealNameAuthenticationActivity.launch(context)
90
+                        }
91
+                    })
92
+            }
93
+        }
94
+        //用户信息
95
+        mMineViewModel.getUserInfo()
96
+        mMineViewModel.userModel.observe(viewLifecycleOwner) {
97
+            GlideUtils.loadCircleImage(
98
+                context,
99
+                it.avatar,
100
+                mViewBinding.ivAvatar,
101
+                R.mipmap.home_default_avatar_220614
102
+            )
103
+            mViewBinding.btvNickname.text = it.nickname
104
+            mViewBinding.tvPhoneNumber.text = StringUtils.resetPhone(it.phone)
105
+        }
106
+        //公证处养老金余额
107
+        mMineViewModel.getAmountFromGzc()
108
+        mMineViewModel.mAmount.observe(viewLifecycleOwner) {
109
+            mViewBinding.btvZxgzc.text = it.amount
110
+        }
111
+    }
112
+
113
+    private fun initClick() {
114
+        mViewBinding.tvAnnuityRules.setOnClickListener(this)
115
+        mViewBinding.llPensionRecord.setOnClickListener(this)
116
+        mViewBinding.imgRenzheng.setOnClickListener(this)
117
+        mViewBinding.llPaymentPlatformBinding.setOnClickListener(this)
118
+        mViewBinding.llCiticNotaryOfficeToCheck.setOnClickListener(this)
119
+        mViewBinding.llZxgzc.setOnClickListener(this)
120
+    }
121
+
122
+    private fun initView() {}
123
+
124
+    override fun onClick(view: View) {
125
+        if (view == mViewBinding.llPensionRecord) {
126
+            //养老金记录
127
+            AnnuityRecordsActivity.launch(activity)
128
+        } else if (view == mViewBinding.imgRenzheng) {
129
+            if ("1" != is_certification) {
130
+                //未实名认证
131
+                RealNameAuthenticationActivity.launch(context)
132
+            } else {
133
+                //已经实名
134
+                AlreadyRealNameActivity.launch(context)
135
+            }
136
+        } else if (view == mViewBinding.llPaymentPlatformBinding) {
137
+            ThirdPartyBindingActivity.launch(context)
138
+        } else if (
139
+            view == mViewBinding.llCiticNotaryOfficeToCheck ||
140
+            view == mViewBinding.llZxgzc
141
+        ) {
142
+            //中信公正
143
+            val api = WXAPIFactory.createWXAPI(context, Constants.WX_APP_ID)
144
+            val req = WXLaunchMiniProgram.Req()
145
+            req.userName = Constants.CITIC_NOTARY_OFFICE_APPLET_ID // 填小程序原始id
146
+            req.path =
147
+                Constants.CITIC_NOTARY_OFFICE_URL ////拉起小程序页面的可带参路径,不填默认拉起小程序首页,对于小游戏,可以只传入 query 部分,来实现传参效果,如:传入 "?foo=bar"。
148
+            req.miniprogramType =
149
+                if (HttpUrl.IS_RELEASE) WXLaunchMiniProgram.Req.MINIPTOGRAM_TYPE_RELEASE else WXLaunchMiniProgram.Req.MINIPROGRAM_TYPE_PREVIEW // 可选打开 开发版,体验版和正式版
150
+            api.sendReq(req)
151
+        } else if (view == mViewBinding.tvAnnuityRules) {
152
+            WebViewTitleBaseActivity.launch(
153
+                activity, getString(R.string.pension_rules),
154
+                Constants.PROTOCOL + Constants.PENSION_ACCOUNT_RULES
155
+            )
156
+        }
157
+    }
158
+
159
+    override fun onResume() {
160
+        super.onResume()
161
+        //养老金信息
162
+        mMineViewModel.getYanglaojinInfo()
163
+    }
164
+
165
+
166
+}

+ 235 - 0
app/src/main/java/com/yihucha/hbyhc/presentation/annuity/AnnuityRecordsActivity.kt

@@ -0,0 +1,235 @@
1
+package com.yihucha.hbyhc.presentation.annuity
2
+
3
+import android.app.Activity
4
+import android.app.Dialog
5
+import android.content.Intent
6
+import android.graphics.Color
7
+import android.os.Bundle
8
+import android.util.Log
9
+import android.view.Gravity
10
+import android.view.View
11
+import android.view.ViewGroup
12
+import android.widget.FrameLayout
13
+import androidx.constraintlayout.widget.ConstraintLayout
14
+import androidx.core.content.ContextCompat
15
+import androidx.lifecycle.ViewModelProvider
16
+import androidx.recyclerview.widget.LinearLayoutManager
17
+import com.bigkoo.pickerview.R
18
+import com.bigkoo.pickerview.builder.TimePickerBuilder
19
+import com.bigkoo.pickerview.view.TimePickerView
20
+import com.blankj.utilcode.util.ToastUtils
21
+import com.lcodecore.tkrefreshlayout.RefreshListenerAdapter
22
+import com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout
23
+import com.yihucha.hbyhc.base.ViewBindingBaseActivity
24
+import com.yihucha.hbyhc.databinding.ActivityAnnuityRecordsBinding
25
+import com.yihucha.hbyhc.presentation.annuity.adapter.AnnuityRecordsAdapter
26
+import com.yihucha.hbyhc.presentation.annuity.model.AnnuityRecordsBean
27
+import com.yihucha.hbyhc.presentation.mine.view_model.MineViewModel
28
+import com.yihucha.hbyhc.utils.*
29
+import com.yihucha.hbyhc.view.PopAnnuitySelector
30
+import java.util.*
31
+
32
+class AnnuityRecordsActivity : ViewBindingBaseActivity<ActivityAnnuityRecordsBinding>(),
33
+    View.OnClickListener {
34
+    private lateinit var mMineViewModel: MineViewModel
35
+    private var mPage = 1
36
+    private var source = "0"
37
+    private var status = 0
38
+    private lateinit var month: String
39
+    private lateinit var birthday: String
40
+    private lateinit var adapter: AnnuityRecordsAdapter
41
+    private var listDatas = mutableListOf<AnnuityRecordsBean.ListDTO>()
42
+    private lateinit var pvTime: TimePickerView
43
+    private lateinit var popWindow:PopAnnuitySelector
44
+
45
+    override fun onCreate(savedInstanceState: Bundle?) {
46
+        super.onCreate(savedInstanceState)
47
+        initView()
48
+        initData()
49
+        initLinstener()
50
+    }
51
+
52
+    private fun initView() {
53
+        mMineViewModel = ViewModelProvider(this)[MineViewModel::class.java]
54
+        mViewBinding.root.post {
55
+            var statusBarHeight = ScreenUtils.getStatusBarHeight(this)
56
+            var layoutParams = mViewBinding.imgvBack.layoutParams as ConstraintLayout.LayoutParams
57
+            layoutParams.setMargins(0, statusBarHeight, 0, 0)
58
+        }
59
+        var calendar = Calendar.getInstance()
60
+        month =
61
+            "${calendar.get(Calendar.YEAR)}-${StringUtils.formatNumber(calendar.get(Calendar.MONTH) + 1)}"
62
+        birthday =
63
+            "${calendar.get(Calendar.YEAR)}年${StringUtils.formatNumber(calendar.get(Calendar.MONTH) + 1)}月"
64
+        var manager = LinearLayoutManager(this)
65
+        mViewBinding.rvAnnuityRecords.layoutManager = manager
66
+        adapter = AnnuityRecordsAdapter(this, listDatas)
67
+        mViewBinding.rvAnnuityRecords.adapter = adapter
68
+
69
+        initTimePicker()
70
+        initSelector()
71
+    }
72
+
73
+    private fun initData() {
74
+        mMineViewModel.getYanglaojin()
75
+        mMineViewModel.yanglaojinBeanMutableLiveData.observe(this) {
76
+            it?.apply {
77
+                mViewBinding.tvTotal.text = "预估总额${all_yanglao_a}"
78
+
79
+                mViewBinding.tvValueYjs.text = all_yanglao_a
80
+                mViewBinding.tvYjs.text = "已结算${all_yanglao_a}"
81
+
82
+                var wjs = NumberUtil.subtract(all_yanglao_a, all_yanglao_a, 2)
83
+                mViewBinding.tvValueWjs.text = wjs
84
+                mViewBinding.tvWjs.text = "未结算${wjs}"
85
+            }
86
+        }
87
+        mMineViewModel.failed.observe(this) {
88
+            mViewBinding.refreshLayout?.apply {
89
+                finishLoadmore()
90
+                finishRefreshing()
91
+            }
92
+            ToastUtils.showLong(it)
93
+        }
94
+        loadYanglaoList()
95
+        mMineViewModel.annuityRecordsList.observe(this) {
96
+            mViewBinding.refreshLayout.apply {
97
+                finishLoadmore()
98
+                finishRefreshing()
99
+            }
100
+            it?.apply {
101
+                if (EmptyCheckUtils.isEmpty(this)) {
102
+                    if (mPage > 1) mPage--
103
+                    return@observe
104
+                }
105
+                if (mPage == 1) {
106
+                    listDatas.clear()
107
+                }
108
+                listDatas.addAll(list)
109
+                if (EmptyCheckUtils.isEmpty(listDatas)) {
110
+                    mViewBinding.layoutNoData.visibility = View.VISIBLE
111
+                    mViewBinding.rvAnnuityRecords.visibility = View.GONE
112
+                    return@observe
113
+                } else {
114
+                    mViewBinding.layoutNoData.visibility = View.GONE
115
+                    mViewBinding.rvAnnuityRecords.visibility = View.VISIBLE
116
+                }
117
+                adapter.setData(listDatas)
118
+            }
119
+
120
+        }
121
+    }
122
+
123
+    private fun initLinstener() {
124
+        mViewBinding.imgvBack.setOnClickListener(this)
125
+        mViewBinding.tvDate.setOnClickListener(this)
126
+        mViewBinding.tvSelector.setOnClickListener(this)
127
+        mViewBinding.refreshLayout.setEnableLoadmore(true)
128
+        mViewBinding.refreshLayout.setEnableRefresh(true)
129
+        mViewBinding.refreshLayout.setOnRefreshListener(object : RefreshListenerAdapter() {
130
+            override fun onRefresh(refreshLayout: TwinklingRefreshLayout) {
131
+                mPage = 1
132
+                loadYanglaoList()
133
+            }
134
+
135
+            override fun onLoadMore(refreshLayout: TwinklingRefreshLayout) {
136
+                mPage++
137
+                loadYanglaoList()
138
+            }
139
+        })
140
+    }
141
+
142
+    private fun loadYanglaoList() {
143
+        mMineViewModel.getYanglaoList(mPage, source, month, status)
144
+    }
145
+
146
+    /**
147
+     * 条件选择器
148
+     */
149
+    private fun initSelector(){
150
+        popWindow = PopAnnuitySelector(this)
151
+        popWindow.setOnDismissListener {
152
+            mViewBinding.viewBg.visibility = View.GONE
153
+        }
154
+    }
155
+
156
+    /**
157
+     * 时间选择器
158
+     */
159
+    private fun initTimePicker() { //Dialog 模式下,在底部弹出
160
+        val startDate = Calendar.getInstance()
161
+        startDate[1900, 1] = 1
162
+        val endDate = Calendar.getInstance()
163
+        endDate[DateUtil.getYear().toInt(), DateUtil.getMonth().toInt() - 1] =
164
+            DateUtil.getDay().toInt()
165
+        pvTime = TimePickerBuilder(this) { date, _ ->
166
+            Log.i("pvTime", "onTimeSelect")
167
+            birthday = DateUtil.getYearMonth(date.time)
168
+            mViewBinding.tvDate.text = birthday
169
+            month = birthday.replace("年", "-").replace("月", "")
170
+            loadYanglaoList()
171
+        }
172
+            .setTimeSelectChangeListener { Log.i("pvTime", "onTimeSelectChanged") }
173
+            .setType(booleanArrayOf(true, true, false, false, false, false))
174
+            .isDialog(true) //默认设置false ,内部实现将DecorView 作为它的父控件。
175
+            .addOnCancelClickListener { Log.i("pvTime", "onCancelClickListener") }
176
+            .setItemVisibleCount(9) //若设置偶数,实际值会加1(比如设置6,则最大可见条目为7)
177
+            .setLineSpacingMultiplier(2.0f)
178
+            .isAlphaGradient(true)
179
+            .setSubmitText("确定")
180
+            .setCancelText("取消")
181
+            .setSubmitColor(Color.parseColor("#fe0032")) //确定按钮文字颜色
182
+            .setCancelColor(Color.parseColor("#333333")) //取消按钮文字颜色
183
+            .setContentTextSize(15)
184
+            .setDate(endDate)
185
+            .setRangDate(startDate, endDate) //起始终止年月日设定
186
+            .setTitleBgColor(Color.parseColor("#FFFFFF")) //标题背景颜色 Night mode
187
+            .build()
188
+        val mDialog: Dialog = pvTime.dialog
189
+        if (mDialog != null) {
190
+            val params = FrameLayout.LayoutParams(
191
+                ViewGroup.LayoutParams.MATCH_PARENT,
192
+                ViewGroup.LayoutParams.WRAP_CONTENT,
193
+                Gravity.BOTTOM
194
+            )
195
+            params.leftMargin = 0
196
+            params.rightMargin = 0
197
+            pvTime.dialogContainerLayout.layoutParams = params
198
+            mDialog.window?.apply {
199
+                setWindowAnimations(R.style.picker_view_slide_anim) //修改动画样式
200
+                setGravity(Gravity.BOTTOM) //改成Bottom,底部显示
201
+                setDimAmount(0.3f)
202
+            }
203
+        }
204
+    }
205
+
206
+
207
+    override fun onClick(v: View) {
208
+        when (v) {
209
+            mViewBinding.imgvBack -> finish()
210
+            mViewBinding.tvDate -> {
211
+                //日期筛选
212
+                pvTime?.apply {
213
+                    if (!isShowing) {
214
+                        show()
215
+                    }
216
+                }
217
+            }
218
+            mViewBinding.tvSelector -> {
219
+                //条件筛选
220
+                popWindow.showAsDropDown(mViewBinding.tvTotal)
221
+                mViewBinding.viewBg.visibility = View.VISIBLE
222
+            }
223
+        }
224
+    }
225
+
226
+    companion object {
227
+        @JvmStatic
228
+        fun launch(activity: Activity?) {
229
+            activity?.apply {
230
+                startActivity(Intent(this, AnnuityRecordsActivity::class.java))
231
+            }
232
+        }
233
+    }
234
+
235
+}

+ 38 - 47
app/src/main/java/com/yihucha/hbyhc/presentation/annuity/RealNameAuthenticationActivity.java

@@ -19,6 +19,7 @@ import androidx.lifecycle.ViewModelProvider;
19 19
 import com.alibaba.fastjson.JSON;
20 20
 import com.blankj.utilcode.util.StringUtils;
21 21
 import com.blankj.utilcode.util.ToastUtils;
22
+import com.bumptech.glide.Glide;
22 23
 import com.huantansheng.easyphotos.Builder.AlbumBuilder;
23 24
 import com.huantansheng.easyphotos.EasyPhotos;
24 25
 import com.huantansheng.easyphotos.callback.SelectCallback;
@@ -34,6 +35,7 @@ import com.yihucha.hbyhc.utils.ImageEngineUtils.GlideEngine;
34 35
 import com.yihucha.hbyhc.utils.LogUtil;
35 36
 import com.yihucha.hbyhc.utils.MVUtils;
36 37
 import com.yihucha.hbyhc.utils.PermissionUtils;
38
+import com.yihucha.hbyhc.utils.StringsUtil;
37 39
 import com.yihucha.hbyhc.view.CustomDialog;
38 40
 import com.zs.easy.imgcompress.EasyImgCompress;
39 41
 import com.zs.easy.imgcompress.listener.OnCompressSinglePicListener;
@@ -41,6 +43,8 @@ import com.zs.easy.imgcompress.util.GBMBKBUtil;
41 43
 
42 44
 import java.io.File;
43 45
 import java.util.ArrayList;
46
+import java.util.HashMap;
47
+import java.util.Map;
44 48
 
45 49
 import okhttp3.MediaType;
46 50
 import okhttp3.MultipartBody;
@@ -64,8 +68,6 @@ public class RealNameAuthenticationActivity extends ViewBindingTitleBaseActivity
64 68
     protected void onCreate(Bundle savedInstanceState) {
65 69
         super.onCreate(savedInstanceState);
66 70
         mRealNameAuthenticationViewModel = new ViewModelProvider(this).get(RealNameAuthenticationViewModel.class);
67
-//        PermissionUtils.setTheCamera(this);
68
-//        checkPermissions();
69 71
         initView();
70 72
         initClick();
71 73
         initData();
@@ -97,6 +99,20 @@ public class RealNameAuthenticationActivity extends ViewBindingTitleBaseActivity
97 99
     }
98 100
 
99 101
     private void initData() {
102
+        flag = getIntent().getIntExtra("flag",0);
103
+        if (flag!=0){
104
+            Map<String, Object> map = new HashMap<>();
105
+            map.put("type", "1");
106
+            mRealNameAuthenticationViewModel.getAutonym(map);
107
+            mViewBinding.tvChangeImagePositive.setVisibility(View.VISIBLE);
108
+            mViewBinding.tvChangeImageReverse.setVisibility(View.VISIBLE);
109
+        }
110
+        mRealNameAuthenticationViewModel.mAutonymData.observe(this, autonymRequest -> {
111
+            mViewBinding.etUserName.setText("已认证(" + autonymRequest.getUser_name() + ")");
112
+            mViewBinding.etUserCard.setText(StringsUtil.encodeIdCard(autonymRequest.getUser_card()));
113
+            Glide.with(this).load(autonymRequest.getCard_positive()).into(mViewBinding.ivCardPositive);
114
+            Glide.with(this).load(autonymRequest.getCard_reverse()).into(mViewBinding.ivCardReverse);
115
+        });
100 116
         mRealNameAuthenticationViewModel.pathData.observe(this, pathBean -> {
101 117
             if ("1".equals(photoFlag)) {
102 118
                 //正面
@@ -131,6 +147,8 @@ public class RealNameAuthenticationActivity extends ViewBindingTitleBaseActivity
131 147
         mViewBinding.tvConfirmToSubmit.setOnClickListener(this);
132 148
         mViewBinding.ivCardPositive.setOnClickListener(this);
133 149
         mViewBinding.ivCardReverse.setOnClickListener(this);
150
+        mViewBinding.tvChangeImagePositive.setOnClickListener(this);
151
+        mViewBinding.tvChangeImageReverse.setOnClickListener(this);
134 152
     }
135 153
 
136 154
     private void initView() {
@@ -177,6 +195,18 @@ public class RealNameAuthenticationActivity extends ViewBindingTitleBaseActivity
177 195
                 getPhotoFunction();
178 196
             else
179 197
                 getPhotoFunction();
198
+        } else if (v == mViewBinding.tvChangeImagePositive) {
199
+            photoFlag = "1";
200
+            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU)
201
+                getPhotoFunction();
202
+            else
203
+                getPhotoFunction();
204
+        } else if (v == mViewBinding.tvChangeImageReverse) {
205
+            photoFlag = "2";
206
+            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU)
207
+                getPhotoFunction();
208
+            else
209
+                getPhotoFunction();
180 210
         }
181 211
     }
182 212
 
@@ -234,51 +264,6 @@ public class RealNameAuthenticationActivity extends ViewBindingTitleBaseActivity
234 264
         photoPickerIntent.setType("image/*");
235 265
         activity.startActivityForResult(photoPickerIntent, resultCode);
236 266
     }
237
-/*    @Override
238
-    protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
239
-        super.onActivityResult(requestCode, resultCode, data);
240
-        if (resultCode == RESULT_OK) {
241
-            File imageFile = new File(getExternalFilesDir(DIRECTORY_DCIM), "/wy_head.jpg");
242
-            switch (requestCode) {
243
-                case CAMERA:
244
-                case PHOTO:
245
-                    if (requestCode != CAMERA) {
246
-                        imageFile = new File(data.getData().getPath());
247
-                    }
248
-                    RequestBody imageBody = RequestBody.create(MediaType.parse("multipart/form-data"), imageFile);
249
-                    MultipartBody.Part imageBodyPart = MultipartBody.Part.createFormData("field", imageFile.getName(), imageBody);
250
-
251
-                    mRealNameAuthenticationViewModel.uploadPictures(imageBodyPart);
252
-*//*                    EasyImgCompress.withSinglePic(context,requestCode==CAMERA?imageFile.getAbsolutePath():data.getData().getPath())
253
-                            .maxPx(1200)
254
-                            .maxSize(100)
255
-                            .enableLog(true)
256
-                            .setOnCompressSinglePicListener(new OnCompressSinglePicListener() {
257
-                                @Override
258
-                                public void onStart() {
259
-                                    Log.i("EasyImgCompress", "onStart");
260
-                                }
261
-
262
-                                @Override
263
-                                public void onSuccess(File file) {
264
-                                    Log.i("EasyImgCompress", "onSuccess size = " + GBMBKBUtil.getSize(file.length()) + " getAbsolutePath= " + file.getAbsolutePath());
265
-                                    RequestBody imageBody = RequestBody.create(MediaType.parse("multipart/form-data"), file);
266
-                                    MultipartBody.Part imageBodyPart = MultipartBody.Part.createFormData("field", file.getName(), imageBody);
267
-
268
-                                    mRealNameAuthenticationViewModel.uploadPictures(imageBodyPart);
269
-                                }
270
-
271
-                                @Override
272
-                                public void onError(String error) {
273
-                                    Log.e("EasyImgCompress", "onError error = " + error);
274
-                                }
275
-                            }).start();*//*
276
-                    break;
277
-                default:
278
-                    break;
279
-            }
280
-        }
281
-    }*/
282 267
 
283 268
     private void getPhotoFunction() {
284 269
         CustomDialog.BottomPhotoAlbumDialog(context, new TwoButtonsListener() {
@@ -382,4 +367,10 @@ public class RealNameAuthenticationActivity extends ViewBindingTitleBaseActivity
382 367
         Intent intent = new Intent(context, RealNameAuthenticationActivity.class);
383 368
         context.startActivity(intent);
384 369
     }
370
+    private int flag = 0;
371
+    public static void launch(Context context,int flag) {
372
+        Intent intent = new Intent(context, RealNameAuthenticationActivity.class);
373
+        intent.putExtra("flag",flag);
374
+        context.startActivity(intent);
375
+    }
385 376
 }

+ 86 - 0
app/src/main/java/com/yihucha/hbyhc/presentation/annuity/adapter/AnnuityRecordsAdapter.kt

@@ -0,0 +1,86 @@
1
+package com.yihucha.hbyhc.presentation.annuity.adapter
2
+
3
+import android.content.Context
4
+import android.graphics.Color
5
+import android.text.Spannable
6
+import android.text.SpannableStringBuilder
7
+import android.text.style.ForegroundColorSpan
8
+import android.view.LayoutInflater
9
+import android.view.View
10
+import android.view.ViewGroup
11
+import android.widget.TextView
12
+import androidx.recyclerview.widget.RecyclerView.Adapter
13
+import androidx.recyclerview.widget.RecyclerView.ViewHolder
14
+import com.bumptech.glide.Glide
15
+import com.bytedance.pangle.transform.ZeusTransformUtils.getResources
16
+import com.yihucha.hbyhc.R
17
+import com.yihucha.hbyhc.databinding.ItemAnnuityRecordsBinding
18
+import com.yihucha.hbyhc.presentation.annuity.model.AnnuityRecordsBean
19
+import com.yihucha.hbyhc.utils.EmptyCheckUtils
20
+
21
+/**
22
+ *  author : zhangbing
23
+ *  time   : 2024/1/30 14:13
24
+ *  com.yihucha.hbyhc.presentation.annuity.adapter
25
+ */
26
+class AnnuityRecordsAdapter(var context: Context, var listDatas: List<AnnuityRecordsBean.ListDTO>) :
27
+    Adapter<AnnuityRecordsAdapter.ARHolder>() {
28
+
29
+    val sb by lazy {
30
+        StringBuffer()
31
+    }
32
+    private val redSpan by lazy {
33
+        ForegroundColorSpan(Color.parseColor("#fe0032"))
34
+    }
35
+    private val blackSpan by lazy {
36
+        ForegroundColorSpan(Color.parseColor("#333333"))
37
+    }
38
+
39
+    fun setData(listDatas: List<AnnuityRecordsBean.ListDTO>) {
40
+        this.listDatas = listDatas
41
+    }
42
+
43
+    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ARHolder {
44
+        return ARHolder(
45
+            LayoutInflater.from(parent.context)
46
+                .inflate(R.layout.item_annuity_records, parent, false)
47
+        )
48
+    }
49
+
50
+    override fun getItemCount(): Int {
51
+        return if (EmptyCheckUtils.isEmpty(listDatas)) 0 else listDatas!!.size
52
+    }
53
+
54
+    override fun onBindViewHolder(holder: ARHolder, position: Int) {
55
+        listDatas[position]?.apply {
56
+            setTextContent(holder.binding.tvValueYlj, number)
57
+            Glide.with(context).load(product.product.image).into(holder.binding.imgvProduct)
58
+            holder.binding.tvProductOrderTime.text = "下单时间:${create_time}"
59
+            holder.binding.tvOrderNo.text = "订单号:${order_sn}"
60
+            holder.binding.tvProductName.text = product.product.store_name
61
+            holder.binding.tvStatus.text = if (status == "0") "未结算" else "已结算"
62
+        }
63
+
64
+    }
65
+
66
+    private fun setTextContent(tv: TextView, content: String?) {
67
+        if (EmptyCheckUtils.isEmpty(content)) {
68
+            return
69
+        }
70
+        sb.setLength(0)
71
+        sb.append("预估养老金")
72
+        sb.append(content)
73
+        sb.append("元")
74
+        var builder = SpannableStringBuilder(sb)
75
+        builder.setSpan(blackSpan, 0, 5, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE)
76
+        builder.setSpan(redSpan, 5, sb.length - 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE)
77
+        builder.setSpan(blackSpan, sb.length - 1, sb.length, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE)
78
+        tv.text = builder
79
+    }
80
+
81
+    inner class ARHolder(itemView: View) : ViewHolder(itemView) {
82
+        val binding by lazy {
83
+            ItemAnnuityRecordsBinding.bind(itemView)
84
+        }
85
+    }
86
+}

+ 89 - 0
app/src/main/java/com/yihucha/hbyhc/presentation/annuity/adapter/ItemAnnuitySelectorAdapter.kt

@@ -0,0 +1,89 @@
1
+package com.yihucha.hbyhc.presentation.annuity.adapter
2
+
3
+import android.content.Context
4
+import android.graphics.Color
5
+import android.view.LayoutInflater
6
+import android.view.View
7
+import android.view.ViewGroup
8
+import android.widget.RelativeLayout
9
+import androidx.recyclerview.widget.RecyclerView.Adapter
10
+import androidx.recyclerview.widget.RecyclerView.ViewHolder
11
+import com.yihucha.hbyhc.R
12
+import com.yihucha.hbyhc.databinding.ItemAnnuityRecordsBinding
13
+import com.yihucha.hbyhc.databinding.ItemAnnuitySelectorBinding
14
+import com.yihucha.hbyhc.presentation.annuity.model.SelectorBean
15
+import com.yihucha.hbyhc.utils.DensityUtils
16
+import com.yihucha.hbyhc.utils.EmptyCheckUtils
17
+import com.yihucha.hbyhc.utils.ScreenUtils
18
+
19
+/**
20
+ *  author : zhangbing
21
+ *  time   : 2024/1/30 20:44
22
+ *  com.yihucha.hbyhc.presentation.annuity.adapter
23
+ */
24
+class ItemAnnuitySelectorAdapter(var context: Context, var searchDatas: List<SelectorBean>) :
25
+    Adapter<ItemAnnuitySelectorAdapter.IASHolder>() {
26
+    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): IASHolder {
27
+        return IASHolder(
28
+            LayoutInflater.from(context).inflate(R.layout.item_annuity_selector, parent, false)
29
+        )
30
+    }
31
+
32
+    override fun getItemCount(): Int {
33
+        return if (EmptyCheckUtils.isEmpty(searchDatas)) 0 else searchDatas.size
34
+    }
35
+
36
+    override fun onBindViewHolder(holder: IASHolder, position: Int) {
37
+        var item = searchDatas[position]
38
+        holder.binding.apply {
39
+            tvItemName.text = item.name
40
+            if (item.isChecked) {
41
+                tvItemName.setTextColor(Color.parseColor("#fe0032"))
42
+                tvItemName.background =
43
+                    context.getDrawable(R.drawable.shape_line_fe0032_fff1f2_50dp)
44
+            } else {
45
+                tvItemName.setTextColor(Color.parseColor("#333333"))
46
+                tvItemName.background = context.getDrawable(R.drawable.shape_f5f5f5_50dp)
47
+            }
48
+            tvItemName.setOnClickListener {
49
+                linstener?.apply {
50
+                    onItemClick(position)
51
+                    onClick(position)
52
+                }
53
+            }
54
+        }
55
+
56
+    }
57
+
58
+    fun onClick(pos: Int) {
59
+        for (i in searchDatas.indices) {
60
+            searchDatas[i].isChecked = i == pos
61
+        }
62
+        notifyDataSetChanged()
63
+    }
64
+
65
+    inner class IASHolder(itemView: View) : ViewHolder(itemView) {
66
+        val binding: ItemAnnuitySelectorBinding by lazy {
67
+            ItemAnnuitySelectorBinding.bind(itemView)
68
+        }
69
+
70
+        init {
71
+            binding.apply {
72
+                var params = tvItemName.layoutParams as RelativeLayout.LayoutParams
73
+                params.width = (ScreenUtils.getScreenWidth() - DensityUtils.dip2px(58f)) / 3
74
+                tvItemName.layoutParams = params
75
+            }
76
+
77
+        }
78
+
79
+    }
80
+
81
+    private var linstener: OnItemClickListener? = null
82
+    fun setOnItemClickListener(linstener: OnItemClickListener) {
83
+        this.linstener = linstener
84
+    }
85
+
86
+    interface OnItemClickListener {
87
+        fun onItemClick(itemPos: Int)
88
+    }
89
+}

+ 863 - 0
app/src/main/java/com/yihucha/hbyhc/presentation/annuity/model/AnnuityRecordsBean.java

@@ -0,0 +1,863 @@
1
+package com.yihucha.hbyhc.presentation.annuity.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/1/30 15:08
11
+ * com.yihucha.hbyhc.presentation.annuity.model
12
+ */
13
+@JsonIgnoreProperties(ignoreUnknown = true)
14
+public class AnnuityRecordsBean {
15
+    private int count;
16
+    private List<ListDTO> list;
17
+
18
+    public int getCount() {
19
+        return count;
20
+    }
21
+
22
+    public void setCount(int count) {
23
+        this.count = count;
24
+    }
25
+
26
+    public List<ListDTO> getList() {
27
+        return list;
28
+    }
29
+
30
+    public void setList(List<ListDTO> list) {
31
+        this.list = list;
32
+    }
33
+
34
+    @JsonIgnoreProperties(ignoreUnknown = true)
35
+    public static class ListDTO {
36
+        private String bill_id;
37
+        private String uid;
38
+        private String link_id;
39
+        private String pm;
40
+        private String title;
41
+        private String category;
42
+        private String type;
43
+        private String number;
44
+        private String balance;
45
+        private String mark;
46
+        private String create_time;
47
+        private String status;
48
+        private String commission_type;
49
+        private String order_sn;
50
+        private String tripartite;
51
+        private String type_shop;
52
+        private String mer_id;
53
+        private String source;
54
+        private String order_type;
55
+        private String is_red_brokerage;
56
+        private String gzc;
57
+        private Object take_time;
58
+        private String district_id;
59
+        private String street_id;
60
+        private String is_record;
61
+        private String mer_name;
62
+        private String mer_avatar;
63
+        private ProductDTOX product;
64
+
65
+        public String getBill_id() {
66
+            return bill_id;
67
+        }
68
+
69
+        public void setBill_id(String bill_id) {
70
+            this.bill_id = bill_id;
71
+        }
72
+
73
+        public String getUid() {
74
+            return uid;
75
+        }
76
+
77
+        public void setUid(String uid) {
78
+            this.uid = uid;
79
+        }
80
+
81
+        public String getLink_id() {
82
+            return link_id;
83
+        }
84
+
85
+        public void setLink_id(String link_id) {
86
+            this.link_id = link_id;
87
+        }
88
+
89
+        public String getPm() {
90
+            return pm;
91
+        }
92
+
93
+        public void setPm(String pm) {
94
+            this.pm = pm;
95
+        }
96
+
97
+        public String getTitle() {
98
+            return title;
99
+        }
100
+
101
+        public void setTitle(String title) {
102
+            this.title = title;
103
+        }
104
+
105
+        public String getCategory() {
106
+            return category;
107
+        }
108
+
109
+        public void setCategory(String category) {
110
+            this.category = category;
111
+        }
112
+
113
+        public String getType() {
114
+            return type;
115
+        }
116
+
117
+        public void setType(String type) {
118
+            this.type = type;
119
+        }
120
+
121
+        public String getNumber() {
122
+            return number;
123
+        }
124
+
125
+        public void setNumber(String number) {
126
+            this.number = number;
127
+        }
128
+
129
+        public String getBalance() {
130
+            return balance;
131
+        }
132
+
133
+        public void setBalance(String balance) {
134
+            this.balance = balance;
135
+        }
136
+
137
+        public String getMark() {
138
+            return mark;
139
+        }
140
+
141
+        public void setMark(String mark) {
142
+            this.mark = mark;
143
+        }
144
+
145
+        public String getCreate_time() {
146
+            return create_time;
147
+        }
148
+
149
+        public void setCreate_time(String create_time) {
150
+            this.create_time = create_time;
151
+        }
152
+
153
+        public String getStatus() {
154
+            return status;
155
+        }
156
+
157
+        public void setStatus(String status) {
158
+            this.status = status;
159
+        }
160
+
161
+        public String getCommission_type() {
162
+            return commission_type;
163
+        }
164
+
165
+        public void setCommission_type(String commission_type) {
166
+            this.commission_type = commission_type;
167
+        }
168
+
169
+        public String getOrder_sn() {
170
+            return order_sn;
171
+        }
172
+
173
+        public void setOrder_sn(String order_sn) {
174
+            this.order_sn = order_sn;
175
+        }
176
+
177
+        public String getTripartite() {
178
+            return tripartite;
179
+        }
180
+
181
+        public void setTripartite(String tripartite) {
182
+            this.tripartite = tripartite;
183
+        }
184
+
185
+        public String getType_shop() {
186
+            return type_shop;
187
+        }
188
+
189
+        public void setType_shop(String type_shop) {
190
+            this.type_shop = type_shop;
191
+        }
192
+
193
+        public String getMer_id() {
194
+            return mer_id;
195
+        }
196
+
197
+        public void setMer_id(String mer_id) {
198
+            this.mer_id = mer_id;
199
+        }
200
+
201
+        public String getSource() {
202
+            return source;
203
+        }
204
+
205
+        public void setSource(String source) {
206
+            this.source = source;
207
+        }
208
+
209
+        public String getOrder_type() {
210
+            return order_type;
211
+        }
212
+
213
+        public void setOrder_type(String order_type) {
214
+            this.order_type = order_type;
215
+        }
216
+
217
+        public String getIs_red_brokerage() {
218
+            return is_red_brokerage;
219
+        }
220
+
221
+        public void setIs_red_brokerage(String is_red_brokerage) {
222
+            this.is_red_brokerage = is_red_brokerage;
223
+        }
224
+
225
+        public String getGzc() {
226
+            return gzc;
227
+        }
228
+
229
+        public void setGzc(String gzc) {
230
+            this.gzc = gzc;
231
+        }
232
+
233
+        public Object getTake_time() {
234
+            return take_time;
235
+        }
236
+
237
+        public void setTake_time(Object take_time) {
238
+            this.take_time = take_time;
239
+        }
240
+
241
+        public String getDistrict_id() {
242
+            return district_id;
243
+        }
244
+
245
+        public void setDistrict_id(String district_id) {
246
+            this.district_id = district_id;
247
+        }
248
+
249
+        public String getStreet_id() {
250
+            return street_id;
251
+        }
252
+
253
+        public void setStreet_id(String street_id) {
254
+            this.street_id = street_id;
255
+        }
256
+
257
+        public String getIs_record() {
258
+            return is_record;
259
+        }
260
+
261
+        public void setIs_record(String is_record) {
262
+            this.is_record = is_record;
263
+        }
264
+
265
+        public String getMer_name() {
266
+            return mer_name;
267
+        }
268
+
269
+        public void setMer_name(String mer_name) {
270
+            this.mer_name = mer_name;
271
+        }
272
+
273
+        public String getMer_avatar() {
274
+            return mer_avatar;
275
+        }
276
+
277
+        public void setMer_avatar(String mer_avatar) {
278
+            this.mer_avatar = mer_avatar;
279
+        }
280
+
281
+        public ProductDTOX getProduct() {
282
+            return product;
283
+        }
284
+
285
+        public void setProduct(ProductDTOX product) {
286
+            this.product = product;
287
+        }
288
+
289
+        @JsonIgnoreProperties(ignoreUnknown = true)
290
+        public static class ProductDTOX {
291
+            private ProductDTO product;
292
+            private ProductAttrDTO productAttr;
293
+            private String product_type;
294
+
295
+            public ProductDTO getProduct() {
296
+                return product;
297
+            }
298
+
299
+            public void setProduct(ProductDTO product) {
300
+                this.product = product;
301
+            }
302
+
303
+            public ProductAttrDTO getProductAttr() {
304
+                return productAttr;
305
+            }
306
+
307
+            public void setProductAttr(ProductAttrDTO productAttr) {
308
+                this.productAttr = productAttr;
309
+            }
310
+
311
+            public String getProduct_type() {
312
+                return product_type;
313
+            }
314
+
315
+            public void setProduct_type(String product_type) {
316
+                this.product_type = product_type;
317
+            }
318
+
319
+            @JsonIgnoreProperties(ignoreUnknown = true)
320
+            public static class ProductDTO {
321
+                private String product_id;
322
+                private String image;
323
+                private String store_name;
324
+                private String is_show;
325
+                private String status;
326
+                private String is_del;
327
+                private String unit_name;
328
+                private String price;
329
+                private String mer_status;
330
+                private String temp_id;
331
+                private String is_gift_bag;
332
+                private String is_used;
333
+                private String product_type;
334
+                private String old_product_id;
335
+                private TempDTO temp;
336
+                private List<?> give_coupon_ids;
337
+
338
+                public String getProduct_id() {
339
+                    return product_id;
340
+                }
341
+
342
+                public void setProduct_id(String product_id) {
343
+                    this.product_id = product_id;
344
+                }
345
+
346
+                public String getImage() {
347
+                    return image;
348
+                }
349
+
350
+                public void setImage(String image) {
351
+                    this.image = image;
352
+                }
353
+
354
+                public String getStore_name() {
355
+                    return store_name;
356
+                }
357
+
358
+                public void setStore_name(String store_name) {
359
+                    this.store_name = store_name;
360
+                }
361
+
362
+                public String getIs_show() {
363
+                    return is_show;
364
+                }
365
+
366
+                public void setIs_show(String is_show) {
367
+                    this.is_show = is_show;
368
+                }
369
+
370
+                public String getStatus() {
371
+                    return status;
372
+                }
373
+
374
+                public void setStatus(String status) {
375
+                    this.status = status;
376
+                }
377
+
378
+                public String getIs_del() {
379
+                    return is_del;
380
+                }
381
+
382
+                public void setIs_del(String is_del) {
383
+                    this.is_del = is_del;
384
+                }
385
+
386
+                public String getUnit_name() {
387
+                    return unit_name;
388
+                }
389
+
390
+                public void setUnit_name(String unit_name) {
391
+                    this.unit_name = unit_name;
392
+                }
393
+
394
+                public String getPrice() {
395
+                    return price;
396
+                }
397
+
398
+                public void setPrice(String price) {
399
+                    this.price = price;
400
+                }
401
+
402
+                public String getMer_status() {
403
+                    return mer_status;
404
+                }
405
+
406
+                public void setMer_status(String mer_status) {
407
+                    this.mer_status = mer_status;
408
+                }
409
+
410
+                public String getTemp_id() {
411
+                    return temp_id;
412
+                }
413
+
414
+                public void setTemp_id(String temp_id) {
415
+                    this.temp_id = temp_id;
416
+                }
417
+
418
+                public String getIs_gift_bag() {
419
+                    return is_gift_bag;
420
+                }
421
+
422
+                public void setIs_gift_bag(String is_gift_bag) {
423
+                    this.is_gift_bag = is_gift_bag;
424
+                }
425
+
426
+                public String getIs_used() {
427
+                    return is_used;
428
+                }
429
+
430
+                public void setIs_used(String is_used) {
431
+                    this.is_used = is_used;
432
+                }
433
+
434
+                public String getProduct_type() {
435
+                    return product_type;
436
+                }
437
+
438
+                public void setProduct_type(String product_type) {
439
+                    this.product_type = product_type;
440
+                }
441
+
442
+                public String getOld_product_id() {
443
+                    return old_product_id;
444
+                }
445
+
446
+                public void setOld_product_id(String old_product_id) {
447
+                    this.old_product_id = old_product_id;
448
+                }
449
+
450
+                public TempDTO getTemp() {
451
+                    return temp;
452
+                }
453
+
454
+                public void setTemp(TempDTO temp) {
455
+                    this.temp = temp;
456
+                }
457
+
458
+                public List<?> getGive_coupon_ids() {
459
+                    return give_coupon_ids;
460
+                }
461
+
462
+                public void setGive_coupon_ids(List<?> give_coupon_ids) {
463
+                    this.give_coupon_ids = give_coupon_ids;
464
+                }
465
+
466
+                @JsonIgnoreProperties(ignoreUnknown = true)
467
+                public static class TempDTO {
468
+                    private String shipping_template_id;
469
+                    private String name;
470
+                    private String type;
471
+                    private String appoint;
472
+                    private String undelivery;
473
+                    private String mer_id;
474
+                    private String is_default;
475
+                    private String sort;
476
+                    private String create_time;
477
+                    private RegionAddressDTO regionAddress;
478
+                    private Object undelives;
479
+                    private FreeAddressDTO freeAddress;
480
+
481
+                    public String getShipping_template_id() {
482
+                        return shipping_template_id;
483
+                    }
484
+
485
+                    public void setShipping_template_id(String shipping_template_id) {
486
+                        this.shipping_template_id = shipping_template_id;
487
+                    }
488
+
489
+                    public String getName() {
490
+                        return name;
491
+                    }
492
+
493
+                    public void setName(String name) {
494
+                        this.name = name;
495
+                    }
496
+
497
+                    public String getType() {
498
+                        return type;
499
+                    }
500
+
501
+                    public void setType(String type) {
502
+                        this.type = type;
503
+                    }
504
+
505
+                    public String getAppoint() {
506
+                        return appoint;
507
+                    }
508
+
509
+                    public void setAppoint(String appoint) {
510
+                        this.appoint = appoint;
511
+                    }
512
+
513
+                    public String getUndelivery() {
514
+                        return undelivery;
515
+                    }
516
+
517
+                    public void setUndelivery(String undelivery) {
518
+                        this.undelivery = undelivery;
519
+                    }
520
+
521
+                    public String getMer_id() {
522
+                        return mer_id;
523
+                    }
524
+
525
+                    public void setMer_id(String mer_id) {
526
+                        this.mer_id = mer_id;
527
+                    }
528
+
529
+                    public String getIs_default() {
530
+                        return is_default;
531
+                    }
532
+
533
+                    public void setIs_default(String is_default) {
534
+                        this.is_default = is_default;
535
+                    }
536
+
537
+                    public String getSort() {
538
+                        return sort;
539
+                    }
540
+
541
+                    public void setSort(String sort) {
542
+                        this.sort = sort;
543
+                    }
544
+
545
+                    public String getCreate_time() {
546
+                        return create_time;
547
+                    }
548
+
549
+                    public void setCreate_time(String create_time) {
550
+                        this.create_time = create_time;
551
+                    }
552
+
553
+                    public RegionAddressDTO getRegionAddress() {
554
+                        return regionAddress;
555
+                    }
556
+
557
+                    public void setRegionAddress(RegionAddressDTO regionAddress) {
558
+                        this.regionAddress = regionAddress;
559
+                    }
560
+
561
+                    public Object getUndelives() {
562
+                        return undelives;
563
+                    }
564
+
565
+                    public void setUndelives(Object undelives) {
566
+                        this.undelives = undelives;
567
+                    }
568
+
569
+                    public FreeAddressDTO getFreeAddress() {
570
+                        return freeAddress;
571
+                    }
572
+
573
+                    public void setFreeAddress(FreeAddressDTO freeAddress) {
574
+                        this.freeAddress = freeAddress;
575
+                    }
576
+
577
+                    @JsonIgnoreProperties(ignoreUnknown = true)
578
+                    public static class RegionAddressDTO {
579
+                        private String shipping_template_region_id;
580
+                        private String temp_id;
581
+                        private String city_id;
582
+                        private String first;
583
+                        private String first_price;
584
+                        @JsonProperty("continue")
585
+                        private String continueX;
586
+                        private String continue_price;
587
+
588
+                        public String getShipping_template_region_id() {
589
+                            return shipping_template_region_id;
590
+                        }
591
+
592
+                        public void setShipping_template_region_id(String shipping_template_region_id) {
593
+                            this.shipping_template_region_id = shipping_template_region_id;
594
+                        }
595
+
596
+                        public String getTemp_id() {
597
+                            return temp_id;
598
+                        }
599
+
600
+                        public void setTemp_id(String temp_id) {
601
+                            this.temp_id = temp_id;
602
+                        }
603
+
604
+                        public String getCity_id() {
605
+                            return city_id;
606
+                        }
607
+
608
+                        public void setCity_id(String city_id) {
609
+                            this.city_id = city_id;
610
+                        }
611
+
612
+                        public String getFirst() {
613
+                            return first;
614
+                        }
615
+
616
+                        public void setFirst(String first) {
617
+                            this.first = first;
618
+                        }
619
+
620
+                        public String getFirst_price() {
621
+                            return first_price;
622
+                        }
623
+
624
+                        public void setFirst_price(String first_price) {
625
+                            this.first_price = first_price;
626
+                        }
627
+
628
+                        public String getContinueX() {
629
+                            return continueX;
630
+                        }
631
+
632
+                        public void setContinueX(String continueX) {
633
+                            this.continueX = continueX;
634
+                        }
635
+
636
+                        public String getContinue_price() {
637
+                            return continue_price;
638
+                        }
639
+
640
+                        public void setContinue_price(String continue_price) {
641
+                            this.continue_price = continue_price;
642
+                        }
643
+                    }
644
+
645
+                    @JsonIgnoreProperties(ignoreUnknown = true)
646
+                    public static class FreeAddressDTO {
647
+                        private String shipping_template_free_id;
648
+                        private String temp_id;
649
+                        private String city_id;
650
+                        private String number;
651
+                        private String price;
652
+
653
+                        public String getShipping_template_free_id() {
654
+                            return shipping_template_free_id;
655
+                        }
656
+
657
+                        public void setShipping_template_free_id(String shipping_template_free_id) {
658
+                            this.shipping_template_free_id = shipping_template_free_id;
659
+                        }
660
+
661
+                        public String getTemp_id() {
662
+                            return temp_id;
663
+                        }
664
+
665
+                        public void setTemp_id(String temp_id) {
666
+                            this.temp_id = temp_id;
667
+                        }
668
+
669
+                        public String getCity_id() {
670
+                            return city_id;
671
+                        }
672
+
673
+                        public void setCity_id(String city_id) {
674
+                            this.city_id = city_id;
675
+                        }
676
+
677
+                        public String getNumber() {
678
+                            return number;
679
+                        }
680
+
681
+                        public void setNumber(String number) {
682
+                            this.number = number;
683
+                        }
684
+
685
+                        public String getPrice() {
686
+                            return price;
687
+                        }
688
+
689
+                        public void setPrice(String price) {
690
+                            this.price = price;
691
+                        }
692
+                    }
693
+                }
694
+            }
695
+
696
+            @JsonIgnoreProperties(ignoreUnknown = true)
697
+            public static class ProductAttrDTO {
698
+                private Object gong_mer_profit;
699
+                private Object gong_pension;
700
+                private Object gong_market_price;
701
+                private Object cost_price;
702
+                private String product_id;
703
+                private String stock;
704
+                private String price;
705
+                private String unique;
706
+                private String sku;
707
+                private String volume;
708
+                private String weight;
709
+                private String ot_price;
710
+                private String dacang_price;
711
+                private Object gong_sku_id;
712
+                private String cost;
713
+                private int bc_extension_one;
714
+                private int bc_extension_two;
715
+                private int seckill;
716
+
717
+                public Object getGong_mer_profit() {
718
+                    return gong_mer_profit;
719
+                }
720
+
721
+                public void setGong_mer_profit(Object gong_mer_profit) {
722
+                    this.gong_mer_profit = gong_mer_profit;
723
+                }
724
+
725
+                public Object getGong_pension() {
726
+                    return gong_pension;
727
+                }
728
+
729
+                public void setGong_pension(Object gong_pension) {
730
+                    this.gong_pension = gong_pension;
731
+                }
732
+
733
+                public Object getGong_market_price() {
734
+                    return gong_market_price;
735
+                }
736
+
737
+                public void setGong_market_price(Object gong_market_price) {
738
+                    this.gong_market_price = gong_market_price;
739
+                }
740
+
741
+                public Object getCost_price() {
742
+                    return cost_price;
743
+                }
744
+
745
+                public void setCost_price(Object cost_price) {
746
+                    this.cost_price = cost_price;
747
+                }
748
+
749
+                public String getProduct_id() {
750
+                    return product_id;
751
+                }
752
+
753
+                public void setProduct_id(String product_id) {
754
+                    this.product_id = product_id;
755
+                }
756
+
757
+                public String getStock() {
758
+                    return stock;
759
+                }
760
+
761
+                public void setStock(String stock) {
762
+                    this.stock = stock;
763
+                }
764
+
765
+                public String getPrice() {
766
+                    return price;
767
+                }
768
+
769
+                public void setPrice(String price) {
770
+                    this.price = price;
771
+                }
772
+
773
+                public String getUnique() {
774
+                    return unique;
775
+                }
776
+
777
+                public void setUnique(String unique) {
778
+                    this.unique = unique;
779
+                }
780
+
781
+                public String getSku() {
782
+                    return sku;
783
+                }
784
+
785
+                public void setSku(String sku) {
786
+                    this.sku = sku;
787
+                }
788
+
789
+                public String getVolume() {
790
+                    return volume;
791
+                }
792
+
793
+                public void setVolume(String volume) {
794
+                    this.volume = volume;
795
+                }
796
+
797
+                public String getWeight() {
798
+                    return weight;
799
+                }
800
+
801
+                public void setWeight(String weight) {
802
+                    this.weight = weight;
803
+                }
804
+
805
+                public String getOt_price() {
806
+                    return ot_price;
807
+                }
808
+
809
+                public void setOt_price(String ot_price) {
810
+                    this.ot_price = ot_price;
811
+                }
812
+
813
+                public String getDacang_price() {
814
+                    return dacang_price;
815
+                }
816
+
817
+                public void setDacang_price(String dacang_price) {
818
+                    this.dacang_price = dacang_price;
819
+                }
820
+
821
+                public Object getGong_sku_id() {
822
+                    return gong_sku_id;
823
+                }
824
+
825
+                public void setGong_sku_id(Object gong_sku_id) {
826
+                    this.gong_sku_id = gong_sku_id;
827
+                }
828
+
829
+                public String getCost() {
830
+                    return cost;
831
+                }
832
+
833
+                public void setCost(String cost) {
834
+                    this.cost = cost;
835
+                }
836
+
837
+                public int getBc_extension_one() {
838
+                    return bc_extension_one;
839
+                }
840
+
841
+                public void setBc_extension_one(int bc_extension_one) {
842
+                    this.bc_extension_one = bc_extension_one;
843
+                }
844
+
845
+                public int getBc_extension_two() {
846
+                    return bc_extension_two;
847
+                }
848
+
849
+                public void setBc_extension_two(int bc_extension_two) {
850
+                    this.bc_extension_two = bc_extension_two;
851
+                }
852
+
853
+                public int getSeckill() {
854
+                    return seckill;
855
+                }
856
+
857
+                public void setSeckill(int seckill) {
858
+                    this.seckill = seckill;
859
+                }
860
+            }
861
+        }
862
+    }
863
+}

+ 8 - 0
app/src/main/java/com/yihucha/hbyhc/presentation/annuity/model/SelectorBean.kt

@@ -0,0 +1,8 @@
1
+package com.yihucha.hbyhc.presentation.annuity.model
2
+
3
+/**
4
+ *  author : zhangbing
5
+ *  time   : 2024/1/30 20:30
6
+ *  com.yihucha.hbyhc.presentation.annuity.model
7
+ */
8
+class SelectorBean(var name: String, var key: String?, var isChecked: Boolean = false)

+ 0 - 517
app/src/main/java/com/yihucha/hbyhc/presentation/mine/MineFragment_copy.java

@@ -1,517 +0,0 @@
1
-package com.yihucha.hbyhc.presentation.mine;
2
-
3
-import android.os.Bundle;
4
-import android.view.LayoutInflater;
5
-import android.view.View;
6
-import android.view.ViewGroup;
7
-
8
-import androidx.annotation.NonNull;
9
-
10
-import com.yihucha.hbyhc.base.BaseFragment;
11
-
12
-/**
13
- * @author qmzh
14
- * @date 2022/6/20
15
- * note:
16
- */
17
-public class MineFragment_copy extends BaseFragment {
18
-/*    private FragmentMineBinding binding;
19
-    private MineViewModel mMineViewModel;
20
-    private UserInfoModel mUserInfoModel;
21
-    private boolean isAnnuity;
22
-    private boolean isBangfu = false;*/
23
-
24
-    public View onCreateView(@NonNull LayoutInflater inflater,
25
-                             ViewGroup container, Bundle savedInstanceState) {
26
-/*        mMineViewModel =
27
-                new ViewModelProvider(this).get(MineViewModel.class);
28
-
29
-        binding = FragmentMineBinding.inflate(inflater, container, false);
30
-        View root = binding.getRoot();
31
-//        ImmersedStatusbarUtils.initAfterSetContentView(getActivity(), binding.viewOccupy);
32
-        initView();
33
-        initClick();*/
34
-//        return root;
35
-        return null;
36
-    }
37
-/*
38
-    private void initData() {
39
-        if (!"".equals(MVUtils.getString(Constants.TOKEN))) {
40
-            //用户信息
41
-            mMineViewModel.getUserInfo();
42
-            mMineViewModel.userModel.observe(getActivity(), new Observer<UserInfoModel>() {
43
-                @Override
44
-                public void onChanged(UserInfoModel uesrInfoModel) {
45
-                    mUserInfoModel = uesrInfoModel;
46
-                    if (!TextUtils.isEmpty(uesrInfoModel.getAvatar())) {
47
-                        GlideUtils.loadCircleImage(getActivity(), uesrInfoModel.getAvatar(), binding.ivAvatar, R.mipmap.home_default_avatar_220614);
48
-//                        GlideUtils.loadGif(getActivity(), R.mipmap.refresh_header3, binding.ivAvatar);
49
-                    }
50
-                    //我的邀请码
51
-                    MVUtils.put(Constants.USER_NUMBER, uesrInfoModel.getUser_number());
52
-                    //昵称
53
-                    MVUtils.put(Constants.NICK_NAME, uesrInfoModel.getNickname());
54
-                    binding.tvNickname.setText(uesrInfoModel.getNickname());
55
-                    String tel = StringsUtil.encodeTel(uesrInfoModel.getPhone());
56
-                    binding.tvPhone.setText(tel);
57
-//                    binding.tvAnnuity.setText(uesrInfoModel.getAnnuity());
58
-                    binding.tvMyIntegral.setText(uesrInfoModel.getScore());
59
-//                    if (uesrInfoModel.getIs_da_cang_vip().equals("0")) {
60
-//                        //非会员
61
-//                        binding.ivMember.setVisibility(View.GONE);
62
-//                    } else if (uesrInfoModel.getIs_da_cang_vip().equals("1")) {
63
-//                        //金卡
64
-//                        binding.ivMember.setVisibility(View.VISIBLE);
65
-//                        binding.ivMember.setImageResource(R.mipmap.jinka_220815);
66
-//                    } else if (uesrInfoModel.getIs_da_cang_vip().equals("2")) {
67
-//                        //银卡
68
-//                        binding.ivMember.setVisibility(View.VISIBLE);
69
-//                        binding.ivMember.setImageResource(R.mipmap.yinka_220815);
70
-//                    }
71
-                    binding.tvRedIntegral.setText(mUserInfoModel.getRed());
72
-                    binding.tvTeamCount.setText(mUserInfoModel.getSbreak());
73
-
74
-                    binding.tvMember.setVisibility(View.GONE);
75
-                    binding.imgvUser.setVisibility(View.VISIBLE);
76
-                    binding.imgvCwdl.setVisibility(View.GONE);
77
-                    String member = mUserInfoModel.getUser_rich_type();
78
-                    isBangfu = false;
79
-                    if ("0".equals(member)) {
80
-                        binding.imgvUser.setImageResource(R.mipmap.user);
81
-                        binding.imgvCwdl.setVisibility(View.VISIBLE);
82
-                    } else if ("1".equals(member)) {
83
-                        binding.imgvUser.setImageResource(R.mipmap.vip);
84
-                        binding.imgvCwdl.setVisibility(View.VISIBLE);
85
-                    } else if ("5".equals(member)) {
86
-                        binding.imgvUser.setImageResource(R.mipmap.cdaili);
87
-                    } else if ("3".equals(member)) {
88
-                        binding.tvMember.setVisibility(View.VISIBLE);
89
-                        binding.imgvUser.setVisibility(View.GONE);
90
-                        binding.tvMember.setText("创始人");
91
-                    } else if ("4".equals(member)) {
92
-                        binding.imgvUser.setImageResource(R.mipmap.high_vip);
93
-                        binding.imgvCwdl.setVisibility(View.VISIBLE);
94
-                    } else if ("6".equals(member)) {
95
-                        binding.imgvUser.setImageResource(R.mipmap.jdaili);
96
-                    } else if ("7".equals(member)) {
97
-                        binding.imgvUser.setImageResource(R.mipmap.xdaili);
98
-                    } else {
99
-                        binding.tvMember.setVisibility(View.VISIBLE);
100
-                        binding.imgvUser.setVisibility(View.GONE);
101
-                        binding.tvMember.setText("帮扶中心");
102
-                        isBangfu = true;
103
-                    }
104
-                    *//*if (uesrInfoModel.getIs_da_cang_vip().equals("1")||uesrInfoModel.getIs_da_cang_vip().equals("2")
105
-                            ||uesrInfoModel.getIs_da_cang_vip().equals("3")){
106
-                        //会员
107
-                        binding.ivMember.setImageResource(R.mipmap.me_member_221013);
108
-                    }else if (uesrInfoModel.getIs_da_cang_vip().equals("4")){
109
-                        //银卡
110
-                        binding.ivMember.setImageResource(R.mipmap.me_silver_member_221013);
111
-                    }else if (uesrInfoModel.getIs_da_cang_vip().equals("5")){
112
-                        //金卡
113
-                        binding.ivMember.setImageResource(R.mipmap.me_the_gold_card_members_221013);
114
-                    }else if (uesrInfoModel.getIs_da_cang_vip().equals("6")){
115
-                        //钻石
116
-                        binding.ivMember.setImageResource(R.mipmap.me_diamond_members_221013);
117
-                    }else if (uesrInfoModel.getIs_da_cang_vip().equals("7")){
118
-                        //董事
119
-                        binding.ivMember.setImageResource(R.mipmap.me_dongshi_221013);
120
-                    }else {
121
-                        //普通用户
122
-                        binding.ivMember.setVisibility(View.GONE);
123
-                    }*//*
124
-//                    if (uesrInfoModel.getIs_channel().equals("0")) {
125
-//                        //非渠道商
126
-//                        binding.ivChannel.setVisibility(View.GONE);
127
-//                    } else {
128
-//                        //渠道商
129
-//                        binding.ivChannel.setVisibility(View.VISIBLE);
130
-//                    }
131
-                    if (uesrInfoModel.getIdentity().equals("1")
132
-                            || uesrInfoModel.getIdentity().equals("2")
133
-                            || uesrInfoModel.getIdentity().equals("3")) {
134
-                        //代理商
135
-//                        binding.ivAgent.setVisibility(View.VISIBLE);
136
-                    } else {
137
-                        //非代理商
138
-//                        binding.ivAgent.setVisibility(View.GONE);
139
-                    }
140
-                }
141
-            });
142
-
143
-            mMineViewModel.getOrderQuantity();
144
-            mMineViewModel.orderQuantityData.observe(getActivity(), new Observer<OrderQuantityBean>() {
145
-                @Override
146
-                public void onChanged(OrderQuantityBean orderQuantityBean) {
147
-                    //待付款
148
-                    if (!orderQuantityBean.getNoPay().equals("0")) {
149
-                        binding.llPaymentRequired.setVisibility(View.VISIBLE);
150
-                        binding.tvPaymentRequired.setText(orderQuantityBean.getNoPay());
151
-                    } else {
152
-                        binding.llPaymentRequired.setVisibility(View.GONE);
153
-                    }
154
-                    //代发货
155
-                    if (!orderQuantityBean.getNoPostage().equals("0")) {
156
-                        binding.llWaitForDelivery.setVisibility(View.VISIBLE);
157
-                        binding.tvWaitForDelivery.setText(orderQuantityBean.getNoPostage());
158
-                    } else {
159
-                        binding.llWaitForDelivery.setVisibility(View.GONE);
160
-                    }
161
-                    //待收货
162
-                    if (!orderQuantityBean.getNoDeliver().equals("0")) {
163
-                        binding.llWaitingForTheGoods.setVisibility(View.VISIBLE);
164
-                        binding.tvWaitingForTheGoods.setText(orderQuantityBean.getNoDeliver());
165
-                    } else {
166
-                        binding.llWaitingForTheGoods.setVisibility(View.GONE);
167
-                    }
168
-                    //待评价
169
-                    if (!orderQuantityBean.getNoComment().equals("0")) {
170
-//                        tv_waiting_for_the_evaluation
171
-                        binding.llWaitingForTheEvaluation.setVisibility(View.VISIBLE);
172
-                        binding.tvWaitingForTheEvaluation.setText(orderQuantityBean.getNoComment());
173
-                    } else {
174
-                        binding.llWaitingForTheEvaluation.setVisibility(View.GONE);
175
-                    }
176
-                    //退款收货
177
-                    if (!orderQuantityBean.getRefund().equals("0")) {
178
-//                        tv_after_sale
179
-                        binding.llAfterSale.setVisibility(View.VISIBLE);
180
-                        binding.tvAfterSale.setText(orderQuantityBean.getRefund());
181
-                    } else {
182
-                        binding.llAfterSale.setVisibility(View.GONE);
183
-                    }
184
-                }
185
-            });
186
-            //养老金
187
-            mMineViewModel.getYanglaojin();
188
-            mMineViewModel.yanglaojinBeanMutableLiveData.observe(getActivity(), new Observer<YanglaojinBean>() {
189
-                @Override
190
-                public void onChanged(YanglaojinBean yanglaojinBean) {
191
-                    binding.tvAnnuity.setText(yanglaojinBean.getAll_yanglao() + "");
192
-                }
193
-            });
194
-            //网络请求失败
195
-            mMineViewModel.failed.observe(getActivity(), new Observer<String>() {
196
-                @Override
197
-                public void onChanged(String s) {
198
-                    ToastUtils.showLong(s);
199
-                }
200
-            });
201
-            //我的邀请
202
-            mMineViewModel.getMyInvitation();
203
-            mMineViewModel.myInvitationBeanMutableLiveData.observe(getActivity(), new Observer<MyInvitationBean>() {
204
-                @Override
205
-                public void onChanged(MyInvitationBean myInvitationBean) {
206
-                    binding.tvMyCommission.setText(myInvitationBean.getBrokerage_price());
207
-                }
208
-            });
209
-
210
-        }
211
-
212
-    }
213
-
214
-    private void initClick() {
215
-        binding.llAddress.setOnClickListener(this);
216
-        binding.ivAvatar.setOnClickListener(this);
217
-        binding.llPersonalData.setOnClickListener(this);
218
-        binding.llAllOrder.setOnClickListener(this);
219
-
220
-        binding.llClickPaymentRequired.setOnClickListener(this);
221
-        binding.llClickWaitForDelivery.setOnClickListener(this);
222
-        binding.llClickWaitingForTheGoods.setOnClickListener(this);
223
-        binding.llClickWaitingForTheEvaluation.setOnClickListener(this);
224
-        binding.llClickAfterSale.setOnClickListener(this);
225
-
226
-        binding.llAnnuity.setOnClickListener(this);
227
-        binding.llSettingup.setOnClickListener(this);
228
-        binding.llMyFavorite.setOnClickListener(this);
229
-        binding.llWodeguanzhu.setOnClickListener(this);
230
-        binding.llBangzhuzhongxin.setOnClickListener(this);
231
-        binding.llWodepingjia.setOnClickListener(this);
232
-        binding.llWodeerweima.setOnClickListener(this);
233
-        binding.llMyInvitation.setOnClickListener(this);
234
-        binding.llSanfangdingdan.setOnClickListener(this);
235
-        binding.llMyCommission.setOnClickListener(this);
236
-        binding.llMyIntegral.setOnClickListener(this);
237
-        binding.llShangpuruzhu.setOnClickListener(this);
238
-        binding.llChuangfubao.setOnClickListener(this);
239
-        binding.llAccountServiceFee.setOnClickListener(this);
240
-
241
-        binding.llRedIntegral.setOnClickListener(this);
242
-        binding.tvMember.setOnClickListener(this);
243
-
244
-        binding.imgvUser.setOnClickListener(this);
245
-        binding.llBangfuzhongxin.setOnClickListener(this);
246
-        binding.llConnectUs.setOnClickListener(this);
247
-        binding.imgvCwdl.setOnClickListener(this);
248
-    }
249
-
250
-    private void initView() {
251
-
252
-        *//**
253
-         * 检测用户年费状态
254
-         *//*
255
-//        mMineViewModel.mAccountServiceFeedData.observe(getActivity(), accountServiceFeeBean -> {
256
-//            LogUtil.LogInfo("QQQQ","0000");
257
-//            if ("0".equals(accountServiceFeeBean.getStatus())||"1".equals(accountServiceFeeBean.getStatus())){
258
-//                mMineViewModel.getCreateAnnualOrder();
259
-//            }else if ("2".equals(accountServiceFeeBean.getStatus())){
260
-//                CustomDialog.getUnverified(getActivity());
261
-//            }else {
262
-//                if (isAnnuity){
263
-//                    //养老金
264
-//                    AnnuityActivity.launch(getActivity());
265
-//                }else {
266
-//                    PensionAccountPaySucceedActivity.launch(getActivity());
267
-//                }
268
-//
269
-//            }
270
-//        });
271
-
272
-        *//**
273
-         * 创建订单
274
-         *//*
275
-//        mMineViewModel.mCreateAnnualOrderData.observe(getActivity(), new Observer<CreateAnnualOrderBean>() {
276
-//            @Override
277
-//            public void onChanged(CreateAnnualOrderBean createAnnualOrderBean) {
278
-//                LogUtil.LogInfo("QQQQ","1111");
279
-//                PensionAccountPayActivity.launch(getActivity(),createAnnualOrderBean.getOrder_id());
280
-//            }
281
-//        });
282
-    }
283
-
284
-    @Override
285
-    public void onClick(View view) {
286
-        if (view == binding.imgvCwdl) {
287
-            int flag = 0;
288
-            String user_rich_type = mUserInfoModel.getUser_rich_type();
289
-            String str = "用户";
290
-            if ("0".equals(user_rich_type)){
291
-                str = "用户";
292
-                flag = 0;
293
-            }else if ("1".equals(user_rich_type)) {
294
-                flag = 1;
295
-                str = "会员";
296
-            }else if ("4".equals(user_rich_type)){
297
-                flag = 4;
298
-            }
299
-            if (flag <=1) {
300
-                String notice = "亲爱的"+str+",请先升级到高级会员再申请区域代理~";
301
-                CustomDialog.defaultDialog(getActivity(), R.string.warm_prompt, notice, R.string.cancel, R.string.go_up, new TwoButtonsListener() {
302
-                    @Override
303
-                    public void leftButton() {
304
-                    }
305
-
306
-                    @Override
307
-                    public void rightButton() {
308
-                        VipAreaActivity.lanuch(getActivity());
309
-                    }
310
-                });
311
-            }else {
312
-
313
-            }
314
-
315
-        } else if (view == binding.llAddress) {
316
-            //我的地址
317
-            MyAddressActivity.launch(getActivity());
318
-        } else if (view == binding.ivAvatar) {
319
-            //个人资料
320
-            MyProfileActivity.launch(getActivity());
321
-        } else if (view == binding.llPersonalData) {
322
-            //个人资料
323
-            MyProfileActivity.launch(getActivity());
324
-        } else if (view == binding.llAllOrder) {
325
-            //我的订单
326
-            OrderActivity.launch(getActivity(), Constants.ALL_ORDER);
327
-        } else if (view == binding.llClickPaymentRequired) {
328
-            //待付款
329
-            OrderActivity.launch(getActivity(), Constants.OBLIGATION);
330
-        } else if (view == binding.llClickWaitForDelivery) {
331
-            //待发货
332
-            OrderActivity.launch(getActivity(), Constants.TO_SEND_THE_GOODS);
333
-        } else if (view == binding.llClickWaitingForTheGoods) {
334
-            //待收货
335
-            OrderActivity.launch(getActivity(), Constants.WAIT_FOR_RECEIVING);
336
-        } else if (view == binding.llClickWaitingForTheEvaluation) {
337
-            //待评价
338
-            OrderActivity.launch(getActivity(), Constants.EVALUATE);
339
-        } else if (view == binding.llClickAfterSale) {
340
-            //退款售后
341
-            AfterSalesOrderListActivity.launch(getActivity());
342
-        } else if (view == binding.llAnnuity) {
343
-            isAnnuity = true;
344
-            //账号服务费
345
-//            mMineViewModel.getAccountServiceFee();
346
-            if (isAnnuity) {
347
-                //养老金
348
-                AnnuityActivity.launch(getActivity());
349
-            } else {
350
-                PensionAccountPaySucceedActivity.launch(getActivity());
351
-            }
352
-        } else if (view == binding.llSettingup) {
353
-            //设置
354
-            SettingUpActivity.launch(getActivity());
355
-        } else if (view == binding.llMyFavorite) {
356
-            //我的收藏
357
-            MyFavoriteActivity.launch(getActivity());
358
-        } else if (view == binding.llWodeguanzhu) {
359
-            //我的关注
360
-            MyFocusActivity.launch(getActivity());
361
-        } else if (view == binding.llBangzhuzhongxin) {
362
-            //帮助中心
363
-            HelpCenterActivity.launch(getActivity());
364
-        } else if (view == binding.llWodepingjia) {
365
-            //我的评价
366
-            MyEvaluateActivity.launch(getActivity());
367
-        } else if (view == binding.llWodeerweima) {
368
-            //我的二维码
369
-//            MyQRCodeActivity.launch(getActivity());
370
-            //邀请好友
371
-            InviteFriendsActivity.launch(getActivity());
372
-        } else if (view == binding.llMyInvitation) {
373
-            //我的邀请
374
-            MyInvitationActivity.launch(getActivity());
375
-        } else if (view == binding.llSanfangdingdan) {
376
-            //三方订单
377
-            TripartiteOrderActivity.launch(getActivity());
378
-        } else if (view == binding.llMyCommission) {
379
-            //点击我的佣金进入我的邀请
380
-            MyInvitationActivity.launch(getActivity());
381
-        } else if (view == binding.llMyIntegral) {
382
-            //我的积分
383
-//            MyIntegralActivity.launch(getActivity());
384
-//            MyIncomeActivity.launch(getActivity());
385
-            AgentRegionalDistributionActivity.launch(getActivity());
386
-        } else if (view == binding.llShangpuruzhu) {
387
-            //商铺入驻
388
-            IWXAPI api = WXAPIFactory.createWXAPI(getActivity(), Constants.WX_APP_ID);
389
-
390
-            WXLaunchMiniProgram.Req req = new WXLaunchMiniProgram.Req();
391
-            req.userName = Constants.SHOPS_IN_APPLET_ID; // 填小程序原始id
392
-            req.path = Constants.SHOPS_IN_OFFICE_URL;                  ////拉起小程序页面的可带参路径,不填默认拉起小程序首页,对于小游戏,可以只传入 query 部分,来实现传参效果,如:传入 "?foo=bar"。
393
-            req.miniprogramType = HttpUrl.IS_RELEASE ? WXLaunchMiniProgram.Req.MINIPTOGRAM_TYPE_RELEASE :
394
-                    WXLaunchMiniProgram.Req.MINIPROGRAM_TYPE_PREVIEW;// 可选打开 开发版,体验版和正式版
395
-
396
-            api.sendReq(req);
397
-        } else if (view == binding.llChuangfubao) {
398
-            H5TitleActivity.launch(getActivity(), "",
399
-                    Constants.CHUANGFUBAO + MVUtils.getString(Constants.TOKEN));
400
-        } else if (view == binding.llAccountServiceFee) {
401
-            //账号服务费
402
-            isAnnuity = false;
403
-//            mMineViewModel.getAccountServiceFee();
404
-            if (isAnnuity) {
405
-                //养老金
406
-                AnnuityActivity.launch(getActivity());
407
-            } else {
408
-                PensionAccountPaySucceedActivity.launch(getActivity());
409
-            }
410
-        } else if (view == binding.llRedIntegral) {
411
-            //红积分
412
-            Bundle bundle = new Bundle();
413
-            bundle.putString("nickname", mUserInfoModel.getNickname());
414
-            bundle.putString("phone", mUserInfoModel.getPhone());
415
-            bundle.putString("avatar", mUserInfoModel.getAvatar());
416
-            bundle.putString("member", mUserInfoModel.getUser_rich_type());
417
-            bundle.putString("member_brokerage_price", mUserInfoModel.getMember_brokerage_price());
418
-            bundle.putString("red", mUserInfoModel.getRed());
419
-            bundle.putBoolean("is_bangfu", isBangfu);
420
-            RedIntegralActivity_copy.launch(getContext(), bundle);
421
-        } else if (view == binding.tvMember) {
422
-            if (isBangfu) {
423
-                //帮扶中心
424
-                Bundle bundle = new Bundle();
425
-                bundle.putString("nickname", mUserInfoModel.getNickname());
426
-                bundle.putString("phone", mUserInfoModel.getPhone());
427
-                bundle.putString("avatar", mUserInfoModel.getAvatar());
428
-                bundle.putString("member", mUserInfoModel.getUser_rich_type());
429
-
430
-                bundle.putString("annuity", binding.tvAnnuity.getText().toString());
431
-                bundle.putString("commission", binding.tvMyCommission.getText().toString());
432
-                bundle.putString("integral", binding.tvMyIntegral.getText().toString());
433
-                bundle.putString("red_integral", binding.tvRedIntegral.getText().toString());
434
-                bundle.putString("team_count", binding.tvTeamCount.getText().toString());
435
-                bundle.putBoolean("is_bangfu", isBangfu);
436
-                BangfuzhongxinActivity_copy.launch(getActivity(), bundle);
437
-            } else {
438
-                //会员中心
439
-                Bundle bundle = new Bundle();
440
-                bundle.putString("nickname", mUserInfoModel.getNickname());
441
-                bundle.putString("phone", mUserInfoModel.getPhone());
442
-                bundle.putString("avatar", mUserInfoModel.getAvatar());
443
-                bundle.putString("member", mUserInfoModel.getUser_rich_type());
444
-
445
-                bundle.putString("annuity", binding.tvAnnuity.getText().toString());
446
-                bundle.putString("commission", binding.tvMyCommission.getText().toString());
447
-                bundle.putString("integral", binding.tvMyIntegral.getText().toString());
448
-                bundle.putString("red_integral", binding.tvRedIntegral.getText().toString());
449
-                bundle.putString("team_count", binding.tvTeamCount.getText().toString());
450
-                RulesActivity_copy.launch(getActivity(), bundle);
451
-            }
452
-        } else if (view == binding.imgvUser) {
453
-            //会员中心
454
-            Bundle bundle = new Bundle();
455
-            bundle.putString("nickname", mUserInfoModel.getNickname());
456
-            bundle.putString("phone", mUserInfoModel.getPhone());
457
-            bundle.putString("avatar", mUserInfoModel.getAvatar());
458
-            bundle.putString("member", mUserInfoModel.getUser_rich_type());
459
-
460
-            bundle.putString("annuity", binding.tvAnnuity.getText().toString());
461
-            bundle.putString("commission", binding.tvMyCommission.getText().toString());
462
-            bundle.putString("integral", binding.tvMyIntegral.getText().toString());
463
-            bundle.putString("red_integral", binding.tvRedIntegral.getText().toString());
464
-            bundle.putString("team_count", binding.tvTeamCount.getText().toString());
465
-            RulesActivity_copy.launch(getActivity(), bundle);
466
-        } else if (view == binding.llBangfuzhongxin) {
467
-            Bundle bundle = new Bundle();
468
-            bundle.putString("nickname", mUserInfoModel.getNickname());
469
-            bundle.putString("phone", mUserInfoModel.getPhone());
470
-            bundle.putString("avatar", mUserInfoModel.getAvatar());
471
-            bundle.putString("member", mUserInfoModel.getUser_rich_type());
472
-
473
-            bundle.putString("annuity", binding.tvAnnuity.getText().toString());
474
-            bundle.putString("commission", binding.tvMyCommission.getText().toString());
475
-            bundle.putString("integral", binding.tvMyIntegral.getText().toString());
476
-            bundle.putString("red_integral", binding.tvRedIntegral.getText().toString());
477
-            bundle.putString("team_count", binding.tvTeamCount.getText().toString());
478
-            bundle.putBoolean("is_bangfu", isBangfu);
479
-            BangfuzhongxinActivity_copy.launch(getActivity(), bundle);
480
-        } else if (view == binding.llConnectUs) {
481
-//            ToastUtils.showLong("联系我们");
482
-//            WebViewTitleBaseActivity.launch(getActivity(),"联系我们","https://work.weixin.qq.com/kfid/kfce29f31a08fd53ee0");
483
-           *//* Intent intent = new Intent(Intent.ACTION_VIEW);
484
-            Uri content= Uri.parse("https://work.weixin.qq.com/kfid/kfce29f31a08fd53ee0");
485
-            intent.setData(content);
486
-            startActivity(intent);*//*
487
-            String appId = "wxbf753066ac8686ba";
488
-            IWXAPI wxapi = WXAPIFactory.createWXAPI(getActivity(), appId);
489
-            if (wxapi.getWXAppSupportAPI() >= Build.SUPPORT_OPEN_CUSTOMER_SERVICE_CHAT) {
490
-                WXOpenCustomerServiceChat.Req req = new WXOpenCustomerServiceChat.Req();
491
-                req.corpId = "wwaeb55681929a37ae";
492
-                req.url = "https://work.weixin.qq.com/kfid/kfc8bd3f11a28aa81db";
493
-                wxapi.sendReq(req);
494
-            }
495
-
496
-        }
497
-//        else if (view == binding.llChannel) {
498
-//            //渠道商申请
499
-////            if (mUserInfoModel.getIs_channel().equals("0")) {
500
-////                //非渠道商
501
-////                ApplyChannelActivity.launch(getActivity());
502
-////            } else {
503
-////                //渠道商
504
-////                ChannelOpenSuccessActivity.launch(getActivity());
505
-////
506
-////            }
507
-//        }
508
-
509
-    }
510
-
511
-
512
-    @Override
513
-    public void onResume() {
514
-        super.onResume();
515
-        initData();
516
-    }*/
517
-}

+ 106 - 65
app/src/main/java/com/yihucha/hbyhc/presentation/mine/view_model/MineViewModel.java

@@ -17,6 +17,7 @@ import com.yihucha.hbyhc.network.request_bean.UidRequest;
17 17
 import com.yihucha.hbyhc.network.service.OrderService;
18 18
 import com.yihucha.hbyhc.network.service.UserService;
19 19
 import com.yihucha.hbyhc.presentation.annuity.model.AmountFromGzcBean;
20
+import com.yihucha.hbyhc.presentation.annuity.model.AnnuityRecordsBean;
20 21
 import com.yihucha.hbyhc.presentation.annuity.model.YanglaojinLogXSBean;
21 22
 import com.yihucha.hbyhc.presentation.annuity.model.YanglaojinLogXXBean;
22 23
 import com.yihucha.hbyhc.presentation.integral.model.IntegralListBean;
@@ -41,6 +42,8 @@ import java.util.HashMap;
41 42
 import java.util.List;
42 43
 import java.util.Map;
43 44
 
45
+import io.reactivex.Observer;
46
+
44 47
 /**
45 48
  * @author qmzh
46 49
  * @date 2022/6/21
@@ -55,20 +58,21 @@ public class MineViewModel extends BaseViewModel {
55 58
     public MutableLiveData<MyInvitationBean> myInvitationBeanMutableLiveData = new MutableLiveData<>();//我的邀请
56 59
     public MutableLiveData<MyFavoriteBean> mMyFavoriteData = new MutableLiveData<>();//我的收藏
57 60
     public MutableLiveData<MyFocusBean> mMyFocusData = new MutableLiveData<>();//我的关注
58
-    public MutableLiveData<MyEvaluateBean> mMyEvaluateData=new MutableLiveData<>();//评论列表
59
-    public MutableLiveData<String> deleteEvaluateSuccess=new MutableLiveData<>();//删除评论成
60
-    public MutableLiveData<YanglaojinLogXXBean> mYanglaojinLogXXData=new MutableLiveData<>();//养老金记录线下
61
-    public MutableLiveData<YanglaojinLogXSBean> mYanglaojinLogXSData=new MutableLiveData<>();//养老金记录线上
61
+    public MutableLiveData<MyEvaluateBean> mMyEvaluateData = new MutableLiveData<>();//评论列表
62
+    public MutableLiveData<String> deleteEvaluateSuccess = new MutableLiveData<>();//删除评论成
63
+    public MutableLiveData<YanglaojinLogXXBean> mYanglaojinLogXXData = new MutableLiveData<>();//养老金记录线下
64
+    public MutableLiveData<YanglaojinLogXSBean> mYanglaojinLogXSData = new MutableLiveData<>();//养老金记录线上
62 65
 
63
-    public MutableLiveData<ThirdOrderBean> mThirdOrderData=new MutableLiveData<>();//三方订单
64
-    public MutableLiveData<SignInInfoBean> mSignInInfoData=new MutableLiveData<>();//签到信息
65
-    public MutableLiveData<SignInBean> mSignInSucceed=new MutableLiveData<>();//签到
66
-    public MutableLiveData<RewardsocrBean> mRewardsocrData=new MutableLiveData<>();//广告积分数据
67
-    public MutableLiveData<IntegralListBean> mIntegralListData=new MutableLiveData<>();//积分数据列表
66
+    public MutableLiveData<ThirdOrderBean> mThirdOrderData = new MutableLiveData<>();//三方订单
67
+    public MutableLiveData<SignInInfoBean> mSignInInfoData = new MutableLiveData<>();//签到信息
68
+    public MutableLiveData<SignInBean> mSignInSucceed = new MutableLiveData<>();//签到
69
+    public MutableLiveData<RewardsocrBean> mRewardsocrData = new MutableLiveData<>();//广告积分数据
70
+    public MutableLiveData<IntegralListBean> mIntegralListData = new MutableLiveData<>();//积分数据列表
68 71
 
69
-    public MutableLiveData<AmountFromGzcBean>mAmount=new MutableLiveData();//公证处养老金余额
72
+    public MutableLiveData<AmountFromGzcBean> mAmount = new MutableLiveData();//公证处养老金余额
70 73
 
71
-    public MutableLiveData<UserVipInfoBean> mUserVipInfoData=new MutableLiveData<>();//会员资料
74
+    public MutableLiveData<UserVipInfoBean> mUserVipInfoData = new MutableLiveData<>();//会员资料
75
+    public MutableLiveData<AnnuityRecordsBean> annuityRecordsList = new MutableLiveData<>();//养老金列表
72 76
 
73 77
     public MutableLiveData<Boolean> cancleCollectState = new MutableLiveData<>();
74 78
     /**
@@ -109,9 +113,9 @@ public class MineViewModel extends BaseViewModel {
109 113
         orderService.getOrderNumber().compose(NetworkApi.applySchedulers(new BaseObserver<DataResponse<OrderQuantityBean>>() {
110 114
             @Override
111 115
             public void onSuccess(DataResponse<OrderQuantityBean> orderQuantityBeanDataResponse) {
112
-                if (orderQuantityBeanDataResponse.responseCode == 200){
116
+                if (orderQuantityBeanDataResponse.responseCode == 200) {
113 117
                     orderQuantityData.postValue(orderQuantityBeanDataResponse.getData());
114
-                }else {
118
+                } else {
115 119
                     ToastUtils.showLong(orderQuantityBeanDataResponse.responseError);
116 120
                 }
117 121
 
@@ -143,6 +147,34 @@ public class MineViewModel extends BaseViewModel {
143 147
     }
144 148
 
145 149
     /**
150
+     * 养老金列表
151
+     */
152
+    @SuppressLint("CheckResult")
153
+    public void getYanglaoList(int page,String sorce,String month,int status) {
154
+        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);
160
+        UserService service = NetworkApi.createService(UserService.class);
161
+        service.getYanglaoList(map).compose(NetworkApi.applySchedulers(new BaseObserver<DataResponse<AnnuityRecordsBean>>() {
162
+            @Override
163
+            public void onSuccess(DataResponse<AnnuityRecordsBean> response) {
164
+                if (response.responseCode==200) {
165
+                    annuityRecordsList.postValue(response.getData());
166
+                }else {
167
+                    failed.postValue(response.responseError);
168
+                }
169
+            }
170
+            @Override
171
+            public void onFailure(Throwable e) {
172
+                LogUtil.LogError(TAG,e.getMessage());
173
+            }
174
+        }));
175
+    }
176
+
177
+    /**
146 178
      * 养老金信息
147 179
      */
148 180
     public void getYanglaojinInfo() {
@@ -178,6 +210,7 @@ public class MineViewModel extends BaseViewModel {
178 210
 
179 211
     /**
180 212
      * 我的收藏
213
+     *
181 214
      * @param map
182 215
      */
183 216
     @SuppressLint("CheckResult")
@@ -203,6 +236,7 @@ public class MineViewModel extends BaseViewModel {
203 236
 
204 237
     /**
205 238
      * 我的关注
239
+     *
206 240
      * @param map
207 241
      */
208 242
     @SuppressLint("CheckResult")
@@ -225,12 +259,13 @@ public class MineViewModel extends BaseViewModel {
225 259
             }
226 260
         }));
227 261
     }
262
+
228 263
     /**
229 264
      * 取消收藏
230 265
      *
231 266
      * @param request
232 267
      */
233
-    public void getRelationDelete(RelationRequest request,int position) {
268
+    public void getRelationDelete(RelationRequest request, int position) {
234 269
         UserRepository.getDeleteAttention(request, new NormalListener<DataResponse>() {
235 270
             @Override
236 271
             public void success(DataResponse dataResponse) {
@@ -251,14 +286,15 @@ public class MineViewModel extends BaseViewModel {
251 286
 
252 287
     /**
253 288
      * 评价列表
289
+     *
254 290
      * @param page
255 291
      */
256 292
     @SuppressLint("CheckResult")
257
-    public void getEvaluateList(int page){
258
-        Map<String,Object> map =new HashMap<>();
259
-        map.put("page",page);
260
-        map.put("limit",10);
261
-        UserService userService=NetworkApi.createService(UserService.class);
293
+    public void getEvaluateList(int page) {
294
+        Map<String, Object> map = new HashMap<>();
295
+        map.put("page", page);
296
+        map.put("limit", 10);
297
+        UserService userService = NetworkApi.createService(UserService.class);
262 298
         userService.getMyEvaluate(map).compose(NetworkApi.applySchedulers(new BaseObserver<DataResponse<MyEvaluateBean>>() {
263 299
             @Override
264 300
             public void onSuccess(DataResponse<MyEvaluateBean> myEvaluateBeanDataResponse) {
@@ -279,11 +315,12 @@ public class MineViewModel extends BaseViewModel {
279 315
 
280 316
     /**
281 317
      * 删除评论
318
+     *
282 319
      * @param reply_id
283 320
      */
284 321
     @SuppressLint("CheckResult")
285
-    public void getDeleteEvaluate(String reply_id){
286
-        UserService userService=NetworkApi.createService(UserService.class);
322
+    public void getDeleteEvaluate(String reply_id) {
323
+        UserService userService = NetworkApi.createService(UserService.class);
287 324
         userService.deleteEvaluate(reply_id).compose(NetworkApi.applySchedulers(new BaseObserver<DataResponse>() {
288 325
             @Override
289 326
             public void onSuccess(DataResponse dataResponse) {
@@ -303,44 +340,44 @@ public class MineViewModel extends BaseViewModel {
303 340
     }
304 341
 
305 342
     @SuppressLint("CheckResult")
306
-    public void getYanglaojinLog(String source, int page){
307
-        Map<String,Object> map=new HashMap<>();
308
-        map.put("page",page);
309
-        map.put("limit",10);
310
-        map.put("source",source);
311
-        UserService userService=NetworkApi.createService(UserService.class);
312
-        if (source.equals("1")){
343
+    public void getYanglaojinLog(String source, int page) {
344
+        Map<String, Object> map = new HashMap<>();
345
+        map.put("page", page);
346
+        map.put("limit", 10);
347
+        map.put("source", source);
348
+        UserService userService = NetworkApi.createService(UserService.class);
349
+        if (source.equals("1")) {
313 350
             //线下
314 351
             userService.getYanglaojinLogXX(map).compose(NetworkApi.applySchedulers(new BaseObserver<DataResponse<YanglaojinLogXXBean>>() {
315 352
                 @Override
316 353
                 public void onSuccess(DataResponse<YanglaojinLogXXBean> yanglaojinLogXXBeanDataResponse) {
317
-                    if (yanglaojinLogXXBeanDataResponse.responseCode==200){
354
+                    if (yanglaojinLogXXBeanDataResponse.responseCode == 200) {
318 355
                         mYanglaojinLogXXData.postValue(yanglaojinLogXXBeanDataResponse.getData());
319
-                    }else {
356
+                    } else {
320 357
                         ToastUtils.showLong(yanglaojinLogXXBeanDataResponse.responseError);
321 358
                     }
322 359
                 }
323 360
 
324 361
                 @Override
325 362
                 public void onFailure(Throwable e) {
326
-                    LogUtil.LogInfo("Throwable",e.getMessage());
363
+                    LogUtil.LogInfo("Throwable", e.getMessage());
327 364
 //                    failed.postValue(getString(R.string.failed_string));
328 365
                 }
329 366
             }));
330
-        }else {
367
+        } else {
331 368
             userService.getYanglaojinLogXS(map).compose(NetworkApi.applySchedulers(new BaseObserver<DataResponse<YanglaojinLogXSBean>>() {
332 369
                 @Override
333 370
                 public void onSuccess(DataResponse<YanglaojinLogXSBean> yanglaojinLogXSBeanDataResponse) {
334
-                    if (yanglaojinLogXSBeanDataResponse.responseCode==200){
371
+                    if (yanglaojinLogXSBeanDataResponse.responseCode == 200) {
335 372
                         mYanglaojinLogXSData.postValue(yanglaojinLogXSBeanDataResponse.getData());
336
-                    }else {
373
+                    } else {
337 374
                         ToastUtils.showLong(yanglaojinLogXSBeanDataResponse.responseError);
338 375
                     }
339 376
                 }
340 377
 
341 378
                 @Override
342 379
                 public void onFailure(Throwable e) {
343
-                    LogUtil.LogInfo("Throwable",e.getMessage());
380
+                    LogUtil.LogInfo("Throwable", e.getMessage());
344 381
 //                    failed.postValue(getString(R.string.failed_string));
345 382
                 }
346 383
             }));
@@ -350,22 +387,23 @@ public class MineViewModel extends BaseViewModel {
350 387
 
351 388
     /**
352 389
      * 三方订单
390
+     *
353 391
      * @param type
354 392
      * @param page
355 393
      */
356 394
     @SuppressLint("CheckResult")
357
-    public void getThirdOrder(String type, int page){
358
-        Map<String,Object> map=new HashMap<>();
359
-        map.put("type",type);
360
-        map.put("page",page);
361
-        map.put("limit",10);
395
+    public void getThirdOrder(String type, int page) {
396
+        Map<String, Object> map = new HashMap<>();
397
+        map.put("type", type);
398
+        map.put("page", page);
399
+        map.put("limit", 10);
362 400
         OrderService orderService = NetworkApi.createService(OrderService.class);
363 401
         orderService.getThirdOrder(map).compose(NetworkApi.applySchedulers(new BaseObserver<DataResponse<ThirdOrderBean>>() {
364 402
             @Override
365 403
             public void onSuccess(DataResponse<ThirdOrderBean> thirdOrderBeanDataResponse) {
366 404
                 if (thirdOrderBeanDataResponse.responseCode == 200) {
367 405
                     mThirdOrderData.postValue(thirdOrderBeanDataResponse.getData());
368
-                }else {
406
+                } else {
369 407
                     ToastUtils.showLong(thirdOrderBeanDataResponse.responseError);
370 408
                 }
371 409
             }
@@ -380,7 +418,7 @@ public class MineViewModel extends BaseViewModel {
380 418
     /**
381 419
      * 签到信息
382 420
      */
383
-    public  void getSignInInfo(){
421
+    public void getSignInInfo() {
384 422
         UserRepository.getSignInInfo(new NormalListener<SignInInfoBean>() {
385 423
             @Override
386 424
             public void success(SignInInfoBean signInInfoBean) {
@@ -393,10 +431,11 @@ public class MineViewModel extends BaseViewModel {
393 431
             }
394 432
         });
395 433
     }
434
+
396 435
     /**
397 436
      * 签到
398 437
      */
399
-    public  void getSignIn(){
438
+    public void getSignIn() {
400 439
         UserRepository.getSignIn(new NormalListener<SignInBean>() {
401 440
             @Override
402 441
             public void success(SignInBean s) {
@@ -414,16 +453,16 @@ public class MineViewModel extends BaseViewModel {
414 453
      * 看广告的积分
415 454
      */
416 455
     @SuppressLint("CheckResult")
417
-    public void getAddADCredits(){
418
-        UserService userService=NetworkApi.createService(UserService.class);
419
-        UidRequest request =new UidRequest();
456
+    public void getAddADCredits() {
457
+        UserService userService = NetworkApi.createService(UserService.class);
458
+        UidRequest request = new UidRequest();
420 459
         request.setUid(MVUtils.getString(Constants.USER_ID));
421 460
         userService.getAddADCredits(request).compose(NetworkApi.applySchedulers(new BaseObserver<DataResponse<RewardsocrBean>>() {
422 461
             @Override
423 462
             public void onSuccess(DataResponse<RewardsocrBean> rewardsocrBeanDataResponse) {
424
-                if (rewardsocrBeanDataResponse.responseCode==200){
463
+                if (rewardsocrBeanDataResponse.responseCode == 200) {
425 464
                     mRewardsocrData.postValue(rewardsocrBeanDataResponse.getData());
426
-                }else {
465
+                } else {
427 466
                     ToastUtils.showLong(rewardsocrBeanDataResponse.responseError);
428 467
                 }
429 468
             }
@@ -435,18 +474,19 @@ public class MineViewModel extends BaseViewModel {
435 474
             }
436 475
         }));
437 476
     }
477
+
438 478
     /**
439 479
      * 中心公证处养老金
440 480
      */
441 481
     @SuppressLint("CheckResult")
442
-    public void getAmountFromGzc(){
443
-        UserService userService=NetworkApi.createService(UserService.class);
482
+    public void getAmountFromGzc() {
483
+        UserService userService = NetworkApi.createService(UserService.class);
444 484
         userService.getAmountFromGzc().compose(NetworkApi.applySchedulers(new BaseObserver<DataResponse<AmountFromGzcBean>>() {
445 485
             @Override
446 486
             public void onSuccess(DataResponse<AmountFromGzcBean> amountFromGzcBeanDataResponse) {
447
-                if (amountFromGzcBeanDataResponse.responseCode==200){
487
+                if (amountFromGzcBeanDataResponse.responseCode == 200) {
448 488
                     mAmount.postValue(amountFromGzcBeanDataResponse.getData());
449
-                }else {
489
+                } else {
450 490
                     ToastUtils.showLong("网络请求失败");
451 491
                 }
452 492
             }
@@ -462,12 +502,12 @@ public class MineViewModel extends BaseViewModel {
462 502
      * 会员页面信息
463 503
      */
464 504
     @SuppressLint("CheckResult")
465
-    public void getUserVipInfo(){
466
-        UserService userService=NetworkApi.createService(UserService.class);
505
+    public void getUserVipInfo() {
506
+        UserService userService = NetworkApi.createService(UserService.class);
467 507
         userService.userVipInfo().compose(NetworkApi.applySchedulers(new BaseObserver<DataResponse<UserVipInfoBean>>() {
468 508
             @Override
469 509
             public void onSuccess(DataResponse<UserVipInfoBean> userVipInfoBeanDataResponse) {
470
-                if (userVipInfoBeanDataResponse.responseCode==200){
510
+                if (userVipInfoBeanDataResponse.responseCode == 200) {
471 511
                     mUserVipInfoData.postValue(userVipInfoBeanDataResponse.getData());
472 512
                 }
473 513
             }
@@ -483,17 +523,17 @@ public class MineViewModel extends BaseViewModel {
483 523
      * 积分记录
484 524
      */
485 525
     @SuppressLint("CheckResult")
486
-    public void getIntegralList(int page){
487
-        Map<String,Object>map=new HashMap<>();
488
-        map.put("page",page);
489
-        map.put("limit",10);
490
-        UserService userService=NetworkApi.createService(UserService.class);
526
+    public void getIntegralList(int page) {
527
+        Map<String, Object> map = new HashMap<>();
528
+        map.put("page", page);
529
+        map.put("limit", 10);
530
+        UserService userService = NetworkApi.createService(UserService.class);
491 531
         userService.getIntegralList(map).compose(NetworkApi.applySchedulers(new BaseObserver<DataResponse<IntegralListBean>>() {
492 532
             @Override
493 533
             public void onSuccess(DataResponse<IntegralListBean> integralListBeanDataResponse) {
494
-                if (integralListBeanDataResponse.responseCode==200){
534
+                if (integralListBeanDataResponse.responseCode == 200) {
495 535
                     mIntegralListData.postValue(integralListBeanDataResponse.getData());
496
-                }else {
536
+                } else {
497 537
                     ToastUtils.showLong(integralListBeanDataResponse.responseError);
498 538
                 }
499 539
             }
@@ -508,18 +548,19 @@ public class MineViewModel extends BaseViewModel {
508 548
 
509 549
     /**
510 550
      * 取消收藏  关注
551
+     *
511 552
      * @param type 10 删除关注   1  删除 收藏
512 553
      * @param ids  商品或者店铺的ID
513 554
      */
514
-    public void cancleCollect(int type, List<String> ids){
515
-        CancleCollectBean bean = new CancleCollectBean(type,ids);
555
+    public void cancleCollect(int type, List<String> ids) {
556
+        CancleCollectBean bean = new CancleCollectBean(type, ids);
516 557
         NetworkApi.createService(UserService.class).cancleCollect(bean)
517 558
                 .compose(NetworkApi.applySchedulers(new BaseObserver<DataResponse>() {
518 559
                     @Override
519 560
                     public void onSuccess(DataResponse dataResponse) {
520 561
                         if (dataResponse.responseCode == 200) {
521 562
                             deleteAttentionStatus.postValue(0);
522
-                        }else {
563
+                        } else {
523 564
                             failed.postValue(dataResponse.responseError);
524 565
                         }
525 566
                     }

+ 7 - 0
app/src/main/java/com/yihucha/hbyhc/utils/DateUtil.java

@@ -332,6 +332,13 @@ public class DateUtil {
332 332
     }
333 333
 
334 334
     /**
335
+     * 毫秒转换成年月
336
+     */
337
+    public static String getYearMonth(long timeMillis){
338
+        String yearMonthDay = getYearMonthDay(timeMillis);
339
+        return yearMonthDay.substring(0,yearMonthDay.indexOf("月")+1);
340
+    }
341
+    /**
335 342
      * 将毫秒转换为年月日
336 343
      *
337 344
      * @author GaoHuanjie

+ 131 - 0
app/src/main/java/com/yihucha/hbyhc/view/PopAnnuitySelector.java

@@ -0,0 +1,131 @@
1
+package com.yihucha.hbyhc.view;
2
+
3
+import android.content.Context;
4
+import android.graphics.Color;
5
+import android.graphics.drawable.ColorDrawable;
6
+import android.view.LayoutInflater;
7
+import android.view.View;
8
+import android.view.WindowManager;
9
+import android.widget.LinearLayout;
10
+import android.widget.PopupWindow;
11
+
12
+import androidx.recyclerview.widget.GridLayoutManager;
13
+import androidx.recyclerview.widget.LinearLayoutManager;
14
+
15
+import com.lcodecore.tkrefreshlayout.utils.DensityUtil;
16
+import com.yihucha.hbyhc.R;
17
+import com.yihucha.hbyhc.databinding.PopStoreCheckBinding;
18
+import com.yihucha.hbyhc.databinding.PopwindowAnnuityRecordsSelectorBinding;
19
+import com.yihucha.hbyhc.presentation.annuity.adapter.ItemAnnuitySelectorAdapter;
20
+import com.yihucha.hbyhc.presentation.annuity.model.SelectorBean;
21
+import com.yihucha.hbyhc.utils.EmptyCheckUtils;
22
+import com.yihucha.hbyhc.utils.SpaceItemDecoration;
23
+
24
+import java.util.ArrayList;
25
+import java.util.List;
26
+
27
+/**
28
+ * author : zhangbing
29
+ * time   : 2023/10/21 20:47
30
+ * com.laolaixiang.bjtdba.view
31
+ */
32
+public class PopAnnuitySelector extends PopupWindow implements View.OnClickListener {
33
+    private PopwindowAnnuityRecordsSelectorBinding binding;
34
+    private List<SelectorBean> sourceBeans = new ArrayList<>();
35
+    private List<SelectorBean> statusBeans = new ArrayList<>();
36
+    private Context context;
37
+    private ItemAnnuitySelectorAdapter sourceAdapter, statusAdapter;
38
+
39
+    private int sourcePos = 0;
40
+    private int sourcePosL = 0;
41
+
42
+    private int statusPos = 0;
43
+    private int statusPosL = 0;
44
+
45
+    public PopAnnuitySelector(Context context) {
46
+        super(context);
47
+        this.context = context;
48
+        View view = LayoutInflater.from(context).inflate(R.layout.popwindow_annuity_records_selector, null);
49
+        binding = PopwindowAnnuityRecordsSelectorBinding.bind(view);
50
+        //设置SelectPicPopupWindow的View
51
+        this.setContentView(view);
52
+        //设置SelectPicPopupWindow弹出窗体的宽
53
+        this.setWidth(WindowManager.LayoutParams.MATCH_PARENT);
54
+        //设置SelectPicPopupWindow弹出窗体的高
55
+        this.setHeight(WindowManager.LayoutParams.WRAP_CONTENT);
56
+        //设置SelectPicPopupWindow弹出窗体可点击
57
+        this.setFocusable(true);
58
+
59
+        //设置SelectPicPopupWindow弹出窗体动画效果
60
+//        this.setAnimationStyle(R.style.mystyle);
61
+        //实例化一个ColorDrawable颜色为半透明
62
+        ColorDrawable dw = new ColorDrawable(0x00000000);
63
+        //设置SelectPicPopupWindow弹出窗体的背景
64
+        this.setBackgroundDrawable(dw);
65
+        initView();
66
+        initClick();
67
+    }
68
+
69
+    private void initView() {
70
+        sourceBeans.add(new SelectorBean("全部", null, true));
71
+        sourceBeans.add(new SelectorBean("线上订单", "0", false));
72
+        sourceBeans.add(new SelectorBean("线下实体订单", "1", false));
73
+
74
+        statusBeans.add(new SelectorBean("全部状态", null, true));
75
+        statusBeans.add(new SelectorBean("已结算", "0", false));
76
+        statusBeans.add(new SelectorBean("未结算", "1", false));
77
+        statusBeans.add(new SelectorBean("已取消", "2", false));
78
+
79
+        GridLayoutManager sourceManager = new GridLayoutManager(context, 3);
80
+        GridLayoutManager statusManager = new GridLayoutManager(context, 3);
81
+        binding.rvSourceItem.setLayoutManager(sourceManager);
82
+        binding.rvStatusItem.setLayoutManager(statusManager);
83
+        sourceAdapter = new ItemAnnuitySelectorAdapter(context, sourceBeans);
84
+        statusAdapter = new ItemAnnuitySelectorAdapter(context, statusBeans);
85
+//        binding.rvSourceItem.addItemDecoration(new SpaceItemDecoration(DensityUtil.dp2px(context, 13)));
86
+//        binding.rvStatusItem.addItemDecoration(new SpaceItemDecoration(DensityUtil.dp2px(context, 13)));
87
+        binding.rvSourceItem.setAdapter(sourceAdapter);
88
+        binding.rvStatusItem.setAdapter(statusAdapter);
89
+        sourceAdapter.setOnItemClickListener(itemPos -> {
90
+            sourcePosL = itemPos;
91
+        });
92
+        statusAdapter.setOnItemClickListener(itemPos -> {
93
+            statusPosL = itemPos;
94
+        });
95
+    }
96
+
97
+    private void initClick() {
98
+        binding.tvReset.setOnClickListener(this::onClick);
99
+        binding.tvConfirm.setOnClickListener(this::onClick);
100
+        binding.viewBg.setOnClickListener(this::onClick);
101
+    }
102
+
103
+    @Override
104
+    public void onClick(View view) {
105
+        if (view == binding.tvReset) {
106
+            sourcePos = sourcePosL = 0;
107
+            sourceAdapter.onClick(sourcePos);
108
+            statusPos = statusPosL = 0;
109
+            statusAdapter.onClick(statusPos);
110
+        } else if (view == binding.tvConfirm) {
111
+            sourcePos = sourcePosL;
112
+            statusPos = statusPosL;
113
+            if (EmptyCheckUtils.isNotEmpty(onSelectListener)) {
114
+                onSelectListener.onSelect(sourcePos, statusPos);
115
+            }
116
+            dismiss();
117
+        } else if (view == binding.viewBg){
118
+            dismiss();
119
+        }
120
+    }
121
+
122
+    private OnSelectListener onSelectListener;
123
+
124
+    public void setOnSelectListener(OnSelectListener onSelectListener) {
125
+        this.onSelectListener = onSelectListener;
126
+    }
127
+
128
+    public interface OnSelectListener {
129
+        void onSelect(int sourcePos, int statusPos);
130
+    }
131
+}

+ 7 - 0
app/src/main/res/drawable/shape_annuity_rules.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
+    <corners android:radius="50dp"/>
4
+    <gradient
5
+        android:startColor="#FFC5C6"
6
+        android:endColor="#FE0032"/>
7
+</shape>

+ 5 - 0
app/src/main/res/drawable/shape_f5f5f5_50dp.xml

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

+ 15 - 0
app/src/main/res/drawable/shape_line_999999_50dp.xml

@@ -0,0 +1,15 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<shape xmlns:android="http://schemas.android.com/apk/res/android" >
3
+
4
+    <!-- 填充 -->
5
+    <solid android:color="@color/white" />
6
+
7
+    <!-- 圆角 -->
8
+    <corners android:radius="50dp" />
9
+
10
+    <stroke
11
+        android:color="@color/gray_999999"
12
+        android:width="1dp"/>
13
+
14
+
15
+</shape>

+ 10 - 0
app/src/main/res/drawable/shape_line_fe0032_fff1f2_50dp.xml

@@ -0,0 +1,10 @@
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
+    <stroke
6
+        android:width="1dp"
7
+        android:color="#fffe0032" />
8
+    <solid android:color="#fffff1f2" />
9
+    <corners android:radius="18dp" />
10
+</shape>

+ 13 - 0
app/src/main/res/drawable/shaple_black_50dp.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="#000000" />
5
+
6
+    <!--    <stroke-->
7
+    <!--        android:color="@color/gray_9e9e9e"-->
8
+    <!--        android:width="0.5dp"/>-->
9
+
10
+    <corners android:radius="50dp"/>
11
+
12
+
13
+</shape>

+ 66 - 61
app/src/main/res/layout/activity_alreadyrealname.xml

@@ -1,37 +1,34 @@
1 1
 <?xml version="1.0" encoding="utf-8"?>
2 2
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
-    android:orientation="vertical"
4
-    android:background="@color/white_f8f8f8"
5
-    android:layout_width="match_parent"
6
-    android:layout_height="match_parent">
7
-<LinearLayout
8 3
     android:layout_width="match_parent"
9
-    android:layout_height="153dp"
10
-    android:background="@color/white"
11
-    android:gravity="center"
4
+    android:layout_height="match_parent"
5
+    android:background="@color/white_f8f8f8"
12 6
     android:orientation="vertical">
13 7
 
14 8
     <ImageView
15 9
         android:layout_width="wrap_content"
16 10
         android:layout_height="wrap_content"
17
-        android:src="@mipmap/shimingrenzheng_220816"/>
18
-
11
+        android:src="@mipmap/img_real_name"
12
+        android:layout_gravity="center_horizontal"
13
+        android:layout_marginTop="30dp"
14
+        />
19 15
     <TextView
20 16
         android:layout_width="wrap_content"
21
-        android:layout_marginTop="20dp"
22
-        android:text="您已通过实名认证"
23
-        android:textColor="@color/black_333333"
24
-        android:textSize="18sp"
25 17
         android:layout_height="wrap_content"
18
+        android:text="您已完成实名认证!"
19
+        android:textSize="18sp"
20
+        android:layout_gravity="center_horizontal"
21
+        android:textColor="@color/black_333333"
22
+        android:layout_marginTop="20dp"
26 23
         />
27
-</LinearLayout>
28 24
     <LinearLayout
29 25
         android:layout_width="match_parent"
30 26
         android:layout_height="wrap_content"
31
-        android:padding="16dp"
32 27
         android:background="@color/white"
33 28
         android:orientation="vertical"
34
-        >
29
+        android:layout_marginTop="35dp"
30
+        android:padding="16dp">
31
+
35 32
         <LinearLayout
36 33
             android:layout_width="match_parent"
37 34
             android:layout_height="wrap_content"
@@ -41,79 +38,87 @@
41 38
             <TextView
42 39
                 android:layout_width="wrap_content"
43 40
                 android:layout_height="wrap_content"
44
-                android:textSize="16sp"
45
-                android:textColor="@color/black_333333"
46 41
                 android:text="真实姓名:"
47
-                />
42
+                android:textColor="@color/black_333333"
43
+                android:textSize="15sp" />
48 44
 
49 45
             <TextView
50 46
                 android:id="@+id/tv_user_name"
51 47
                 android:layout_width="0dp"
48
+                android:layout_height="wrap_content"
52 49
                 android:layout_weight="1"
53 50
                 android:gravity="right"
54
-                android:layout_height="wrap_content"
55
-                android:textColor="@color/gray_999999"
56
-                android:text="琳琳"/>
57
-
58
-            <TextView
59
-                android:layout_width="43dp"
60
-                android:layout_marginLeft="10dp"
61
-                android:layout_height="19dp"
62
-                android:background="@drawable/shape_line_fe0032_2dp"
63
-                android:textColor="@color/red_fe0032"
64
-                android:textSize="11sp"
65
-                android:gravity="center"
66
-                android:text="已认证"/>
51
+                android:text="琳琳"
52
+                android:textSize="16sp"
53
+                android:textColor="@color/gray_999999" />
67 54
         </LinearLayout>
68 55
 
69 56
         <View
70 57
             android:layout_width="match_parent"
71 58
             android:layout_height="0.5dp"
72
-            android:background="@color/gray_e5e5e5"
73 59
             android:layout_marginTop="16dp"
74
-            />
60
+            android:background="@color/gray_e5e5e5" />
61
+
75 62
         <LinearLayout
76 63
             android:layout_width="match_parent"
77 64
             android:layout_height="wrap_content"
78
-            android:gravity="center_vertical"
79 65
             android:layout_marginTop="16dp"
66
+            android:gravity="center_vertical"
80 67
             android:orientation="horizontal">
81 68
 
82 69
             <TextView
83 70
                 android:layout_width="wrap_content"
84 71
                 android:layout_height="wrap_content"
85
-                android:textSize="16sp"
86
-                android:textColor="@color/black_333333"
87 72
                 android:text="证件号码:"
88
-                />
73
+                android:textColor="@color/black_333333"
74
+                android:textSize="15sp" />
89 75
 
90 76
             <TextView
91 77
                 android:id="@+id/tv_user_card"
92 78
                 android:layout_width="0dp"
79
+                android:layout_height="wrap_content"
93 80
                 android:layout_weight="1"
94 81
                 android:gravity="right"
95
-                android:layout_height="wrap_content"
96
-                android:textColor="@color/gray_999999"
97
-                android:text="琳琳"/>
98
-
99
-
82
+                android:text="琳琳"
83
+                android:textSize="16sp"
84
+                android:textColor="@color/gray_999999" />
100 85
         </LinearLayout>
101
-
102
-        <ImageView
103
-            android:id="@+id/iv_card_positive"
104
-            android:layout_width="match_parent"
105
-            android:layout_marginLeft="40dp"
106
-            android:layout_marginTop="16dp"
107
-            android:scaleType="fitXY"
108
-            android:layout_marginRight="40dp"
109
-            android:layout_height="139.5dp" />
110
-        <ImageView
111
-            android:id="@+id/iv_card_reverse"
112
-            android:scaleType="fitXY"
113
-            android:layout_width="match_parent"
114
-            android:layout_marginLeft="40dp"
115
-            android:layout_marginTop="16dp"
116
-            android:layout_marginRight="40dp"
117
-            android:layout_height="139.5dp" />
86
+    </LinearLayout>
87
+    <LinearLayout
88
+        android:layout_width="match_parent"
89
+        android:layout_height="44dp"
90
+        android:orientation="horizontal"
91
+        android:paddingLeft="16dp"
92
+        android:paddingRight="16dp"
93
+        android:layout_marginTop="50dp"
94
+        >
95
+        <TextView
96
+            android:id="@+id/tv_update"
97
+            android:layout_width="0dp"
98
+            android:layout_height="match_parent"
99
+            android:text="修改实名信息"
100
+            android:layout_weight="1"
101
+            android:gravity="center"
102
+            android:background="@drawable/shape_line_999999_50dp"
103
+            android:layout_marginRight="5dp"
104
+            android:textColor="@color/black_333333"
105
+            android:textSize="16sp"
106
+            android:layout_marginTop="2dp"
107
+            android:layout_marginBottom="2dp"
108
+            />
109
+        <TextView
110
+            android:id="@+id/tv_back"
111
+            android:layout_width="0dp"
112
+            android:layout_height="match_parent"
113
+            android:text="返回"
114
+            android:layout_weight="1"
115
+            android:gravity="center"
116
+            android:layout_marginLeft="5dp"
117
+            android:background="@drawable/shape_fe0032_50dp"
118
+            android:textColor="@color/white"
119
+            android:textSize="16sp"
120
+            android:layout_marginTop="2dp"
121
+            android:layout_marginBottom="2dp"
122
+            />
118 123
     </LinearLayout>
119 124
 </LinearLayout>

+ 106 - 386
app/src/main/res/layout/activity_annuity.xml

@@ -11,15 +11,17 @@
11 11
         android:layout_width="match_parent"
12 12
         android:layout_height="wrap_content"
13 13
         android:scaleType="fitXY"
14
-        android:src="@mipmap/annuitytop_bg_220713" />
14
+        android:src="@mipmap/bg_annuity_top" />
15 15
 
16
-    <com.yihucha.hbyhc.view.CustomTitleBarView
16
+    <TextView
17 17
         android:id="@+id/custom_title_bar"
18 18
         android:layout_width="match_parent"
19 19
         android:layout_height="wrap_content"
20
-        app:custom_title_bar_action_text="@string/pension_rules"
21
-        app:custom_title_bar_title="@string/my_annuity"
22
-        app:custom_title_default_is_white="true" />
20
+        android:gravity="center_horizontal"
21
+        android:paddingTop="10dp"
22
+        android:text="养老金"
23
+        android:textColor="@color/white"
24
+        android:textSize="18sp" />
23 25
 
24 26
     <ScrollView
25 27
         android:id="@+id/scrollView"
@@ -34,17 +36,17 @@
34 36
             android:paddingLeft="16dp"
35 37
             android:paddingRight="16sp">
36 38
 
37
-            <LinearLayout
39
+            <RelativeLayout
38 40
                 android:layout_width="match_parent"
39 41
                 android:layout_height="wrap_content"
40 42
                 android:layout_marginTop="22dp"
41 43
                 android:background="@drawable/shape_ffffff_8dp"
42
-                android:orientation="vertical"
43 44
                 android:padding="16dp">
44 45
 
45 46
                 <LinearLayout
47
+                    android:id="@+id/layout_info"
46 48
                     android:layout_width="match_parent"
47
-                    android:layout_height="wrap_content"
49
+                    android:layout_height="51dp"
48 50
                     android:gravity="center_vertical"
49 51
                     android:orientation="horizontal">
50 52
 
@@ -54,36 +56,45 @@
54 56
                         android:layout_height="51dp"
55 57
                         android:src="@mipmap/mine_user_220620" />
56 58
 
57
-                    <com.yihucha.hbyhc.view.BoldText
58
-                        android:id="@+id/btv_nickname"
59
+                    <LinearLayout
59 60
                         android:layout_width="wrap_content"
60 61
                         android:layout_height="wrap_content"
61
-                        android:layout_marginLeft="12dp"
62
-                        android:text="@string/copy"
63
-                        android:textColor="@color/black_333333"
64
-                        android:textSize="14sp" />
62
+                        android:orientation="vertical">
63
+
64
+                        <com.yihucha.hbyhc.view.BoldText
65
+                            android:id="@+id/btv_nickname"
66
+                            android:layout_width="wrap_content"
67
+                            android:layout_height="wrap_content"
68
+                            android:layout_marginLeft="12dp"
69
+                            android:text="@string/name"
70
+                            android:textColor="@color/black_333333"
71
+                            android:textSize="16sp" />
72
+
73
+                        <TextView
74
+                            android:id="@+id/tv_phone_number"
75
+                            android:layout_width="wrap_content"
76
+                            android:layout_height="wrap_content"
77
+                            android:layout_marginTop="4dp"
78
+                            android:paddingLeft="12dp"
79
+                            android:text="188****3836" />
80
+                    </LinearLayout>
65 81
 
66 82
                     <ImageView
67 83
                         android:id="@+id/img_renzheng"
68 84
                         android:layout_width="wrap_content"
69 85
                         android:layout_height="wrap_content"
70
-                        android:layout_gravity="center_vertical"
86
+                        android:layout_gravity="top"
71 87
                         android:layout_marginLeft="3dp"
72 88
                         android:src="@mipmap/shimingrenzheng" />
73
-                    <!--<TextView
74
-                        android:id="@+id/tv_is_approve"
75
-                        android:layout_width="wrap_content"
76
-                        android:layout_height="wrap_content"
77
-                        android:layout_marginLeft="8dp"
78
-                        android:text="@string/real_name_authentication"
79
-                        android:textColor="@color/red_fe0032"
80
-                        android:textSize="12sp" />-->
81 89
                 </LinearLayout>
82 90
 
83 91
                 <LinearLayout
92
+                    android:id="@+id/layout_annuity_total"
84 93
                     android:layout_width="match_parent"
85 94
                     android:layout_height="wrap_content"
86
-                    android:gravity="center"
95
+                    android:layout_below="@+id/layout_info"
96
+                    android:layout_marginTop="16dp"
97
+                    android:gravity="center_vertical"
87 98
                     android:orientation="vertical">
88 99
 
89 100
                     <TextView
@@ -91,7 +102,7 @@
91 102
                         android:layout_height="wrap_content"
92 103
                         android:layout_marginTop="8dp"
93 104
                         android:text="@string/total_pension"
94
-                        android:textColor="@color/gray_999999"
105
+                        android:textColor="@color/black_333333"
95 106
                         android:textSize="13sp" />
96 107
 
97 108
                     <com.yihucha.hbyhc.view.BoldText
@@ -99,15 +110,31 @@
99 110
                         android:layout_width="wrap_content"
100 111
                         android:layout_height="wrap_content"
101 112
                         android:text="0"
102
-                        android:textColor="@color/red_fe0032"
113
+                        android:textColor="@color/black_333333"
103 114
                         android:textSize="25sp" />
104
-
105
-
106 115
                 </LinearLayout>
107 116
 
117
+                <TextView
118
+                    android:id="@+id/tv_annuity_rules"
119
+                    android:layout_width="wrap_content"
120
+                    android:layout_height="wrap_content"
121
+                    android:layout_alignTop="@+id/layout_annuity_total"
122
+                    android:layout_alignParentRight="true"
123
+                    android:layout_marginTop="8dp"
124
+                    android:layout_marginRight="-10dp"
125
+                    android:background="@drawable/shape_annuity_rules"
126
+                    android:paddingLeft="5dp"
127
+                    android:paddingTop="2dp"
128
+                    android:paddingRight="15dp"
129
+                    android:paddingBottom="2dp"
130
+                    android:text="养老金规则"
131
+                    android:textColor="@color/white"
132
+                    android:textSize="12sp" />
133
+
108 134
                 <LinearLayout
109 135
                     android:layout_width="match_parent"
110 136
                     android:layout_height="wrap_content"
137
+                    android:layout_below="@+id/layout_annuity_total"
111 138
                     android:layout_marginTop="25dp"
112 139
                     android:orientation="horizontal">
113 140
 
@@ -115,9 +142,16 @@
115 142
                         android:layout_width="0dp"
116 143
                         android:layout_height="wrap_content"
117 144
                         android:layout_weight="1"
118
-                        android:gravity="center"
119 145
                         android:orientation="vertical">
120 146
 
147
+                        <TextView
148
+                            android:layout_width="wrap_content"
149
+                            android:layout_height="wrap_content"
150
+                            android:layout_marginTop="8dp"
151
+                            android:text="预估养老金(元)"
152
+                            android:textColor="@color/black_333333"
153
+                            android:textSize="13sp" />
154
+
121 155
                         <com.yihucha.hbyhc.view.BoldText
122 156
                             android:id="@+id/btv_onLine_take_no"
123 157
                             android:layout_width="wrap_content"
@@ -125,14 +159,6 @@
125 159
                             android:text="0"
126 160
                             android:textColor="@color/black_333333"
127 161
                             android:textSize="15sp" />
128
-
129
-                        <TextView
130
-                            android:layout_width="wrap_content"
131
-                            android:layout_height="wrap_content"
132
-                            android:layout_marginTop="8dp"
133
-                            android:text="预估养老金"
134
-                            android:textColor="@color/gray_999999"
135
-                            android:textSize="13sp" />
136 162
                     </LinearLayout>
137 163
 
138 164
                     <LinearLayout
@@ -140,9 +166,16 @@
140 166
                         android:layout_width="0dp"
141 167
                         android:layout_height="wrap_content"
142 168
                         android:layout_weight="1"
143
-                        android:gravity="center"
144 169
                         android:orientation="vertical">
145 170
 
171
+                        <TextView
172
+                            android:layout_width="wrap_content"
173
+                            android:layout_height="wrap_content"
174
+                            android:layout_marginTop="8dp"
175
+                            android:text="已结算(元)"
176
+                            android:textColor="@color/black_333333"
177
+                            android:textSize="13sp" />
178
+
146 179
                         <com.yihucha.hbyhc.view.BoldText
147 180
                             android:id="@+id/btv_all_yanglao_a"
148 181
                             android:layout_width="wrap_content"
@@ -151,13 +184,7 @@
151 184
                             android:textColor="@color/black_333333"
152 185
                             android:textSize="15sp" />
153 186
 
154
-                        <TextView
155
-                            android:layout_width="wrap_content"
156
-                            android:layout_height="wrap_content"
157
-                            android:layout_marginTop="8dp"
158
-                            android:text="@string/have_already_settled"
159
-                            android:textColor="@color/gray_999999"
160
-                            android:textSize="13sp" />
187
+
161 188
                     </LinearLayout>
162 189
 
163 190
                     <LinearLayout
@@ -165,9 +192,16 @@
165 192
                         android:layout_width="0dp"
166 193
                         android:layout_height="wrap_content"
167 194
                         android:layout_weight="1"
168
-                        android:gravity="center"
169 195
                         android:orientation="vertical">
170 196
 
197
+                        <TextView
198
+                            android:layout_width="wrap_content"
199
+                            android:layout_height="wrap_content"
200
+                            android:layout_marginTop="8dp"
201
+                            android:text="中信公证处(元)"
202
+                            android:textColor="@color/black_333333"
203
+                            android:textSize="13sp" />
204
+
171 205
                         <com.yihucha.hbyhc.view.BoldText
172 206
                             android:id="@+id/btv_zxgzc"
173 207
                             android:layout_width="wrap_content"
@@ -175,17 +209,9 @@
175 209
                             android:text="0"
176 210
                             android:textColor="@color/black_333333"
177 211
                             android:textSize="15sp" />
178
-
179
-                        <TextView
180
-                            android:layout_width="wrap_content"
181
-                            android:layout_height="wrap_content"
182
-                            android:layout_marginTop="8dp"
183
-                            android:text="@string/citicnotaryoffice"
184
-                            android:textColor="@color/gray_999999"
185
-                            android:textSize="13sp" />
186 212
                     </LinearLayout>
187 213
                 </LinearLayout>
188
-            </LinearLayout>
214
+            </RelativeLayout>
189 215
 
190 216
             <LinearLayout
191 217
                 android:layout_width="match_parent"
@@ -209,152 +235,6 @@
209 235
                     android:layout_width="match_parent"
210 236
                     android:layout_height="wrap_content"
211 237
                     android:layout_marginTop="18dp"
212
-                    android:orientation="horizontal"
213
-                    android:visibility="gone">
214
-
215
-                    <LinearLayout
216
-                        android:layout_width="wrap_content"
217
-                        android:layout_height="wrap_content"
218
-                        android:gravity="center_horizontal"
219
-                        android:orientation="vertical">
220
-
221
-                        <ImageView
222
-                            android:layout_width="wrap_content"
223
-                            android:layout_height="wrap_content"
224
-                            android:src="@mipmap/annuity_yuan_220713" />
225
-
226
-                        <View
227
-                            android:layout_width="1dp"
228
-                            android:layout_height="37.5dp"
229
-                            android:background="@color/red_fe0032" />
230
-
231
-                        <ImageView
232
-                            android:layout_width="wrap_content"
233
-                            android:layout_height="wrap_content"
234
-                            android:src="@mipmap/annuity_yuan_220713" />
235
-
236
-                        <View
237
-                            android:layout_width="1dp"
238
-                            android:layout_height="37.5dp"
239
-                            android:background="@color/red_fe0032" />
240
-
241
-                        <ImageView
242
-                            android:layout_width="wrap_content"
243
-                            android:layout_height="wrap_content"
244
-                            android:src="@mipmap/annuity_yuan_220713" />
245
-
246
-                        <View
247
-                            android:layout_width="1dp"
248
-                            android:layout_height="37.5dp"
249
-                            android:background="@color/red_fe0032" />
250
-
251
-                        <ImageView
252
-                            android:layout_width="wrap_content"
253
-                            android:layout_height="wrap_content"
254
-                            android:src="@mipmap/annuity_yuan_220713" />
255
-
256
-                        <View
257
-                            android:layout_width="1dp"
258
-                            android:layout_height="37.5dp"
259
-                            android:background="@color/red_fe0032" />
260
-
261
-                        <ImageView
262
-                            android:layout_width="wrap_content"
263
-                            android:layout_height="wrap_content"
264
-                            android:src="@mipmap/annuity_yuan_220713" />
265
-                    </LinearLayout>
266
-
267
-                    <LinearLayout
268
-                        android:layout_width="wrap_content"
269
-                        android:layout_height="wrap_content"
270
-                        android:layout_marginLeft="10dp"
271
-                        android:orientation="vertical">
272
-
273
-                        <TextView
274
-                            android:layout_width="wrap_content"
275
-                            android:layout_height="wrap_content"
276
-                            android:text="实名认证"
277
-                            android:textColor="@color/black_333333"
278
-                            android:textSize="15sp" />
279
-
280
-                        <TextView
281
-                            android:layout_width="wrap_content"
282
-                            android:layout_height="wrap_content"
283
-                            android:layout_marginTop="7dp"
284
-                            android:text="实名认证"
285
-                            android:textColor="@color/gray_999999"
286
-                            android:textSize="14sp" />
287
-
288
-                        <TextView
289
-                            android:layout_width="wrap_content"
290
-                            android:layout_height="wrap_content"
291
-                            android:layout_marginTop="8.5dp"
292
-                            android:text="绑定支付"
293
-                            android:textColor="@color/black_333333"
294
-                            android:textSize="15sp" />
295
-
296
-                        <TextView
297
-                            android:layout_width="wrap_content"
298
-                            android:layout_height="wrap_content"
299
-                            android:layout_marginTop="7dp"
300
-                            android:text="绑定微信、支付宝"
301
-                            android:textColor="@color/gray_999999"
302
-                            android:textSize="14sp" />
303
-
304
-                        <TextView
305
-                            android:layout_width="wrap_content"
306
-                            android:layout_height="wrap_content"
307
-                            android:layout_marginTop="8.5dp"
308
-                            android:text="补贴养老金"
309
-                            android:textColor="@color/black_333333"
310
-                            android:textSize="15sp" />
311
-
312
-                        <TextView
313
-                            android:layout_width="wrap_content"
314
-                            android:layout_height="wrap_content"
315
-                            android:layout_marginTop="7dp"
316
-                            android:text="购买返养老金商品"
317
-                            android:textColor="@color/gray_999999"
318
-                            android:textSize="14sp" />
319
-
320
-                        <TextView
321
-                            android:layout_width="wrap_content"
322
-                            android:layout_height="wrap_content"
323
-                            android:layout_marginTop="8.5dp"
324
-                            android:text="已结算养老金"
325
-                            android:textColor="@color/black_333333"
326
-                            android:textSize="15sp" />
327
-
328
-                        <TextView
329
-                            android:layout_width="wrap_content"
330
-                            android:layout_height="wrap_content"
331
-                            android:layout_marginTop="7dp"
332
-                            android:text="平台结算"
333
-                            android:textColor="@color/gray_999999"
334
-                            android:textSize="14sp" />
335
-
336
-                        <TextView
337
-                            android:layout_width="wrap_content"
338
-                            android:layout_height="wrap_content"
339
-                            android:layout_marginTop="8.5dp"
340
-                            android:text="开通"
341
-                            android:textColor="@color/black_333333"
342
-                            android:textSize="15sp" />
343
-
344
-                        <TextView
345
-                            android:layout_width="wrap_content"
346
-                            android:layout_height="wrap_content"
347
-                            android:layout_marginTop="7dp"
348
-                            android:text="计入账号开通"
349
-                            android:textColor="@color/gray_999999"
350
-                            android:textSize="14sp" />
351
-                    </LinearLayout>
352
-                </LinearLayout>
353
-
354
-                <LinearLayout
355
-                    android:layout_width="match_parent"
356
-                    android:layout_height="wrap_content"
357
-                    android:layout_marginTop="18dp"
358 238
                     android:gravity="center"
359 239
                     android:orientation="horizontal">
360 240
 
@@ -385,7 +265,7 @@
385 265
                         android:layout_height="wrap_content"
386 266
                         android:layout_marginLeft="12dp"
387 267
                         android:layout_marginRight="12dp"
388
-                        android:src="@mipmap/ylj_fh_220914" />
268
+                        android:src="@mipmap/icon_jt_right_333333" />
389 269
 
390 270
                     <LinearLayout
391 271
                         android:layout_width="0dp"
@@ -404,7 +284,7 @@
404 284
                             android:layout_height="wrap_content"
405 285
                             android:layout_marginTop="2.5dp"
406 286
                             android:gravity="center"
407
-                            android:text="绑定微信\n支付宝"
287
+                            android:text="消费获得\养老金"
408 288
                             android:textColor="@color/black_333333"
409 289
                             android:textSize="12sp" />
410 290
                     </LinearLayout>
@@ -414,7 +294,7 @@
414 294
                         android:layout_height="wrap_content"
415 295
                         android:layout_marginLeft="12dp"
416 296
                         android:layout_marginRight="12dp"
417
-                        android:src="@mipmap/ylj_fh_220914" />
297
+                        android:src="@mipmap/icon_jt_right_333333" />
418 298
 
419 299
                     <LinearLayout
420 300
                         android:layout_width="0dp"
@@ -433,7 +313,7 @@
433 313
                             android:layout_height="wrap_content"
434 314
                             android:layout_marginTop="2.5dp"
435 315
                             android:gravity="center"
436
-                            android:text="平台结算\n "
316
+                            android:text="平台结算\n养老金 "
437 317
                             android:textColor="@color/black_333333"
438 318
                             android:textSize="12sp" />
439 319
                     </LinearLayout>
@@ -443,7 +323,7 @@
443 323
                         android:layout_height="wrap_content"
444 324
                         android:layout_marginLeft="12dp"
445 325
                         android:layout_marginRight="12dp"
446
-                        android:src="@mipmap/ylj_fh_220914" />
326
+                        android:src="@mipmap/icon_jt_right_333333" />
447 327
 
448 328
                     <LinearLayout
449 329
                         android:layout_width="0dp"
@@ -471,116 +351,6 @@
471 351
                 </LinearLayout>
472 352
             </LinearLayout>
473 353
 
474
-            <LinearLayout
475
-                android:layout_width="match_parent"
476
-                android:layout_height="wrap_content"
477
-                android:layout_marginTop="13dp"
478
-                android:background="@drawable/shape_ffffff_8dp"
479
-                android:orientation="vertical"
480
-                android:paddingLeft="13dp"
481
-                android:paddingTop="16dp"
482
-                android:paddingRight="13dp"
483
-                android:paddingBottom="13dp">
484
-
485
-                <com.yihucha.hbyhc.view.BoldText
486
-                    android:layout_width="wrap_content"
487
-                    android:layout_height="wrap_content"
488
-                    android:text="养老金账户余额提取"
489
-                    android:textColor="@color/black_333333"
490
-                    android:textSize="15sp" />
491
-
492
-                <LinearLayout
493
-                    android:layout_width="match_parent"
494
-                    android:layout_height="wrap_content"
495
-                    android:layout_marginTop="16dp"
496
-                    android:orientation="vertical">
497
-
498
-                    <LinearLayout
499
-                        android:layout_width="match_parent"
500
-                        android:layout_height="wrap_content"
501
-                        android:gravity="center_vertical"
502
-                        android:orientation="horizontal">
503
-
504
-                        <ImageView
505
-                            android:layout_width="20dp"
506
-                            android:layout_height="20dp"
507
-                            android:layout_marginLeft="56dp"
508
-                            android:src="@mipmap/annuity_yuan_220713" />
509
-
510
-                        <View
511
-                            android:layout_width="0dp"
512
-                            android:layout_height="1dp"
513
-                            android:layout_weight="1"
514
-                            android:background="@color/red_fe0032" />
515
-
516
-                        <ImageView
517
-                            android:layout_width="20dp"
518
-                            android:layout_height="20dp"
519
-                            android:layout_marginRight="66dp"
520
-                            android:src="@mipmap/agreement_checked" />
521
-                    </LinearLayout>
522
-
523
-                    <LinearLayout
524
-                        android:layout_width="match_parent"
525
-                        android:layout_height="wrap_content"
526
-                        android:layout_marginTop="10dp"
527
-                        android:orientation="horizontal">
528
-
529
-                        <LinearLayout
530
-                            android:layout_width="wrap_content"
531
-                            android:layout_height="wrap_content"
532
-                            android:layout_marginLeft="35dp"
533
-                            android:gravity="center"
534
-                            android:orientation="vertical">
535
-
536
-                            <TextView
537
-                                android:layout_width="wrap_content"
538
-                                android:layout_height="wrap_content"
539
-                                android:text="加入时间"
540
-                                android:textColor="@color/black_333333"
541
-                                android:textSize="15sp" />
542
-
543
-                            <TextView
544
-                                android:id="@+id/tv_create_time"
545
-                                android:layout_width="80dp"
546
-                                android:layout_height="wrap_content"
547
-                                android:gravity="center"
548
-                                android:text=""
549
-                                android:textColor="@color/gray_999999"
550
-                                android:textSize="12sp" />
551
-                        </LinearLayout>
552
-
553
-                        <View
554
-                            android:layout_width="0dp"
555
-                            android:layout_height="1dp"
556
-                            android:layout_weight="1"></View>
557
-
558
-                        <LinearLayout
559
-                            android:layout_width="wrap_content"
560
-                            android:layout_height="wrap_content"
561
-                            android:layout_marginRight="30dp"
562
-                            android:gravity="center"
563
-                            android:orientation="vertical">
564
-
565
-                            <TextView
566
-                                android:layout_width="wrap_content"
567
-                                android:layout_height="wrap_content"
568
-                                android:text="法定提取时间"
569
-                                android:textColor="@color/black_333333"
570
-                                android:textSize="15sp" />
571
-
572
-                            <TextView
573
-                                android:id="@+id/tv_birthday60"
574
-                                android:layout_width="70dp"
575
-                                android:layout_height="wrap_content"
576
-                                android:gravity="center"
577
-                                android:text=""
578
-                                android:textColor="@color/gray_999999"
579
-                                android:textSize="12sp" />
580
-                        </LinearLayout>
581
-                    </LinearLayout>
582
-                </LinearLayout>
583
-            </LinearLayout>
584 354
 
585 355
             <LinearLayout
586 356
                 android:id="@+id/ll_payment_platform_binding"
@@ -591,30 +361,6 @@
591 361
                 android:orientation="vertical"
592 362
                 android:paddingLeft="13dp"
593 363
                 android:paddingRight="13dp">
594
-
595
-                <LinearLayout
596
-                    android:layout_width="match_parent"
597
-                    android:layout_height="wrap_content"
598
-                    android:gravity="center_vertical"
599
-                    android:orientation="horizontal"
600
-                    android:paddingTop="16dp"
601
-                    android:paddingBottom="16dp"
602
-                    android:visibility="gone">
603
-
604
-                    <com.yihucha.hbyhc.view.BoldText
605
-                        android:layout_width="0dp"
606
-                        android:layout_height="wrap_content"
607
-                        android:layout_weight="1"
608
-                        android:text="@string/payment_platform_binding"
609
-                        android:textColor="@color/black_333333"
610
-                        android:textSize="15sp" />
611
-
612
-                    <ImageView
613
-                        android:layout_width="wrap_content"
614
-                        android:layout_height="wrap_content"
615
-                        android:src="@mipmap/order_store_entry_220624" />
616
-                </LinearLayout>
617
-
618 364
                 <View
619 365
                     android:layout_width="match_parent"
620 366
                     android:layout_height="0.5dp"
@@ -622,20 +368,19 @@
622 368
                     android:visibility="gone" />
623 369
 
624 370
                 <LinearLayout
625
-                    android:id="@+id/ll_pension_accounts"
371
+                    android:id="@+id/ll_pension_record"
626 372
                     android:layout_width="match_parent"
627 373
                     android:layout_height="wrap_content"
628 374
                     android:gravity="center_vertical"
629 375
                     android:orientation="horizontal"
630 376
                     android:paddingTop="16dp"
631
-                    android:paddingBottom="16dp"
632
-                    android:visibility="gone">
377
+                    android:paddingBottom="16dp">
633 378
 
634
-                    <com.yihucha.hbyhc.view.BoldText
379
+                    <TextView
635 380
                         android:layout_width="0dp"
636 381
                         android:layout_height="wrap_content"
637 382
                         android:layout_weight="1"
638
-                        android:text="@string/pension_accounts"
383
+                        android:text="@string/pension_record"
639 384
                         android:textColor="@color/black_333333"
640 385
                         android:textSize="15sp" />
641 386
 
@@ -648,12 +393,10 @@
648 393
                 <View
649 394
                     android:layout_width="match_parent"
650 395
                     android:layout_height="0.5dp"
651
-                    android:background="@color/gray_e5e5e5"
652
-                    android:visibility="gone"
653
-                    />
396
+                    android:background="@color/gray_e5e5e5" />
654 397
 
655 398
                 <LinearLayout
656
-                    android:id="@+id/ll_pension_record"
399
+                    android:id="@+id/ll_citic_notary_office_to_check"
657 400
                     android:layout_width="match_parent"
658 401
                     android:layout_height="wrap_content"
659 402
                     android:gravity="center_vertical"
@@ -661,11 +404,11 @@
661 404
                     android:paddingTop="16dp"
662 405
                     android:paddingBottom="16dp">
663 406
 
664
-                    <com.yihucha.hbyhc.view.BoldText
407
+                    <TextView
665 408
                         android:layout_width="0dp"
666 409
                         android:layout_height="wrap_content"
667 410
                         android:layout_weight="1"
668
-                        android:text="@string/pension_record"
411
+                        android:text="@string/citicnotaryoffice"
669 412
                         android:textColor="@color/black_333333"
670 413
                         android:textSize="15sp" />
671 414
 
@@ -681,55 +424,32 @@
681 424
                     android:background="@color/gray_e5e5e5" />
682 425
 
683 426
                 <LinearLayout
684
-                    android:id="@+id/ll_citic_notary_office_to_check"
685 427
                     android:layout_width="match_parent"
686 428
                     android:layout_height="wrap_content"
687
-                    android:gravity="center_vertical"
688
-                    android:orientation="horizontal"
689 429
                     android:paddingTop="16dp"
690
-                    android:paddingBottom="16dp">
430
+                    android:paddingBottom="16dp"
431
+                    android:orientation="horizontal">
691 432
 
692
-                    <com.yihucha.hbyhc.view.BoldText
433
+                    <TextView
693 434
                         android:layout_width="0dp"
694 435
                         android:layout_height="wrap_content"
695 436
                         android:layout_weight="1"
696
-                        android:text="@string/citic_notary_office_to_check"
437
+                        android:text="养老金法定提取时间"
697 438
                         android:textColor="@color/black_333333"
698
-                        android:textSize="15sp" />
699
-
700
-                    <ImageView
439
+                        android:textSize="15sp"
440
+                        />
441
+                    <TextView
442
+                        android:id="@+id/tv_annuity_time"
701 443
                         android:layout_width="wrap_content"
702 444
                         android:layout_height="wrap_content"
703
-                        android:src="@mipmap/order_store_entry_220624" />
445
+                        android:text="2026-3-5"
446
+                        android:textColor="@color/black_333333"
447
+                        android:textSize="14sp"
448
+                        />
704 449
                 </LinearLayout>
705 450
             </LinearLayout>
706 451
 
707
-            <LinearLayout
708
-                android:layout_width="match_parent"
709
-                android:layout_height="wrap_content"
710
-                android:layout_marginTop="31.5dp"
711
-                android:background="@drawable/shape_fff9ed_8dp"
712
-                android:gravity="center_vertical"
713
-                android:orientation="horizontal"
714
-                android:paddingLeft="13dp"
715
-                android:paddingTop="6dp"
716
-                android:paddingRight="13dp"
717
-                android:paddingBottom="6dp">
718
-
719
-                <TextView
720
-                    android:layout_width="0dp"
721
-                    android:layout_height="wrap_content"
722
-                    android:layout_weight="1"
723
-                    android:text="个人消费养老金规范管理计划\n合规管理 有计划养老"
724
-                    android:textColor="@color/yellow_ff6010"
725
-                    android:textSize="15sp" />
726 452
 
727
-                <ImageView
728
-                    android:id="@+id/iv_liaojie"
729
-                    android:layout_width="wrap_content"
730
-                    android:layout_height="wrap_content"
731
-                    android:src="@mipmap/get_to_know_buttons_220713" />
732
-            </LinearLayout>
733 453
         </LinearLayout>
734 454
     </ScrollView>
735 455
 </RelativeLayout>

+ 226 - 0
app/src/main/res/layout/activity_annuity_records.xml

@@ -0,0 +1,226 @@
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.annuity.AnnuityRecordsActivity">
9
+
10
+    <ImageView
11
+        android:id="@+id/imgv_back"
12
+        android:layout_width="45dp"
13
+        android:layout_height="45dp"
14
+        android:scaleType="centerInside"
15
+        android:src="@mipmap/icon_title_back"
16
+        app:layout_constraintLeft_toLeftOf="parent"
17
+        app:layout_constraintTop_toTopOf="parent" />
18
+
19
+    <com.yihucha.hbyhc.view.BoldText
20
+        android:layout_width="wrap_content"
21
+        android:layout_height="wrap_content"
22
+        android:background="@color/white"
23
+        android:text="@string/pension_record"
24
+        android:textColor="@color/black_333333"
25
+        android:textSize="18sp"
26
+        app:layout_constraintBottom_toBottomOf="@+id/imgv_back"
27
+        app:layout_constraintLeft_toLeftOf="parent"
28
+        app:layout_constraintRight_toRightOf="parent"
29
+        app:layout_constraintTop_toTopOf="@+id/imgv_back" />
30
+
31
+    <ImageView
32
+        android:id="@+id/imgv_bg"
33
+        android:layout_width="match_parent"
34
+        android:layout_height="100dp"
35
+        android:scaleType="fitXY"
36
+        android:src="@mipmap/bg_annuity_record"
37
+        app:layout_constraintTop_toBottomOf="@+id/imgv_back" />
38
+
39
+    <View
40
+        android:layout_width="0.5dp"
41
+        android:layout_height="25dp"
42
+        android:background="@color/white_f8f8f8"
43
+        app:layout_constraintBottom_toBottomOf="@+id/imgv_bg"
44
+        app:layout_constraintLeft_toLeftOf="@+id/imgv_bg"
45
+        app:layout_constraintRight_toRightOf="@+id/imgv_bg"
46
+        app:layout_constraintTop_toTopOf="@+id/imgv_bg" />
47
+
48
+    <TextView
49
+        android:id="@+id/tv_title_yjs"
50
+        android:layout_width="0dp"
51
+        android:layout_height="wrap_content"
52
+        android:gravity="center_horizontal"
53
+        android:text="已结算养老金"
54
+        android:textColor="@color/white"
55
+        android:textSize="13sp"
56
+        app:layout_constraintBottom_toTopOf="@+id/tv_value_yjs"
57
+        app:layout_constraintHorizontal_weight="1"
58
+        app:layout_constraintLeft_toLeftOf="@+id/imgv_bg"
59
+        app:layout_constraintRight_toLeftOf="@+id/tv_title_wjs"
60
+        app:layout_constraintTop_toTopOf="@+id/imgv_bg"
61
+        app:layout_constraintVertical_chainStyle="packed" />
62
+
63
+    <TextView
64
+        android:id="@+id/tv_title_wjs"
65
+        android:layout_width="0dp"
66
+        android:layout_height="wrap_content"
67
+        android:gravity="center_horizontal"
68
+        android:text="未结算养老金"
69
+        android:textColor="@color/white"
70
+        android:textSize="13sp"
71
+        app:layout_constraintBottom_toBottomOf="@+id/tv_title_yjs"
72
+        app:layout_constraintHorizontal_weight="1"
73
+        app:layout_constraintLeft_toRightOf="@+id/tv_title_yjs"
74
+        app:layout_constraintRight_toRightOf="@+id/imgv_bg"
75
+        app:layout_constraintTop_toTopOf="@+id/tv_title_yjs" />
76
+
77
+    <TextView
78
+        android:id="@+id/tv_value_yjs"
79
+        android:layout_width="0dp"
80
+        android:layout_height="wrap_content"
81
+        android:layout_marginTop="3dp"
82
+        android:gravity="center_horizontal"
83
+        android:text="9999999.99"
84
+        android:textColor="@color/white"
85
+        android:textSize="18sp"
86
+        app:layout_constraintBottom_toBottomOf="@+id/imgv_bg"
87
+        app:layout_constraintHorizontal_weight="1"
88
+        app:layout_constraintLeft_toLeftOf="@+id/imgv_bg"
89
+        app:layout_constraintRight_toLeftOf="@+id/tv_value_wjs"
90
+        app:layout_constraintTop_toBottomOf="@+id/tv_title_yjs" />
91
+
92
+    <TextView
93
+        android:id="@+id/tv_value_wjs"
94
+        android:layout_width="0dp"
95
+        android:layout_height="wrap_content"
96
+        android:gravity="center_horizontal"
97
+        android:text="123456"
98
+        android:textColor="@color/white"
99
+        android:textSize="18sp"
100
+        app:layout_constraintBottom_toBottomOf="@+id/tv_value_yjs"
101
+        app:layout_constraintHorizontal_weight="1"
102
+        app:layout_constraintLeft_toRightOf="@+id/tv_value_yjs"
103
+        app:layout_constraintRight_toRightOf="@+id/imgv_bg"
104
+        app:layout_constraintTop_toTopOf="@+id/tv_value_yjs" />
105
+
106
+    <TextView
107
+        android:id="@+id/tv_date"
108
+        android:layout_width="wrap_content"
109
+        android:layout_height="wrap_content"
110
+        android:layout_marginLeft="16dp"
111
+        android:layout_marginTop="16dp"
112
+        android:drawableRight="@mipmap/tuijian_xiala"
113
+        android:drawablePadding="5dp"
114
+        android:text="2023年12月"
115
+        android:textColor="@color/black_333333"
116
+        android:textSize="15sp"
117
+        app:layout_constraintLeft_toLeftOf="parent"
118
+        app:layout_constraintTop_toBottomOf="@+id/imgv_bg" />
119
+
120
+    <TextView
121
+        android:id="@+id/tv_selector"
122
+        android:layout_width="wrap_content"
123
+        android:layout_height="wrap_content"
124
+        android:layout_marginRight="16dp"
125
+        android:drawableRight="@mipmap/tuijian_xiala"
126
+        android:drawablePadding="5dp"
127
+        android:text="筛选"
128
+        android:textColor="@color/black_333333"
129
+        android:textSize="15sp"
130
+        app:layout_constraintBottom_toBottomOf="@+id/tv_date"
131
+        app:layout_constraintRight_toRightOf="parent"
132
+        app:layout_constraintTop_toTopOf="@+id/tv_date" />
133
+
134
+    <TextView
135
+        android:id="@+id/tv_total"
136
+        android:layout_width="0dp"
137
+        android:layout_height="wrap_content"
138
+        android:layout_marginTop="10dp"
139
+        android:text="预估总额¥99999.99"
140
+        android:textColor="@color/black_333333"
141
+        android:textSize="12sp"
142
+        android:paddingBottom="13dp"
143
+        app:layout_constraintLeft_toLeftOf="@+id/tv_date"
144
+        app:layout_constraintRight_toLeftOf="@+id/tv_yjs"
145
+        app:layout_constraintTop_toBottomOf="@+id/tv_date" />
146
+
147
+    <TextView
148
+        android:id="@+id/tv_yjs"
149
+        android:layout_width="0dp"
150
+        android:layout_height="wrap_content"
151
+        android:text="未结算¥99999.99"
152
+        android:textColor="@color/black_333333"
153
+        android:textSize="12sp"
154
+        android:paddingBottom="13dp"
155
+        app:layout_constraintBottom_toBottomOf="@+id/tv_total"
156
+        app:layout_constraintLeft_toRightOf="@+id/tv_total"
157
+        app:layout_constraintRight_toLeftOf="@+id/tv_wjs"
158
+        app:layout_constraintTop_toTopOf="@+id/tv_total" />
159
+
160
+    <TextView
161
+        android:id="@+id/tv_wjs"
162
+        android:layout_width="0dp"
163
+        android:layout_height="wrap_content"
164
+        android:text="已结算¥99999.99"
165
+        android:textColor="@color/black_333333"
166
+        android:textSize="12sp"
167
+        android:paddingBottom="13dp"
168
+        app:layout_constraintBottom_toBottomOf="@+id/tv_total"
169
+        app:layout_constraintLeft_toRightOf="@+id/tv_yjs"
170
+        app:layout_constraintRight_toRightOf="@+id/tv_selector"
171
+        app:layout_constraintTop_toTopOf="@+id/tv_total" />
172
+
173
+    <com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout
174
+        android:id="@+id/refresh_layout"
175
+        android:layout_width="match_parent"
176
+        android:layout_height="0dp"
177
+        app:layout_constraintBottom_toBottomOf="parent"
178
+        app:layout_constraintLeft_toLeftOf="parent"
179
+        app:layout_constraintTop_toBottomOf="@+id/tv_total">
180
+
181
+        <androidx.recyclerview.widget.RecyclerView
182
+            android:id="@+id/rv_annuity_records"
183
+            android:layout_width="match_parent"
184
+            android:layout_height="wrap_content" />
185
+    </com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout>
186
+    <View
187
+        android:id="@+id/view_bg"
188
+        android:layout_width="match_parent"
189
+        android:layout_height="0dp"
190
+        android:background="@color/black"
191
+        android:alpha="0.5"
192
+        android:visibility="gone"
193
+        app:layout_constraintBottom_toBottomOf="parent"
194
+        app:layout_constraintLeft_toLeftOf="parent"
195
+        app:layout_constraintTop_toBottomOf="@+id/tv_total"
196
+        />
197
+    <LinearLayout
198
+        android:id="@+id/layout_no_data"
199
+        android:layout_width="wrap_content"
200
+        android:layout_height="wrap_content"
201
+        app:layout_constraintLeft_toLeftOf="parent"
202
+        app:layout_constraintRight_toRightOf="parent"
203
+        app:layout_constraintTop_toTopOf="parent"
204
+        app:layout_constraintBottom_toBottomOf="parent"
205
+        android:orientation="vertical"
206
+        android:visibility="gone"
207
+        >
208
+        <ImageView
209
+            android:id="@+id/imgv_no_data"
210
+            android:layout_width="wrap_content"
211
+            android:layout_height="wrap_content"
212
+            android:layout_marginTop="64dp"
213
+            android:layout_gravity="center"
214
+            android:src="@mipmap/search_zanwuxiangguan_220617"/>
215
+
216
+        <TextView
217
+            android:id="@+id/tv_no_data"
218
+            android:layout_width="wrap_content"
219
+            android:layout_height="wrap_content"
220
+            android:layout_gravity="center"
221
+            android:layout_marginTop="16dp"
222
+            android:textColor="@color/black_333333"
223
+            android:textSize="15sp"
224
+            android:text="@string/noSearch_tes"/>
225
+    </LinearLayout>
226
+</androidx.constraintlayout.widget.ConstraintLayout>

+ 12 - 39
app/src/main/res/layout/activity_main.xml

@@ -5,35 +5,6 @@
5 5
     android:layout_width="match_parent"
6 6
     android:layout_height="match_parent"
7 7
     android:orientation="vertical">
8
-
9
-    <!--    <fragment-->
10
-    <!--        android:id="@+id/nav_host_fragment_activity_main"-->
11
-    <!--        android:name="androidx.navigation.fragment.NavHostFragment"-->
12
-    <!--        android:layout_width="match_parent"-->
13
-    <!--        android:layout_height="0dp"-->
14
-    <!--        android:layout_weight="1"-->
15
-    <!--        app:defaultNavHost="true"-->
16
-    <!--        app:layout_constraintBottom_toTopOf="@id/nav_view"-->
17
-    <!--        app:layout_constraintLeft_toLeftOf="parent"-->
18
-    <!--        app:layout_constraintRight_toRightOf="parent"-->
19
-    <!--        app:layout_constraintTop_toTopOf="parent"-->
20
-    <!--        app:navGraph="@navigation/mobile_navigation" />-->
21
-    <!--    <com.google.android.material.bottomnavigation.BottomNavigationView-->
22
-    <!--        android:id="@+id/nav_view"-->
23
-    <!--        android:layout_width="match_parent"-->
24
-    <!--        android:layout_height="wrap_content"-->
25
-    <!--        android:layout_marginStart="0dp"-->
26
-    <!--        android:layout_marginEnd="0dp"-->
27
-    <!--        app:layout_constraintBottom_toBottomOf="parent"-->
28
-    <!--        app:itemIconTint="@drawable/main_bottom"-->
29
-    <!--        app:itemTextColor="@drawable/main_bottom"-->
30
-    <!--        app:itemBackground="@color/white"-->
31
-    <!--        app:layout_constraintLeft_toLeftOf="parent"-->
32
-    <!--        app:layout_constraintRight_toRightOf="parent"-->
33
-    <!--        app:labelVisibilityMode="labeled"-->
34
-    <!--        app:menu="@menu/bottom_nav_menu" />-->
35
-
36
-
37 8
     <LinearLayout
38 9
         android:id="@+id/content_layout"
39 10
         android:layout_width="match_parent"
@@ -75,8 +46,10 @@
75 46
                 android:textSize="10sp" />
76 47
         </LinearLayout>
77 48
 
49
+
50
+
78 51
         <LinearLayout
79
-            android:id="@+id/ll_nearby"
52
+            android:id="@+id/ll_big_warehouse"
80 53
             android:layout_width="0dp"
81 54
             android:layout_height="match_parent"
82 55
             android:layout_weight="1"
@@ -84,23 +57,23 @@
84 57
             android:orientation="vertical">
85 58
 
86 59
             <ImageView
87
-                android:id="@+id/iv_nearby"
60
+                android:id="@+id/iv_big_warehouse"
88 61
                 android:layout_width="wrap_content"
89 62
                 android:layout_height="wrap_content"
90
-                android:src="@mipmap/nearby_220607" />
63
+                android:src="@mipmap/big_warehouse_220607"/>
91 64
             <TextView
92
-                android:id="@+id/tv_nearby"
65
+                android:id="@+id/tv_big_warehouse"
93 66
                 android:layout_marginTop="4dp"
94 67
                 android:layout_width="wrap_content"
95 68
                 android:layout_height="wrap_content"
96 69
                 android:textColor="@color/gray_999999"
97 70
                 android:gravity="center"
98
-                android:text="@string/title_chuangke"
71
+                android:text="商城"
99 72
                 android:textSize="10sp" />
100 73
         </LinearLayout>
101 74
 
102 75
         <LinearLayout
103
-            android:id="@+id/ll_big_warehouse"
76
+            android:id="@+id/ll_nearby"
104 77
             android:layout_width="0dp"
105 78
             android:layout_height="match_parent"
106 79
             android:layout_weight="1"
@@ -108,18 +81,18 @@
108 81
             android:orientation="vertical">
109 82
 
110 83
             <ImageView
111
-                android:id="@+id/iv_big_warehouse"
84
+                android:id="@+id/iv_nearby"
112 85
                 android:layout_width="wrap_content"
113 86
                 android:layout_height="wrap_content"
114
-                android:src="@mipmap/big_warehouse_220607"/>
87
+                android:src="@mipmap/nearby_220607" />
115 88
             <TextView
116
-                android:id="@+id/tv_big_warehouse"
89
+                android:id="@+id/tv_nearby"
117 90
                 android:layout_marginTop="4dp"
118 91
                 android:layout_width="wrap_content"
119 92
                 android:layout_height="wrap_content"
120 93
                 android:textColor="@color/gray_999999"
121 94
                 android:gravity="center"
122
-                android:text="@string/title_big_warehouse"
95
+                android:text="养老金"
123 96
                 android:textSize="10sp" />
124 97
         </LinearLayout>
125 98
 

+ 36 - 0
app/src/main/res/layout/activity_real_name_authentication.xml

@@ -101,6 +101,24 @@
101 101
                 android:src="@mipmap/front_220714"
102 102
                 android:layout_height="139.5dp"/>
103 103
             <TextView
104
+                android:id="@+id/tv_change_image_positive"
105
+                android:layout_width="wrap_content"
106
+                android:layout_height="wrap_content"
107
+                android:text="更换图片"
108
+                android:layout_alignRight="@+id/iv_card_positive"
109
+                android:layout_alignBottom="@+id/iv_card_positive"
110
+                android:layout_marginRight="7dp"
111
+                android:layout_marginBottom="10dp"
112
+                android:textColor="@color/white"
113
+                android:paddingLeft="13dp"
114
+                android:paddingRight="13dp"
115
+                android:paddingTop="3dp"
116
+                android:paddingBottom="3dp"
117
+                android:textSize="11sp"
118
+                android:visibility="gone"
119
+                android:background="@drawable/shaple_black_50dp"
120
+                />
121
+            <TextView
104 122
                 android:id="@+id/tv_notice1"
105 123
                 android:layout_width="wrap_content"
106 124
                 android:layout_height="wrap_content"
@@ -132,6 +150,24 @@
132 150
                 android:src="@mipmap/front_220714"
133 151
                 android:layout_height="139.5dp"/>
134 152
             <TextView
153
+                android:id="@+id/tv_change_image_reverse"
154
+                android:layout_width="wrap_content"
155
+                android:layout_height="wrap_content"
156
+                android:text="更换图片"
157
+                android:layout_alignRight="@+id/iv_card_reverse"
158
+                android:layout_alignBottom="@+id/iv_card_reverse"
159
+                android:layout_marginRight="7dp"
160
+                android:layout_marginBottom="10dp"
161
+                android:textColor="@color/white"
162
+                android:paddingLeft="13dp"
163
+                android:paddingRight="13dp"
164
+                android:paddingTop="3dp"
165
+                android:paddingBottom="3dp"
166
+                android:textSize="11sp"
167
+                android:visibility="gone"
168
+                android:background="@drawable/shaple_black_50dp"
169
+                />
170
+            <TextView
135 171
                 android:id="@+id/tv_notice2"
136 172
                 android:layout_width="wrap_content"
137 173
                 android:layout_height="wrap_content"

+ 308 - 299
app/src/main/res/layout/activity_settingup.xml

@@ -5,332 +5,341 @@
5 5
     android:background="@color/white_f8f8f8"
6 6
     android:orientation="vertical">
7 7
 
8
-    <LinearLayout
8
+    <ScrollView
9 9
         android:layout_width="match_parent"
10 10
         android:layout_height="wrap_content"
11
-        android:layout_marginTop="13dp"
12
-        android:background="@drawable/shape_ffffff_8dp"
13
-        android:orientation="vertical"
14
-        android:padding="16dp">
11
+        android:scrollbars="none"
12
+        android:layout_weight="1">
15 13
 
16 14
         <LinearLayout
17
-            android:id="@+id/ll_feedback"
18 15
             android:layout_width="match_parent"
19 16
             android:layout_height="wrap_content"
20
-            android:orientation="horizontal">
21
-
22
-            <TextView
23
-                android:layout_width="0dp"
17
+            android:layout_marginTop="13dp"
18
+            android:background="@drawable/shape_ffffff_8dp"
19
+            android:orientation="vertical"
20
+            android:padding="16dp">
21
+
22
+            <LinearLayout
23
+                android:id="@+id/ll_feedback"
24
+                android:layout_width="match_parent"
24 25
                 android:layout_height="wrap_content"
25
-                android:layout_weight="1"
26
-                android:text="@string/feedback_to_reply"
27
-                android:textColor="@color/black_333333"
28
-                android:textSize="15sp" />
29
-            <ImageView
30
-                android:layout_width="wrap_content"
26
+                android:orientation="horizontal">
27
+
28
+                <TextView
29
+                    android:layout_width="0dp"
30
+                    android:layout_height="wrap_content"
31
+                    android:layout_weight="1"
32
+                    android:text="@string/feedback_to_reply"
33
+                    android:textColor="@color/black_333333"
34
+                    android:textSize="15sp" />
35
+
36
+                <ImageView
37
+                    android:layout_width="wrap_content"
38
+                    android:layout_height="wrap_content"
39
+                    android:layout_gravity="center_vertical"
40
+                    android:src="@mipmap/goin_220619" />
41
+            </LinearLayout>
42
+
43
+            <View
44
+                android:layout_width="match_parent"
45
+                android:layout_height="0.5dp"
46
+                android:layout_marginTop="16dp"
47
+                android:background="@color/gray_e5e5e5" />
48
+
49
+            <LinearLayout
50
+                android:id="@+id/ll_about_us"
51
+                android:layout_width="match_parent"
31 52
                 android:layout_height="wrap_content"
32
-                android:layout_gravity="center_vertical"
33
-                android:src="@mipmap/goin_220619" />
34
-        </LinearLayout>
35
-
36
-        <View
37
-            android:layout_width="match_parent"
38
-            android:layout_height="0.5dp"
39
-            android:layout_marginTop="16dp"
40
-            android:background="@color/gray_e5e5e5" />
41
-
42
-        <LinearLayout
43
-            android:id="@+id/ll_about_us"
44
-            android:layout_width="match_parent"
45
-            android:layout_height="wrap_content"
46
-            android:layout_marginTop="16dp"
47
-            android:orientation="horizontal">
48
-
49
-            <TextView
50
-                android:layout_width="0dp"
53
+                android:layout_marginTop="16dp"
54
+                android:orientation="horizontal">
55
+
56
+                <TextView
57
+                    android:layout_width="0dp"
58
+                    android:layout_height="wrap_content"
59
+                    android:layout_weight="1"
60
+                    android:text="@string/about_us"
61
+                    android:textColor="@color/black_333333"
62
+                    android:textSize="15sp" />
63
+
64
+                <ImageView
65
+                    android:layout_width="wrap_content"
66
+                    android:layout_height="wrap_content"
67
+                    android:layout_gravity="center_vertical"
68
+                    android:src="@mipmap/goin_220619" />
69
+            </LinearLayout>
70
+
71
+            <View
72
+                android:layout_width="match_parent"
73
+                android:layout_height="0.5dp"
74
+                android:layout_marginTop="16dp"
75
+                android:background="@color/gray_e5e5e5" />
76
+
77
+            <LinearLayout
78
+                android:id="@+id/ll_version_updating"
79
+                android:layout_width="match_parent"
51 80
                 android:layout_height="wrap_content"
52
-                android:layout_weight="1"
53
-                android:text="@string/about_us"
54
-                android:textColor="@color/black_333333"
55
-                android:textSize="15sp" />
56
-
57
-            <ImageView
58
-                android:layout_width="wrap_content"
81
+                android:layout_marginTop="16dp"
82
+                android:orientation="horizontal">
83
+
84
+                <TextView
85
+                    android:layout_width="0dp"
86
+                    android:layout_height="wrap_content"
87
+                    android:layout_weight="1"
88
+                    android:text="@string/version_updating"
89
+                    android:textColor="@color/black_333333"
90
+                    android:textSize="15sp" />
91
+
92
+                <ImageView
93
+                    android:layout_width="wrap_content"
94
+                    android:layout_height="wrap_content"
95
+                    android:layout_gravity="center_vertical"
96
+                    android:src="@mipmap/goin_220619" />
97
+            </LinearLayout>
98
+
99
+            <View
100
+                android:layout_width="match_parent"
101
+                android:layout_height="0.5dp"
102
+                android:layout_marginTop="16dp"
103
+                android:background="@color/gray_e5e5e5" />
104
+
105
+
106
+            <LinearLayout
107
+                android:layout_width="match_parent"
59 108
                 android:layout_height="wrap_content"
60
-                android:layout_gravity="center_vertical"
61
-                android:src="@mipmap/goin_220619" />
62
-        </LinearLayout>
63
-
64
-        <View
65
-            android:layout_width="match_parent"
66
-            android:layout_height="0.5dp"
67
-            android:layout_marginTop="16dp"
68
-            android:background="@color/gray_e5e5e5" />
69
-
70
-        <LinearLayout
71
-            android:id="@+id/ll_version_updating"
72
-            android:layout_width="match_parent"
73
-            android:layout_height="wrap_content"
74
-            android:layout_marginTop="16dp"
75
-            android:orientation="horizontal">
76
-
77
-            <TextView
78
-                android:layout_width="0dp"
109
+                android:layout_marginTop="16dp"
110
+                android:orientation="horizontal"
111
+                android:visibility="gone">
112
+
113
+                <TextView
114
+                    android:layout_width="0dp"
115
+                    android:layout_height="wrap_content"
116
+                    android:layout_weight="1"
117
+                    android:text="@string/safety_certificate"
118
+                    android:textColor="@color/black_333333"
119
+                    android:textSize="15sp" />
120
+
121
+                <ImageView
122
+                    android:layout_width="wrap_content"
123
+                    android:layout_height="wrap_content"
124
+                    android:layout_gravity="center_vertical"
125
+                    android:src="@mipmap/goin_220619" />
126
+            </LinearLayout>
127
+
128
+            <View
129
+                android:layout_width="match_parent"
130
+                android:layout_height="0.5dp"
131
+                android:layout_marginTop="16dp"
132
+                android:background="@color/gray_e5e5e5"
133
+                android:visibility="gone" />
134
+
135
+            <LinearLayout
136
+                android:id="@+id/ll_real_name_authentication"
137
+                android:layout_width="match_parent"
79 138
                 android:layout_height="wrap_content"
80
-                android:layout_weight="1"
81
-                android:text="@string/version_updating"
82
-                android:textColor="@color/black_333333"
83
-                android:textSize="15sp" />
84
-
85
-            <ImageView
86
-                android:layout_width="wrap_content"
139
+                android:layout_marginTop="16dp"
140
+                android:orientation="horizontal">
141
+
142
+                <TextView
143
+                    android:layout_width="0dp"
144
+                    android:layout_height="wrap_content"
145
+                    android:layout_weight="1"
146
+                    android:text="@string/real_name_authentication"
147
+                    android:textColor="@color/black_333333"
148
+                    android:textSize="15sp" />
149
+
150
+                <ImageView
151
+                    android:layout_width="wrap_content"
152
+                    android:layout_height="wrap_content"
153
+                    android:layout_gravity="center_vertical"
154
+                    android:src="@mipmap/goin_220619" />
155
+            </LinearLayout>
156
+
157
+            <View
158
+                android:layout_width="match_parent"
159
+                android:layout_height="0.5dp"
160
+                android:layout_marginTop="16dp"
161
+                android:background="@color/gray_e5e5e5" />
162
+
163
+            <LinearLayout
164
+                android:id="@+id/ll_third_party_binding"
165
+                android:layout_width="match_parent"
87 166
                 android:layout_height="wrap_content"
88
-                android:layout_gravity="center_vertical"
89
-                android:src="@mipmap/goin_220619" />
90
-        </LinearLayout>
91
-
92
-        <View
93
-            android:layout_width="match_parent"
94
-            android:layout_height="0.5dp"
95
-            android:layout_marginTop="16dp"
96
-            android:background="@color/gray_e5e5e5" />
97
-
98
-
99
-        <LinearLayout
100
-            android:layout_width="match_parent"
101
-            android:layout_height="wrap_content"
102
-            android:layout_marginTop="16dp"
103
-            android:orientation="horizontal"
104
-            android:visibility="gone">
105
-
106
-            <TextView
107
-                android:layout_width="0dp"
167
+                android:layout_marginTop="16dp"
168
+                android:orientation="horizontal">
169
+
170
+                <TextView
171
+                    android:layout_width="0dp"
172
+                    android:layout_height="wrap_content"
173
+                    android:layout_weight="1"
174
+                    android:text="@string/three_party_account_binding"
175
+                    android:textColor="@color/black_333333"
176
+                    android:textSize="15sp" />
177
+
178
+                <ImageView
179
+                    android:layout_width="wrap_content"
180
+                    android:layout_height="wrap_content"
181
+                    android:layout_gravity="center_vertical"
182
+                    android:src="@mipmap/goin_220619" />
183
+            </LinearLayout>
184
+
185
+            <View
186
+                android:layout_width="match_parent"
187
+                android:layout_height="0.5dp"
188
+                android:layout_marginTop="16dp"
189
+                android:background="@color/gray_e5e5e5" />
190
+
191
+            <LinearLayout
192
+                android:id="@+id/ll_personalization_options"
193
+                android:layout_width="match_parent"
108 194
                 android:layout_height="wrap_content"
109
-                android:layout_weight="1"
110
-                android:text="@string/safety_certificate"
111
-                android:textColor="@color/black_333333"
112
-                android:textSize="15sp" />
113
-
114
-            <ImageView
115
-                android:layout_width="wrap_content"
195
+                android:layout_marginTop="16dp"
196
+                android:orientation="horizontal">
197
+
198
+                <TextView
199
+                    android:layout_width="0dp"
200
+                    android:layout_height="wrap_content"
201
+                    android:layout_weight="1"
202
+                    android:text="@string/personalization_options"
203
+                    android:textColor="@color/black_333333"
204
+                    android:textSize="15sp" />
205
+
206
+                <ImageView
207
+                    android:layout_width="wrap_content"
208
+                    android:layout_height="wrap_content"
209
+                    android:layout_gravity="center_vertical"
210
+                    android:src="@mipmap/goin_220619" />
211
+            </LinearLayout>
212
+
213
+            <View
214
+                android:layout_width="match_parent"
215
+                android:layout_height="0.5dp"
216
+                android:layout_marginTop="16dp"
217
+                android:background="@color/gray_e5e5e5" />
218
+
219
+            <LinearLayout
220
+                android:id="@+id/ll_service_agreement"
221
+                android:layout_width="match_parent"
116 222
                 android:layout_height="wrap_content"
117
-                android:layout_gravity="center_vertical"
118
-                android:src="@mipmap/goin_220619" />
119
-        </LinearLayout>
120
-
121
-        <View
122
-            android:layout_width="match_parent"
123
-            android:layout_height="0.5dp"
124
-            android:layout_marginTop="16dp"
125
-            android:background="@color/gray_e5e5e5"
126
-            android:visibility="gone" />
127
-
128
-        <LinearLayout
129
-            android:id="@+id/ll_real_name_authentication"
130
-            android:layout_width="match_parent"
131
-            android:layout_height="wrap_content"
132
-            android:layout_marginTop="16dp"
133
-            android:orientation="horizontal">
134
-
135
-            <TextView
136
-                android:layout_width="0dp"
223
+                android:layout_marginTop="16dp"
224
+                android:orientation="horizontal">
225
+
226
+                <TextView
227
+                    android:layout_width="0dp"
228
+                    android:layout_height="wrap_content"
229
+                    android:layout_weight="1"
230
+                    android:text="@string/service_agreement"
231
+                    android:textColor="@color/black_333333"
232
+                    android:textSize="15sp" />
233
+
234
+                <ImageView
235
+                    android:layout_width="wrap_content"
236
+                    android:layout_height="wrap_content"
237
+                    android:layout_gravity="center_vertical"
238
+                    android:src="@mipmap/goin_220619" />
239
+            </LinearLayout>
240
+
241
+            <View
242
+                android:layout_width="match_parent"
243
+                android:layout_height="0.5dp"
244
+                android:layout_marginTop="16dp"
245
+                android:background="@color/gray_e5e5e5" />
246
+
247
+            <LinearLayout
248
+                android:id="@+id/ll_privacy_agreement"
249
+                android:layout_width="match_parent"
137 250
                 android:layout_height="wrap_content"
138
-                android:layout_weight="1"
139
-                android:text="@string/real_name_authentication"
140
-                android:textColor="@color/black_333333"
141
-                android:textSize="15sp" />
142
-
143
-            <ImageView
144
-                android:layout_width="wrap_content"
251
+                android:layout_marginTop="16dp"
252
+                android:orientation="horizontal">
253
+
254
+                <TextView
255
+                    android:layout_width="0dp"
256
+                    android:layout_height="wrap_content"
257
+                    android:layout_weight="1"
258
+                    android:text="@string/privacy_agreement"
259
+                    android:textColor="@color/black_333333"
260
+                    android:textSize="15sp" />
261
+
262
+                <ImageView
263
+                    android:layout_width="wrap_content"
264
+                    android:layout_height="wrap_content"
265
+                    android:layout_gravity="center_vertical"
266
+                    android:src="@mipmap/goin_220619" />
267
+            </LinearLayout>
268
+
269
+            <View
270
+                android:layout_width="match_parent"
271
+                android:layout_height="0.5dp"
272
+                android:layout_marginTop="16dp"
273
+                android:background="@color/gray_e5e5e5" />
274
+
275
+            <LinearLayout
276
+                android:id="@+id/ll_clear_cache"
277
+                android:layout_width="match_parent"
145 278
                 android:layout_height="wrap_content"
146
-                android:layout_gravity="center_vertical"
147
-                android:src="@mipmap/goin_220619" />
148
-        </LinearLayout>
149
-
150
-        <View
151
-            android:layout_width="match_parent"
152
-            android:layout_height="0.5dp"
153
-            android:layout_marginTop="16dp"
154
-            android:background="@color/gray_e5e5e5" />
155
-
156
-        <LinearLayout
157
-            android:id="@+id/ll_third_party_binding"
158
-            android:layout_width="match_parent"
159
-            android:layout_height="wrap_content"
160
-            android:layout_marginTop="16dp"
161
-            android:orientation="horizontal">
162
-
163
-            <TextView
164
-                android:layout_width="0dp"
279
+                android:layout_marginTop="16dp"
280
+                android:orientation="horizontal">
281
+
282
+                <TextView
283
+                    android:layout_width="0dp"
284
+                    android:layout_height="wrap_content"
285
+                    android:layout_weight="1"
286
+                    android:text="@string/clear_cache"
287
+                    android:textColor="@color/black_333333"
288
+                    android:textSize="15sp" />
289
+
290
+                <TextView
291
+                    android:id="@+id/tv_cache_size"
292
+                    android:layout_width="wrap_content"
293
+                    android:layout_height="wrap_content"
294
+                    android:paddingRight="5dp"
295
+                    android:text="0B"
296
+                    android:textColor="@color/black_5f6060"
297
+                    android:textSize="13sp" />
298
+
299
+                <ImageView
300
+                    android:layout_width="wrap_content"
301
+                    android:layout_height="wrap_content"
302
+                    android:layout_gravity="center_vertical"
303
+                    android:src="@mipmap/goin_220619" />
304
+            </LinearLayout>
305
+
306
+            <View
307
+                android:layout_width="match_parent"
308
+                android:layout_height="0.5dp"
309
+                android:layout_marginTop="16dp"
310
+                android:background="@color/gray_e5e5e5" />
311
+
312
+            <LinearLayout
313
+                android:id="@+id/ll_log_out_of_an_account"
314
+                android:layout_width="match_parent"
165 315
                 android:layout_height="wrap_content"
166
-                android:layout_weight="1"
167
-                android:text="@string/three_party_account_binding"
168
-                android:textColor="@color/black_333333"
169
-                android:textSize="15sp" />
316
+                android:layout_marginTop="16dp"
317
+                android:orientation="horizontal">
170 318
 
171
-            <ImageView
172
-                android:layout_width="wrap_content"
173
-                android:layout_height="wrap_content"
174
-                android:layout_gravity="center_vertical"
175
-                android:src="@mipmap/goin_220619" />
176
-        </LinearLayout>
319
+                <TextView
320
+                    android:layout_width="0dp"
321
+                    android:layout_height="wrap_content"
322
+                    android:layout_weight="1"
323
+                    android:text="@string/log_out_of_an_account"
324
+                    android:textColor="@color/black_333333"
325
+                    android:textSize="15sp" />
177 326
 
178
-        <View
179
-            android:layout_width="match_parent"
180
-            android:layout_height="0.5dp"
181
-            android:layout_marginTop="16dp"
182
-            android:background="@color/gray_e5e5e5" />
327
+                <ImageView
328
+                    android:layout_width="wrap_content"
329
+                    android:layout_height="wrap_content"
330
+                    android:layout_gravity="center_vertical"
331
+                    android:src="@mipmap/goin_220619" />
332
+            </LinearLayout>
183 333
 
184
-        <LinearLayout
185
-            android:id="@+id/ll_personalization_options"
186
-            android:layout_width="match_parent"
187
-            android:layout_height="wrap_content"
188
-            android:layout_marginTop="16dp"
189
-            android:orientation="horizontal">
190
-
191
-            <TextView
192
-                android:layout_width="0dp"
193
-                android:layout_height="wrap_content"
194
-                android:layout_weight="1"
195
-                android:text="@string/personalization_options"
196
-                android:textColor="@color/black_333333"
197
-                android:textSize="15sp" />
198 334
 
199
-            <ImageView
200
-                android:layout_width="wrap_content"
201
-                android:layout_height="wrap_content"
202
-                android:layout_gravity="center_vertical"
203
-                android:src="@mipmap/goin_220619" />
204 335
         </LinearLayout>
336
+    </ScrollView>
205 337
 
206
-        <View
207
-            android:layout_width="match_parent"
208
-            android:layout_height="0.5dp"
209
-            android:layout_marginTop="16dp"
210
-            android:background="@color/gray_e5e5e5"
211
-       />
212
-
213
-        <LinearLayout
214
-            android:id="@+id/ll_service_agreement"
215
-            android:layout_width="match_parent"
216
-            android:layout_height="wrap_content"
217
-            android:layout_marginTop="16dp"
218
-            android:orientation="horizontal">
219
-
220
-            <TextView
221
-                android:layout_width="0dp"
222
-                android:layout_height="wrap_content"
223
-                android:layout_weight="1"
224
-                android:text="@string/service_agreement"
225
-                android:textColor="@color/black_333333"
226
-                android:textSize="15sp" />
227
-
228
-            <ImageView
229
-                android:layout_width="wrap_content"
230
-                android:layout_height="wrap_content"
231
-                android:layout_gravity="center_vertical"
232
-                android:src="@mipmap/goin_220619" />
233
-        </LinearLayout>
234
-
235
-        <View
236
-            android:layout_width="match_parent"
237
-            android:layout_height="0.5dp"
238
-            android:layout_marginTop="16dp"
239
-            android:background="@color/gray_e5e5e5" />
240
-
241
-        <LinearLayout
242
-            android:id="@+id/ll_privacy_agreement"
243
-            android:layout_width="match_parent"
244
-            android:layout_height="wrap_content"
245
-            android:layout_marginTop="16dp"
246
-            android:orientation="horizontal">
247
-
248
-            <TextView
249
-                android:layout_width="0dp"
250
-                android:layout_height="wrap_content"
251
-                android:layout_weight="1"
252
-                android:text="@string/privacy_agreement"
253
-                android:textColor="@color/black_333333"
254
-                android:textSize="15sp" />
255
-
256
-            <ImageView
257
-                android:layout_width="wrap_content"
258
-                android:layout_height="wrap_content"
259
-                android:layout_gravity="center_vertical"
260
-                android:src="@mipmap/goin_220619" />
261
-        </LinearLayout>
262
-        <View
263
-            android:layout_width="match_parent"
264
-            android:layout_height="0.5dp"
265
-            android:layout_marginTop="16dp"
266
-            android:background="@color/gray_e5e5e5" />
267
-
268
-        <LinearLayout
269
-            android:id="@+id/ll_clear_cache"
270
-            android:layout_width="match_parent"
271
-            android:layout_height="wrap_content"
272
-            android:layout_marginTop="16dp"
273
-            android:orientation="horizontal">
274
-
275
-            <TextView
276
-                android:layout_width="0dp"
277
-                android:layout_height="wrap_content"
278
-                android:layout_weight="1"
279
-                android:text="@string/clear_cache"
280
-                android:textColor="@color/black_333333"
281
-                android:textSize="15sp" />
282
-            <TextView
283
-                android:id="@+id/tv_cache_size"
284
-                android:layout_width="wrap_content"
285
-                android:layout_height="wrap_content"
286
-                android:text="0B"
287
-                android:textColor="@color/black_5f6060"
288
-                android:textSize="13sp"
289
-                android:paddingRight="5dp"
290
-                />
291
-            <ImageView
292
-                android:layout_width="wrap_content"
293
-                android:layout_height="wrap_content"
294
-                android:src="@mipmap/goin_220619"
295
-                android:layout_gravity="center_vertical"
296
-                />
297
-        </LinearLayout>
298
-
299
-        <View
300
-            android:layout_width="match_parent"
301
-            android:layout_height="0.5dp"
302
-            android:layout_marginTop="16dp"
303
-            android:background="@color/gray_e5e5e5" />
304
-
305
-        <LinearLayout
306
-            android:id="@+id/ll_log_out_of_an_account"
307
-            android:layout_width="match_parent"
308
-            android:layout_height="wrap_content"
309
-            android:layout_marginTop="16dp"
310
-            android:orientation="horizontal">
311
-
312
-            <TextView
313
-                android:layout_width="0dp"
314
-                android:layout_height="wrap_content"
315
-                android:layout_weight="1"
316
-                android:text="@string/log_out_of_an_account"
317
-                android:textColor="@color/black_333333"
318
-                android:textSize="15sp" />
319
-
320
-            <ImageView
321
-                android:layout_width="wrap_content"
322
-                android:layout_height="wrap_content"
323
-                android:layout_gravity="center_vertical"
324
-                android:src="@mipmap/goin_220619" />
325
-        </LinearLayout>
326
-
327
-
328
-    </LinearLayout>
329 338
 
330 339
     <View
331 340
         android:layout_width="1dp"
332 341
         android:layout_height="0dp"
333
-        android:layout_weight="1"></View>
342
+        android:layout_weight="1" />
334 343
 
335 344
     <TextView
336 345
         android:id="@+id/tv_log_out"

+ 75 - 0
app/src/main/res/layout/item_annuity_records.xml

@@ -0,0 +1,75 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
+    android:layout_width="match_parent"
4
+    android:layout_height="150dp"
5
+    xmlns:app="http://schemas.android.com/apk/res-auto"
6
+    android:padding="16dp"
7
+    android:layout_marginBottom="10dp"
8
+    android:background="@color/white">
9
+    <TextView
10
+        android:id="@+id/tv_order_no"
11
+        android:layout_width="wrap_content"
12
+        android:layout_height="wrap_content"
13
+        app:layout_constraintLeft_toLeftOf="parent"
14
+        app:layout_constraintTop_toTopOf="parent"
15
+        android:text="订单号:123456789"
16
+        android:textSize="12sp"
17
+        android:textColor="@color/black_333333"
18
+        />
19
+    <TextView
20
+        android:id="@+id/tv_status"
21
+        android:layout_width="wrap_content"
22
+        android:layout_height="wrap_content"
23
+        app:layout_constraintRight_toRightOf="parent"
24
+        app:layout_constraintTop_toTopOf="parent"
25
+        android:text="未结算"
26
+        android:textSize="12sp"
27
+        android:textColor="@color/gray_666666"
28
+        />
29
+    <ImageView
30
+        android:id="@+id/imgv_product"
31
+        android:layout_width="95dp"
32
+        android:layout_height="95dp"
33
+        app:layout_constraintTop_toBottomOf="@+id/tv_order_no"
34
+        app:layout_constraintBottom_toBottomOf="parent"
35
+        app:layout_constraintLeft_toLeftOf="@+id/tv_order_no"
36
+        android:layout_marginTop="13dp"
37
+        />
38
+    <TextView
39
+        android:id="@+id/tv_product_name"
40
+        android:layout_width="wrap_content"
41
+        android:layout_height="wrap_content"
42
+        app:layout_constraintLeft_toRightOf="@+id/imgv_product"
43
+        app:layout_constraintTop_toTopOf="@+id/imgv_product"
44
+        android:text="这是商品名称这是商品名称这是商品名称这是商品名称这是商品名称这是…"
45
+        android:textSize="14sp"
46
+        android:textColor="@color/black_333333"
47
+        android:layout_marginLeft="8dp"
48
+        android:maxLines="2"
49
+        android:ellipsize="end"
50
+        />
51
+    <TextView
52
+        android:id="@+id/tv_product_order_time"
53
+        android:layout_width="wrap_content"
54
+        android:layout_height="wrap_content"
55
+        app:layout_constraintLeft_toLeftOf="@+id/tv_product_name"
56
+        app:layout_constraintTop_toBottomOf="@+id/tv_product_name"
57
+        android:text="下单时间:2023-12-31 09:06:30"
58
+        android:textSize="12sp"
59
+        android:textColor="@color/gray_666666"
60
+        android:maxLines="2"
61
+        android:ellipsize="end"
62
+        android:layout_marginTop="6dp"
63
+        />
64
+    <TextView
65
+        android:id="@+id/tv_value_ylj"
66
+        android:layout_width="wrap_content"
67
+        android:layout_height="wrap_content"
68
+        app:layout_constraintLeft_toLeftOf="@+id/tv_product_name"
69
+        app:layout_constraintBottom_toBottomOf="@+id/imgv_product"
70
+        android:text="预估养老金0.14元"
71
+        android:textSize="13sp"
72
+        android:textColor="@color/black_333333"
73
+        android:paddingBottom="2dp"
74
+        />
75
+</androidx.constraintlayout.widget.ConstraintLayout>

+ 22 - 0
app/src/main/res/layout/item_annuity_selector.xml

@@ -0,0 +1,22 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
+    android:layout_width="wrap_content"
4
+    android:layout_height="wrap_content"
5
+    android:paddingTop="6dp"
6
+    android:paddingBottom="6dp"
7
+    >
8
+    <TextView
9
+        android:id="@+id/tv_item_name"
10
+        android:layout_width="wrap_content"
11
+        android:layout_height="wrap_content"
12
+        android:text="全部"
13
+        android:textColor="@color/red_fe0032"
14
+        android:textSize="14sp"
15
+        android:background="@drawable/shape_line_fe0032_fff1f2_50dp"
16
+        android:paddingTop="8dp"
17
+        android:paddingBottom="8dp"
18
+        android:layout_marginLeft="3dp"
19
+        android:layout_marginRight="3dp"
20
+        android:gravity="center"
21
+        />
22
+</RelativeLayout>

+ 100 - 0
app/src/main/res/layout/popwindow_annuity_records_selector.xml

@@ -0,0 +1,100 @@
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
+    android:layout_width="match_parent"
5
+    android:layout_height="match_parent"
6
+    android:background="@color/white"
7
+    android:paddingTop="16dp"
8
+    >
9
+
10
+    <TextView
11
+        android:id="@+id/tv_source_title"
12
+        android:layout_width="wrap_content"
13
+        android:layout_height="wrap_content"
14
+        android:text="订单来源"
15
+        android:textColor="@color/black_333333"
16
+        android:textSize="15sp"
17
+        app:layout_constraintLeft_toLeftOf="parent"
18
+        app:layout_constraintTop_toTopOf="parent"
19
+        android:layout_marginLeft="16dp"
20
+        android:layout_marginRight="16dp"
21
+        />
22
+
23
+    <androidx.recyclerview.widget.RecyclerView
24
+        android:id="@+id/rv_source_item"
25
+        android:layout_width="match_parent"
26
+        android:layout_height="wrap_content"
27
+        android:layout_marginLeft="16dp"
28
+        android:layout_marginRight="16dp"
29
+        app:layout_constraintLeft_toLeftOf="parent"
30
+        app:layout_constraintTop_toBottomOf="@+id/tv_source_title" />
31
+
32
+    <TextView
33
+        android:id="@+id/tv_status_title"
34
+        android:layout_width="wrap_content"
35
+        android:layout_height="wrap_content"
36
+        android:layout_marginTop="13dp"
37
+        android:text="订单来源"
38
+        android:textColor="@color/black_333333"
39
+        android:textSize="15sp"
40
+        android:layout_marginLeft="16dp"
41
+        android:layout_marginRight="16dp"
42
+        app:layout_constraintLeft_toLeftOf="parent"
43
+        app:layout_constraintTop_toBottomOf="@+id/rv_source_item" />
44
+
45
+    <androidx.recyclerview.widget.RecyclerView
46
+        android:id="@+id/rv_status_item"
47
+        android:layout_width="match_parent"
48
+        android:layout_height="wrap_content"
49
+        android:layout_marginLeft="16dp"
50
+        android:layout_marginRight="16dp"
51
+        app:layout_constraintLeft_toLeftOf="parent"
52
+        app:layout_constraintTop_toBottomOf="@+id/tv_status_title" />
53
+
54
+    <TextView
55
+        android:id="@+id/tv_reset"
56
+        android:layout_width="0dp"
57
+        android:layout_height="wrap_content"
58
+        android:layout_marginRight="3dp"
59
+        android:background="@drawable/shape_line_999999_50dp"
60
+        android:gravity="center"
61
+        android:paddingTop="10dp"
62
+        android:paddingBottom="10dp"
63
+        android:text="重置"
64
+        android:layout_marginLeft="16dp"
65
+        android:textColor="@color/black_333333"
66
+        android:textSize="17sp"
67
+        app:layout_constraintLeft_toLeftOf="parent"
68
+        app:layout_constraintRight_toLeftOf="@+id/tv_confirm"
69
+        app:layout_constraintTop_toBottomOf="@+id/rv_status_item"
70
+        android:layout_marginTop="20dp"
71
+        />
72
+
73
+    <TextView
74
+        android:id="@+id/tv_confirm"
75
+        android:layout_width="0dp"
76
+        android:layout_height="wrap_content"
77
+        android:layout_marginLeft="3dp"
78
+        android:layout_marginRight="16dp"
79
+        android:background="@drawable/shape_fe0032_50dp"
80
+        android:gravity="center"
81
+        android:paddingTop="10dp"
82
+        android:paddingBottom="10dp"
83
+        android:text="确定"
84
+        android:textColor="@color/white"
85
+        android:textSize="17sp"
86
+        app:layout_constraintLeft_toRightOf="@+id/tv_reset"
87
+        app:layout_constraintRight_toRightOf="parent"
88
+        app:layout_constraintTop_toTopOf="@+id/tv_reset" />
89
+    <View
90
+        android:id="@+id/view_bg"
91
+        android:layout_width="match_parent"
92
+        android:layout_height="0dp"
93
+        android:background="@color/black"
94
+        app:layout_constraintVertical_weight="1"
95
+        android:alpha="0.5"
96
+        android:layout_marginTop="25dp"
97
+        app:layout_constraintTop_toBottomOf="@+id/tv_reset"
98
+        app:layout_constraintBottom_toBottomOf="parent"
99
+        />
100
+</androidx.constraintlayout.widget.ConstraintLayout>

二進制
app/src/main/res/mipmap-xxxhdpi/bg_annuity_record.png


二進制
app/src/main/res/mipmap-xxxhdpi/bg_annuity_top.png


二進制
app/src/main/res/mipmap-xxxhdpi/icon_jt_right_333333.png


二進制
app/src/main/res/mipmap-xxxhdpi/img_real_name.png


二進制
app/src/main/res/mipmap-xxxhdpi/ylj_rz_220914.png


二進制
app/src/main/res/mipmap-xxxhdpi/ylj_rz_220914_bangding.png


二進制
app/src/main/res/mipmap-xxxhdpi/ylj_rz_220914_jiesuan.png


二進制
app/src/main/res/mipmap-xxxhdpi/ylj_rz_220914_renzheng.png