Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RvApp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lify
RvApp
Commits
6e80e712
Commit
6e80e712
authored
Nov 06, 2019
by
jianglx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加会员使用代金券;修改QQ海报分享不了的问题
parent
e4582669
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
304 additions
and
734 deletions
+304
-734
Constance.java
MyFrame/src/main/java/com/frame/base/url/Constance.java
+1
-0
build.gradle
RvClient/build.gradle
+2
-2
build.gradle
component_dialog/build.gradle
+1
-1
rv_dialog_paymant_type_selection.xml
.../src/main/res/layout/rv_dialog_paymant_type_selection.xml
+75
-35
activity_mine.xml
module_mine/src/dev/res/layout/activity_mine.xml
+0
-617
CarCouponAdapter.java
...c/main/java/com/xxrv/coupon/adapter/CarCouponAdapter.java
+5
-1
ExpiredCouponAdapter.java
...in/java/com/xxrv/coupon/adapter/ExpiredCouponAdapter.java
+14
-10
UsedCouponAdapter.java
.../main/java/com/xxrv/coupon/adapter/UsedCouponAdapter.java
+5
-1
WaitCouponAdapter.java
.../main/java/com/xxrv/coupon/adapter/WaitCouponAdapter.java
+15
-13
CarCouponBean.java
...pon/src/main/java/com/xxrv/coupon/bean/CarCouponBean.java
+9
-0
CouponBean.java
...coupon/src/main/java/com/xxrv/coupon/bean/CouponBean.java
+9
-0
WaitCouponFragment.java
...ain/java/com/xxrv/coupon/fragment/WaitCouponFragment.java
+5
-0
MemberCenterActivity.java
...ber/src/main/java/com/rv.member/MemberCenterActivity.java
+134
-37
MemberOrderPostBodyBean.java
...main/java/com/rv.member/bean/MemberOrderPostBodyBean.java
+7
-7
MemberPresenter.java
...rc/main/java/com/rv.member/presenter/MemberPresenter.java
+2
-2
BillActivity.java
plugin_share/src/main/java/com/rv/share/BillActivity.java
+0
-1
PopularizeActivity.java
..._share/src/main/java/com/rv/share/PopularizeActivity.java
+2
-1
ReativeBillActivity.java
...share/src/main/java/com/rv/share/ReativeBillActivity.java
+3
-5
PopularizeBean.java
...share/src/main/java/com/rv/share/bean/PopularizeBean.java
+9
-0
ReativeBillPresenter.java
...ain/java/com/rv/share/presenter/ReativeBillPresenter.java
+6
-1
No files found.
MyFrame/src/main/java/com/frame/base/url/Constance.java
View file @
6e80e712
...
...
@@ -4,6 +4,7 @@ package com.frame.base.url;
* ARouter上面的注解需要我们写路径标识
*/
public
final
class
Constance
{
public
static
final
String
ACTIVITY_URL_ORDERLIST
=
"/order/OrderListActivity"
;
public
static
final
String
ACTIVITY_URL_CHOOSEAVISITOR
=
"/traveler/ChooseAVisitorActivity"
;
...
...
RvClient/build.gradle
View file @
6e80e712
...
...
@@ -8,8 +8,8 @@ android {
minSdkVersion
rootProject
.
ext
.
minSdkVersion
targetSdkVersion
rootProject
.
ext
.
targetSdkVersion
flavorDimensions
"default"
versionCode
15
1
versionName
"1.5.
1
"
versionCode
15
2
versionName
"1.5.
2
"
multiDexEnabled
true
...
...
component_dialog/build.gradle
View file @
6e80e712
...
...
@@ -40,5 +40,5 @@ dependencies {
annotationProcessor
'com.jakewharton:butterknife-compiler:9.0.0-rc1'
api
project
(
':RvWrapper'
)
api
project
(
':component_resource'
)
implementation
project
(
':component_control'
)
}
component_dialog/src/main/res/layout/rv_dialog_paymant_type_selection.xml
View file @
6e80e712
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"match_parent"
android:
orientation=
"vertical
"
android:
layout_height=
"wrap_content
"
android:background=
"@color/colorWrite"
android:
layout_height=
"wrap_content
"
>
android:
orientation=
"vertical
"
>
<RelativeLayout
android:paddingRight=
"@dimen/size_15"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_60"
>
android:layout_height=
"@dimen/size_60"
android:paddingRight=
"@dimen/size_15"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:text
Size=
"@dimen/text_16
"
android:text
=
"请选择支付方式
"
android:textColor=
"@color/textMain"
android:text
=
"请选择支付方式"
/>
android:text
Size=
"@dimen/text_16"
/>
<ImageView
android:id=
"@+id/iv_close"
android:layout_width=
"@dimen/size_30"
android:layout_height=
"@dimen/size_30"
android:padding=
"@dimen/size_5"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:src=
"@drawable/common_btn_close"
/>
android:padding=
"@dimen/size_5"
android:src=
"@drawable/common_btn_close"
/>
</RelativeLayout>
<include
layout=
"@layout/common_line"
/>
<include
layout=
"@layout/common_line"
/>
<LinearLayout
android:layout_width=
"match_parent"
...
...
@@ -38,41 +40,41 @@
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text
Size=
"@dimen/text_16
"
android:text
=
"实付金额:
"
android:textColor=
"@color/textMain"
android:text
=
"实付金额:"
/>
android:text
Size=
"@dimen/text_16"
/>
<TextView
android:id=
"@+id/tv_amount"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text
Size=
"@dimen/text_16
"
android:text
=
"¥0
"
android:textColor=
"@color/colorAuxiliaryRed"
android:text
=
"¥0"
/>
android:text
Size=
"@dimen/text_16"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/ll_item_wechat"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_70"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
android:paddingLeft=
"@dimen/size_15"
android:paddingRight=
"@dimen/size_15"
android:gravity=
"center_vertical"
>
android:paddingRight=
"@dimen/size_15"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/text_16"
android:textColor=
"@color/textMain"
android:drawablePadding=
"@dimen/size_8"
android:drawableLeft=
"@drawable/common_icon_wechat_pay"
android:text=
"微信支付"
/>
android:drawablePadding=
"@dimen/size_8"
android:text=
"微信支付"
android:textColor=
"@color/textMain"
android:textSize=
"@dimen/text_16"
/>
<View
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
/>
android:layout_weight=
"1"
/>
<ImageView
android:id=
"@+id/iv_wx_select"
...
...
@@ -84,32 +86,33 @@
<View
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_half"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginRight=
"@dimen/size_15"
android:layout_height=
"@dimen/size_half"
android:background=
"@color/colorLine"
/>
android:background=
"@color/colorLine"
/>
<LinearLayout
android:id=
"@+id/ll_item_alipay"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_70"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
android:paddingLeft=
"@dimen/size_15"
android:paddingRight=
"@dimen/size_15"
android:gravity=
"center_vertical"
>
android:paddingRight=
"@dimen/size_15"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/text_16"
android:textColor=
"@color/textMain"
android:drawablePadding=
"@dimen/size_8"
android:drawableLeft=
"@drawable/common_icon_alipay"
android:text=
"支付宝支付"
/>
android:drawablePadding=
"@dimen/size_8"
android:text=
"支付宝支付"
android:textColor=
"@color/textMain"
android:textSize=
"@dimen/text_16"
/>
<View
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
/>
android:layout_weight=
"1"
/>
<ImageView
android:id=
"@+id/iv_alipy_select"
...
...
@@ -120,24 +123,61 @@
<View
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_half"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginRight=
"@dimen/size_15"
android:background=
"@color/colorLine"
/>
<LinearLayout
android:id=
"@+id/ll_item_coupon"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_70"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
android:paddingLeft=
"@dimen/size_15"
android:paddingRight=
"@dimen/size_15"
android:visibility=
"gone"
>
<TextView
android:id=
"@+id/tv_coupon_number"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:drawablePadding=
"@dimen/size_8"
android:textColor=
"@color/textMain"
android:textSize=
"@dimen/text_16"
/>
<com.rv.component.control.SwitchButton
android:id=
"@+id/sb_coupon_select"
android:layout_width=
"@dimen/size_45"
android:layout_height=
"@dimen/size_28"
app:sb_button_color=
"@color/colorWrite"
app:sb_checked_color=
"@color/gray_FFB74B"
app:sb_show_indicator=
"false"
app:sb_uncheckcircle_color=
"@color/textLightGrey"
/>
</LinearLayout>
<View
android:id=
"@+id/line_coupon"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_half"
android:background=
"@color/colorLine"
/>
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginRight=
"@dimen/size_15"
android:background=
"@color/colorLine"
android:visibility=
"gone"
/>
<TextView
android:id=
"@+id/tv_pay_immediately"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_50"
android:text=
"立即支付"
android:gravity=
"center"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginTop=
"@dimen/size_20"
android:layout_marginRight=
"@dimen/size_15"
android:layout_marginBottom=
"@dimen/size_15"
android:layout_marginTop=
"@dimen/size_20"
android:background=
"@drawable/shape_rv_bg_yellow"
android:gravity=
"center"
android:text=
"立即支付"
android:textColor=
"@color/colorWrite"
android:textSize=
"@dimen/text_16"
/>
android:textSize=
"@dimen/text_16"
/>
</LinearLayout>
\ No newline at end of file
module_mine/src/dev/res/layout/activity_mine.xml
deleted
100644 → 0
View file @
e4582669
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/colorLine"
android:orientation=
"vertical"
>
<com.ruiwenliu.wrapper.weight.refresh.SimpleRefreshLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/refresh"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<ScrollView
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<LinearLayout
android:id=
"@+id/travel_fragment_layout"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_240"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"190dp"
android:background=
"@drawable/mycenter_image_bg"
android:orientation=
"vertical"
>
<com.ruiwenliu.wrapper.statusbar.StatusBarHeightView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentEnd=
"true"
android:layout_marginEnd=
"@dimen/size_5"
android:orientation=
"vertical"
app:use_type=
"use_padding_top"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_8"
android:layout_marginTop=
"@dimen/size_10"
android:layout_marginRight=
"@dimen/size_8"
android:orientation=
"horizontal"
>
<ImageView
android:id=
"@+id/iv_item_message"
android:layout_width=
"@dimen/size_35"
android:layout_height=
"@dimen/size_35"
android:padding=
"@dimen/size_8"
android:src=
"@drawable/mycenter_icon_message"
/>
<ImageView
android:id=
"@+id/iv_item_setting"
android:layout_width=
"@dimen/size_35"
android:layout_height=
"@dimen/size_35"
android:layout_alignParentRight=
"true"
android:padding=
"@dimen/size_8"
android:src=
"@drawable/mycenter_icon_setting"
/>
</RelativeLayout>
</com.ruiwenliu.wrapper.statusbar.StatusBarHeightView>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_200"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginTop=
"@dimen/size_80"
android:layout_marginRight=
"@dimen/size_15"
android:background=
"@drawable/shape_rv_bg_write"
android:orientation=
"vertical"
android:padding=
"@dimen/size_10"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
<com.base.utils.ui.image.round.RoundImageView
android:id=
"@+id/iv_avatar"
android:layout_width=
"@dimen/size_60"
android:layout_height=
"@dimen/size_60"
android:src=
"@drawable/common_icon_avatar_default"
android:transitionName=
"sharedView"
/>
<LinearLayout
android:layout_width=
"0dp"
android:layout_height=
"@dimen/size_60"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_weight=
"1"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/tv_nickname"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:ellipsize=
"end"
android:singleLine=
"true"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_16"
android:visibility=
"gone"
/>
<TextView
android:id=
"@+id/tv_user_identity"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_5"
android:background=
"@drawable/common_icon_user_type"
android:maxLines=
"1"
android:paddingLeft=
"@dimen/size_3"
android:paddingTop=
"@dimen/size_1"
android:paddingRight=
"@dimen/size_3"
android:paddingBottom=
"@dimen/size_1"
android:textColor=
"@color/colorGray"
android:textSize=
"@dimen/text_10"
android:visibility=
"gone"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"@dimen/size_15"
android:layout_marginTop=
"@dimen/text_10"
android:orientation=
"horizontal"
android:visibility=
"gone"
>
<ImageView
android:id=
"@+id/iv_member"
android:layout_width=
"@dimen/size_15"
android:layout_height=
"@dimen/size_15"
/>
<TextView
android:id=
"@+id/tv_member"
android:layout_width=
"wrap_content"
android:layout_height=
"@dimen/size_15"
android:layout_marginLeft=
"@dimen/size_2"
android:gravity=
"center"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_10"
/>
</LinearLayout>
<TextView
android:id=
"@+id/tv_login"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:paddingRight=
"@dimen/size_30"
android:text=
"点击登录"
android:textColor=
"@color/colorYellow"
android:textSize=
"@dimen/text_16"
android:visibility=
"visible"
/>
</LinearLayout>
<TextView
android:id=
"@+id/tv_verified"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:drawableRight=
"@drawable/common_icon_rig_gray"
android:drawablePadding=
"@dimen/size_3"
android:text=
"未实名认证"
android:textColor=
"@color/text_Gray"
android:textSize=
"@dimen/text_12"
android:visibility=
"gone"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_marginTop=
"@dimen/size_10"
android:layout_weight=
"1"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<LinearLayout
android:id=
"@+id/ll_item_integral"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center"
android:orientation=
"vertical"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"积分"
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_12"
/>
<TextView
android:id=
"@+id/tv_integral"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_8"
android:text=
"0"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_16"
android:textStyle=
"bold"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/ll_item_wallet"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center"
android:orientation=
"vertical"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"钱包"
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_12"
/>
<TextView
android:id=
"@+id/tv_wallet"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_8"
android:text=
"0"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_16"
android:textStyle=
"bold"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/ll_item_coupon"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center"
android:orientation=
"vertical"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"优惠券"
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_12"
/>
<TextView
android:id=
"@+id/tv_coupon"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_8"
android:text=
"0"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_16"
android:textStyle=
"bold"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/ll_item_promotion"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:clickable=
"false"
android:gravity=
"center"
android:orientation=
"vertical"
>
<ImageView
android:layout_width=
"@dimen/size_25"
android:layout_height=
"@dimen/size_25"
android:src=
"@drawable/mycenter_icon_promotion"
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_12"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_8"
android:text=
"推广有奖"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_12"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
<LinearLayout
android:id=
"@+id/ll_item_view_privileges"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_50"
android:layout_alignParentBottom=
"true"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginTop=
"@dimen/size_15"
android:layout_marginRight=
"@dimen/size_15"
android:layout_marginBottom=
"@dimen/size_15"
android:background=
"@drawable/resource_drawable_shape_member_bg"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<ImageView
android:layout_width=
"@dimen/size_30"
android:layout_height=
"@dimen/size_30"
android:layout_marginLeft=
"@dimen/size_10"
android:src=
"@drawable/mycenter_icon_weal"
/>
<LinearLayout
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_10"
android:layout_weight=
"1"
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/tv_membership_level"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"会员特权"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_14"
android:textStyle=
"bold"
/>
<TextView
android:id=
"@+id/tv_member_hint"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_2"
android:text=
"免费用车- -天"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_10"
/>
</LinearLayout>
<TextView
android:id=
"@+id/tv_item_view_privileges"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_marginRight=
"@dimen/size_15"
android:drawableRight=
"@drawable/common_icon_rig_black"
android:drawablePadding=
"@dimen/size_8"
android:gravity=
"center_vertical"
android:text=
"会员中心"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_12"
android:textStyle=
"bold"
/>
</LinearLayout>
<!--我的订单-->
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginRight=
"@dimen/size_15"
android:background=
"@drawable/shape_rv_bg_write"
android:orientation=
"vertical"
android:paddingLeft=
"@dimen/size_15"
android:paddingTop=
"@dimen/size_15"
android:paddingRight=
"@dimen/size_15"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/tv_my_order"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_16"
/>
<TextView
android:id=
"@+id/rl_item_order_all"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:drawableRight=
"@drawable/common_icon_rig_gray"
android:drawablePadding=
"@dimen/size_8"
android:paddingLeft=
"@dimen/size_30"
android:text=
"查看全部"
android:textColor=
"@color/text_Gray"
android:textSize=
"@dimen/text_12"
/>
</RelativeLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_30"
android:layout_marginBottom=
"@dimen/size_15"
android:orientation=
"horizontal"
>
<RelativeLayout
android:id=
"@+id/rl_item_to_be_paid"
android:layout_width=
"0dp"
android:layout_height=
"@dimen/size_60"
android:layout_weight=
"1"
android:orientation=
"vertical"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerHorizontal=
"true"
android:src=
"@drawable/mycenter_icon_unpaid"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"@dimen/size_10"
android:text=
"@string/tv_to_be_paid"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/size_12"
/>
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/rl_item_staying"
android:layout_width=
"0dp"
android:layout_height=
"@dimen/size_60"
android:layout_weight=
"1"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerHorizontal=
"true"
android:src=
"@drawable/mycenter_icon_toravel"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:layout_centerHorizontal=
"true"
android:text=
"@string/tv_staying"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/size_12"
/>
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/rl_item_traveling"
android:layout_width=
"0dp"
android:layout_height=
"@dimen/size_60"
android:layout_weight=
"1"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerHorizontal=
"true"
android:src=
"@drawable/mycenter_icon_inthe_travel"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:layout_centerHorizontal=
"true"
android:text=
"@string/tv_traveling"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/size_12"
/>
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/rl_item_completed"
android:layout_width=
"0dp"
android:layout_height=
"@dimen/size_60"
android:layout_weight=
"1"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerHorizontal=
"true"
android:src=
"@drawable/mycenter_icon_completed"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:layout_centerHorizontal=
"true"
android:text=
"@string/tv_completed"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/size_12"
/>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginTop=
"@dimen/size_15"
android:layout_marginRight=
"@dimen/size_15"
android:background=
"@drawable/shape_rv_bg_write"
android:orientation=
"horizontal"
android:paddingTop=
"@dimen/size_25"
android:paddingBottom=
"@dimen/size_15"
>
<RelativeLayout
android:id=
"@+id/rl_item_my_release"
android:layout_width=
"0dp"
android:layout_height=
"@dimen/size_60"
android:layout_weight=
"1"
android:orientation=
"vertical"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerHorizontal=
"true"
android:src=
"@drawable/mycenter_icon_issue"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"@dimen/size_18"
android:text=
"@string/tv_my_release"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/size_12"
/>
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/rl_item_collection"
android:layout_width=
"0dp"
android:layout_height=
"@dimen/size_60"
android:layout_weight=
"1"
android:orientation=
"vertical"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerHorizontal=
"true"
android:src=
"@drawable/mycenter_icon_collect"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"@dimen/size_18"
android:text=
"@string/tv_collection"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/size_12"
/>
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/rl_item_check_in"
android:layout_width=
"0dp"
android:layout_height=
"@dimen/size_60"
android:layout_weight=
"1"
android:orientation=
"vertical"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerHorizontal=
"true"
android:src=
"@drawable/mycenter_icon_personal_"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"@dimen/size_18"
android:text=
"签到"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/size_12"
/>
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/rl_item_travel_management"
android:layout_width=
"0dp"
android:layout_height=
"@dimen/size_60"
android:layout_weight=
"1"
android:orientation=
"vertical"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerHorizontal=
"true"
android:src=
"@drawable/mycenter_icon_travel_management"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"@dimen/size_18"
android:text=
"出游管理"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/size_12"
/>
</RelativeLayout>
</LinearLayout>
<com.yuyife.banner.Banner
android:id=
"@+id/mine_banner"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_100"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginTop=
"@dimen/size_15"
android:layout_marginRight=
"@dimen/size_15"
/>
</LinearLayout>
</ScrollView>
</com.ruiwenliu.wrapper.weight.refresh.SimpleRefreshLayout>
</LinearLayout>
\ No newline at end of file
plugin_coupon/src/main/java/com/xxrv/coupon/adapter/CarCouponAdapter.java
View file @
6e80e712
package
com
.
xxrv
.
coupon
.
adapter
;
import
android.text.TextUtils
;
import
com.chad.library.adapter.base.BaseMultiItemQuickAdapter
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.chad.library.adapter.base.BaseViewHolder
;
...
...
@@ -46,7 +48,9 @@ public class CarCouponAdapter extends BaseMultiItemQuickAdapter<MultiItemEntity,
CarCouponBean
.
DataBean
.
CarCouponTypeDataBean
.
CarCouponDataBean
item
=
(
CarCouponBean
.
DataBean
.
CarCouponTypeDataBean
.
CarCouponDataBean
)
bean
;
helper
.
setText
(
R
.
id
.
tv_name
,
item
.
getTitle
());
helper
.
setText
(
R
.
id
.
tv_type
,
item
.
getSubtitle
());
helper
.
setText
(
R
.
id
.
tv_date
,
"有效期至"
+
DateUtils
.
timestampToString2
(
item
.
getExpireTime
()));
if
(!
TextUtils
.
isEmpty
(
item
.
getExpireDate
()))
helper
.
setText
(
R
.
id
.
tv_date
,
item
.
getExpireDate
());
// helper.setText(R.id.tv_date,"有效期至" + DateUtils.timestampToString2(item.getExpireTime()));
helper
.
setText
(
R
.
id
.
tv_amount
,
String
.
valueOf
(
item
.
getUsedAmount
()));
if
(
"1"
.
equals
(
item
.
getType
())){
//1满减券 2叠加满减券 3无门槛券
helper
.
setText
(
R
.
id
.
tv_condition
,
"满"
+
item
.
getWithAmount
()+
"减"
+
item
.
getUsedAmount
()+
"元"
);
...
...
plugin_coupon/src/main/java/com/xxrv/coupon/adapter/ExpiredCouponAdapter.java
View file @
6e80e712
package
com
.
xxrv
.
coupon
.
adapter
;
import
android.text.TextUtils
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.chad.library.adapter.base.BaseViewHolder
;
import
com.rv.component.utils.DateUtils
;
...
...
@@ -7,7 +9,7 @@ import com.xxrv.coupon.R;
import
com.xxrv.coupon.bean.CouponBean
;
/**
*
优惠券 已过期
* 优惠券 已过期
*/
public
class
ExpiredCouponAdapter
extends
BaseQuickAdapter
<
CouponBean
.
DataBean
,
BaseViewHolder
>
{
...
...
@@ -18,15 +20,17 @@ public class ExpiredCouponAdapter extends BaseQuickAdapter<CouponBean.DataBean,
@Override
protected
void
convert
(
BaseViewHolder
helper
,
CouponBean
.
DataBean
item
)
{
if
(
item
!=
null
){
helper
.
setText
(
R
.
id
.
tv_name
,
item
.
getTitle
());
helper
.
setText
(
R
.
id
.
tv_type
,
item
.
getSubtitle
());
helper
.
setText
(
R
.
id
.
tv_date
,
"有效期至"
+
DateUtils
.
timestampToString2
(
item
.
getExpireTime
()));
helper
.
setText
(
R
.
id
.
tv_amount
,
String
.
valueOf
(
item
.
getUsedAmount
()));
if
(
"1"
.
equals
(
item
.
getType
())){
//1满减券 2叠加满减券 3无门槛券
helper
.
setText
(
R
.
id
.
tv_condition
,
"满"
+
item
.
getWithAmount
()+
"减"
+
item
.
getUsedAmount
()+
"元"
);
}
else
if
(
"3"
.
equals
(
item
.
getType
())){
helper
.
setText
(
R
.
id
.
tv_condition
,
"无门槛"
);
if
(
item
!=
null
)
{
helper
.
setText
(
R
.
id
.
tv_name
,
item
.
getTitle
());
helper
.
setText
(
R
.
id
.
tv_type
,
item
.
getSubtitle
());
if
(!
TextUtils
.
isEmpty
(
item
.
getExpireDate
()))
helper
.
setText
(
R
.
id
.
tv_date
,
item
.
getExpireDate
());
// helper.setText(R.id.tv_date,"有效期至" + DateUtils.timestampToString2(item.getExpireTime()));
helper
.
setText
(
R
.
id
.
tv_amount
,
String
.
valueOf
(
item
.
getUsedAmount
()));
if
(
"1"
.
equals
(
item
.
getType
()))
{
//1满减券 2叠加满减券 3无门槛券
helper
.
setText
(
R
.
id
.
tv_condition
,
"满"
+
item
.
getWithAmount
()
+
"减"
+
item
.
getUsedAmount
()
+
"元"
);
}
else
if
(
"3"
.
equals
(
item
.
getType
()))
{
helper
.
setText
(
R
.
id
.
tv_condition
,
"无门槛"
);
}
}
...
...
plugin_coupon/src/main/java/com/xxrv/coupon/adapter/UsedCouponAdapter.java
View file @
6e80e712
package
com
.
xxrv
.
coupon
.
adapter
;
import
android.text.TextUtils
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.chad.library.adapter.base.BaseViewHolder
;
import
com.rv.component.utils.DateUtils
;
...
...
@@ -21,7 +23,9 @@ public class UsedCouponAdapter extends BaseQuickAdapter<CouponBean.DataBean, Bas
if
(
item
!=
null
){
helper
.
setText
(
R
.
id
.
tv_name
,
item
.
getTitle
());
helper
.
setText
(
R
.
id
.
tv_type
,
item
.
getSubtitle
());
helper
.
setText
(
R
.
id
.
tv_date
,
"有效期至"
+
DateUtils
.
timestampToString2
(
item
.
getExpireTime
()));
if
(!
TextUtils
.
isEmpty
(
item
.
getExpireDate
()))
helper
.
setText
(
R
.
id
.
tv_date
,
item
.
getExpireDate
());
// helper.setText(R.id.tv_date,"有效期至" + DateUtils.timestampToString2(item.getExpireTime()));
helper
.
setText
(
R
.
id
.
tv_amount
,
String
.
valueOf
(
item
.
getUsedAmount
()));
if
(
"1"
.
equals
(
item
.
getType
())){
//1满减券 2叠加满减券 3无门槛券
helper
.
setText
(
R
.
id
.
tv_condition
,
"满"
+
item
.
getWithAmount
()+
"减"
+
item
.
getUsedAmount
()+
"元"
);
...
...
plugin_coupon/src/main/java/com/xxrv/coupon/adapter/WaitCouponAdapter.java
View file @
6e80e712
package
com
.
xxrv
.
coupon
.
adapter
;
import
android.text.TextUtils
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.chad.library.adapter.base.BaseViewHolder
;
import
com.rv.component.utils.DateUtils
;
...
...
@@ -7,7 +9,7 @@ import com.xxrv.coupon.R;
import
com.xxrv.coupon.bean.CouponBean
;
/**
*优惠券 待使用
*
优惠券 待使用
*/
public
class
WaitCouponAdapter
extends
BaseQuickAdapter
<
CouponBean
.
DataBean
,
BaseViewHolder
>
{
...
...
@@ -18,17 +20,17 @@ public class WaitCouponAdapter extends BaseQuickAdapter<CouponBean.DataBean, Bas
@Override
protected
void
convert
(
BaseViewHolder
helper
,
CouponBean
.
DataBean
item
)
{
if
(
item
!=
null
)
{
helper
.
setText
(
R
.
id
.
tv_name
,
item
.
getTitle
());
helper
.
setText
(
R
.
id
.
tv_type
,
item
.
getSubtitle
());
helper
.
setText
(
R
.
id
.
tv_date
,
"有效期至"
+
DateUtils
.
timestampToString2
(
item
.
getExpireTime
()));
helper
.
setText
(
R
.
id
.
tv_amount
,
String
.
valueOf
(
item
.
getUsedAmount
()
));
if
(
"1"
.
equals
(
item
.
getType
())){
//1满减券 2叠加满减券 3无门槛券
helper
.
setText
(
R
.
id
.
tv_condition
,
"满"
+
item
.
getWithAmount
()+
"减"
+
item
.
getUsedAmount
()+
"元"
);
}
else
if
(
"3"
.
equals
(
item
.
getType
())){
helper
.
setText
(
R
.
id
.
tv_condition
,
"无门槛"
);
}
}
if
(
item
!=
null
)
{
helper
.
setText
(
R
.
id
.
tv_name
,
item
.
getTitle
());
helper
.
setText
(
R
.
id
.
tv_type
,
item
.
getSubtitle
());
if
(!
TextUtils
.
isEmpty
(
item
.
getExpireDate
()))
helper
.
setText
(
R
.
id
.
tv_date
,
item
.
getExpireDate
(
));
helper
.
setText
(
R
.
id
.
tv_amount
,
String
.
valueOf
(
item
.
getUsedAmount
()));
if
(
"1"
.
equals
(
item
.
getType
()))
{
//1满减券 2叠加满减券 3无门槛券
helper
.
setText
(
R
.
id
.
tv_condition
,
"满"
+
item
.
getWithAmount
()
+
"减"
+
item
.
getUsedAmount
()
+
"元"
);
}
else
if
(
"3"
.
equals
(
item
.
getType
()))
{
helper
.
setText
(
R
.
id
.
tv_condition
,
"无门槛"
);
}
}
}
}
plugin_coupon/src/main/java/com/xxrv/coupon/bean/CarCouponBean.java
View file @
6e80e712
...
...
@@ -80,6 +80,7 @@ public class CarCouponBean extends BaseBean {
private
long
crtTime
;
// ": 1563350412834,
private
long
startTime
;
// ": 1563331306739,
private
long
expireTime
;
// ": 1577760103000, 到期时间
private
String
expireDate
;
private
String
useTime
;
// ": 0,
private
String
title
;
// ": "租车券", 优惠券标题
private
String
subtitle
;
// ": "租车券", 副标题
...
...
@@ -281,6 +282,14 @@ public class CarCouponBean extends BaseBean {
this
.
isChecked
=
isChecked
;
}
public
String
getExpireDate
()
{
return
expireDate
;
}
public
void
setExpireDate
(
String
expireDate
)
{
this
.
expireDate
=
expireDate
;
}
@Override
public
int
getItemType
()
{
return
CarCouponAdapter
.
TYPE_CARCOUPON_NAME
;
...
...
plugin_coupon/src/main/java/com/xxrv/coupon/bean/CouponBean.java
View file @
6e80e712
...
...
@@ -35,6 +35,7 @@ public class CouponBean extends BaseBean {
private
long
crtTime
;
// ": 1563350412834,
private
long
startTime
;
// ": 1563331306739,
private
long
expireTime
;
// ": 1577760103000, 到期时间
private
String
expireDate
;
private
String
useTime
;
// ": 0,
private
String
title
;
// ": "租车券", 优惠券标题
private
String
subtitle
;
// ": "租车券", 副标题
...
...
@@ -226,5 +227,13 @@ public class CouponBean extends BaseBean {
public
void
setSubtitle
(
String
subtitle
)
{
this
.
subtitle
=
subtitle
;
}
public
String
getExpireDate
()
{
return
expireDate
;
}
public
void
setExpireDate
(
String
expireDate
)
{
this
.
expireDate
=
expireDate
;
}
}
}
plugin_coupon/src/main/java/com/xxrv/coupon/fragment/WaitCouponFragment.java
View file @
6e80e712
...
...
@@ -77,6 +77,11 @@ public class WaitCouponFragment extends BaseFragment<CouponAllPresenter> impleme
intent
.
setComponent
(
new
ComponentName
(
getContext
(),
"com.xxfc.rv.MainActivity"
));
intent
.
putExtra
(
"to"
,
"travel"
);
startActivity
(
intent
);
}
else
if
(
"4"
.
equals
(
bean
.
getChannel
())){
Intent
intent
=
new
Intent
();
intent
.
setComponent
(
new
ComponentName
(
getContext
(),
"com.rv.member.MemberCenterActivity"
));
startActivity
(
intent
);
_mActivity
.
finish
();
}
}
});
...
...
plugin_member/src/main/java/com/rv.member/MemberCenterActivity.java
View file @
6e80e712
...
...
@@ -9,6 +9,7 @@ import android.text.TextUtils;
import
android.util.Log
;
import
android.view.View
;
import
android.widget.LinearLayout
;
import
android.widget.TextView
;
import
com.alibaba.android.arouter.launcher.ARouter
;
import
com.frame.base.bus.LoginSuccessfulEvent
;
...
...
@@ -22,7 +23,9 @@ import com.ruiwenliu.wrapper.base.BaseBean;
import
com.ruiwenliu.wrapper.base.BaseStatusActivity
;
import
com.ruiwenliu.wrapper.util.ViewHolder
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.rv.component.control.SwitchButton
;
import
com.rv.component.dialog.PaymentTypeSelection
;
import
com.rv.component.utils.Arith
;
import
com.rv.home.rv.module.ApiConfig
;
import
com.rv.home.rv.module.ui.login.LoginRvActivity
;
import
com.rv.home.rv.module.ui.main.home.order.OrderListActivity
;
...
...
@@ -39,6 +42,8 @@ import com.rv.member.view.MemberTopView;
import
com.rv.tourism.bean.BeanTourOrderAliPay
;
import
com.tencent.mm.opensdk.openapi.IWXAPI
;
import
com.tencent.mm.opensdk.openapi.WXAPIFactory
;
import
com.xxrv.coupon.api.CouponApi
;
import
com.xxrv.coupon.bean.CarCouponBean
;
import
com.yuyife.okgo.OkGoUtil
;
import
java.util.LinkedHashMap
;
...
...
@@ -72,6 +77,8 @@ public class MemberCenterActivity extends BaseStatusActivity<MemberPresenter> {
private
boolean
hasAgree
=
false
;
private
CarCouponBean
.
DataBean
.
CarCouponTypeDataBean
.
CarCouponDataBean
couponBean
;
public
static
Intent
getIntent
(
Context
context
)
{
return
new
Intent
(
context
,
MemberCenterActivity
.
class
);
...
...
@@ -187,6 +194,17 @@ public class MemberCenterActivity extends BaseStatusActivity<MemberPresenter> {
case
4
:
mPresenter
.
aliPay
(
MemberCenterActivity
.
this
,
(
BeanTourOrderAliPay
)
result
);
break
;
case
5
:
CarCouponBean
bean
=
(
CarCouponBean
)
result
;
if
(
bean
!=
null
)
{
if
(
bean
.
getData
()
!=
null
)
{
couponBean
=
bean
.
getData
().
getCoupon
();
}
}
showPayDialog
();
break
;
}
}
...
...
@@ -211,6 +229,27 @@ public class MemberCenterActivity extends BaseStatusActivity<MemberPresenter> {
getMemberData
();
}
private
void
getCouponData
()
{
if
(
OkGoUtil
.
getToken
()
!=
null
)
{
Map
<
String
,
Object
>
headMap
=
new
LinkedHashMap
<>();
headMap
.
put
(
"Authorization"
,
OkGoUtil
.
getToken
());
Map
<
String
,
Object
>
map
=
new
LinkedHashMap
<>();
map
.
put
(
"type"
,
0
);
map
.
put
(
"channel"
,
"4"
);
map
.
put
(
"amount"
,
selectCard
.
getPrice
());
mPresenter
.
getData
(
RvFrameConfig
.
HOST
,
5
,
CouponApi
.
HTTP_URL_COUPON_TYPELIST
,
CarCouponBean
.
class
,
map
,
headMap
,
true
);
}
// if (OkGoUtil.getToken() != null) {
// Map<String, Object> headMap = new LinkedHashMap<>();
// headMap.put("Authorization", OkGoUtil.getToken());
// Map<String, Object> map = new LinkedHashMap<>();
// map.put("type", "0");
// map.put("channel", 4);
// mPresenter.getData(RvFrameConfig.HOST, 5, CouponApi.HTTP_URL_COUPON_LIST, CouponBean.class, map, headMap, false);
// }
}
/**********
* 获取会员中心信息
*/
...
...
@@ -258,55 +297,113 @@ public class MemberCenterActivity extends BaseStatusActivity<MemberPresenter> {
private
int
payType
=
1
;
private
MemberListBean
.
MemberCard
selectCard
;
private
String
userPhone
;
private
PayListener
payListener
=
new
PayListener
()
{
@Override
public
void
pay
(
final
MemberListBean
.
MemberCard
card
,
final
String
phone
)
{
if
(!
isLogin
())
return
;
new
PaymentTypeSelection
(
MemberCenterActivity
.
this
)
{
@Override
public
void
helper
(
final
ViewHolder
helper
)
{
super
.
helper
(
helper
);
helper
.
setText
(
R
.
id
.
tv_amount
,
String
.
format
(
"¥%1$s"
,
card
.
getPrice
()));
helper
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
int
i
=
v
.
getId
();
if
(
i
==
R
.
id
.
iv_close
)
{
dismiss
();
}
else
if
(
i
==
R
.
id
.
ll_item_wechat
)
{
payType
=
1
;
helper
.
getView
(
com
.
rv
.
home
.
R
.
id
.
iv_wx_select
).
setSelected
(
true
);
helper
.
getView
(
com
.
rv
.
home
.
R
.
id
.
iv_alipy_select
).
setSelected
(
false
);
}
else
if
(
i
==
com
.
rv
.
home
.
R
.
id
.
ll_item_alipay
)
{
payType
=
2
;
helper
.
getView
(
com
.
rv
.
home
.
R
.
id
.
iv_wx_select
).
setSelected
(
false
);
helper
.
getView
(
com
.
rv
.
home
.
R
.
id
.
iv_alipy_select
).
setSelected
(
true
);
}
else
if
(
i
==
R
.
id
.
tv_pay_immediately
)
{
dismiss
();
mPresenter
.
createOrder
(
card
,
phone
,
2
);
}
}
},
R
.
id
.
iv_close
,
R
.
id
.
ll_item_wechat
,
R
.
id
.
ll_item_alipay
,
R
.
id
.
tv_pay_immediately
);
}
}.
show
();
selectCard
=
card
;
userPhone
=
phone
;
couponBean
=
null
;
getCouponData
();
}
@Override
public
void
checkAgreement
(
boolean
b
)
{
hasAgree
=
b
;
// int count = ll_cardview_content.getChildCount();
// if (count > 0) {
// for (int i = 0; i < count; i++) {
// View view = ll_cardview_content.getChildAt(i);
// if (view instanceof MemberItemView) {
// ((MemberItemView) view).setHasAgree(hasAgree);
// }
// }
// }
}
};
private
boolean
isUseCoupon
=
false
;
private
void
showPayDialog
()
{
new
PaymentTypeSelection
(
MemberCenterActivity
.
this
)
{
@Override
public
void
helper
(
final
ViewHolder
helper
)
{
super
.
helper
(
helper
);
if
(
couponBean
!=
null
)
{
isUseCoupon
=
true
;
helper
.
setText
(
R
.
id
.
tv_amount
,
String
.
format
(
"¥%1$s"
,
Arith
.
sub
(
selectCard
.
getPrice
().
doubleValue
(),
couponBean
.
getUsedAmount
())));
}
else
{
isUseCoupon
=
false
;
helper
.
setText
(
R
.
id
.
tv_amount
,
String
.
format
(
"¥%1$s"
,
selectCard
.
getPrice
()));
}
helper
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
int
i
=
v
.
getId
();
if
(
i
==
R
.
id
.
iv_close
)
{
dismiss
();
}
else
if
(
i
==
R
.
id
.
ll_item_wechat
)
{
payType
=
1
;
helper
.
getView
(
com
.
rv
.
home
.
R
.
id
.
iv_wx_select
).
setSelected
(
true
);
helper
.
getView
(
com
.
rv
.
home
.
R
.
id
.
iv_alipy_select
).
setSelected
(
false
);
}
else
if
(
i
==
com
.
rv
.
home
.
R
.
id
.
ll_item_alipay
)
{
payType
=
2
;
helper
.
getView
(
com
.
rv
.
home
.
R
.
id
.
iv_wx_select
).
setSelected
(
false
);
helper
.
getView
(
com
.
rv
.
home
.
R
.
id
.
iv_alipy_select
).
setSelected
(
true
);
}
else
if
(
i
==
R
.
id
.
tv_pay_immediately
)
{
dismiss
();
mPresenter
.
createOrder
(
selectCard
,
isUseCoupon
?
(
couponBean
!=
null
?
couponBean
.
getTickerNo
()
:
""
)
:
""
,
userPhone
,
2
);
}
}
},
R
.
id
.
iv_close
,
R
.
id
.
ll_item_wechat
,
R
.
id
.
ll_item_alipay
,
R
.
id
.
tv_pay_immediately
);
if
(
couponBean
!=
null
)
{
helper
.
getItemView
().
findViewById
(
R
.
id
.
ll_item_coupon
).
setVisibility
(
View
.
VISIBLE
);
TextView
tvCouponNumber
=
helper
.
getItemView
().
findViewById
(
R
.
id
.
tv_coupon_number
);
tvCouponNumber
.
setVisibility
(
View
.
VISIBLE
);
tvCouponNumber
.
setText
(
"使用"
+
couponBean
.
getUsedAmount
()
+
"元代金券"
);
helper
.
getItemView
().
findViewById
(
R
.
id
.
line_coupon
).
setVisibility
(
View
.
VISIBLE
);
SwitchButton
switchButton
=
helper
.
getItemView
().
findViewById
(
R
.
id
.
sb_coupon_select
);
switchButton
.
setVisibility
(
View
.
VISIBLE
);
switchButton
.
setChecked
(
true
);
switchButton
.
setOnCheckedChangeListener
(
new
SwitchButton
.
OnCheckedChangeListener
()
{
@Override
public
void
onCheckedChanged
(
SwitchButton
view
,
boolean
isChecked
)
{
if
(
isChecked
)
{
isUseCoupon
=
true
;
helper
.
setText
(
R
.
id
.
tv_amount
,
String
.
format
(
"¥%1$s"
,
Arith
.
sub
(
selectCard
.
getPrice
().
doubleValue
(),
couponBean
.
getUsedAmount
())));
}
else
{
isUseCoupon
=
false
;
helper
.
setText
(
R
.
id
.
tv_amount
,
String
.
format
(
"¥%1$s"
,
selectCard
.
getPrice
()));
}
}
});
}
}
}.
show
();
// new PaymentTypeSelection(MemberCenterActivity.this) {
// @Override
// public void helper(final ViewHolder helper) {
// super.helper(helper);
// helper.setText(R.id.tv_amount, String.format("¥%1$s", selectCard.getPrice()));
// helper.setOnClickListener(new View.OnClickListener() {
// @Override
// public void onClick(View v) {
// int i = v.getId();
// if (i == R.id.iv_close) {
// dismiss();
// } else if (i == R.id.ll_item_wechat) {
// payType = 1;
// helper.getView(com.rv.home.R.id.iv_wx_select).setSelected(true);
// helper.getView(com.rv.home.R.id.iv_alipy_select).setSelected(false);
// } else if (i == com.rv.home.R.id.ll_item_alipay) {
// payType = 2;
// helper.getView(com.rv.home.R.id.iv_wx_select).setSelected(false);
// helper.getView(com.rv.home.R.id.iv_alipy_select).setSelected(true);
//
// } else if (i == R.id.tv_pay_immediately) {
// dismiss();
// mPresenter.createOrder(selectCard,"", userPhone, 2);
// }
// }
// }, R.id.iv_close, R.id.ll_item_wechat, R.id.ll_item_alipay, R.id.tv_pay_immediately);
// }
// }.show();
}
public
interface
PayListener
{
void
pay
(
MemberListBean
.
MemberCard
card
,
String
phone
);
...
...
plugin_member/src/main/java/com/rv.member/bean/MemberOrderPostBodyBean.java
View file @
6e80e712
...
...
@@ -5,17 +5,17 @@ package com.rv.member.bean;
* 会员卡支付请求订单
*/
public
class
MemberOrderPostBodyBean
{
private
String
couponId
s
;
private
String
tickerNo
s
;
private
int
memberLevel
;
private
int
memberLevelId
;
private
String
facilitatePhone
;
public
String
get
CouponId
s
()
{
return
couponId
s
;
public
String
get
TickerNo
s
()
{
return
tickerNo
s
;
}
public
void
set
CouponIds
(
String
couponId
s
)
{
this
.
couponIds
=
couponId
s
;
public
void
set
TickerNos
(
String
tickerNo
s
)
{
this
.
tickerNos
=
tickerNo
s
;
}
public
int
getMemberLevel
()
{
...
...
@@ -42,8 +42,8 @@ public class MemberOrderPostBodyBean {
this
.
facilitatePhone
=
facilitatePhone
;
}
public
MemberOrderPostBodyBean
(
String
couponId
s
,
int
memberLevel
,
int
memberLevelId
,
String
inviterPhone
)
{
this
.
couponIds
=
couponId
s
;
public
MemberOrderPostBodyBean
(
String
tickerNo
s
,
int
memberLevel
,
int
memberLevelId
,
String
inviterPhone
)
{
this
.
tickerNos
=
tickerNo
s
;
this
.
memberLevel
=
memberLevel
;
this
.
memberLevelId
=
memberLevelId
;
this
.
facilitatePhone
=
inviterPhone
;
...
...
plugin_member/src/main/java/com/rv.member/presenter/MemberPresenter.java
View file @
6e80e712
...
...
@@ -52,9 +52,9 @@ public class MemberPresenter extends CommonPresenter {
}
}
public
void
createOrder
(
MemberListBean
.
MemberCard
card
,
String
phone
,
int
position
)
{
public
void
createOrder
(
MemberListBean
.
MemberCard
card
,
String
couponIds
,
String
phone
,
int
position
)
{
MemberOrderPostBodyBean
memberOrderPostBodyBean
=
new
MemberOrderPostBodyBean
(
""
,
card
.
getLevel
(),
card
.
getId
(),
phone
);
MemberOrderPostBodyBean
memberOrderPostBodyBean
=
new
MemberOrderPostBodyBean
(
couponIds
,
card
.
getLevel
(),
card
.
getId
(),
phone
);
Map
<
String
,
Object
>
headMap
=
new
LinkedHashMap
<>();
if
(
OkGoUtil
.
getToken
()
!=
null
)
headMap
.
put
(
"Authorization"
,
OkGoUtil
.
getToken
());
...
...
plugin_share/src/main/java/com/rv/share/BillActivity.java
View file @
6e80e712
...
...
@@ -167,7 +167,6 @@ public class BillActivity extends BaseStatusActivity<BillPresenter> {
case
1001
:
if
(
grantResults
[
0
]
==
PackageManager
.
PERMISSION_GRANTED
)
{
mPresenter
.
showShareDialog
(
llContent
,
rvWebView
);
;
}
else
{
Toast
.
makeText
(
getApplicationContext
(),
"授权失败,无法分享海报"
,
Toast
.
LENGTH_SHORT
).
show
();
}
...
...
plugin_share/src/main/java/com/rv/share/PopularizeActivity.java
View file @
6e80e712
...
...
@@ -58,6 +58,7 @@ public class PopularizeActivity extends BaseStatusActivity<CommonPresenter> impl
listAdapter
=
new
PopularizeListAdapter
(
new
ArrayList
<
PopularizeBean
.
PopularizeItem
>());
refresh
.
setHeaderView
(
new
SimpleRefreshView
(
this
));
refresh
.
setOnSimpleRefreshListener
(
this
);
listAdapter
.
setOnLoadMoreListener
(
this
,
recyclerView
);
recyclerView
.
setAdapter
(
listAdapter
);
}
...
...
@@ -87,7 +88,7 @@ public class PopularizeActivity extends BaseStatusActivity<CommonPresenter> impl
PopularizeBean
bean
=
(
PopularizeBean
)
result
;
if
(
bean
.
isRel
()
&&
bean
.
getData
()
!=
null
&&
bean
.
getData
().
getUserTeamMemberBos
()
!=
null
)
{
if
(
currentPage
==
1
)
{
pageTotal
=
bean
.
getData
().
get
PageNum
();
pageTotal
=
bean
.
getData
().
get
TotalPage
();
refresh
.
onRefreshComplete
();
if
(
bean
.
getData
().
getUserTeamMemberBos
().
size
()
==
0
)
{
listAdapter
.
setEmptyView
(
getEmptyView
(
recyclerView
,
-
1
,
getString
(
R
.
string
.
rv_select_not_data
)));
...
...
plugin_share/src/main/java/com/rv/share/ReativeBillActivity.java
View file @
6e80e712
...
...
@@ -16,21 +16,17 @@ import android.text.TextUtils;
import
android.view.View
;
import
android.widget.Button
;
import
android.widget.ImageView
;
import
android.widget.LinearLayout
;
import
android.widget.ScrollView
;
import
android.widget.TextView
;
import
android.widget.Toast
;
import
com.base.utils.ui.image.round.RoundImageView
;
import
com.bumptech.glide.Glide
;
import
com.bumptech.glide.load.engine.DiskCacheStrategy
;
import
com.bumptech.glide.load.resource.bitmap.RoundedCorners
;
import
com.bumptech.glide.request.RequestOptions
;
import
com.ruiwenliu.wrapper.SPConstance
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.BaseStatusActivity
;
import
com.ruiwenliu.wrapper.bean.UserInfoBean
;
import
com.ruiwenliu.wrapper.util.UtilsManager
;
import
com.ruiwenliu.wrapper.util.glide.GlideManager
;
import
com.ruiwenliu.wrapper.util.glide.GlideOptions
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
...
...
@@ -40,11 +36,13 @@ import com.rv.component.utils.RvCache;
import
com.rv.component.utils.ZxingUtils
;
import
com.rv.share.presenter.ReativeBillPresenter
;
import
com.rv.share.utils.TransformationUtils
;
import
com.yuyife.okgo.OkGoUtil
;
import
butterknife.BindView
;
import
butterknife.OnClick
;
/*******
* 原始生成海报界面
*/
public
class
ReativeBillActivity
extends
BaseStatusActivity
<
ReativeBillPresenter
>
{
private
String
url
;
...
...
plugin_share/src/main/java/com/rv/share/bean/PopularizeBean.java
View file @
6e80e712
...
...
@@ -30,6 +30,7 @@ public class PopularizeBean extends BaseBean {
private
BigDecimal
totalIncome
;
private
int
pageNum
;
private
int
pageSize
;
private
int
totalPage
;
private
List
<
PopularizeItem
>
userTeamMemberBos
;
...
...
@@ -64,6 +65,14 @@ public class PopularizeBean extends BaseBean {
public
void
setUserTeamMemberBos
(
List
<
PopularizeItem
>
userTeamMemberBos
)
{
this
.
userTeamMemberBos
=
userTeamMemberBos
;
}
public
int
getTotalPage
()
{
return
totalPage
;
}
public
void
setTotalPage
(
int
totalPage
)
{
this
.
totalPage
=
totalPage
;
}
}
public
static
class
PopularizeItem
{
...
...
plugin_share/src/main/java/com/rv/share/presenter/ReativeBillPresenter.java
View file @
6e80e712
...
...
@@ -120,7 +120,12 @@ public class ReativeBillPresenter extends CommonPresenter {
@Override
public
void
qqShare
()
{
if
(
image
==
null
)
{
shareDeal
();
}
if
(
image
!=
null
)
{
share
(
SHARE_MEDIA
.
QQ
,
image
,
""
);
}
}
@Override
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment