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
e146e3ca
Commit
e146e3ca
authored
Aug 21, 2019
by
linfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
40adde38
Changes
36
Show whitespace changes
Inline
Side-by-side
Showing
36 changed files
with
315 additions
and
106 deletions
+315
-106
AndroidManifest.xml
RvClient/src/main/AndroidManifest.xml
+1
-0
RvClientApplication.java
RvClient/src/main/java/com/xxfc/rv/RvClientApplication.java
+0
-1
WelcomeActivity.java
RvClient/src/main/java/com/xxfc/rv/WelcomeActivity.java
+14
-1
styles.xml
RvClient/src/main/res/values/styles.xml
+1
-1
OkHttpCreate.java
...rc/main/java/com/ruiwenliu/wrapper/http/OkHttpCreate.java
+2
-2
bottom_backgroud2.png
...resource/src/main/res/drawable-hdpi/bottom_backgroud2.png
+0
-0
bottom_backgroud2.png
...resource/src/main/res/drawable-ldpi/bottom_backgroud2.png
+0
-0
bottom_backgroud2.png
...resource/src/main/res/drawable-mdpi/bottom_backgroud2.png
+0
-0
bottom_backgroud2.png
...esource/src/main/res/drawable-xhdpi/bottom_backgroud2.png
+0
-0
start_backgroud.png
..._resource/src/main/res/drawable-xhdpi/start_backgroud.png
+0
-0
shape_rv_bg_yellow.xml
...ent_resource/src/main/res/drawable/shape_rv_bg_yellow.xml
+1
-1
shape_rv_bg_yellow_small.xml
...source/src/main/res/drawable/shape_rv_bg_yellow_small.xml
+1
-1
shape_rv_main.xml
component_resource/src/main/res/drawable/shape_rv_main.xml
+1
-1
activity_detail_pat.xml
module_discovery/src/main/res/layout/activity_detail_pat.xml
+1
-1
ApiConfig.java
...e_home/src/main/java/com/rv/home/rv/module/ApiConfig.java
+3
-0
CarDetailActivity.java
...com/rv/home/rv/module/ui/main/home/CarDetailActivity.java
+7
-7
ConfirmOrderActivity.java
.../rv/home/rv/module/ui/main/home/ConfirmOrderActivity.java
+67
-32
OrderMenuAdapter.java
...home/rv/module/ui/main/home/adapter/OrderMenuAdapter.java
+1
-1
CarTypeListBean.java
.../rv/home/rv/module/ui/main/home/bean/CarTypeListBean.java
+30
-26
OrderMemberBean.java
.../rv/home/rv/module/ui/main/home/bean/OrderMemberBean.java
+114
-0
shape_rv_button.xml
module_home/src/main/res/drawable/shape_rv_button.xml
+1
-1
activity_order_to_travel.xml
module_home/src/main/res/layout/activity_order_to_travel.xml
+2
-2
activity_travel_order_details.xml
...ome/src/main/res/layout/activity_travel_order_details.xml
+2
-2
rv_act_confim_order.xml
module_home/src/main/res/layout/rv_act_confim_order.xml
+1
-1
rv_act_registered.xml
module_home/src/main/res/layout/rv_act_registered.xml
+1
-1
rv_item_horizontal.xml
module_home/src/main/res/layout/rv_item_horizontal.xml
+1
-1
AndroidManifest.xml
module_mine/src/main/AndroidManifest.xml
+9
-3
PersonalInformationActivity.java
...a/com/rv/rvmine/traveler/PersonalInformationActivity.java
+29
-3
shape_rv_button_light_gray.xml
...mine/src/main/res/drawable/shape_rv_button_light_gray.xml
+1
-1
activity_personal_information.xml
...ine/src/main/res/layout/activity_personal_information.xml
+18
-8
activity_setting.xml
module_mine/src/main/res/layout/activity_setting.xml
+2
-2
activity_confirm_order_travel.xml
...ism/src/main/res/layout/activity_confirm_order_travel.xml
+1
-1
activity_travel_details.xml
...e_tourism/src/main/res/layout/activity_travel_details.xml
+1
-2
CouponMenuAdapter.java
.../main/java/com/xxrv/coupon/adapter/CouponMenuAdapter.java
+1
-1
rv_item_coupon_menu_horizontal.xml
...on/src/main/res/layout/rv_item_coupon_menu_horizontal.xml
+1
-1
PosterActivity.java
...er/src/main/java/com/rv/poster/plugin/PosterActivity.java
+0
-1
No files found.
RvClient/src/main/AndroidManifest.xml
View file @
e146e3ca
...
@@ -178,6 +178,7 @@
...
@@ -178,6 +178,7 @@
<activity
<activity
android:name=
".MainActivity"
android:name=
".MainActivity"
android:screenOrientation=
"portrait"
android:launchMode=
"singleTask"
/>
android:launchMode=
"singleTask"
/>
<activity
<activity
android:name=
"com.rv.home.rv.module.ui.login.LoginRvActivity"
android:name=
"com.rv.home.rv.module.ui.login.LoginRvActivity"
...
...
RvClient/src/main/java/com/xxfc/rv/RvClientApplication.java
View file @
e146e3ca
...
@@ -101,7 +101,6 @@ public class RvClientApplication extends FrameApp {
...
@@ -101,7 +101,6 @@ public class RvClientApplication extends FrameApp {
ARouter
.
openDebug
();
ARouter
.
openDebug
();
}
}
ARouter
.
init
(
RvClientApplication
.
this
);
ARouter
.
init
(
RvClientApplication
.
this
);
}
}
...
...
RvClient/src/main/java/com/xxfc/rv/WelcomeActivity.java
View file @
e146e3ca
...
@@ -2,6 +2,8 @@ package com.xxfc.rv;
...
@@ -2,6 +2,8 @@ package com.xxfc.rv;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.content.SharedPreferences
;
import
android.content.SharedPreferences
;
import
android.graphics.Color
;
import
android.os.Build
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.support.annotation.Nullable
;
import
android.support.annotation.Nullable
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
...
@@ -110,6 +112,17 @@ public class WelcomeActivity extends BaseActivity<CommonPresenter> {
...
@@ -110,6 +112,17 @@ public class WelcomeActivity extends BaseActivity<CommonPresenter> {
protected
void
onCreate
(
@Nullable
Bundle
savedInstanceState
)
{
protected
void
onCreate
(
@Nullable
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
super
.
onCreate
(
savedInstanceState
);
// this.getWindow().getDecorView().setBackground(null);
// this.getWindow().getDecorView().setBackground(null);
getWindow
().
getDecorView
().
setSystemUiVisibility
(
View
.
SYSTEM_UI_FLAG_FULLSCREEN
);
if
(
Build
.
VERSION
.
SDK_INT
>=
21
)
{
getWindow
().
getDecorView
().
setSystemUiVisibility
(
View
.
SYSTEM_UI_FLAG_HIDE_NAVIGATION
|
View
.
SYSTEM_UI_FLAG_FULLSCREEN
);
}
// if (Build.VERSION.SDK_INT >= 21) {
// View decorView = getWindow().getDecorView();
// int option = View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
// | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
// | View.SYSTEM_UI_FLAG_LAYOUT_STABLE;
// decorView.setSystemUiVisibility(option);
// getWindow().setNavigationBarColor(Color.TRANSPARENT);
// getWindow().setStatusBarColor(Color.TRANSPARENT);
// }
}
}
}
}
RvClient/src/main/res/values/styles.xml
View file @
e146e3ca
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<style
name=
"SplashTheme"
parent=
"Theme.AppCompat.Light.NoActionBar"
>
<style
name=
"SplashTheme"
parent=
"Theme.AppCompat.Light.NoActionBar"
>
<item
name=
"android:windowBackground"
>
@drawable/start_back_icon
</item>
<item
name=
"android:windowBackground"
>
@drawable/start_back_icon
</item>
<item
name=
"windowNoTitle"
>
true
</item>
<item
name=
"windowNoTitle"
>
true
</item>
<item
name=
"windowActionBar"
>
fals
e
</item>
<item
name=
"windowActionBar"
>
tru
e
</item>
<item
name=
"android:windowContentOverlay"
>
@null
</item>
<item
name=
"android:windowContentOverlay"
>
@null
</item>
<item
name=
"android:windowNoTitle"
>
true
</item>
<item
name=
"android:windowNoTitle"
>
true
</item>
<item
name=
"android:windowFullscreen"
>
true
</item>
<item
name=
"android:windowFullscreen"
>
true
</item>
...
...
RvWrapper/src/main/java/com/ruiwenliu/wrapper/http/OkHttpCreate.java
View file @
e146e3ca
...
@@ -121,8 +121,8 @@ public class OkHttpCreate {
...
@@ -121,8 +121,8 @@ public class OkHttpCreate {
});
});
loggingInterceptor
.
setLevel
(
HttpLoggingInterceptor
.
Level
.
BODY
);
loggingInterceptor
.
setLevel
(
HttpLoggingInterceptor
.
Level
.
BODY
);
this
.
mHttpBuilder
.
addInterceptor
(
loggingInterceptor
);
this
.
mHttpBuilder
.
addInterceptor
(
loggingInterceptor
);
//
if (BuildConfig.DEBUG)
if
(
BuildConfig
.
DEBUG
)
//
this.mHttpBuilder.addInterceptor(new RvLogInterceptor());
this
.
mHttpBuilder
.
addInterceptor
(
new
RvLogInterceptor
());
}
}
/**
/**
...
...
component_resource/src/main/res/drawable-hdpi/bottom_backgroud2.png
View replaced file @
40adde38
View file @
e146e3ca
6.13 KB
|
W:
|
H:
50.4 KB
|
W:
|
H:
2-up
Swipe
Onion skin
component_resource/src/main/res/drawable-ldpi/bottom_backgroud2.png
0 → 100644
View file @
e146e3ca
18.4 KB
component_resource/src/main/res/drawable-mdpi/bottom_backgroud2.png
0 → 100644
View file @
e146e3ca
21.5 KB
component_resource/src/main/res/drawable-xhdpi/bottom_backgroud2.png
View replaced file @
40adde38
View file @
e146e3ca
13 KB
|
W:
|
H:
20 KB
|
W:
|
H:
2-up
Swipe
Onion skin
component_resource/src/main/res/drawable-hdpi/start_backgroud.png
→
component_resource/src/main/res/drawable-
x
hdpi/start_backgroud.png
View file @
e146e3ca
File moved
component_resource/src/main/res/drawable/shape_rv_bg_yellow.xml
View file @
e146e3ca
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"8dp"
/>
<corners
android:radius=
"8dp"
/>
<solid
android:color=
"@color/
colorAuxiliaryYellow
"
/>
<solid
android:color=
"@color/
gray_FFB74B
"
/>
</shape>
</shape>
\ No newline at end of file
component_resource/src/main/res/drawable/shape_rv_bg_yellow_small.xml
View file @
e146e3ca
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"5dp"
/>
<corners
android:radius=
"5dp"
/>
<solid
android:color=
"@color/
colorAuxiliaryYellow
"
/>
<solid
android:color=
"@color/
gray_FFB74B
"
/>
</shape>
</shape>
\ No newline at end of file
component_resource/src/main/res/drawable/shape_rv_main.xml
View file @
e146e3ca
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"
8
dp"
/>
<corners
android:radius=
"
50
dp"
/>
<solid
android:color=
"@color/colorMain"
/>
<solid
android:color=
"@color/colorMain"
/>
</shape>
</shape>
\ No newline at end of file
module_discovery/src/main/res/layout/activity_detail_pat.xml
View file @
e146e3ca
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
<TextView
<TextView
android:layout_width=
"@dimen/size_60"
android:layout_width=
"@dimen/size_60"
android:layout_height=
"@dimen/size_40"
android:layout_height=
"@dimen/size_40"
android:background=
"@
color/gray_FFB74B
"
android:background=
"@
drawable/shape_rv_bg_yellow
"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginLeft=
"@dimen/size_15"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"评论"
android:text=
"评论"
...
...
module_home/src/main/java/com/rv/home/rv/module/ApiConfig.java
View file @
e146e3ca
...
@@ -128,4 +128,7 @@ public class ApiConfig {
...
@@ -128,4 +128,7 @@ public class ApiConfig {
//我的发布
//我的发布
public
static
String
RVENTHUSIAST_GETBYUSERID_LIST
=
RvFrameConfig
.
HOST
+
"/api/im/msg/getByUserId"
;
public
static
String
RVENTHUSIAST_GETBYUSERID_LIST
=
RvFrameConfig
.
HOST
+
"/api/im/msg/getByUserId"
;
//会员信息
public
static
String
RVENTHUSIAST_GETUSERMEMBER
=
RvFrameConfig
.
HOST
+
"/api/admin/baseUserMember/app/getUserMember"
;
}
}
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/CarDetailActivity.java
View file @
e146e3ca
...
@@ -263,13 +263,13 @@ public class CarDetailActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -263,13 +263,13 @@ public class CarDetailActivity extends BaseStatusActivity<CommonPresenter> {
startActivity
(
LoginRvActivity
.
getIntent
(
mActivity
,
0
));
startActivity
(
LoginRvActivity
.
getIntent
(
mActivity
,
0
));
return
;
return
;
}
}
BeanUserInfo
.
UserInfo
userInfo
=
getUserInfo
();
//
BeanUserInfo.UserInfo userInfo = getUserInfo();
if
(
userInfo
!=
null
)
{
//
if (userInfo != null) {
if
(
userInfo
.
getCertificationStatus
()
==
0
)
{
//
if (userInfo.getCertificationStatus() == 0) {
ARouter
.
getInstance
().
build
(
Constance
.
ACTIVITY_URL_IDCARDCERTIFICATION
).
navigation
();
//
ARouter.getInstance().build(Constance.ACTIVITY_URL_IDCARDCERTIFICATION).navigation();
return
;
//
return;
}
//
}
}
//
}
startActivity
(
ConfirmOrderActivity
.
getIntent
(
mActivity
,
dataBean
,
mCarBean
,
getIntent
().
getStringExtra
(
"startTime"
),
getIntent
().
getStringExtra
(
"endTime"
)));
startActivity
(
ConfirmOrderActivity
.
getIntent
(
mActivity
,
dataBean
,
mCarBean
,
getIntent
().
getStringExtra
(
"startTime"
),
getIntent
().
getStringExtra
(
"endTime"
)));
}
}
}
}
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/ConfirmOrderActivity.java
View file @
e146e3ca
...
@@ -12,6 +12,7 @@ import android.text.TextUtils;
...
@@ -12,6 +12,7 @@ import android.text.TextUtils;
import
android.util.Log
;
import
android.util.Log
;
import
android.util.TypedValue
;
import
android.util.TypedValue
;
import
android.view.Gravity
;
import
android.view.Gravity
;
import
android.view.MotionEvent
;
import
android.view.View
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
import
android.view.WindowManager
;
import
android.view.WindowManager
;
...
@@ -58,6 +59,7 @@ import com.rv.home.rv.module.ui.main.home.bean.ConfirmOrderBean;
...
@@ -58,6 +59,7 @@ import com.rv.home.rv.module.ui.main.home.bean.ConfirmOrderBean;
import
com.rv.home.rv.module.ui.main.home.bean.DrivingListBean
;
import
com.rv.home.rv.module.ui.main.home.bean.DrivingListBean
;
import
com.rv.home.rv.module.ui.main.home.bean.OrderAliPayBean
;
import
com.rv.home.rv.module.ui.main.home.bean.OrderAliPayBean
;
import
com.rv.home.rv.module.ui.main.home.bean.OrderDataBean
;
import
com.rv.home.rv.module.ui.main.home.bean.OrderDataBean
;
import
com.rv.home.rv.module.ui.main.home.bean.OrderMemberBean
;
import
com.rv.home.rv.module.ui.main.home.bean.OrderPayBean
;
import
com.rv.home.rv.module.ui.main.home.bean.OrderPayBean
;
import
com.rv.home.rv.module.ui.main.home.bean.OrderPriceBean
;
import
com.rv.home.rv.module.ui.main.home.bean.OrderPriceBean
;
import
com.rv.home.rv.module.ui.main.home.bean.SelectItemBean
;
import
com.rv.home.rv.module.ui.main.home.bean.SelectItemBean
;
...
@@ -169,7 +171,7 @@ public class ConfirmOrderActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -169,7 +171,7 @@ public class ConfirmOrderActivity extends BaseStatusActivity<CommonPresenter> {
private
IWXAPI
api
;
private
IWXAPI
api
;
private
int
payType
=
1
;
//选择支付类型
private
int
payType
=
1
;
//选择支付类型
private
OrderPriceBean
priceBean
;
private
OrderPriceBean
priceBean
;
BeanUserInfo
.
UserInfo
info
=
null
;
//
BeanUserInfo.UserInfo info = null;
private
int
deductiblePriceType
;
private
int
deductiblePriceType
;
private
int
isMemberType
;
private
int
isMemberType
;
private
double
carAmount
;
//请求优惠券金额
private
double
carAmount
;
//请求优惠券金额
...
@@ -186,6 +188,7 @@ public class ConfirmOrderActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -186,6 +188,7 @@ public class ConfirmOrderActivity extends BaseStatusActivity<CommonPresenter> {
private
List
<
SelectItemBean
.
DataBean
>
selectItem
;
private
List
<
SelectItemBean
.
DataBean
>
selectItem
;
private
List
<
CarCouponBean
.
DataBean
.
CarCouponTypeDataBean
.
CarCouponDataBean
>
selectCouponList
=
null
;
private
List
<
CarCouponBean
.
DataBean
.
CarCouponTypeDataBean
.
CarCouponDataBean
>
selectCouponList
=
null
;
private
OrderMemberBean
.
DataBean
memberData
;
public
static
Intent
getIntent
(
Context
context
,
OrderDataBean
bean
,
CarTypeListBean
.
DataBeanX
.
DataBean
carBean
,
String
startTime
,
String
endTime
)
{
public
static
Intent
getIntent
(
Context
context
,
OrderDataBean
bean
,
CarTypeListBean
.
DataBeanX
.
DataBean
carBean
,
String
startTime
,
String
endTime
)
{
return
new
Intent
(
context
,
ConfirmOrderActivity
.
class
)
return
new
Intent
(
context
,
ConfirmOrderActivity
.
class
)
...
@@ -258,24 +261,24 @@ public class ConfirmOrderActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -258,24 +261,24 @@ public class ConfirmOrderActivity extends BaseStatusActivity<CommonPresenter> {
.
subscribe
(
new
Observer
<
LoginUserInfoEvent
>(
disposable
)
{
.
subscribe
(
new
Observer
<
LoginUserInfoEvent
>(
disposable
)
{
@Override
@Override
public
void
onNext
(
LoginUserInfoEvent
event
)
{
public
void
onNext
(
LoginUserInfoEvent
event
)
{
tvPrice
.
setText
(
String
.
format
(
"¥%1$s%2$s"
,
mCarBean
.
getVehicleModel
().
getSum
(),
mActivity
.
getString
(
R
.
string
.
rv_day
)));
//
tvPrice.setText(String.format("¥%1$s%2$s", mCarBean.getVehicleModel().getSum(), mActivity.getString(R.string.rv_day)));
if
(
info
!=
null
)
{
//
if (info != null) {
if
(
0
==
info
.
getIsMember
())
{
//
if (0 == info.getIsMember()) {
tvLayoutMemberHint
.
setVisibility
(
View
.
GONE
);
//
tvLayoutMemberHint.setVisibility(View.GONE);
llLayoutMemberHint
.
setVisibility
(
View
.
GONE
);
//
llLayoutMemberHint.setVisibility(View.GONE);
}
else
if
(
1
==
info
.
getIsMember
())
{
//
} else if (1 == info.getIsMember()) {
tvLayoutMemberHint
.
setVisibility
(
View
.
VISIBLE
);
//
tvLayoutMemberHint.setVisibility(View.VISIBLE);
llLayoutMemberHint
.
setVisibility
(
View
.
VISIBLE
);
//
llLayoutMemberHint.setVisibility(View.VISIBLE);
tvFreeCarDays
.
setText
(
"(剩余"
+
info
.
getRentFreeDays
()
+
"天)"
);
//
tvFreeCarDays.setText("(剩余" + info.getRentFreeDays() + "天)");
}
//
}
}
//
}
}
}
});
});
}
}
@Override
@Override
protected
void
loadData
(
Bundle
savedInstanceState
,
Intent
intent
)
{
protected
void
loadData
(
Bundle
savedInstanceState
,
Intent
intent
)
{
get
OrderPrice
();
get
Member
();
}
}
@Override
@Override
...
@@ -306,6 +309,15 @@ public class ConfirmOrderActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -306,6 +309,15 @@ public class ConfirmOrderActivity extends BaseStatusActivity<CommonPresenter> {
CarCouponBean
couponBean
=
(
CarCouponBean
)
result
;
CarCouponBean
couponBean
=
(
CarCouponBean
)
result
;
couponData
(
couponBean
);
couponData
(
couponBean
);
break
;
break
;
case
6
:
OrderMemberBean
orderMemberBean
=
(
OrderMemberBean
)
result
;
if
(
orderMemberBean
!=
null
)
{
memberData
=
orderMemberBean
.
getData
();
mCarBean
.
getVehicleModel
().
setMember
(
orderMemberBean
.
getData
());
}
intiView
();
getOrderPrice
();
break
;
}
}
}
}
...
@@ -566,6 +578,17 @@ public class ConfirmOrderActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -566,6 +578,17 @@ public class ConfirmOrderActivity extends BaseStatusActivity<CommonPresenter> {
mPresenter
.
getData
(
RvFrameConfig
.
VEHICLE_ORDER
,
0
,
ApiConfig
.
HTTP_URL_GET_ORDER_PRICE
,
OrderPriceBean
.
class
,
map
,
headMap
,
true
);
mPresenter
.
getData
(
RvFrameConfig
.
VEHICLE_ORDER
,
0
,
ApiConfig
.
HTTP_URL_GET_ORDER_PRICE
,
OrderPriceBean
.
class
,
map
,
headMap
,
true
);
}
}
/**
* 获取会员信息
*/
private
void
getMember
()
{
Map
<
String
,
Object
>
headMap
=
new
LinkedHashMap
<>();
if
(
OkGoUtil
.
getToken
()
!=
null
)
{
headMap
.
put
(
"Authorization"
,
OkGoUtil
.
getToken
());
mPresenter
.
getDataHead
(
RvFrameConfig
.
HOST
,
6
,
ApiConfig
.
RVENTHUSIAST_GETUSERMEMBER
,
OrderMemberBean
.
class
,
headMap
,
true
);
}
}
/**
/**
* 订单支付
* 订单支付
*/
*/
...
@@ -630,21 +653,33 @@ public class ConfirmOrderActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -630,21 +653,33 @@ public class ConfirmOrderActivity extends BaseStatusActivity<CommonPresenter> {
tvGetCarAddress
.
setText
(
dataBean
.
getStartAddr
());
tvGetCarAddress
.
setText
(
dataBean
.
getStartAddr
());
tvOutCarAddress
.
setText
(
dataBean
.
getEndAddr
());
tvOutCarAddress
.
setText
(
dataBean
.
getEndAddr
());
String
spStringCode
=
UtilsManager
.
getInstance
(
OkGoUtil
.
application
).
getSPStringCode
(
SPConstance
.
USER_JSON
,
SPConstance
.
USER_JSON_USERINFO
);
//
String spStringCode = UtilsManager.getInstance(OkGoUtil.application).getSPStringCode(SPConstance.USER_JSON, SPConstance.USER_JSON_USERINFO);
if
(!
TextUtil
.
isEmpty
(
spStringCode
))
{
//
if (!TextUtil.isEmpty(spStringCode)) {
info
=
JSON
.
parseObject
(
spStringCode
,
BeanUserInfo
.
UserInfo
.
class
);
//
info = JSON.parseObject(spStringCode, BeanUserInfo.UserInfo.class);
}
//
}
if
(
info
!=
null
)
{
if
(
memberData
==
null
)
{
if
(
0
==
info
.
getIsMember
())
{
tvLayoutMemberHint
.
setVisibility
(
View
.
GONE
);
tvLayoutMemberHint
.
setVisibility
(
View
.
GONE
);
llLayoutMemberHint
.
setVisibility
(
View
.
GONE
);
llLayoutMemberHint
.
setVisibility
(
View
.
GONE
);
}
else
if
(
1
==
info
.
getIsMember
())
{
}
else
{
tvLayoutMemberHint
.
setVisibility
(
View
.
VISIBLE
);
tvLayoutMemberHint
.
setVisibility
(
View
.
VISIBLE
);
llLayoutMemberHint
.
setVisibility
(
View
.
VISIBLE
);
llLayoutMemberHint
.
setVisibility
(
View
.
VISIBLE
);
tvFreeCarDays
.
setText
(
"(剩余"
+
info
.
getRentFreeDays
()
+
"天)"
);
tvFreeCarDays
.
setText
(
"(剩余"
+
memberData
.
getRentFreeDays
()
+
"天)"
);
}
}
swbtnMember
.
setOnTouchListener
(
new
View
.
OnTouchListener
()
{
@Override
public
boolean
onTouch
(
View
v
,
MotionEvent
event
)
{
if
(
memberData
!=
null
)
{
if
(
memberData
.
getRentFreeDays
()
==
0
)
{
swbtnMember
.
setChecked
(
false
);
showToast
(
"免费用车天数0"
);
return
true
;
}
}
}
return
false
;
}
});
swbtnMember
.
setOnCheckedChangeListener
(
new
SwitchButton
.
OnCheckedChangeListener
()
{
swbtnMember
.
setOnCheckedChangeListener
(
new
SwitchButton
.
OnCheckedChangeListener
()
{
@Override
@Override
...
@@ -684,17 +719,17 @@ public class ConfirmOrderActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -684,17 +719,17 @@ public class ConfirmOrderActivity extends BaseStatusActivity<CommonPresenter> {
childrenBean2
.
setVal
(
"¥"
+
dayPrice
*
dayNum
);
childrenBean2
.
setVal
(
"¥"
+
dayPrice
*
dayNum
);
childrenBeanList
.
add
(
childrenBean2
);
childrenBeanList
.
add
(
childrenBean2
);
}
else
{
}
else
{
if
(
info
!=
null
)
{
if
(
memberData
!=
null
)
{
if
(
dayNum
>
info
.
getRentFreeDays
())
{
if
(
dayNum
>
memberData
.
getRentFreeDays
())
{
payMoney
=
dayPrice
*
(
dayNum
-
info
.
getRentFreeDays
())
+
priceBean
.
getData
().
getDeposit
();
payMoney
=
dayPrice
*
(
dayNum
-
memberData
.
getRentFreeDays
())
+
priceBean
.
getData
().
getDeposit
();
carAmount
=
dayPrice
*
(
dayNum
-
info
.
getRentFreeDays
());
carAmount
=
dayPrice
*
(
dayNum
-
memberData
.
getRentFreeDays
());
OrderPriceDetailBean
.
ChildrenBean
childrenBean1
=
new
OrderPriceDetailBean
.
ChildrenBean
();
OrderPriceDetailBean
.
ChildrenBean
childrenBean1
=
new
OrderPriceDetailBean
.
ChildrenBean
();
childrenBean1
.
setKey
(
"车辆租赁费"
);
childrenBean1
.
setKey
(
"车辆租赁费"
);
childrenBean1
.
setDetail
(
"¥"
+
dayPrice
+
"/天 *"
+
(
dayNum
-
info
.
getRentFreeDays
())
+
"天"
);
childrenBean1
.
setDetail
(
"¥"
+
dayPrice
+
"/天 *"
+
(
dayNum
-
memberData
.
getRentFreeDays
())
+
"天"
);
childrenBean1
.
setVal
(
"¥"
+
dayPrice
*
(
dayNum
-
info
.
getRentFreeDays
()));
childrenBean1
.
setVal
(
"¥"
+
dayPrice
*
(
dayNum
-
memberData
.
getRentFreeDays
()));
childrenBeanList
.
add
(
childrenBean1
);
childrenBeanList
.
add
(
childrenBean1
);
}
else
if
(
dayNum
<=
info
.
getRentFreeDays
())
{
}
else
if
(
dayNum
<=
memberData
.
getRentFreeDays
())
{
payMoney
=
priceBean
.
getData
().
getDeposit
();
payMoney
=
priceBean
.
getData
().
getDeposit
();
carAmount
=
0
;
carAmount
=
0
;
}
}
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/adapter/OrderMenuAdapter.java
View file @
e146e3ca
...
@@ -26,7 +26,7 @@ public class OrderMenuAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
...
@@ -26,7 +26,7 @@ public class OrderMenuAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
helper
.
setText
(
R
.
id
.
tv_title
,
item
);
helper
.
setText
(
R
.
id
.
tv_title
,
item
);
if
(
selectPosition
==
getPosition
(
item
))
{
if
(
selectPosition
==
getPosition
(
item
))
{
helper
.
setTextColor
(
R
.
id
.
tv_title
,
ContextCompat
.
getColor
(
mContext
,
R
.
color
.
colorAuxiliaryYellow
));
helper
.
setTextColor
(
R
.
id
.
tv_title
,
ContextCompat
.
getColor
(
mContext
,
R
.
color
.
gray_FFB74B
));
helper
.
setGone
(
R
.
id
.
view_line
,
true
);
helper
.
setGone
(
R
.
id
.
view_line
,
true
);
}
else
{
}
else
{
helper
.
setTextColor
(
R
.
id
.
tv_title
,
ContextCompat
.
getColor
(
mContext
,
R
.
color
.
textMain
));
helper
.
setTextColor
(
R
.
id
.
tv_title
,
ContextCompat
.
getColor
(
mContext
,
R
.
color
.
textMain
));
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/bean/CarTypeListBean.java
View file @
e146e3ca
...
@@ -169,43 +169,47 @@ public class CarTypeListBean extends BaseBean implements Serializable {
...
@@ -169,43 +169,47 @@ public class CarTypeListBean extends BaseBean implements Serializable {
private
int
score
;
private
int
score
;
private
String
coverPic
;
private
String
coverPic
;
private
String
posterBackground
;
private
String
posterBackground
;
private
OrderMemberBean
.
DataBean
member
;
public
double
getSum
()
{
public
void
setMember
(
OrderMemberBean
.
DataBean
member
)
{
BeanUserInfo
.
UserInfo
info
=
null
;
this
.
member
=
member
;
String
spStringCode
=
UtilsManager
.
getInstance
(
OkGoUtil
.
application
).
getSPStringCode
(
SPConstance
.
USER_JSON
,
SPConstance
.
USER_JSON_USERINFO
);
if
(!
TextUtil
.
isEmpty
(
spStringCode
))
{
info
=
JSON
.
parseObject
(
spStringCode
,
BeanUserInfo
.
UserInfo
.
class
);
}
}
public
double
getSum
()
{
// BeanUserInfo.UserInfo info = null;
// String spStringCode = UtilsManager.getInstance(OkGoUtil.application).getSPStringCode(SPConstance.USER_JSON, SPConstance.USER_JSON_USERINFO);
// if (!TextUtil.isEmpty(spStringCode)) {
// info = JSON.parseObject(spStringCode, BeanUserInfo.UserInfo.class);
// }
double
amount
=
price
;
double
amount
=
price
;
if
(
info
==
null
)
{
if
(
member
==
null
)
{
return
price
;
return
price
;
}
}
// if (0 == member.getIsMember()) { //不是会员
if
(
0
==
info
.
getIsMember
())
{
//不是会员
// amount = price;
amount
=
price
;
// } else if (1 == info.getIsMember()) { //会员
}
else
if
(
1
==
info
.
getIsMember
())
{
//会员
if
(
0
==
rentDiscountStatus
)
{
if
(
0
==
rentDiscountStatus
)
{
amount
=
price
;
amount
=
price
;
}
else
if
(
1
==
rentDiscountStatus
)
{
}
else
if
(
1
==
rentDiscountStatus
)
{
double
discount
=
info
.
getDiscount
()
*
0.01
;
double
discount
=
member
.
getDiscount
()
*
0.01
;
amount
=
price
*
discount
;
amount
=
price
*
discount
;
}
else
if
(
2
==
rentDiscountStatus
)
{
}
else
if
(
2
==
rentDiscountStatus
)
{
if
(!
TextUtil
.
isEmpty
(
rentDiscountPrice
))
{
if
(!
TextUtil
.
isEmpty
(
rentDiscountPrice
))
{
String
[]
list
=
rentDiscountPrice
.
split
(
","
);
String
[]
list
=
rentDiscountPrice
.
split
(
","
);
int
memberLevel
=
info
.
getMemberLevel
();
//1 普通会员 2 黄金会员 3 钻石会员
int
memberLevel
=
member
.
getMemberLevel
();
//1 普通会员 2 黄金会员 3 钻石会员
if
(
list
!=
null
&&
list
.
length
>
1
)
{
if
(
list
!=
null
&&
list
.
length
>
1
)
{
if
(
1
==
memberLevel
)
{
if
(
1
==
memberLevel
)
{
amount
=
Integer
.
valueOf
(
list
[
0
]);
amount
=
Integer
.
valueOf
(
list
[
0
]);
}
else
if
(
2
==
memberLevel
)
{
}
else
if
(
2
==
memberLevel
)
{
amount
=
Integer
.
valueOf
(
list
[
1
]);
amount
=
Integer
.
valueOf
(
list
[
1
]);
}
else
if
(
3
==
memberLevel
)
{
}
else
if
(
3
==
memberLevel
)
{
amount
=
Integer
.
valueOf
(
list
[
2
]);
amount
=
Integer
.
valueOf
(
list
[
2
]);
}
}
}
}
}
}
}
}
}
//
}
return
new
BigDecimal
(
amount
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
).
doubleValue
();
return
new
BigDecimal
(
amount
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
).
doubleValue
();
}
}
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/bean/OrderMemberBean.java
0 → 100644
View file @
e146e3ca
package
com
.
rv
.
home
.
rv
.
module
.
ui
.
main
.
home
.
bean
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
/**
* 会员信息
*/
public
class
OrderMemberBean
extends
BaseBean
{
private
DataBean
data
;
private
boolean
rel
;
public
DataBean
getData
()
{
return
data
;
}
public
void
setData
(
DataBean
data
)
{
this
.
data
=
data
;
}
public
boolean
isRel
()
{
return
rel
;
}
public
void
setRel
(
boolean
rel
)
{
this
.
rel
=
rel
;
}
public
static
class
DataBean
{
private
String
id
;
//": 97,
private
String
userId
;
//": 284,
private
int
memberLevel
;
//": 3 , 会员等级
private
int
totalNumber
;
//": 40, 总天数
private
int
rentFreeDays
;
//": 35, 剩余天数
private
int
buyCount
;
//": 4, 购买次数
private
String
validTime
;
//": 0,
private
String
name
;
//": "钻石会员",
private
int
discount
;
//":"8" 折扣
public
String
getId
()
{
return
id
;
}
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
public
String
getUserId
()
{
return
userId
;
}
public
void
setUserId
(
String
userId
)
{
this
.
userId
=
userId
;
}
public
int
getMemberLevel
()
{
return
memberLevel
;
}
public
void
setMemberLevel
(
int
memberLevel
)
{
this
.
memberLevel
=
memberLevel
;
}
public
int
getTotalNumber
()
{
return
totalNumber
;
}
public
void
setTotalNumber
(
int
totalNumber
)
{
this
.
totalNumber
=
totalNumber
;
}
public
int
getRentFreeDays
()
{
return
rentFreeDays
;
}
public
void
setRentFreeDays
(
int
rentFreeDays
)
{
this
.
rentFreeDays
=
rentFreeDays
;
}
public
int
getBuyCount
()
{
return
buyCount
;
}
public
void
setBuyCount
(
int
buyCount
)
{
this
.
buyCount
=
buyCount
;
}
public
String
getValidTime
()
{
return
validTime
;
}
public
void
setValidTime
(
String
validTime
)
{
this
.
validTime
=
validTime
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
int
getDiscount
()
{
return
discount
;
}
public
void
setDiscount
(
int
discount
)
{
this
.
discount
=
discount
;
}
}
}
module_home/src/main/res/drawable/shape_rv_button.xml
View file @
e146e3ca
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"
8
dp"
/>
<corners
android:radius=
"
50
dp"
/>
<solid
android:color=
"@color/textLightGrey"
/>
<solid
android:color=
"@color/textLightGrey"
/>
</shape>
</shape>
\ No newline at end of file
module_home/src/main/res/layout/activity_order_to_travel.xml
View file @
e146e3ca
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<com.ruiwenliu.wrapper.statusbar.StatusBarHeightView
<com.ruiwenliu.wrapper.statusbar.StatusBarHeightView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/
colorAuxiliaryYellow
"
android:background=
"@color/
gray_FFB74B
"
android:orientation=
"vertical"
android:orientation=
"vertical"
app:use_type=
"use_padding_top"
>
app:use_type=
"use_padding_top"
>
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
android:id=
"@+id/lay_title"
android:id=
"@+id/lay_title"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_55"
android:layout_height=
"@dimen/size_55"
android:background=
"@color/
colorAuxiliaryYellow
"
>
android:background=
"@color/
gray_FFB74B
"
>
<ImageView
<ImageView
android:id=
"@+id/iv_back"
android:id=
"@+id/iv_back"
...
...
module_home/src/main/res/layout/activity_travel_order_details.xml
View file @
e146e3ca
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<com.ruiwenliu.wrapper.statusbar.StatusBarHeightView
<com.ruiwenliu.wrapper.statusbar.StatusBarHeightView
android:background=
"@color/
colorAuxiliaryYellow
"
android:background=
"@color/
gray_FFB74B
"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:orientation=
"vertical"
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
android:id=
"@+id/lay_title"
android:id=
"@+id/lay_title"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_55"
android:layout_height=
"@dimen/size_55"
android:background=
"@color/
colorAuxiliaryYellow
"
>
android:background=
"@color/
gray_FFB74B
"
>
<ImageView
<ImageView
android:id=
"@+id/iv_back"
android:id=
"@+id/iv_back"
...
...
module_home/src/main/res/layout/rv_act_confim_order.xml
View file @
e146e3ca
...
@@ -846,7 +846,7 @@
...
@@ -846,7 +846,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/rv_contract_agreement"
android:text=
"@string/rv_contract_agreement"
android:textColor=
"@color/
colorAuxiliaryYellow
"
android:textColor=
"@color/
gray_FFB74B
"
android:textSize=
"@dimen/text_16"
/>
android:textSize=
"@dimen/text_16"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
...
...
module_home/src/main/res/layout/rv_act_registered.xml
View file @
e146e3ca
...
@@ -184,7 +184,7 @@
...
@@ -184,7 +184,7 @@
<TextView
<TextView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"@color/
colorAuxiliaryYellow
"
android:textColor=
"@color/
gray_FFB74B
"
android:id=
"@+id/tv_agreement"
android:id=
"@+id/tv_agreement"
android:textSize=
"@dimen/text_16"
android:textSize=
"@dimen/text_16"
android:text=
"@string/rv_registered_agreement"
android:text=
"@string/rv_registered_agreement"
...
...
module_home/src/main/res/layout/rv_item_horizontal.xml
View file @
e146e3ca
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
/>
/>
<View
<View
android:background=
"@color/
colorAuxiliaryYellow
"
android:background=
"@color/
gray_FFB74B
"
android:layout_marginTop=
"@dimen/size_15"
android:layout_marginTop=
"@dimen/size_15"
android:id=
"@+id/view_line"
android:id=
"@+id/view_line"
android:layout_width=
"@dimen/size_60"
android:layout_width=
"@dimen/size_60"
...
...
module_mine/src/main/AndroidManifest.xml
View file @
e146e3ca
...
@@ -3,9 +3,15 @@
...
@@ -3,9 +3,15 @@
package=
"com.rv.rvmine"
>
package=
"com.rv.rvmine"
>
<application>
<application>
<activity
android:name=
".personal.IDCardCertificationShowActivity"
></activity>
<activity
<activity
android:name=
".traveler.TravelSettingsActivity"
/>
android:name=
".personal.IDCardCertificationShowActivity"
<activity
android:name=
".traveler.MyReleaseActivity"
/>
android:screenOrientation=
"portrait"
/>
<activity
android:name=
".traveler.TravelSettingsActivity"
android:screenOrientation=
"portrait"
/>
<activity
android:name=
".traveler.MyReleaseActivity"
android:screenOrientation=
"portrait"
/>
<activity
android:name=
"com.rv.version.activity.UpdateAppActivity"
/>
<activity
android:name=
"com.rv.version.activity.UpdateAppActivity"
/>
</application>
</application>
...
...
module_mine/src/main/java/com/rv/rvmine/traveler/PersonalInformationActivity.java
View file @
e146e3ca
...
@@ -11,6 +11,7 @@ import android.os.Bundle;
...
@@ -11,6 +11,7 @@ import android.os.Bundle;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
android.view.View
;
import
android.view.View
;
import
android.widget.EditText
;
import
android.widget.EditText
;
import
android.widget.LinearLayout
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
com.base.utils.ui.datetime.selector.util.TextUtil
;
import
com.base.utils.ui.datetime.selector.util.TextUtil
;
...
@@ -20,14 +21,15 @@ import com.frame.base.bus.RxBus;
...
@@ -20,14 +21,15 @@ import com.frame.base.bus.RxBus;
import
com.frame.rv.config.RvFrameConfig
;
import
com.frame.rv.config.RvFrameConfig
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.BaseStatusActivity
;
import
com.ruiwenliu.wrapper.base.BaseStatusActivity
;
import
com.ruiwenliu.wrapper.base.presenter.PickerPresenter
;
import
com.ruiwenliu.wrapper.bean.UserInfoBean
;
import
com.ruiwenliu.wrapper.bean.UserInfoBean
;
import
com.ruiwenliu.wrapper.util.ViewHolder
;
import
com.ruiwenliu.wrapper.util.ViewHolder
;
import
com.ruiwenliu.wrapper.util.glide.GlideManager
;
import
com.ruiwenliu.wrapper.util.glide.GlideManager
;
import
com.ruiwenliu.wrapper.util.permission.RxPermission
;
import
com.ruiwenliu.wrapper.util.permission.RxPermission
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.rv.home.rv.module.ApiConfig
;
import
com.rv.component.dialog.PickerDialog
;
import
com.rv.component.dialog.PickerDialog
;
import
com.ruiwenliu.wrapper.base.presenter.PickerPresenter
;
import
com.rv.component.utils.IsAppInstall
;
import
com.rv.home.rv.module.ApiConfig
;
import
com.rv.home.rv.module.ui.main.home.bean.ImageUploadBean
;
import
com.rv.home.rv.module.ui.main.home.bean.ImageUploadBean
;
import
com.rv.rvmine.R
;
import
com.rv.rvmine.R
;
import
com.rv.rvmine.R2
;
import
com.rv.rvmine.R2
;
...
@@ -47,6 +49,7 @@ import java.util.LinkedHashMap;
...
@@ -47,6 +49,7 @@ import java.util.LinkedHashMap;
import
java.util.Map
;
import
java.util.Map
;
import
butterknife.BindView
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
butterknife.OnClick
;
import
butterknife.OnClick
;
import
io.reactivex.functions.Consumer
;
import
io.reactivex.functions.Consumer
;
import
okhttp3.MediaType
;
import
okhttp3.MediaType
;
...
@@ -76,6 +79,10 @@ public class PersonalInformationActivity extends BaseStatusActivity<PickerPresen
...
@@ -76,6 +79,10 @@ public class PersonalInformationActivity extends BaseStatusActivity<PickerPresen
TextView
tvBindingQq
;
TextView
tvBindingQq
;
@BindView
(
R2
.
id
.
tv_binding_wx
)
@BindView
(
R2
.
id
.
tv_binding_wx
)
TextView
tvBindingWx
;
TextView
tvBindingWx
;
@BindView
(
R2
.
id
.
ll_item_binding_qq
)
LinearLayout
llItemBindingQq
;
@BindView
(
R2
.
id
.
ll_item_binding_wechat
)
LinearLayout
llItemBindingWechat
;
private
UserInfoBean
.
UserInfo
info
;
private
UserInfoBean
.
UserInfo
info
;
private
String
ivAvatarUrl
;
private
String
ivAvatarUrl
;
public
ProgressDialog
dialog
;
public
ProgressDialog
dialog
;
...
@@ -152,14 +159,18 @@ public class PersonalInformationActivity extends BaseStatusActivity<PickerPresen
...
@@ -152,14 +159,18 @@ public class PersonalInformationActivity extends BaseStatusActivity<PickerPresen
if
(
TextUtils
.
isEmpty
(
info
.
getWxOpenid
()))
{
if
(
TextUtils
.
isEmpty
(
info
.
getWxOpenid
()))
{
tvBindingWx
.
setText
(
"去授权绑定微信"
);
tvBindingWx
.
setText
(
"去授权绑定微信"
);
llItemBindingWechat
.
setEnabled
(
true
);
}
else
{
}
else
{
tvBindingWx
.
setText
(
"已绑定"
);
tvBindingWx
.
setText
(
"已绑定"
);
llItemBindingWechat
.
setEnabled
(
false
);
}
}
if
(
TextUtils
.
isEmpty
(
info
.
getOpenid
()))
{
if
(
TextUtils
.
isEmpty
(
info
.
getOpenid
()))
{
tvBindingQq
.
setText
(
"去授权绑定QQ"
);
tvBindingQq
.
setText
(
"去授权绑定QQ"
);
llItemBindingQq
.
setEnabled
(
true
);
}
else
{
}
else
{
tvBindingQq
.
setText
(
"已绑定"
);
tvBindingQq
.
setText
(
"已绑定"
);
llItemBindingQq
.
setEnabled
(
false
);
}
}
}
}
}
}
...
@@ -192,7 +203,7 @@ public class PersonalInformationActivity extends BaseStatusActivity<PickerPresen
...
@@ -192,7 +203,7 @@ public class PersonalInformationActivity extends BaseStatusActivity<PickerPresen
String
url
=
mPresenter
.
gerCameraStoreUrl
();
String
url
=
mPresenter
.
gerCameraStoreUrl
();
GlideManager
.
getInstance
(
mActivity
).
loadImage
(
url
,
ivAvatar
);
GlideManager
.
getInstance
(
mActivity
).
loadImage
(
url
,
ivAvatar
);
uploadFile
(
new
File
(
mPresenter
.
gerCameraStoreUrl
()),
"camera"
);
uploadFile
(
new
File
(
mPresenter
.
gerCameraStoreUrl
()),
"camera"
);
}
else
{
}
else
{
UMShareAPI
.
get
(
mActivity
).
onActivityResult
(
requestCode
,
resultCode
,
data
);
UMShareAPI
.
get
(
mActivity
).
onActivityResult
(
requestCode
,
resultCode
,
data
);
}
}
...
@@ -214,10 +225,18 @@ public class PersonalInformationActivity extends BaseStatusActivity<PickerPresen
...
@@ -214,10 +225,18 @@ public class PersonalInformationActivity extends BaseStatusActivity<PickerPresen
}
else
if
(
id
==
R
.
id
.
ll_item_binding_qq
)
{
}
else
if
(
id
==
R
.
id
.
ll_item_binding_qq
)
{
//绑定qq
//绑定qq
if
(!
IsAppInstall
.
isQQClientAvailable
(
mActivity
))
{
showToast
(
"亲,您QQ还没有安装呢"
);
return
;
}
bindThirdParty
(
SHARE_MEDIA
.
QQ
);
bindThirdParty
(
SHARE_MEDIA
.
QQ
);
}
else
if
(
id
==
R
.
id
.
ll_item_binding_wechat
)
{
}
else
if
(
id
==
R
.
id
.
ll_item_binding_wechat
)
{
//绑定微信
//绑定微信
if
(!
IsAppInstall
.
isWeixinAvilible
(
mActivity
))
{
showToast
(
"亲,您微信还没有安装呢"
);
return
;
}
bindThirdParty
(
SHARE_MEDIA
.
WEIXIN
);
bindThirdParty
(
SHARE_MEDIA
.
WEIXIN
);
}
}
}
}
...
@@ -425,6 +444,13 @@ public class PersonalInformationActivity extends BaseStatusActivity<PickerPresen
...
@@ -425,6 +444,13 @@ public class PersonalInformationActivity extends BaseStatusActivity<PickerPresen
UMShareAPI
.
get
(
mActivity
).
onSaveInstanceState
(
outState
);
UMShareAPI
.
get
(
mActivity
).
onSaveInstanceState
(
outState
);
}
}
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
// TODO: add setContentView(...) invocation
ButterKnife
.
bind
(
this
);
}
private
class
UserInfo
{
private
class
UserInfo
{
private
String
id
;
//":23,
private
String
id
;
//":23,
...
...
module_mine/src/main/res/drawable/shape_rv_button_light_gray.xml
View file @
e146e3ca
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"
8
dp"
/>
<corners
android:radius=
"
50
dp"
/>
<solid
android:color=
"@color/colorGray"
/>
<solid
android:color=
"@color/colorGray"
/>
</shape>
</shape>
\ No newline at end of file
module_mine/src/main/res/layout/activity_personal_information.xml
View file @
e146e3ca
...
@@ -61,6 +61,7 @@
...
@@ -61,6 +61,7 @@
android:hint=
"请输入昵称"
android:hint=
"请输入昵称"
android:maxLength=
"10"
android:maxLength=
"10"
android:maxLines=
"1"
android:maxLines=
"1"
android:textColor=
"@color/colorMain"
android:textColorHint=
"@color/colorGray"
android:textColorHint=
"@color/colorGray"
android:textSize=
"@dimen/text_16"
/>
android:textSize=
"@dimen/text_16"
/>
</LinearLayout>
</LinearLayout>
...
@@ -128,8 +129,10 @@
...
@@ -128,8 +129,10 @@
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"right|center_vertical"
android:gravity=
"right|center_vertical"
android:text=
"请选择出生年月"
android:hint=
"请选择出生年月"
android:textColor=
"@color/colorGray"
android:text=
""
android:textColor=
"@color/colorMain"
android:textColorHint=
"@color/colorGray"
android:textSize=
"@dimen/text_16"
/>
android:textSize=
"@dimen/text_16"
/>
<ImageView
<ImageView
...
@@ -162,8 +165,10 @@
...
@@ -162,8 +165,10 @@
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"right|center_vertical"
android:gravity=
"right|center_vertical"
android:text=
"请选择性别"
android:hint=
"请选择性别"
android:textColor=
"@color/colorGray"
android:text=
""
android:textColor=
"@color/colorMain"
android:textColorHint=
"@color/colorGray"
android:textSize=
"@dimen/text_16"
/>
android:textSize=
"@dimen/text_16"
/>
<ImageView
<ImageView
...
@@ -201,6 +206,7 @@
...
@@ -201,6 +206,7 @@
android:inputType=
"phone|number"
android:inputType=
"phone|number"
android:maxLength=
"11"
android:maxLength=
"11"
android:maxLines=
"1"
android:maxLines=
"1"
android:textColor=
"@color/colorMain"
android:textColorHint=
"@color/colorGray"
android:textColorHint=
"@color/colorGray"
android:textSize=
"@dimen/text_16"
/>
android:textSize=
"@dimen/text_16"
/>
</LinearLayout>
</LinearLayout>
...
@@ -268,8 +274,10 @@
...
@@ -268,8 +274,10 @@
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"right|center_vertical"
android:gravity=
"right|center_vertical"
android:text=
"去授权绑定QQ"
android:hint=
"去授权绑定QQ"
android:textColor=
"@color/colorGray"
android:text=
""
android:textColor=
"@color/colorMain"
android:textColorHint=
"@color/colorGray"
android:textSize=
"@dimen/text_16"
/>
android:textSize=
"@dimen/text_16"
/>
<ImageView
<ImageView
...
@@ -302,8 +310,10 @@
...
@@ -302,8 +310,10 @@
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"right|center_vertical"
android:gravity=
"right|center_vertical"
android:text=
"去授权绑定微信"
android:hint=
"去授权绑定微信"
android:textColor=
"@color/colorGray"
android:text=
""
android:textColor=
"@color/colorMain"
android:textColorHint=
"@color/colorGray"
android:textSize=
"@dimen/text_16"
/>
android:textSize=
"@dimen/text_16"
/>
<ImageView
<ImageView
...
...
module_mine/src/main/res/layout/activity_setting.xml
View file @
e146e3ca
...
@@ -154,9 +154,9 @@
...
@@ -154,9 +154,9 @@
android:id=
"@+id/tv_out_sign"
android:id=
"@+id/tv_out_sign"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_50"
android:layout_height=
"@dimen/size_50"
android:layout_marginLeft=
"@dimen/size_
4
0"
android:layout_marginLeft=
"@dimen/size_
2
0"
android:layout_marginTop=
"@dimen/size_70"
android:layout_marginTop=
"@dimen/size_70"
android:layout_marginRight=
"@dimen/size_
4
0"
android:layout_marginRight=
"@dimen/size_
2
0"
android:background=
"@drawable/shape_rv_button_light_gray"
android:background=
"@drawable/shape_rv_button_light_gray"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"退出登录"
android:text=
"退出登录"
...
...
module_tourism/src/main/res/layout/activity_confirm_order_travel.xml
View file @
e146e3ca
...
@@ -545,7 +545,7 @@
...
@@ -545,7 +545,7 @@
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:background=
"@color/
colorYellow
"
android:background=
"@color/
gray_FFB74B
"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"确认订单"
android:text=
"确认订单"
android:textColor=
"@color/colorWrite"
android:textColor=
"@color/colorWrite"
...
...
module_tourism/src/main/res/layout/activity_travel_details.xml
View file @
e146e3ca
...
@@ -113,10 +113,9 @@
...
@@ -113,10 +113,9 @@
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:background=
"@color/
colorAuxiliaryYellow
"
android:background=
"@color/
gray_FFB74B
"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"立即预订"
android:text=
"立即预订"
android:textColor=
"@color/colorWrite"
android:textColor=
"@color/colorWrite"
android:textSize=
"@dimen/text_14"
/>
android:textSize=
"@dimen/text_14"
/>
...
...
plugin_coupon/src/main/java/com/xxrv/coupon/adapter/CouponMenuAdapter.java
View file @
e146e3ca
...
@@ -23,7 +23,7 @@ public class CouponMenuAdapter extends BaseQuickAdapter<String, BaseViewHolder>
...
@@ -23,7 +23,7 @@ public class CouponMenuAdapter extends BaseQuickAdapter<String, BaseViewHolder>
helper
.
setText
(
R
.
id
.
tv_title
,
item
);
helper
.
setText
(
R
.
id
.
tv_title
,
item
);
if
(
selectPosition
==
getPosition
(
item
))
{
if
(
selectPosition
==
getPosition
(
item
))
{
helper
.
setTextColor
(
R
.
id
.
tv_title
,
ContextCompat
.
getColor
(
mContext
,
R
.
color
.
colorAuxiliaryYellow
));
helper
.
setTextColor
(
R
.
id
.
tv_title
,
ContextCompat
.
getColor
(
mContext
,
R
.
color
.
gray_FFB74B
));
helper
.
setGone
(
R
.
id
.
view_line
,
true
);
helper
.
setGone
(
R
.
id
.
view_line
,
true
);
}
else
{
}
else
{
helper
.
setTextColor
(
R
.
id
.
tv_title
,
ContextCompat
.
getColor
(
mContext
,
R
.
color
.
textMain
));
helper
.
setTextColor
(
R
.
id
.
tv_title
,
ContextCompat
.
getColor
(
mContext
,
R
.
color
.
textMain
));
...
...
plugin_coupon/src/main/res/layout/rv_item_coupon_menu_horizontal.xml
View file @
e146e3ca
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
/>
/>
<View
<View
android:background=
"@color/
colorAuxiliaryYellow
"
android:background=
"@color/
gray_FFB74B
"
android:layout_marginTop=
"@dimen/size_15"
android:layout_marginTop=
"@dimen/size_15"
android:id=
"@+id/view_line"
android:id=
"@+id/view_line"
android:layout_width=
"@dimen/size_60"
android:layout_width=
"@dimen/size_60"
...
...
plugin_poster/src/main/java/com/rv/poster/plugin/PosterActivity.java
View file @
e146e3ca
...
@@ -56,7 +56,6 @@ import butterknife.OnClick;
...
@@ -56,7 +56,6 @@ import butterknife.OnClick;
@Route
(
path
=
Constance
.
ACTIVITY_URL_POSTERACTIVITY
)
@Route
(
path
=
Constance
.
ACTIVITY_URL_POSTERACTIVITY
)
public
class
PosterActivity
extends
BaseStatusActivity
<
CommonPresenter
>
{
public
class
PosterActivity
extends
BaseStatusActivity
<
CommonPresenter
>
{
@BindView
(
R2
.
id
.
img_bill_top
)
@BindView
(
R2
.
id
.
img_bill_top
)
ImageView
imgBillTop
;
ImageView
imgBillTop
;
@BindView
(
R2
.
id
.
ring_header
)
@BindView
(
R2
.
id
.
ring_header
)
...
...
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