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
f014039a
Commit
f014039a
authored
Aug 07, 2019
by
linfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页发烧友开发
parent
96a60a56
Changes
45
Show whitespace changes
Inline
Side-by-side
Showing
45 changed files
with
1185 additions
and
413 deletions
+1185
-413
start_back_icon.xml
RvClient/src/main/res/drawable/start_back_icon.xml
+8
-4
rv_act_weclome.xml
RvClient/src/main/res/layout/rv_act_weclome.xml
+4
-4
RvFrameConfig.java
RvFrame/src/main/java/com/frame/rv/config/RvFrameConfig.java
+5
-4
TransformationUtil.java
...n/java/com/ruiwenliu/wrapper/util/TransformationUtil.java
+3
-5
bottom_backgroud.png
..._resource/src/main/res/drawable-hdpi/bottom_backgroud.png
+0
-0
start_backgroud.png
...t_resource/src/main/res/drawable-hdpi/start_backgroud.png
+0
-0
start_backgroud2.png
..._resource/src/main/res/drawable-hdpi/start_backgroud2.png
+0
-0
start_backgroud2.png
..._resource/src/main/res/drawable-ldpi/start_backgroud2.png
+0
-0
start_backgroud2.png
..._resource/src/main/res/drawable-mdpi/start_backgroud2.png
+0
-0
bottom_backgroud2.png
...esource/src/main/res/drawable-xhdpi/bottom_backgroud2.png
+0
-0
icon_discovery_ask_like.png
...e/src/main/res/drawable-xhdpi/icon_discovery_ask_like.png
+0
-0
icon_discovery_ask_unlike.png
...src/main/res/drawable-xhdpi/icon_discovery_ask_unlike.png
+0
-0
icon_fragment_video_hint.png
.../src/main/res/drawable-xhdpi/icon_fragment_video_hint.png
+0
-0
start_backgroud2.png
...resource/src/main/res/drawable-xhdpi/start_backgroud2.png
+0
-0
start_backgroud2.png
...esource/src/main/res/drawable-xxhdpi/start_backgroud2.png
+0
-0
start_backgroud2.png
...source/src/main/res/drawable-xxxhdpi/start_backgroud2.png
+0
-0
DiscoveryRecommendAdapter.java
...com/xxfc/discovery/adapter/DiscoveryRecommendAdapter.java
+2
-2
DiscoveryApi.java
...ry/src/main/java/com/xxfc/discovery/api/DiscoveryApi.java
+3
-1
PatFragment.java
...rc/main/java/com/xxfc/discovery/fragment/PatFragment.java
+1
-0
DetailPatActivity.java
...main/java/com/xxfc/discovery/other/DetailPatActivity.java
+37
-2
ApiConfig.java
...e_home/src/main/java/com/rv/home/rv/module/ApiConfig.java
+3
-0
ConfirmOrderActivity.java
.../rv/home/rv/module/ui/main/home/ConfirmOrderActivity.java
+8
-1
HomeFragment.java
...java/com/rv/home/rv/module/ui/main/home/HomeFragment.java
+101
-22
CarRentalListAdapter.java
.../rv/module/ui/main/home/adapter/CarRentalListAdapter.java
+10
-1
RVEnthusiastAdapter.java
...e/rv/module/ui/main/home/adapter/RVEnthusiastAdapter.java
+44
-11
CarTypeListBean.java
.../rv/home/rv/module/ui/main/home/bean/CarTypeListBean.java
+9
-0
HomeRecommendBean.java
...v/home/rv/module/ui/main/home/bean/HomeRecommendBean.java
+797
-0
CompletedFragment.java
.../home/rv/module/ui/main/home/order/CompletedFragment.java
+16
-0
EvaluationActivity.java
...home/rv/module/ui/main/home/order/EvaluationActivity.java
+7
-1
ForPaymentFragment.java
...home/rv/module/ui/main/home/order/ForPaymentFragment.java
+7
-2
PickUpTheCarQRCodeActivity.java
...module/ui/main/home/order/PickUpTheCarQRCodeActivity.java
+9
-1
ToTravelFragment.java
...v/home/rv/module/ui/main/home/order/ToTravelFragment.java
+12
-0
CompletedAdapter.java
...v/module/ui/main/home/order/adapter/CompletedAdapter.java
+7
-1
ForPaymentAdapter.java
.../module/ui/main/home/order/adapter/ForPaymentAdapter.java
+8
-1
HaveToTravelAdapter.java
...odule/ui/main/home/order/adapter/HaveToTravelAdapter.java
+8
-1
OrderListAdapter.java
...v/module/ui/main/home/order/adapter/OrderListAdapter.java
+7
-1
ToTravelAdapter.java
...rv/module/ui/main/home/order/adapter/ToTravelAdapter.java
+7
-1
OrderListBean.java
...home/rv/module/ui/main/home/order/bean/OrderListBean.java
+9
-0
fragment_home.xml
module_home/src/main/res/layout/fragment_home.xml
+3
-326
rv_item_rv_enthusiast.xml
module_home/src/main/res/layout/rv_item_rv_enthusiast.xml
+34
-14
MineFragment.java
module_mine/src/main/java/com/rv/rvmine/MineFragment.java
+0
-1
PersonalInformationActivity.java
...a/com/rv/rvmine/traveler/PersonalInformationActivity.java
+6
-3
AndroidManifest.xml
module_tourism/src/main/AndroidManifest.xml
+2
-1
ConsumeRecordListAdapter.java
.../java/com/rv.member/adapter/ConsumeRecordListAdapter.java
+7
-1
dialog_update_view.xml
plugin_version/src/main/res/layout/dialog_update_view.xml
+1
-1
No files found.
RvClient/src/main/res/drawable/start_back_icon.xml
View file @
f014039a
...
@@ -2,11 +2,15 @@
...
@@ -2,11 +2,15 @@
<layer-list
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<layer-list
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item>
<item>
<shape>
<shape>
<solid
android:color=
"@color/colorWrite"
/>
<solid
android:color=
"@color/colorWrite"
/>
</shape>
</shape>
</item>
</item>
<item>
<item
<bitmap
android:src=
"@drawable/start_backgroud2"
android:bottom=
"@dimen/size_50"
>
android:gravity=
"center"
/>
<bitmap
android:gravity=
"bottom"
android:src=
"@drawable/bottom_backgroud2"
/>
</item>
</item>
</layer-list>
</layer-list>
\ No newline at end of file
RvClient/src/main/res/layout/rv_act_weclome.xml
View file @
f014039a
...
@@ -7,9 +7,9 @@
...
@@ -7,9 +7,9 @@
tools:context=
".WakeUpActivity"
>
tools:context=
".WakeUpActivity"
>
<ImageView
<ImageView
android:layout_width=
"
wrap_cont
ent"
android:layout_width=
"
match_par
ent"
android:layout_height=
"
wrap_cont
ent"
android:layout_height=
"
match_par
ent"
android:layout_gravity=
"center"
android:layout_gravity=
"center"
android:scaleType=
"centerCrop"
android:scaleType=
"centerCrop"
android:src=
"@drawable/start_backgroud
2"
/>
android:src=
"@drawable/start_backgroud
"
/>
</FrameLayout>
</FrameLayout>
RvFrame/src/main/java/com/frame/rv/config/RvFrameConfig.java
View file @
f014039a
...
@@ -11,11 +11,12 @@ public interface RvFrameConfig extends RvFrameConstant {
...
@@ -11,11 +11,12 @@ public interface RvFrameConfig extends RvFrameConstant {
// String HOST = "https://xxtest.upyuns.com";
// String HOST = "https://xxtest.upyuns.com";
// String HOST = "http://10.1.37.192:8765";
// String HOST = "http://10.1.37.192:8765";
// String HOST = "http://10.1.37.245:10000";
// String HOST = "http://10.1.37.245:10000";
//
String HOST = "https://dev.dfangche.com";
String
HOST
=
"https://dev.dfangche.com"
;
// String HOST = "https://api.dfangche.com";
// String HOST = "https://api.dfangche.com";
String
HOST
=
"https://mgmt.dfangche.com"
;
// String HOST = "https://mgmt.dfangche.com";
String
HOST_H5_DETAIL
=
"https://mgmt.dfangche.com"
;
// String HOST_H5_DETAIL = "https://mgmt.dfangche.com";
// String HOST_H5_DETAIL = "https://dev.dfangche.com";
// String HOST_H5_DETAIL = "https://xxtest.upyuns.com";
String
HOST_H5_DETAIL
=
"https://dev.dfangche.com"
;
String
ADMIN_POST
=
HOST
+
"/api/admin/"
;
String
ADMIN_POST
=
HOST
+
"/api/admin/"
;
String
AUTH_POST
=
HOST
+
"/api/auth/"
;
String
AUTH_POST
=
HOST
+
"/api/auth/"
;
String
VEHICLE_POST
=
HOST
+
"/vehicle/"
;
//租车
String
VEHICLE_POST
=
HOST
+
"/vehicle/"
;
//租车
...
...
module_discovery/src/main/java/com/xxfc/discovery/utils/TransformationUtils
.java
→
RvWrapper/src/main/java/com/ruiwenliu/wrapper/util/TransformationUtil
.java
View file @
f014039a
package
com
.
xxfc
.
discovery
.
utils
;
package
com
.
ruiwenliu
.
wrapper
.
util
;
import
android.graphics.Bitmap
;
import
android.graphics.Bitmap
;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
...
@@ -6,13 +6,11 @@ import android.widget.ImageView;
...
@@ -6,13 +6,11 @@ import android.widget.ImageView;
import
com.bumptech.glide.request.target.ImageViewTarget
;
import
com.bumptech.glide.request.target.ImageViewTarget
;
public
class
TransformationUtil
s
extends
ImageViewTarget
<
Bitmap
>
{
public
class
TransformationUtil
extends
ImageViewTarget
<
Bitmap
>
{
private
ImageView
target
;
private
ImageView
target
;
public
TransformationUtil
(
ImageView
target
)
{
public
TransformationUtils
(
ImageView
target
)
{
super
(
target
);
super
(
target
);
this
.
target
=
target
;
this
.
target
=
target
;
}
}
...
...
component_resource/src/main/res/drawable-hdpi/bottom_backgroud.png
0 → 100644
View file @
f014039a
31.4 KB
component_resource/src/main/res/drawable-hdpi/start_backgroud.png
0 → 100644
View file @
f014039a
211 KB
component_resource/src/main/res/drawable-hdpi/start_backgroud2.png
deleted
100644 → 0
View file @
96a60a56
6.6 KB
component_resource/src/main/res/drawable-ldpi/start_backgroud2.png
deleted
100644 → 0
View file @
96a60a56
3.29 KB
component_resource/src/main/res/drawable-mdpi/start_backgroud2.png
deleted
100644 → 0
View file @
96a60a56
4.13 KB
component_resource/src/main/res/drawable-xhdpi/bottom_backgroud2.png
0 → 100644
View file @
f014039a
16.6 KB
module_discovery
/src/main/res/drawable-xhdpi/icon_discovery_ask_like.png
→
component_resource
/src/main/res/drawable-xhdpi/icon_discovery_ask_like.png
View file @
f014039a
File moved
module_discovery
/src/main/res/drawable-xhdpi/icon_discovery_ask_unlike.png
→
component_resource
/src/main/res/drawable-xhdpi/icon_discovery_ask_unlike.png
View file @
f014039a
File moved
module_discovery
/src/main/res/drawable-xhdpi/icon_fragment_video_hint.png
→
component_resource
/src/main/res/drawable-xhdpi/icon_fragment_video_hint.png
View file @
f014039a
File moved
component_resource/src/main/res/drawable-xhdpi/start_backgroud2.png
deleted
100644 → 0
View file @
96a60a56
8.44 KB
component_resource/src/main/res/drawable-xxhdpi/start_backgroud2.png
deleted
100644 → 0
View file @
96a60a56
13.1 KB
component_resource/src/main/res/drawable-xxxhdpi/start_backgroud2.png
deleted
100644 → 0
View file @
96a60a56
16.7 KB
module_discovery/src/main/java/com/xxfc/discovery/adapter/DiscoveryRecommendAdapter.java
View file @
f014039a
...
@@ -14,12 +14,12 @@ import com.bumptech.glide.request.target.SimpleTarget;
...
@@ -14,12 +14,12 @@ import com.bumptech.glide.request.target.SimpleTarget;
import
com.bumptech.glide.request.transition.Transition
;
import
com.bumptech.glide.request.transition.Transition
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.chad.library.adapter.base.BaseViewHolder
;
import
com.chad.library.adapter.base.BaseViewHolder
;
import
com.ruiwenliu.wrapper.util.TransformationUtil
;
import
com.ruiwenliu.wrapper.util.glide.GlideManager
;
import
com.ruiwenliu.wrapper.util.glide.GlideManager
;
import
com.ruiwenliu.wrapper.util.glide.GlideOptions
;
import
com.ruiwenliu.wrapper.util.glide.GlideOptions
;
import
com.ruiwenliu.wrapper.util.glide.GlideRoundTransform
;
import
com.ruiwenliu.wrapper.util.glide.GlideRoundTransform
;
import
com.xxfc.discovery.R
;
import
com.xxfc.discovery.R
;
import
com.xxfc.discovery.bean.DiscoveryRecommendBean
;
import
com.xxfc.discovery.bean.DiscoveryRecommendBean
;
import
com.xxfc.discovery.utils.TransformationUtils
;
import
com.xxfc.imcamera.photopicker.Image
;
import
com.xxfc.imcamera.photopicker.Image
;
/**
/**
...
@@ -62,7 +62,7 @@ public class DiscoveryRecommendAdapter extends BaseQuickAdapter<DiscoveryRecomme
...
@@ -62,7 +62,7 @@ public class DiscoveryRecommendAdapter extends BaseQuickAdapter<DiscoveryRecomme
ImageView
image
=
helper
.
getView
(
R
.
id
.
iv_icon_pat
);
ImageView
image
=
helper
.
getView
(
R
.
id
.
iv_icon_pat
);
GlideOptions
options
=
GlideOptions
.
placeholderOf
(
com
.
ruiwenliu
.
wrapper
.
R
.
drawable
.
glide_icon_placeholder
).
GlideOptions
options
=
GlideOptions
.
placeholderOf
(
com
.
ruiwenliu
.
wrapper
.
R
.
drawable
.
glide_icon_placeholder
).
error
(
com
.
ruiwenliu
.
wrapper
.
R
.
drawable
.
glide_icon_error
);
error
(
com
.
ruiwenliu
.
wrapper
.
R
.
drawable
.
glide_icon_error
);
TransformationUtil
s
utils
=
new
TransformationUtils
(
image
);
TransformationUtil
utils
=
new
TransformationUtil
(
image
);
Glide
.
with
(
mContext
)
Glide
.
with
(
mContext
)
.
asBitmap
()
.
asBitmap
()
.
load
(
body
.
getImages
().
get
(
0
).
getOurl
())
.
load
(
body
.
getImages
().
get
(
0
).
getOurl
())
...
...
module_discovery/src/main/java/com/xxfc/discovery/api/DiscoveryApi.java
View file @
f014039a
...
@@ -3,7 +3,9 @@ package com.xxfc.discovery.api;
...
@@ -3,7 +3,9 @@ package com.xxfc.discovery.api;
import
com.frame.rv.config.RvFrameConfig
;
import
com.frame.rv.config.RvFrameConfig
;
public
interface
DiscoveryApi
extends
RvFrameConfig
{
public
interface
DiscoveryApi
extends
RvFrameConfig
{
String
IMA_BASEUSRL
=
"https://imapi.dfangche.com"
;
// String IMA_BASEUSRL = "https://imapi.dfangche.com";
String
IMA_BASEUSRL
=
"https://xxfcim.upyuns.com/xxfcim"
;
//问题列表
//问题列表
String
DISCOVERY_IMQUESTION_LIST
=
HOST
+
"/api/im/imQuestion/list"
;
String
DISCOVERY_IMQUESTION_LIST
=
HOST
+
"/api/im/imQuestion/list"
;
...
...
module_discovery/src/main/java/com/xxfc/discovery/fragment/PatFragment.java
View file @
f014039a
...
@@ -101,6 +101,7 @@ public class PatFragment extends BaseFragment<DiscoveryPresenter> implements Sim
...
@@ -101,6 +101,7 @@ public class PatFragment extends BaseFragment<DiscoveryPresenter> implements Sim
ARouter
.
getInstance
()
ARouter
.
getInstance
()
.
build
(
Constance
.
ACTIVITY_URL_DETAILPAT
)
.
build
(
Constance
.
ACTIVITY_URL_DETAILPAT
)
.
withString
(
"id"
,
item
.
getMsgId
())
.
withString
(
"id"
,
item
.
getMsgId
())
.
withString
(
"isPraise"
,
item
.
getIsPraise
())
.
navigation
();
.
navigation
();
}
}
}
}
...
...
module_discovery/src/main/java/com/xxfc/discovery/other/DetailPatActivity.java
View file @
f014039a
...
@@ -70,6 +70,11 @@ public class DetailPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
...
@@ -70,6 +70,11 @@ public class DetailPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
@Autowired
()
@Autowired
()
String
id
;
String
id
;
@Autowired
()
String
isPraise
;
private
boolean
praises
;
@Override
@Override
protected
int
setLayout
()
{
protected
int
setLayout
()
{
return
R
.
layout
.
activity_detail_pat
;
return
R
.
layout
.
activity_detail_pat
;
...
@@ -185,6 +190,28 @@ public class DetailPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
...
@@ -185,6 +190,28 @@ public class DetailPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
case
1
:
case
1
:
mWebView
.
reload
();
mWebView
.
reload
();
break
;
break
;
case
2
:
DiscoveryIMTokenBean
intokenBean2
=
(
DiscoveryIMTokenBean
)
result
;
setIMData
(
intokenBean2
);
break
;
case
3
:
case
4
:
mWebView
.
reload
();
break
;
}
}
private
void
setIMData
(
DiscoveryIMTokenBean
bean
)
{
if
(
praises
)
{
//0:未点赞 1:已点赞
Map
<
String
,
Object
>
map
=
new
LinkedHashMap
<>();
map
.
put
(
"access_token"
,
bean
.
getData
());
map
.
put
(
"messageId"
,
id
);
mPresenter
.
postData
(
3
,
DiscoveryApi
.
DISCOVERY_PRAISE_ADD
,
BaseBean
.
class
,
map
,
false
);
}
else
{
Map
<
String
,
Object
>
map
=
new
LinkedHashMap
<>();
map
.
put
(
"access_token"
,
bean
.
getData
());
map
.
put
(
"messageId"
,
id
);
mPresenter
.
postData
(
4
,
DiscoveryApi
.
DISCOVERY_PRAISE_DELETE
,
BaseBean
.
class
,
map
,
false
);
}
}
}
}
...
@@ -218,8 +245,16 @@ public class DetailPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
...
@@ -218,8 +245,16 @@ public class DetailPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
@JavascriptInterface
@JavascriptInterface
public
void
isLike
()
{
public
void
isLike
(
boolean
praise
)
{
showToast
(
"点点"
);
praises
=
praise
;
if
(
OkGoUtil
.
getToken
()
!=
null
)
{
Map
<
String
,
Object
>
headMap
=
new
LinkedHashMap
<>();
headMap
.
put
(
"Authorization"
,
OkGoUtil
.
getToken
());
mPresenter
.
postData
(
RvFrameConfig
.
HOST
,
2
,
DiscoveryApi
.
DISCOVERY_IM_LOGIN
,
DiscoveryIMTokenBean
.
class
,
headMap
,
headMap
,
false
);
}
else
{
ARouter
.
getInstance
().
build
(
Constance
.
ACTIVITY_URL_LOGINRV
).
navigation
();
}
}
}
}
}
...
...
module_home/src/main/java/com/rv/home/rv/module/ApiConfig.java
View file @
f014039a
...
@@ -122,4 +122,7 @@ public class ApiConfig {
...
@@ -122,4 +122,7 @@ public class ApiConfig {
//押金退还进度
//押金退还进度
public
static
String
HTTP_URL_WEBVIEW_REFUNDPROGRESS
=
RvFrameConfig
.
HOST_H5_DETAIL
+
"/h5/appHtml/view/depositProgress.html"
;
public
static
String
HTTP_URL_WEBVIEW_REFUNDPROGRESS
=
RvFrameConfig
.
HOST_H5_DETAIL
+
"/h5/appHtml/view/depositProgress.html"
;
//获取推荐消息列表
public
static
String
RVENTHUSIAST_HOTMSG_LIST
=
RvFrameConfig
.
HOST
+
"/api/im/msg/app/unauth/hotMsg/list"
;
}
}
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/ConfirmOrderActivity.java
View file @
f014039a
...
@@ -624,7 +624,14 @@ public class ConfirmOrderActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -624,7 +624,14 @@ public class ConfirmOrderActivity extends BaseStatusActivity<CommonPresenter> {
* 初始化View
* 初始化View
*/
*/
private
void
intiView
()
{
private
void
intiView
()
{
GlideManager
.
getInstance
(
mActivity
).
loadImage
(
mCarBean
.
getVehicleModel
().
getIcon
(),
ivGoods
);
String
icon
=
""
;
if
(!
TextUtils
.
isEmpty
(
mCarBean
.
getVehicleModel
().
getCoverPic
())){
icon
=
mCarBean
.
getVehicleModel
().
getCoverPic
();
}
else
{
icon
=
mCarBean
.
getVehicleModel
().
getIcon
();
}
GlideManager
.
getInstance
(
mActivity
).
loadImage
(
icon
,
ivGoods
);
tvName
.
setText
(
mCarBean
.
getVehicleModel
().
getName
());
tvName
.
setText
(
mCarBean
.
getVehicleModel
().
getName
());
tvContent
.
setText
(
mCarBean
.
getVehicleModel
().
getKeyword
());
tvContent
.
setText
(
mCarBean
.
getVehicleModel
().
getKeyword
());
ratingBar
.
setStarMark
((
float
)
mCarBean
.
getVehicleModel
().
getScore
()
/
10
);
ratingBar
.
setStarMark
((
float
)
mCarBean
.
getVehicleModel
().
getScore
()
/
10
);
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/HomeFragment.java
View file @
f014039a
...
@@ -14,6 +14,7 @@ import android.support.annotation.Nullable;
...
@@ -14,6 +14,7 @@ import android.support.annotation.Nullable;
import
android.support.v7.widget.GridLayoutManager
;
import
android.support.v7.widget.GridLayoutManager
;
import
android.support.v7.widget.LinearLayoutManager
;
import
android.support.v7.widget.LinearLayoutManager
;
import
android.support.v7.widget.RecyclerView
;
import
android.support.v7.widget.RecyclerView
;
import
android.support.v7.widget.StaggeredGridLayoutManager
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
android.util.Log
;
import
android.util.Log
;
import
android.view.LayoutInflater
;
import
android.view.LayoutInflater
;
...
@@ -67,6 +68,7 @@ import com.rv.home.rv.module.ui.main.home.bean.BeanHomeBanner;
...
@@ -67,6 +68,7 @@ import com.rv.home.rv.module.ui.main.home.bean.BeanHomeBanner;
import
com.rv.home.rv.module.ui.main.home.bean.CityPickerBean
;
import
com.rv.home.rv.module.ui.main.home.bean.CityPickerBean
;
import
com.rv.home.rv.module.ui.main.home.bean.HomeHotGoodListBean
;
import
com.rv.home.rv.module.ui.main.home.bean.HomeHotGoodListBean
;
import
com.rv.home.rv.module.ui.main.home.bean.HomePopularBrigade
;
import
com.rv.home.rv.module.ui.main.home.bean.HomePopularBrigade
;
import
com.rv.home.rv.module.ui.main.home.bean.HomeRecommendBean
;
import
com.rv.home.rv.module.ui.main.home.bean.ListsBean
;
import
com.rv.home.rv.module.ui.main.home.bean.ListsBean
;
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.SelectedActivitiesBean
;
import
com.rv.home.rv.module.ui.main.home.bean.SelectedActivitiesBean
;
...
@@ -127,8 +129,8 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
...
@@ -127,8 +129,8 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
RecyclerView
recyclerViewRvtourlist
;
RecyclerView
recyclerViewRvtourlist
;
@BindView
(
R2
.
id
.
recyclerView_rvtourlist_title
)
@BindView
(
R2
.
id
.
recyclerView_rvtourlist_title
)
RecyclerView
recyclerViewRvtourlistTitle
;
RecyclerView
recyclerViewRvtourlistTitle
;
//
@BindView(R2.id.recyclerView_rv_enthusiast)
@BindView
(
R2
.
id
.
recyclerView_rv_enthusiast
)
//
RecyclerView recyclerViewRvEnthusiast;
RecyclerView
recyclerViewRvEnthusiast
;
@BindView
(
R2
.
id
.
travel_city_text
)
@BindView
(
R2
.
id
.
travel_city_text
)
TextView
travelCityText
;
TextView
travelCityText
;
@BindView
(
R2
.
id
.
travel_city_layout
)
@BindView
(
R2
.
id
.
travel_city_layout
)
...
@@ -234,12 +236,15 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
...
@@ -234,12 +236,15 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
private
HotCarTypeAdapter
mAdapter
;
private
HotCarTypeAdapter
mAdapter
;
private
SelectedEventsAdapter
mActivityAdapter
;
private
SelectedEventsAdapter
mActivityAdapter
;
//
private RVEnthusiastAdapter mRvEnthusiast;
private
RVEnthusiastAdapter
mRvEnthusiast
;
private
RVTourListAdapter
mRvTourAdapter
;
private
RVTourListAdapter
mRvTourAdapter
;
private
RVTourListLabelAdapter
mRvTourLabelAdapter
;
private
RVTourListLabelAdapter
mRvTourLabelAdapter
;
private
int
height
;
private
int
height
;
private
int
countPage
;
private
int
mPage
;
public
static
HomeFragment
getInstance
(
int
type
)
{
public
static
HomeFragment
getInstance
(
int
type
)
{
Bundle
bundl
=
new
Bundle
();
Bundle
bundl
=
new
Bundle
();
bundl
.
putInt
(
"type"
,
type
);
bundl
.
putInt
(
"type"
,
type
);
...
@@ -313,12 +318,35 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
...
@@ -313,12 +318,35 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
});
});
//房车发烧友
//房车发烧友
// mRvEnthusiast = new RVEnthusiastAdapter();
mRvEnthusiast
=
new
RVEnthusiastAdapter
();
// recyclerViewRvEnthusiast.setLayoutManager(new GridLayoutManager(getContext(), 2));
final
StaggeredGridLayoutManager
staggeredGridLayoutManager
=
new
StaggeredGridLayoutManager
(
2
,
StaggeredGridLayoutManager
.
VERTICAL
);
// recyclerViewRvEnthusiast.addItemDecoration(new AbSpacesItemDecoration(10));// 分割线。
// recyclerViewRvEnthusiast.addItemDecoration(new flow(10));
recyclerViewRvEnthusiast
.
setItemAnimator
(
null
);
// recyclerViewRvEnthusiast.setNestedScrollingEnabled(false);
recyclerViewRvEnthusiast
.
addOnScrollListener
(
new
RecyclerView
.
OnScrollListener
()
{
// recyclerViewRvEnthusiast.setAdapter(mRvEnthusiast);
@Override
public
void
onScrollStateChanged
(
RecyclerView
recyclerView
,
int
newState
)
{
super
.
onScrollStateChanged
(
recyclerView
,
newState
);
int
[]
first
=
new
int
[
2
];
staggeredGridLayoutManager
.
findFirstCompletelyVisibleItemPositions
(
first
);
if
(
newState
==
RecyclerView
.
SCROLL_STATE_IDLE
&&
(
first
[
0
]
==
1
||
first
[
1
]
==
1
))
{
recyclerView
.
invalidateItemDecorations
();
}
}
});
recyclerViewRvEnthusiast
.
setLayoutManager
(
staggeredGridLayoutManager
);
recyclerViewRvEnthusiast
.
addItemDecoration
(
new
AbSpacesItemDecoration
(
20
));
// 分割线。
recyclerViewRvEnthusiast
.
setAdapter
(
mRvEnthusiast
);
mRvEnthusiast
.
bindToRecyclerView
(
recyclerViewRvEnthusiast
);
mRvEnthusiast
.
setEnableLoadMore
(
true
);
mRvEnthusiast
.
disableLoadMoreIfNotFullPage
();
recyclerViewRvEnthusiast
.
setLayoutManager
(
new
GridLayoutManager
(
getContext
(),
2
));
recyclerViewRvEnthusiast
.
addItemDecoration
(
new
AbSpacesItemDecoration
(
10
));
// 分割线。
recyclerViewRvEnthusiast
.
addItemDecoration
(
new
flow
(
10
));
recyclerViewRvEnthusiast
.
setNestedScrollingEnabled
(
false
);
recyclerViewRvEnthusiast
.
setAdapter
(
mRvEnthusiast
);
//房车游榜单
//房车游榜单
mRvTourAdapter
=
new
RVTourListAdapter
();
mRvTourAdapter
=
new
RVTourListAdapter
();
...
@@ -393,24 +421,12 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
...
@@ -393,24 +421,12 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
});
});
}
}
@Override
public
View
onCreateView
(
LayoutInflater
inflater
,
ViewGroup
container
,
Bundle
savedInstanceState
)
{
// TODO: inflate a fragment view
View
rootView
=
super
.
onCreateView
(
inflater
,
container
,
savedInstanceState
);
unbinder3
=
ButterKnife
.
bind
(
this
,
rootView
);
return
rootView
;
}
@Override
public
void
onDestroyView
()
{
super
.
onDestroyView
();
unbinder3
.
unbind
();
}
@Override
@Override
public
void
onRefresh
()
{
public
void
onRefresh
()
{
hotData
();
hotData
();
recommendGood
(
"2"
);
recommendGood
(
"2"
);
onFreshLoadDisCovery
();
}
}
...
@@ -433,6 +449,32 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
...
@@ -433,6 +449,32 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
}
}
}
}
public
class
AbSpacesItemDecoration2
extends
RecyclerView
.
ItemDecoration
{
private
int
left
;
private
int
right
;
public
AbSpacesItemDecoration2
(
int
left
,
int
right
)
{
this
.
left
=
left
;
this
.
right
=
right
;
}
@Override
public
void
getItemOffsets
(
Rect
outRect
,
View
view
,
RecyclerView
parent
,
RecyclerView
.
State
state
)
{
int
position
=
parent
.
getChildAdapterPosition
(
view
);
StaggeredGridLayoutManager
.
LayoutParams
lp
=
(
StaggeredGridLayoutManager
.
LayoutParams
)
view
.
getLayoutParams
();
if
(
lp
.
getSpanIndex
()
%
2
==
0
)
{
outRect
.
left
=
left
;
outRect
.
right
=
right
;
}
else
{
outRect
.
left
=
right
;
outRect
.
right
=
left
;
}
outRect
.
top
=
left
;
}
}
public
class
flow
extends
RecyclerView
.
ItemDecoration
{
public
class
flow
extends
RecyclerView
.
ItemDecoration
{
private
int
space
;
private
int
space
;
...
@@ -471,6 +513,24 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
...
@@ -471,6 +513,24 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
loadBannerData
();
loadBannerData
();
hotData
();
hotData
();
recommendGood
(
"2"
);
recommendGood
(
"2"
);
onFreshLoadDisCovery
();
}
/**
* 刷新
*/
private
void
onFreshLoadDisCovery
()
{
mPage
=
1
;
loadDisCovery
(
mPage
);
}
/**
* 房车发烧友
*/
private
void
loadDisCovery
(
int
page
)
{
Map
<
String
,
Object
>
map
=
new
LinkedHashMap
<>();
map
.
put
(
"page"
,
page
);
mPresenter
.
postData
(
5
,
ApiConfig
.
RVENTHUSIAST_HOTMSG_LIST
,
HomeRecommendBean
.
class
,
map
,
false
);
}
}
/**
/**
...
@@ -526,10 +586,27 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
...
@@ -526,10 +586,27 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
mActivityAdapter
.
setNewData
(
bean
.
getData
());
mActivityAdapter
.
setNewData
(
bean
.
getData
());
}
}
break
;
break
;
case
5
:
setRecommend
((
HomeRecommendBean
)
result
);
break
;
}
}
}
}
private
void
setRecommend
(
HomeRecommendBean
bean
)
{
if
(
mPage
==
1
)
{
countPage
=
bean
.
getData
().
getTotalPage
();
mRvEnthusiast
.
setNewData
(
bean
.
getData
().
getList
());
if
(
bean
.
getData
().
getTotalCount
()
==
0
)
{
// mRvEnthusiast.setEmptyView(getEmptyView(rvContent, -1, "暂无推荐数据"));
mRvEnthusiast
.
notifyDataSetChanged
();
}
}
else
{
mRvEnthusiast
.
addData
(
bean
.
getData
().
getList
());
mRvEnthusiast
.
loadMoreComplete
();
}
}
private
void
setRecommendGood
(
HomeHotGoodListBean
data
)
{
private
void
setRecommendGood
(
HomeHotGoodListBean
data
)
{
mAdapter
.
getData
().
clear
();
mAdapter
.
getData
().
clear
();
mAdapter
.
setType
(
hotType
);
mAdapter
.
setType
(
hotType
);
...
@@ -1003,6 +1080,7 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
...
@@ -1003,6 +1080,7 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
headTvOutShop
.
setTextColor
(
_mActivity
.
getResources
().
getColor
(
R
.
color
.
colorMain
));
headTvOutShop
.
setTextColor
(
_mActivity
.
getResources
().
getColor
(
R
.
color
.
colorMain
));
outLatitude
=
bean
.
getData
().
getData
().
get
(
0
).
getLatitude
();
outLatitude
=
bean
.
getData
().
getData
().
get
(
0
).
getLatitude
();
outLongitude
=
bean
.
getData
().
getData
().
get
(
0
).
getLongitude
();
outLongitude
=
bean
.
getData
().
getData
().
get
(
0
).
getLongitude
();
outCompanyId
=
bean
.
getData
().
getData
().
get
(
0
).
getId
();
}
}
}
else
{
}
else
{
getCompanyName
=
""
;
getCompanyName
=
""
;
...
@@ -1081,6 +1159,7 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
...
@@ -1081,6 +1159,7 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
dataBean
.
setStartTime
(
DateUtils
.
StringToTimeMillis2
(
getTime
));
dataBean
.
setStartTime
(
DateUtils
.
StringToTimeMillis2
(
getTime
));
dataBean
.
setEndTime
(
DateUtils
.
StringToTimeMillis2
(
outTime
));
dataBean
.
setEndTime
(
DateUtils
.
StringToTimeMillis2
(
outTime
));
dataBean
.
setEndCityName
(
endCity
);
dataBean
.
setEndCityName
(
endCity
);
dataBean
.
setEndCompanyId
(
outCompanyId
);
dataBean
.
setEndAddr
(
endAddress
);
dataBean
.
setEndAddr
(
endAddress
);
dataBean
.
setDriverType
(
2
);
dataBean
.
setDriverType
(
2
);
dataBean
.
setStartCompanyId
(
getCompanyId
);
dataBean
.
setStartCompanyId
(
getCompanyId
);
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/adapter/CarRentalListAdapter.java
View file @
f014039a
package
com
.
rv
.
home
.
rv
.
module
.
ui
.
main
.
home
.
adapter
;
package
com
.
rv
.
home
.
rv
.
module
.
ui
.
main
.
home
.
adapter
;
import
android.text.TextUtils
;
import
android.view.View
;
import
android.view.View
;
import
android.widget.ImageView
;
import
android.widget.ImageView
;
...
@@ -30,7 +31,15 @@ public class CarRentalListAdapter extends BaseQuickAdapter<CarTypeListBean.DataB
...
@@ -30,7 +31,15 @@ public class CarRentalListAdapter extends BaseQuickAdapter<CarTypeListBean.DataB
helper
.
setText
(
R
.
id
.
tv_name
,
item
.
getVehicleModel
().
getName
());
helper
.
setText
(
R
.
id
.
tv_name
,
item
.
getVehicleModel
().
getName
());
helper
.
setText
(
R
.
id
.
tv_context
,
item
.
getVehicleModel
().
getKeyword
());
helper
.
setText
(
R
.
id
.
tv_context
,
item
.
getVehicleModel
().
getKeyword
());
helper
.
setText
(
R
.
id
.
tv_point
,
String
.
valueOf
(
item
.
getVehicleModel
().
getPoint
()));
helper
.
setText
(
R
.
id
.
tv_point
,
String
.
valueOf
(
item
.
getVehicleModel
().
getPoint
()));
helper
.
loadRoundImage
(
mContext
,
item
.
getVehicleModel
().
getIcon
(),
(
ImageView
)
helper
.
getView
(
R
.
id
.
iv_goods
),
10
,
DisplayUtil
.
dip2px
(
mContext
,
helper
.
getView
(
R
.
id
.
iv_goods
).
getWidth
()),
DisplayUtil
.
dip2px
(
mContext
,
helper
.
getView
(
R
.
id
.
iv_goods
).
getHeight
()));
String
icon
=
""
;
if
(!
TextUtils
.
isEmpty
(
item
.
getVehicleModel
().
getCoverPic
())){
icon
=
item
.
getVehicleModel
().
getCoverPic
();
}
else
{
icon
=
item
.
getVehicleModel
().
getIcon
();
}
helper
.
loadRoundImage
(
mContext
,
icon
,
(
ImageView
)
helper
.
getView
(
R
.
id
.
iv_goods
),
10
,
DisplayUtil
.
dip2px
(
mContext
,
helper
.
getView
(
R
.
id
.
iv_goods
).
getWidth
()),
DisplayUtil
.
dip2px
(
mContext
,
helper
.
getView
(
R
.
id
.
iv_goods
).
getHeight
()));
// helper.setText(R.id.tv_name,item);
// helper.setText(R.id.tv_name,item);
helper
.
setText
(
R
.
id
.
tv_price
,
String
.
format
(
"¥%1$s%2$s"
,
item
.
getVehicleModel
().
getPrice
(),
mContext
.
getString
(
R
.
string
.
rv_day
)));
helper
.
setText
(
R
.
id
.
tv_price
,
String
.
format
(
"¥%1$s%2$s"
,
item
.
getVehicleModel
().
getPrice
(),
mContext
.
getString
(
R
.
string
.
rv_day
)));
float
score
=
(
float
)
item
.
getVehicleModel
().
getScore
()
/
10
;
float
score
=
(
float
)
item
.
getVehicleModel
().
getScore
()
/
10
;
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/adapter/RVEnthusiastAdapter.java
View file @
f014039a
package
com
.
rv
.
home
.
rv
.
module
.
ui
.
main
.
home
.
adapter
;
package
com
.
rv
.
home
.
rv
.
module
.
ui
.
main
.
home
.
adapter
;
import
android.view.ViewGroup
;
import
android.widget.ImageView
;
import
android.widget.ImageView
;
import
com.bumptech.glide.Glide
;
import
com.bumptech.glide.load.resource.bitmap.RoundedCorners
;
import
com.bumptech.glide.request.RequestOptions
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.ruiwenliu.wrapper.util.BaseGlideHolder
;
import
com.ruiwenliu.wrapper.util.BaseGlideHolder
;
import
com.ruiwenliu.wrapper.util.TransformationUtil
;
import
com.ruiwenliu.wrapper.util.glide.GlideManager
;
import
com.ruiwenliu.wrapper.util.glide.GlideManager
;
import
com.ruiwenliu.wrapper.util.glide.GlideOptions
;
import
com.rv.home.R
;
import
com.rv.home.R
;
import
com.rv.home.rv.module.ui.main.home.bean.HomeRecommendBean
;
import
java.util.Random
;
public
class
RVEnthusiastAdapter
extends
BaseQuickAdapter
<
HomeRecommendBean
.
DataBeanX
.
DataBean
,
BaseGlideHolder
>
{
public
class
RVEnthusiastAdapter
extends
BaseQuickAdapter
<
String
,
BaseGlideHolder
>
{
public
RVEnthusiastAdapter
()
{
public
RVEnthusiastAdapter
()
{
super
(
R
.
layout
.
rv_item_rv_enthusiast
);
super
(
R
.
layout
.
rv_item_rv_enthusiast
);
}
}
@Override
@Override
protected
void
convert
(
BaseGlideHolder
helper
,
String
string
)
{
protected
void
convert
(
BaseGlideHolder
helper
,
HomeRecommendBean
.
DataBeanX
.
DataBean
item
)
{
helper
.
loadRoundImage
(
mContext
,
string
,(
ImageView
)
helper
.
getView
(
R
.
id
.
iv_activity
),
6
);
HomeRecommendBean
.
DataBeanX
.
DataBean
.
Body
body
=
item
.
getBody
();
// GlideManager.getInstance(mContext).loadRoundImage(string, (ImageView)helper.getView(R.id.iv_activity),20);
if
(
body
!=
null
)
{
if
(
body
.
getImages
()
!=
null
&&
body
.
getImages
().
size
()
>
0
)
{
// GlideManager.getInstance(mContext).loadRoundImage2(body.getImages().get(0).getOurl(), (ImageView) helper.getView(R.id.iv_icon_pat),8);
ImageView
image
=
helper
.
getView
(
R
.
id
.
iv_icon_pat
);
GlideOptions
options
=
GlideOptions
.
placeholderOf
(
com
.
ruiwenliu
.
wrapper
.
R
.
drawable
.
glide_icon_placeholder
).
error
(
com
.
ruiwenliu
.
wrapper
.
R
.
drawable
.
glide_icon_error
);
TransformationUtil
utils
=
new
TransformationUtil
(
image
);
Glide
.
with
(
mContext
)
.
asBitmap
()
.
load
(
body
.
getImages
().
get
(
0
).
getOurl
())
.
apply
(
options
)
.
apply
(
RequestOptions
.
bitmapTransform
(
new
RoundedCorners
(
12
)).
override
(
image
.
getWidth
(),
image
.
getHeight
()))
.
into
(
utils
);
}
helper
.
setText
(
R
.
id
.
tv_title
,
body
.
getText
());
if
(
"4"
.
equals
(
body
.
getType
()))
{
//消息类型 基础属性 1=文字消息、2=图文消息、3=语音消息、4=视频消息、 5=文件消
helper
.
setGone
(
R
.
id
.
iv_isvideo
,
true
);
}
else
{
helper
.
setGone
(
R
.
id
.
iv_isvideo
,
false
);
}
}
helper
.
setText
(
R
.
id
.
tv_user_name
,
item
.
getNickname
());
GlideManager
.
getInstance
(
mContext
).
loadImage
(
item
.
getPicUrl
(),
(
ImageView
)
helper
.
getView
(
R
.
id
.
iv_user_icon
));
if
(
item
.
getCount
()
!=
null
)
{
helper
.
setText
(
R
.
id
.
iv_like_number
,
item
.
getCount
().
getPraise
());
}
if
(
"1"
.
equals
(
item
.
getIsPraise
()))
{
//0:未点赞 1:已点赞
helper
.
setImageResource
(
R
.
id
.
iv_like
,
R
.
drawable
.
icon_discovery_ask_like
);
}
else
{
helper
.
setImageResource
(
R
.
id
.
iv_like
,
R
.
drawable
.
icon_discovery_ask_unlike
);
}
// ViewGroup.LayoutParams layoutParams = helper.getView(R.id.ll_item_rv_enthusiast).getLayoutParams();
helper
.
addOnClickListener
(
R
.
id
.
ll_item_islike
);
// layoutParams.height = new Random().nextInt(200)+500;
// helper.getView(R.id.ll_item_rv_enthusiast).setLayoutParams(layoutParams);
}
}
}
}
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/bean/CarTypeListBean.java
View file @
f014039a
...
@@ -167,6 +167,7 @@ public class CarTypeListBean extends BaseBean implements Serializable {
...
@@ -167,6 +167,7 @@ public class CarTypeListBean extends BaseBean implements Serializable {
private
String
rentDiscountPrice
;
//租车优惠价格
private
String
rentDiscountPrice
;
//租车优惠价格
private
int
rentDiscountStatus
;
//租车优惠状态 0–没有优惠;1–会员折扣;2–固定值
private
int
rentDiscountStatus
;
//租车优惠状态 0–没有优惠;1–会员折扣;2–固定值
private
int
score
;
private
int
score
;
private
String
coverPic
;
public
double
getSum
()
{
public
double
getSum
()
{
BeanUserInfo
.
UserInfo
info
=
null
;
BeanUserInfo
.
UserInfo
info
=
null
;
...
@@ -308,6 +309,14 @@ public class CarTypeListBean extends BaseBean implements Serializable {
...
@@ -308,6 +309,14 @@ public class CarTypeListBean extends BaseBean implements Serializable {
public
void
setScore
(
int
score
)
{
public
void
setScore
(
int
score
)
{
this
.
score
=
score
;
this
.
score
=
score
;
}
}
public
String
getCoverPic
()
{
return
coverPic
;
}
public
void
setCoverPic
(
String
coverPic
)
{
this
.
coverPic
=
coverPic
;
}
}
}
public
static
class
CompanyBean
implements
Serializable
{
public
static
class
CompanyBean
implements
Serializable
{
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/bean/HomeRecommendBean.java
0 → 100644
View file @
f014039a
package
com
.
rv
.
home
.
rv
.
module
.
ui
.
main
.
home
.
bean
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
HomeRecommendBean
extends
BaseBean
{
private
DataBeanX
data
;
private
boolean
rel
;
public
DataBeanX
getData
()
{
return
data
;
}
public
void
setData
(
DataBeanX
data
)
{
this
.
data
=
data
;
}
public
boolean
isRel
()
{
return
rel
;
}
public
void
setRel
(
boolean
rel
)
{
this
.
rel
=
rel
;
}
public
static
class
DataBeanX
{
private
int
totalCount
;
private
int
totalPage
;
private
int
pageNum
;
private
int
pageSize
;
private
int
total
;
private
int
size
;
private
int
startRow
;
private
int
endRow
;
private
int
pages
;
private
int
prePage
;
private
int
nextPage
;
private
boolean
isFirstPage
;
private
boolean
isLastPage
;
private
boolean
hasPreviousPage
;
private
boolean
hasNextPage
;
private
int
navigatePages
;
private
ArrayList
<
Integer
>
navigatepageNums
;
private
int
navigateFirstPage
;
private
int
navigateLastPage
;
private
List
<
DataBean
>
list
;
public
int
getTotalCount
()
{
return
totalCount
;
}
public
void
setTotalCount
(
int
totalCount
)
{
this
.
totalCount
=
totalCount
;
}
public
int
getTotalPage
()
{
return
totalPage
;
}
public
void
setTotalPage
(
int
totalPage
)
{
this
.
totalPage
=
totalPage
;
}
public
int
getPageNum
()
{
return
pageNum
;
}
public
void
setPageNum
(
int
pageNum
)
{
this
.
pageNum
=
pageNum
;
}
public
int
getPageSize
()
{
return
pageSize
;
}
public
void
setPageSize
(
int
pageSize
)
{
this
.
pageSize
=
pageSize
;
}
public
int
getTotal
()
{
return
total
;
}
public
void
setTotal
(
int
total
)
{
this
.
total
=
total
;
}
public
int
getSize
()
{
return
size
;
}
public
void
setSize
(
int
size
)
{
this
.
size
=
size
;
}
public
int
getStartRow
()
{
return
startRow
;
}
public
void
setStartRow
(
int
startRow
)
{
this
.
startRow
=
startRow
;
}
public
int
getEndRow
()
{
return
endRow
;
}
public
void
setEndRow
(
int
endRow
)
{
this
.
endRow
=
endRow
;
}
public
int
getPages
()
{
return
pages
;
}
public
void
setPages
(
int
pages
)
{
this
.
pages
=
pages
;
}
public
int
getPrePage
()
{
return
prePage
;
}
public
void
setPrePage
(
int
prePage
)
{
this
.
prePage
=
prePage
;
}
public
int
getNextPage
()
{
return
nextPage
;
}
public
void
setNextPage
(
int
nextPage
)
{
this
.
nextPage
=
nextPage
;
}
public
boolean
isFirstPage
()
{
return
isFirstPage
;
}
public
void
setFirstPage
(
boolean
firstPage
)
{
isFirstPage
=
firstPage
;
}
public
boolean
isLastPage
()
{
return
isLastPage
;
}
public
void
setLastPage
(
boolean
lastPage
)
{
isLastPage
=
lastPage
;
}
public
boolean
isHasPreviousPage
()
{
return
hasPreviousPage
;
}
public
void
setHasPreviousPage
(
boolean
hasPreviousPage
)
{
this
.
hasPreviousPage
=
hasPreviousPage
;
}
public
boolean
isHasNextPage
()
{
return
hasNextPage
;
}
public
void
setHasNextPage
(
boolean
hasNextPage
)
{
this
.
hasNextPage
=
hasNextPage
;
}
public
int
getNavigatePages
()
{
return
navigatePages
;
}
public
void
setNavigatePages
(
int
navigatePages
)
{
this
.
navigatePages
=
navigatePages
;
}
public
ArrayList
<
Integer
>
getNavigatepageNums
()
{
return
navigatepageNums
;
}
public
void
setNavigatepageNums
(
ArrayList
<
Integer
>
navigatepageNums
)
{
this
.
navigatepageNums
=
navigatepageNums
;
}
public
int
getNavigateFirstPage
()
{
return
navigateFirstPage
;
}
public
void
setNavigateFirstPage
(
int
navigateFirstPage
)
{
this
.
navigateFirstPage
=
navigateFirstPage
;
}
public
int
getNavigateLastPage
()
{
return
navigateLastPage
;
}
public
void
setNavigateLastPage
(
int
navigateLastPage
)
{
this
.
navigateLastPage
=
navigateLastPage
;
}
public
List
<
DataBean
>
getList
()
{
return
list
;
}
public
void
setList
(
List
<
DataBean
>
list
)
{
this
.
list
=
list
;
}
public
static
class
DataBean
implements
Serializable
{
private
String
cityId
;
private
String
flag
;
private
double
latitude
;
private
double
longitude
;
private
String
model
;
private
String
nickname
;
private
String
picUrl
;
private
String
time
;
private
String
userId
;
private
String
visible
;
private
String
isPraise
;
//0:未点赞 1:已点赞
private
String
isCollect
;
private
String
state
;
private
String
isAllowComment
;
private
Count
count
;
private
MsgId
id
;
private
String
msgId
;
private
Body
body
;
private
List
<
Comments
>
comments
;
private
List
<
praises
>
praises
;
public
String
getMsgId
()
{
return
msgId
;
}
public
void
setMsgId
(
String
msgId
)
{
this
.
msgId
=
msgId
;
}
public
String
getCityId
()
{
return
cityId
;
}
public
void
setCityId
(
String
cityId
)
{
this
.
cityId
=
cityId
;
}
public
String
getFlag
()
{
return
flag
;
}
public
void
setFlag
(
String
flag
)
{
this
.
flag
=
flag
;
}
public
double
getLatitude
()
{
return
latitude
;
}
public
void
setLatitude
(
double
latitude
)
{
this
.
latitude
=
latitude
;
}
public
double
getLongitude
()
{
return
longitude
;
}
public
void
setLongitude
(
double
longitude
)
{
this
.
longitude
=
longitude
;
}
public
String
getModel
()
{
return
model
;
}
public
void
setModel
(
String
model
)
{
this
.
model
=
model
;
}
public
String
getNickname
()
{
return
nickname
;
}
public
void
setNickname
(
String
nickname
)
{
this
.
nickname
=
nickname
;
}
public
String
getPicUrl
()
{
return
picUrl
;
}
public
void
setPicUrl
(
String
picUrl
)
{
this
.
picUrl
=
picUrl
;
}
public
String
getTime
()
{
return
time
;
}
public
void
setTime
(
String
time
)
{
this
.
time
=
time
;
}
public
String
getUserId
()
{
return
userId
;
}
public
void
setUserId
(
String
userId
)
{
this
.
userId
=
userId
;
}
public
String
getVisible
()
{
return
visible
;
}
public
void
setVisible
(
String
visible
)
{
this
.
visible
=
visible
;
}
public
String
getIsPraise
()
{
return
isPraise
;
}
public
void
setIsPraise
(
String
isPraise
)
{
this
.
isPraise
=
isPraise
;
}
public
String
getIsCollect
()
{
return
isCollect
;
}
public
void
setIsCollect
(
String
isCollect
)
{
this
.
isCollect
=
isCollect
;
}
public
String
getState
()
{
return
state
;
}
public
void
setState
(
String
state
)
{
this
.
state
=
state
;
}
public
String
getIsAllowComment
()
{
return
isAllowComment
;
}
public
void
setIsAllowComment
(
String
isAllowComment
)
{
this
.
isAllowComment
=
isAllowComment
;
}
public
Count
getCount
()
{
return
count
;
}
public
void
setCount
(
Count
count
)
{
this
.
count
=
count
;
}
public
MsgId
getId
()
{
return
id
;
}
public
void
setId
(
MsgId
id
)
{
this
.
id
=
id
;
}
public
Body
getBody
()
{
return
body
;
}
public
void
setBody
(
Body
body
)
{
this
.
body
=
body
;
}
public
List
<
Comments
>
getComments
()
{
return
comments
;
}
public
void
setComments
(
List
<
Comments
>
comments
)
{
this
.
comments
=
comments
;
}
public
List
<
DataBean
.
praises
>
getPraises
()
{
return
praises
;
}
public
void
setPraises
(
List
<
DataBean
.
praises
>
praises
)
{
this
.
praises
=
praises
;
}
public
static
class
Count
implements
Serializable
{
private
String
collect
;
private
String
comment
;
private
String
forward
;
private
String
money
;
private
String
play
;
private
String
praise
;
private
String
share
;
private
String
total
;
public
String
getCollect
()
{
return
collect
;
}
public
void
setCollect
(
String
collect
)
{
this
.
collect
=
collect
;
}
public
String
getComment
()
{
return
comment
;
}
public
void
setComment
(
String
comment
)
{
this
.
comment
=
comment
;
}
public
String
getForward
()
{
return
forward
;
}
public
void
setForward
(
String
forward
)
{
this
.
forward
=
forward
;
}
public
String
getMoney
()
{
return
money
;
}
public
void
setMoney
(
String
money
)
{
this
.
money
=
money
;
}
public
String
getPlay
()
{
return
play
;
}
public
void
setPlay
(
String
play
)
{
this
.
play
=
play
;
}
public
String
getPraise
()
{
return
praise
;
}
public
void
setPraise
(
String
praise
)
{
this
.
praise
=
praise
;
}
public
String
getShare
()
{
return
share
;
}
public
void
setShare
(
String
share
)
{
this
.
share
=
share
;
}
public
String
getTotal
()
{
return
total
;
}
public
void
setTotal
(
String
total
)
{
this
.
total
=
total
;
}
}
public
static
class
MsgId
implements
Serializable
{
private
String
timestamp
;
// ": 16,
private
String
machineIdentifier
;
// ": 16,
private
String
processIdentifier
;
// ": 16,
private
String
counter
;
// ": 16,
private
String
time
;
// ": 16,
private
String
date
;
// ": 16,
private
String
timeSecond
;
// ": 16,
public
String
getTimestamp
()
{
return
timestamp
;
}
public
void
setTimestamp
(
String
timestamp
)
{
this
.
timestamp
=
timestamp
;
}
public
String
getMachineIdentifier
()
{
return
machineIdentifier
;
}
public
void
setMachineIdentifier
(
String
machineIdentifier
)
{
this
.
machineIdentifier
=
machineIdentifier
;
}
public
String
getProcessIdentifier
()
{
return
processIdentifier
;
}
public
void
setProcessIdentifier
(
String
processIdentifier
)
{
this
.
processIdentifier
=
processIdentifier
;
}
public
String
getCounter
()
{
return
counter
;
}
public
void
setCounter
(
String
counter
)
{
this
.
counter
=
counter
;
}
public
String
getTime
()
{
return
time
;
}
public
void
setTime
(
String
time
)
{
this
.
time
=
time
;
}
public
String
getDate
()
{
return
date
;
}
public
void
setDate
(
String
date
)
{
this
.
date
=
date
;
}
public
String
getTimeSecond
()
{
return
timeSecond
;
}
public
void
setTimeSecond
(
String
timeSecond
)
{
this
.
timeSecond
=
timeSecond
;
}
}
public
static
class
Body
implements
Serializable
{
private
String
text
;
private
String
time
;
private
String
type
;
private
List
<
Images
>
images
;
public
String
getText
()
{
return
text
;
}
public
void
setText
(
String
text
)
{
this
.
text
=
text
;
}
public
String
getTime
()
{
return
time
;
}
public
void
setTime
(
String
time
)
{
this
.
time
=
time
;
}
public
String
getType
()
{
return
type
;
}
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
public
List
<
Images
>
getImages
()
{
return
images
;
}
public
void
setImages
(
List
<
Images
>
images
)
{
this
.
images
=
images
;
}
public
static
class
Images
implements
Serializable
{
private
String
length
;
private
String
size
;
private
String
turl
;
private
String
ourl
;
private
String
oUrl
;
private
String
tUrl
;
public
String
getLength
()
{
return
length
;
}
public
void
setLength
(
String
length
)
{
this
.
length
=
length
;
}
public
String
getSize
()
{
return
size
;
}
public
void
setSize
(
String
size
)
{
this
.
size
=
size
;
}
public
String
getTurl
()
{
return
turl
;
}
public
void
setTurl
(
String
turl
)
{
this
.
turl
=
turl
;
}
public
String
getOurl
()
{
return
ourl
;
}
public
void
setOurl
(
String
ourl
)
{
this
.
ourl
=
ourl
;
}
public
String
getoUrl
()
{
return
oUrl
;
}
public
void
setoUrl
(
String
oUrl
)
{
this
.
oUrl
=
oUrl
;
}
public
String
gettUrl
()
{
return
tUrl
;
}
public
void
settUrl
(
String
tUrl
)
{
this
.
tUrl
=
tUrl
;
}
}
}
public
static
class
Comments
implements
Serializable
{
private
String
body
;
private
String
nickname
;
private
String
time
;
private
String
toUserId
;
private
String
userId
;
private
MsgId
msgId
;
public
String
getBody
()
{
return
body
;
}
public
void
setBody
(
String
body
)
{
this
.
body
=
body
;
}
public
String
getNickname
()
{
return
nickname
;
}
public
void
setNickname
(
String
nickname
)
{
this
.
nickname
=
nickname
;
}
public
String
getTime
()
{
return
time
;
}
public
void
setTime
(
String
time
)
{
this
.
time
=
time
;
}
public
String
getToUserId
()
{
return
toUserId
;
}
public
void
setToUserId
(
String
toUserId
)
{
this
.
toUserId
=
toUserId
;
}
public
String
getUserId
()
{
return
userId
;
}
public
void
setUserId
(
String
userId
)
{
this
.
userId
=
userId
;
}
public
MsgId
getMsgId
()
{
return
msgId
;
}
public
void
setMsgId
(
MsgId
msgId
)
{
this
.
msgId
=
msgId
;
}
public
static
class
MsgId
implements
Serializable
{
private
String
timestamp
;
private
String
machineIdentifier
;
private
String
processIdentifier
;
private
String
counter
;
private
String
time
;
private
String
date
;
private
String
timeSecond
;
public
String
getTimestamp
()
{
return
timestamp
;
}
public
void
setTimestamp
(
String
timestamp
)
{
this
.
timestamp
=
timestamp
;
}
public
String
getMachineIdentifier
()
{
return
machineIdentifier
;
}
public
void
setMachineIdentifier
(
String
machineIdentifier
)
{
this
.
machineIdentifier
=
machineIdentifier
;
}
public
String
getProcessIdentifier
()
{
return
processIdentifier
;
}
public
void
setProcessIdentifier
(
String
processIdentifier
)
{
this
.
processIdentifier
=
processIdentifier
;
}
public
String
getCounter
()
{
return
counter
;
}
public
void
setCounter
(
String
counter
)
{
this
.
counter
=
counter
;
}
public
String
getTime
()
{
return
time
;
}
public
void
setTime
(
String
time
)
{
this
.
time
=
time
;
}
public
String
getDate
()
{
return
date
;
}
public
void
setDate
(
String
date
)
{
this
.
date
=
date
;
}
public
String
getTimeSecond
()
{
return
timeSecond
;
}
public
void
setTimeSecond
(
String
timeSecond
)
{
this
.
timeSecond
=
timeSecond
;
}
}
}
public
static
class
praises
implements
Serializable
{
private
String
nickname
;
private
String
time
;
private
String
userId
;
private
MsgId
msgId
;
public
String
getNickname
()
{
return
nickname
;
}
public
void
setNickname
(
String
nickname
)
{
this
.
nickname
=
nickname
;
}
public
String
getTime
()
{
return
time
;
}
public
void
setTime
(
String
time
)
{
this
.
time
=
time
;
}
public
String
getUserId
()
{
return
userId
;
}
public
void
setUserId
(
String
userId
)
{
this
.
userId
=
userId
;
}
public
MsgId
getMsgId
()
{
return
msgId
;
}
public
void
setMsgId
(
MsgId
msgId
)
{
this
.
msgId
=
msgId
;
}
}
}
}
}
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/order/CompletedFragment.java
View file @
f014039a
...
@@ -8,6 +8,9 @@ import android.view.View;
...
@@ -8,6 +8,9 @@ import android.view.View;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.chad.library.adapter.base.entity.MultiItemEntity
;
import
com.chad.library.adapter.base.entity.MultiItemEntity
;
import
com.frame.base.bus.Observer
;
import
com.frame.base.bus.PaymentSuccessfulEvent
;
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.BaseFragment
;
import
com.ruiwenliu.wrapper.base.BaseFragment
;
...
@@ -26,6 +29,7 @@ import java.util.LinkedHashMap;
...
@@ -26,6 +29,7 @@ import java.util.LinkedHashMap;
import
java.util.Map
;
import
java.util.Map
;
import
butterknife.BindView
;
import
butterknife.BindView
;
import
io.reactivex.schedulers.Schedulers
;
/**
/**
* Created :Auser
* Created :Auser
...
@@ -60,6 +64,7 @@ public class CompletedFragment extends BaseFragment<CommonPresenter> implements
...
@@ -60,6 +64,7 @@ public class CompletedFragment extends BaseFragment<CommonPresenter> implements
@Override
@Override
protected
void
initView
(
Bundle
savedInstanceState
)
{
protected
void
initView
(
Bundle
savedInstanceState
)
{
initRxbus
();
recyclerView
.
setLayoutManager
(
new
LinearLayoutManager
(
_mActivity
));
recyclerView
.
setLayoutManager
(
new
LinearLayoutManager
(
_mActivity
));
mAdapter
=
new
CompletedAdapter
(
new
ArrayList
<
MultiItemEntity
>());
mAdapter
=
new
CompletedAdapter
(
new
ArrayList
<
MultiItemEntity
>());
mAdapter
.
setOnLoadMoreListener
(
this
,
recyclerView
);
mAdapter
.
setOnLoadMoreListener
(
this
,
recyclerView
);
...
@@ -94,6 +99,17 @@ public class CompletedFragment extends BaseFragment<CommonPresenter> implements
...
@@ -94,6 +99,17 @@ public class CompletedFragment extends BaseFragment<CommonPresenter> implements
});
});
}
}
private
void
initRxbus
()
{
RxBus
.
tObservable
(
PaymentSuccessfulEvent
.
class
)
.
observeOn
(
Schedulers
.
newThread
())
.
subscribe
(
new
Observer
<
PaymentSuccessfulEvent
>(
disposable
)
{
@Override
public
void
onNext
(
PaymentSuccessfulEvent
event
)
{
onRefresh
();
}
});
}
@Override
@Override
protected
void
loadData
(
Bundle
savedInstanceState
)
{
protected
void
loadData
(
Bundle
savedInstanceState
)
{
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/order/EvaluationActivity.java
View file @
f014039a
...
@@ -114,7 +114,13 @@ public class EvaluationActivity extends BaseStatusActivity<PickerPresenter> {
...
@@ -114,7 +114,13 @@ public class EvaluationActivity extends BaseStatusActivity<PickerPresenter> {
if
(
dataBean
!=
null
)
{
if
(
dataBean
!=
null
)
{
tvName
.
setText
(
dataBean
.
getName
());
tvName
.
setText
(
dataBean
.
getName
());
GlideManager
.
getInstance
(
mActivity
).
loadImage
(
dataBean
.
getIcon
(),
ivCar
);
String
icon
=
""
;
if
(!
TextUtils
.
isEmpty
(
dataBean
.
getCoverPic
())){
icon
=
dataBean
.
getCoverPic
();
}
else
{
icon
=
dataBean
.
getIcon
();
}
GlideManager
.
getInstance
(
mActivity
).
loadImage
(
icon
,
ivCar
);
if
(
dataBean
.
getType
()
==
1
)
{
if
(
dataBean
.
getType
()
==
1
)
{
if
(
dataBean
.
getOrderRentVehicleDetail
()
!=
null
&&
!
TextUtils
.
isEmpty
(
dataBean
.
getOrderRentVehicleDetail
().
getCost_detail
()))
{
if
(
dataBean
.
getOrderRentVehicleDetail
()
!=
null
&&
!
TextUtils
.
isEmpty
(
dataBean
.
getOrderRentVehicleDetail
().
getCost_detail
()))
{
tvContent
.
setText
(
""
);
tvContent
.
setText
(
""
);
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/order/ForPaymentFragment.java
View file @
f014039a
...
@@ -150,12 +150,17 @@ public class ForPaymentFragment extends BaseFragment<CommonPresenter> implements
...
@@ -150,12 +150,17 @@ public class ForPaymentFragment extends BaseFragment<CommonPresenter> implements
public
void
accept
(
PaymentSuccessfulEvent
payEvent
)
throws
Exception
{
public
void
accept
(
PaymentSuccessfulEvent
payEvent
)
throws
Exception
{
if
(
payPosition
!=
-
1
)
{
if
(
payPosition
!=
-
1
)
{
if
(
mAdapter
!=
null
&&
!
mAdapter
.
getData
().
isEmpty
())
{
if
(
mAdapter
!=
null
&&
!
mAdapter
.
getData
().
isEmpty
())
{
mAdapter
.
getData
().
get
(
payPosition
);
mAdapter
.
getData
().
remove
(
payPosition
);
mAdapter
.
getData
().
remove
(
payPosition
);
mAdapter
.
notifyDataSetChanged
();
mAdapter
.
notifyDataSetChanged
();
}
}
}
}
if
(
mListener
!=
null
)
{
if
(
mListener
!=
null
&&
payBean
!=
null
)
{
if
(
payBean
.
getType
()
==
3
){
//订单类型 1–租车;2–旅游 3-会员
mListener
.
switchTab
(
3
);
mListener
.
switchTab
(
3
);
}
else
{
mListener
.
switchTab
(
1
);
}
}
}
}
}
});
});
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/order/PickUpTheCarQRCodeActivity.java
View file @
f014039a
...
@@ -6,6 +6,7 @@ import android.graphics.Bitmap;
...
@@ -6,6 +6,7 @@ import android.graphics.Bitmap;
import
android.graphics.BitmapFactory
;
import
android.graphics.BitmapFactory
;
import
android.graphics.Canvas
;
import
android.graphics.Canvas
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.text.TextUtils
;
import
android.view.View
;
import
android.view.View
;
import
android.widget.ImageView
;
import
android.widget.ImageView
;
import
android.widget.LinearLayout
;
import
android.widget.LinearLayout
;
...
@@ -98,7 +99,14 @@ public class PickUpTheCarQRCodeActivity extends BaseStatusActivity<PickerPresent
...
@@ -98,7 +99,14 @@ public class PickUpTheCarQRCodeActivity extends BaseStatusActivity<PickerPresent
tvOutAddress
.
setText
(
detail
.
getEnd_addr
());
tvOutAddress
.
setText
(
detail
.
getEnd_addr
());
tvOutTime
.
setText
(
TimeManager
.
stampToDate
(
String
.
valueOf
(
detail
.
getEnd_time
())));
tvOutTime
.
setText
(
TimeManager
.
stampToDate
(
String
.
valueOf
(
detail
.
getEnd_time
())));
tvPrice
.
setText
(
String
.
format
(
"¥%1$s"
,
dataBean
.
getRealAmount
()));
tvPrice
.
setText
(
String
.
format
(
"¥%1$s"
,
dataBean
.
getRealAmount
()));
GlideManager
.
getInstance
(
mActivity
).
loadImage
(
dataBean
.
getIcon
(),
ivGoods
);
String
icon
=
""
;
if
(!
TextUtils
.
isEmpty
(
dataBean
.
getCoverPic
())){
icon
=
dataBean
.
getCoverPic
();
}
else
{
icon
=
dataBean
.
getIcon
();
}
GlideManager
.
getInstance
(
mActivity
).
loadImage
(
icon
,
ivGoods
);
}
}
}
}
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/order/ToTravelFragment.java
View file @
f014039a
...
@@ -11,6 +11,7 @@ import com.chad.library.adapter.base.BaseQuickAdapter;
...
@@ -11,6 +11,7 @@ import com.chad.library.adapter.base.BaseQuickAdapter;
import
com.chad.library.adapter.base.entity.MultiItemEntity
;
import
com.chad.library.adapter.base.entity.MultiItemEntity
;
import
com.frame.base.bus.CancelOrderEvent
;
import
com.frame.base.bus.CancelOrderEvent
;
import
com.frame.base.bus.Observer
;
import
com.frame.base.bus.Observer
;
import
com.frame.base.bus.PaymentSuccessfulEvent
;
import
com.frame.base.bus.RxBus
;
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
;
...
@@ -114,6 +115,17 @@ public class ToTravelFragment extends BaseFragment<CommonPresenter> implements B
...
@@ -114,6 +115,17 @@ public class ToTravelFragment extends BaseFragment<CommonPresenter> implements B
}
}
});
});
RxBus
.
tObservable
(
PaymentSuccessfulEvent
.
class
)
.
observeOn
(
Schedulers
.
newThread
())
.
subscribe
(
new
Observer
<
PaymentSuccessfulEvent
>(
disposable
)
{
@Override
public
void
onNext
(
PaymentSuccessfulEvent
event
)
{
onRefresh
();
}
});
}
}
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/order/adapter/CompletedAdapter.java
View file @
f014039a
...
@@ -46,7 +46,13 @@ public class CompletedAdapter extends BaseMultiItemQuickAdapter<MultiItemEntity,
...
@@ -46,7 +46,13 @@ public class CompletedAdapter extends BaseMultiItemQuickAdapter<MultiItemEntity,
helper
.
setText
(
R
.
id
.
tv_city
,
dataBean
.
getOrderRentVehicleDetail
().
getStart_city_name
());
helper
.
setText
(
R
.
id
.
tv_city
,
dataBean
.
getOrderRentVehicleDetail
().
getStart_city_name
());
}
}
helper
.
setText
(
R
.
id
.
tv_order_state
,
mContext
.
getString
(
R
.
string
.
rv_order_completed
));
helper
.
setText
(
R
.
id
.
tv_order_state
,
mContext
.
getString
(
R
.
string
.
rv_order_completed
));
helper
.
loadRoundImage
(
mContext
,
dataBean
.
getIcon
(),
(
ImageView
)
helper
.
getView
(
R
.
id
.
iv_goods
),
8
);
String
icon
=
""
;
if
(!
TextUtils
.
isEmpty
(
dataBean
.
getCoverPic
())){
icon
=
dataBean
.
getCoverPic
();
}
else
{
icon
=
dataBean
.
getIcon
();
}
helper
.
loadRoundImage
(
mContext
,
icon
,
(
ImageView
)
helper
.
getView
(
R
.
id
.
iv_goods
),
8
);
helper
.
setText
(
R
.
id
.
tv_car_type
,
dataBean
.
getName
());
helper
.
setText
(
R
.
id
.
tv_car_type
,
dataBean
.
getName
());
if
(
dataBean
.
getOrderRentVehicleDetail
()
!=
null
)
{
if
(
dataBean
.
getOrderRentVehicleDetail
()
!=
null
)
{
helper
.
setText
(
R
.
id
.
tv_get_time
,
DateUtils
.
timestampToString1
(
dataBean
.
getOrderRentVehicleDetail
().
getStart_time
()));
helper
.
setText
(
R
.
id
.
tv_get_time
,
DateUtils
.
timestampToString1
(
dataBean
.
getOrderRentVehicleDetail
().
getStart_time
()));
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/order/adapter/ForPaymentAdapter.java
View file @
f014039a
...
@@ -54,7 +54,14 @@ public class ForPaymentAdapter extends BaseMultiItemQuickAdapter<MultiItemEntity
...
@@ -54,7 +54,14 @@ public class ForPaymentAdapter extends BaseMultiItemQuickAdapter<MultiItemEntity
}
}
helper
.
setText
(
R
.
id
.
tv_order_state
,
mContext
.
getString
(
R
.
string
.
rv_order_for_payment
));
helper
.
setText
(
R
.
id
.
tv_order_state
,
mContext
.
getString
(
R
.
string
.
rv_order_for_payment
));
helper
.
loadRoundImage
(
mContext
,
dataBean
.
getIcon
(),
(
ImageView
)
helper
.
getView
(
R
.
id
.
iv_goods
),
8
);
String
icon
=
""
;
if
(!
TextUtils
.
isEmpty
(
dataBean
.
getCoverPic
())){
icon
=
dataBean
.
getCoverPic
();
}
else
{
icon
=
dataBean
.
getIcon
();
}
helper
.
loadRoundImage
(
mContext
,
icon
,
(
ImageView
)
helper
.
getView
(
R
.
id
.
iv_goods
),
8
);
helper
.
setText
(
R
.
id
.
tv_car_type
,
dataBean
.
getName
());
helper
.
setText
(
R
.
id
.
tv_car_type
,
dataBean
.
getName
());
if
(
dataBean
.
getOrderRentVehicleDetail
()
!=
null
)
{
if
(
dataBean
.
getOrderRentVehicleDetail
()
!=
null
)
{
helper
.
setText
(
R
.
id
.
tv_get_time
,
DateUtils
.
timestampToString1
(
dataBean
.
getOrderRentVehicleDetail
().
getStart_time
()));
helper
.
setText
(
R
.
id
.
tv_get_time
,
DateUtils
.
timestampToString1
(
dataBean
.
getOrderRentVehicleDetail
().
getStart_time
()));
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/order/adapter/HaveToTravelAdapter.java
View file @
f014039a
...
@@ -46,7 +46,14 @@ public class HaveToTravelAdapter extends BaseMultiItemQuickAdapter<MultiItemEnti
...
@@ -46,7 +46,14 @@ public class HaveToTravelAdapter extends BaseMultiItemQuickAdapter<MultiItemEnti
helper
.
setText
(
R
.
id
.
tv_city
,
dataBean
.
getOrderRentVehicleDetail
().
getStart_city_name
());
helper
.
setText
(
R
.
id
.
tv_city
,
dataBean
.
getOrderRentVehicleDetail
().
getStart_city_name
());
}
}
helper
.
setText
(
R
.
id
.
tv_order_state
,
mContext
.
getString
(
R
.
string
.
rv_order_have_travel
));
helper
.
setText
(
R
.
id
.
tv_order_state
,
mContext
.
getString
(
R
.
string
.
rv_order_have_travel
));
helper
.
loadRoundImage
(
mContext
,
dataBean
.
getIcon
(),
(
ImageView
)
helper
.
getView
(
R
.
id
.
iv_goods
),
8
);
String
icon
=
""
;
if
(!
TextUtils
.
isEmpty
(
dataBean
.
getCoverPic
())){
icon
=
dataBean
.
getCoverPic
();
}
else
{
icon
=
dataBean
.
getIcon
();
}
helper
.
loadRoundImage
(
mContext
,
icon
,
(
ImageView
)
helper
.
getView
(
R
.
id
.
iv_goods
),
8
);
helper
.
setText
(
R
.
id
.
tv_car_type
,
dataBean
.
getName
());
helper
.
setText
(
R
.
id
.
tv_car_type
,
dataBean
.
getName
());
if
(
dataBean
.
getOrderRentVehicleDetail
()
!=
null
)
{
if
(
dataBean
.
getOrderRentVehicleDetail
()
!=
null
)
{
helper
.
setText
(
R
.
id
.
tv_get_time
,
DateUtils
.
timestampToString1
(
dataBean
.
getOrderRentVehicleDetail
().
getStart_time
()));
helper
.
setText
(
R
.
id
.
tv_get_time
,
DateUtils
.
timestampToString1
(
dataBean
.
getOrderRentVehicleDetail
().
getStart_time
()));
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/order/adapter/OrderListAdapter.java
View file @
f014039a
...
@@ -48,7 +48,13 @@ public class OrderListAdapter extends BaseMultiItemQuickAdapter<MultiItemEntity,
...
@@ -48,7 +48,13 @@ public class OrderListAdapter extends BaseMultiItemQuickAdapter<MultiItemEntity,
if
(
dataBean
.
getOrderRentVehicleDetail
()
!=
null
&&
dataBean
.
getOrderRentVehicleDetail
().
getStart_city_name
()
!=
null
)
{
if
(
dataBean
.
getOrderRentVehicleDetail
()
!=
null
&&
dataBean
.
getOrderRentVehicleDetail
().
getStart_city_name
()
!=
null
)
{
helper
.
setText
(
R
.
id
.
tv_city
,
dataBean
.
getOrderRentVehicleDetail
().
getStart_city_name
());
helper
.
setText
(
R
.
id
.
tv_city
,
dataBean
.
getOrderRentVehicleDetail
().
getStart_city_name
());
}
}
helper
.
loadRoundImage
(
mContext
,
dataBean
.
getIcon
(),
(
ImageView
)
helper
.
getView
(
R
.
id
.
iv_goods
),
8
);
String
icon
=
""
;
if
(!
TextUtils
.
isEmpty
(
dataBean
.
getCoverPic
())){
icon
=
dataBean
.
getCoverPic
();
}
else
{
icon
=
dataBean
.
getIcon
();
}
helper
.
loadRoundImage
(
mContext
,
icon
,
(
ImageView
)
helper
.
getView
(
R
.
id
.
iv_goods
),
8
);
helper
.
setText
(
R
.
id
.
tv_car_type
,
dataBean
.
getName
());
helper
.
setText
(
R
.
id
.
tv_car_type
,
dataBean
.
getName
());
if
(
dataBean
.
getOrderRentVehicleDetail
()
!=
null
)
{
if
(
dataBean
.
getOrderRentVehicleDetail
()
!=
null
)
{
helper
.
setText
(
R
.
id
.
tv_get_time
,
DateUtils
.
timestampToString1
(
dataBean
.
getOrderRentVehicleDetail
().
getStart_time
()));
helper
.
setText
(
R
.
id
.
tv_get_time
,
DateUtils
.
timestampToString1
(
dataBean
.
getOrderRentVehicleDetail
().
getStart_time
()));
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/order/adapter/ToTravelAdapter.java
View file @
f014039a
...
@@ -46,7 +46,13 @@ public class ToTravelAdapter extends BaseMultiItemQuickAdapter<MultiItemEntity,
...
@@ -46,7 +46,13 @@ public class ToTravelAdapter extends BaseMultiItemQuickAdapter<MultiItemEntity,
helper
.
setText
(
R
.
id
.
tv_city
,
dataBean
.
getOrderRentVehicleDetail
().
getStart_city_name
());
helper
.
setText
(
R
.
id
.
tv_city
,
dataBean
.
getOrderRentVehicleDetail
().
getStart_city_name
());
}
}
helper
.
setText
(
R
.
id
.
tv_order_state
,
mContext
.
getString
(
R
.
string
.
rv_order_to_travel
));
helper
.
setText
(
R
.
id
.
tv_order_state
,
mContext
.
getString
(
R
.
string
.
rv_order_to_travel
));
helper
.
loadRoundImage
(
mContext
,
dataBean
.
getIcon
(),
(
ImageView
)
helper
.
getView
(
R
.
id
.
iv_goods
),
8
);
String
icon
=
""
;
if
(!
TextUtils
.
isEmpty
(
dataBean
.
getCoverPic
())){
icon
=
dataBean
.
getCoverPic
();
}
else
{
icon
=
dataBean
.
getIcon
();
}
helper
.
loadRoundImage
(
mContext
,
icon
,
(
ImageView
)
helper
.
getView
(
R
.
id
.
iv_goods
),
8
);
helper
.
setText
(
R
.
id
.
tv_car_type
,
dataBean
.
getName
());
helper
.
setText
(
R
.
id
.
tv_car_type
,
dataBean
.
getName
());
if
(
dataBean
.
getOrderRentVehicleDetail
()
!=
null
)
{
if
(
dataBean
.
getOrderRentVehicleDetail
()
!=
null
)
{
helper
.
setText
(
R
.
id
.
tv_get_time
,
DateUtils
.
timestampToString1
(
dataBean
.
getOrderRentVehicleDetail
().
getStart_time
()));
helper
.
setText
(
R
.
id
.
tv_get_time
,
DateUtils
.
timestampToString1
(
dataBean
.
getOrderRentVehicleDetail
().
getStart_time
()));
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/order/bean/OrderListBean.java
View file @
f014039a
...
@@ -144,6 +144,15 @@ public class OrderListBean extends BaseBean implements Serializable {
...
@@ -144,6 +144,15 @@ public class OrderListBean extends BaseBean implements Serializable {
private
OrderMemberDetail
orderMemberDetail
;
private
OrderMemberDetail
orderMemberDetail
;
private
int
detailId
;
private
int
detailId
;
private
String
name
;
private
String
name
;
private
String
coverPic
;
public
String
getCoverPic
()
{
return
coverPic
;
}
public
void
setCoverPic
(
String
coverPic
)
{
this
.
coverPic
=
coverPic
;
}
public
String
getQrcodeStr
()
{
public
String
getQrcodeStr
()
{
return
qrcodeStr
;
return
qrcodeStr
;
...
...
module_home/src/main/res/layout/fragment_home.xml
View file @
f014039a
...
@@ -6,7 +6,8 @@
...
@@ -6,7 +6,8 @@
android:background=
"@color/colorLine"
android:background=
"@color/colorLine"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<com.ruiwenliu.wrapper.weight.refresh.SimpleRefreshLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<com.ruiwenliu.wrapper.weight.refresh.SimpleRefreshLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/refresh"
android:id=
"@+id/refresh"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
...
@@ -684,335 +685,11 @@
...
@@ -684,335 +685,11 @@
android:text=
"分享精彩时刻"
android:text=
"分享精彩时刻"
android:textSize=
"@dimen/text_10"
/>
android:textSize=
"@dimen/text_10"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginTop=
"@dimen/size_10"
android:layout_marginRight=
"@dimen/size_15"
android:layout_marginBottom=
"@dimen/size_15"
android:orientation=
"horizontal"
>
<LinearLayout
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"@dimen/size_5"
android:layout_weight=
"1"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@drawable/shape_rv_bg_write_semicircle"
android:orientation=
"vertical"
>
<ImageView
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_220"
android:scaleType=
"centerCrop"
android:src=
"@drawable/aa1"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_5"
android:paddingLeft=
"@dimen/size_5"
android:paddingRight=
"@dimen/size_5"
android:text=
"行摄川西邂逅生命中未知的精彩"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_14"
/>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_5"
android:layout_marginBottom=
"@dimen/size_10"
android:paddingLeft=
"@dimen/size_5"
android:paddingRight=
"@dimen/size_5"
>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<ImageView
android:layout_width=
"@dimen/size_15"
android:layout_height=
"@dimen/size_15"
android:src=
"@drawable/aa_ivava"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_3"
android:text=
"房车旅行家Rose"
android:textSize=
"@dimen/text_8"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<ImageView
android:layout_width=
"@dimen/size_15"
android:layout_height=
"@dimen/size_15"
android:padding=
"@dimen/size_1"
android:src=
"@drawable/aa_icon_like"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_3"
android:text=
"10589"
android:textColor=
"#FFB74B"
android:textSize=
"@dimen/text_8"
/>
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_10"
android:background=
"@drawable/shape_rv_bg_write_semicircle"
android:orientation=
"vertical"
>
<ImageView
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_250"
android:scaleType=
"centerCrop"
android:src=
"@drawable/aa4"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_5"
android:paddingLeft=
"@dimen/size_5"
android:paddingRight=
"@dimen/size_5"
android:text=
"夏季就来草原欢—若尔盖"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_14"
/>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_5"
android:layout_marginBottom=
"@dimen/size_10"
android:paddingLeft=
"@dimen/size_5"
android:paddingRight=
"@dimen/size_5"
>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<ImageView
android:layout_width=
"@dimen/size_15"
android:layout_height=
"@dimen/size_15"
android:src=
"@drawable/aa_ivava"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_3"
android:text=
"房车旅行家Rose"
android:textSize=
"@dimen/text_8"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<ImageView
android:layout_width=
"@dimen/size_15"
android:layout_height=
"@dimen/size_15"
android:padding=
"@dimen/size_1"
android:src=
"@drawable/aa_icon_like"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_3"
android:text=
"10589"
android:textColor=
"#FFB74B"
android:textSize=
"@dimen/text_8"
/>
</LinearLayout>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_5"
android:layout_weight=
"1"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@drawable/shape_rv_bg_write_semicircle"
android:orientation=
"vertical"
>
<ImageView
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_250"
android:scaleType=
"centerCrop"
android:src=
"@drawable/aa33"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_5"
android:paddingLeft=
"@dimen/size_5"
android:paddingRight=
"@dimen/size_5"
android:text=
"带上房车去旅行,打卡新晋网红露营地—四川冶..."
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_14"
/>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_5"
android:layout_marginBottom=
"@dimen/size_10"
android:paddingLeft=
"@dimen/size_5"
android:paddingRight=
"@dimen/size_5"
>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<ImageView
android:layout_width=
"@dimen/size_15"
android:layout_height=
"@dimen/size_15"
android:src=
"@drawable/aa_ivava"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_3"
android:text=
"房车旅行家Rose"
android:textSize=
"@dimen/text_8"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<ImageView
android:layout_width=
"@dimen/size_15"
android:layout_height=
"@dimen/size_15"
android:padding=
"@dimen/size_1"
android:src=
"@drawable/aa_icon_like"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_3"
android:text=
"10589"
android:textColor=
"#FFB74B"
android:textSize=
"@dimen/text_8"
/>
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_10"
android:background=
"@drawable/shape_rv_bg_write_semicircle"
android:orientation=
"vertical"
>
<ImageView
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_200"
android:scaleType=
"centerCrop"
android:src=
"@drawable/aa2"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_5"
android:paddingLeft=
"@dimen/size_5"
android:paddingRight=
"@dimen/size_5"
android:text=
"来一场一万两千公里的蜜月旅行—归程"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_14"
/>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_5"
android:layout_marginBottom=
"@dimen/size_10"
android:paddingLeft=
"@dimen/size_5"
android:paddingRight=
"@dimen/size_5"
>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<ImageView
android:layout_width=
"@dimen/size_15"
android:layout_height=
"@dimen/size_15"
android:src=
"@drawable/aa_ivava"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_3"
android:text=
"房车旅行家Rose"
android:textSize=
"@dimen/text_8"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<ImageView
android:layout_width=
"@dimen/size_15"
android:layout_height=
"@dimen/size_15"
android:padding=
"@dimen/size_1"
android:src=
"@drawable/aa_icon_like"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_3"
android:text=
"10589"
android:textColor=
"#FFB74B"
android:textSize=
"@dimen/text_8"
/>
</LinearLayout>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<android.support.v7.widget.RecyclerView
<android.support.v7.widget.RecyclerView
android:id=
"@+id/recyclerView_rv_enthusiast"
android:id=
"@+id/recyclerView_rv_enthusiast"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
/>
android:paddingLeft=
"@dimen/size_8"
android:paddingRight=
"@dimen/size_8"
android:visibility=
"gone"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
...
...
module_home/src/main/res/layout/rv_item_rv_enthusiast.xml
View file @
f014039a
...
@@ -9,22 +9,36 @@
...
@@ -9,22 +9,36 @@
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@drawable/shape_rv_bg_write_semicircle"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<ImageView
<ImageView
android:id=
"@+id/iv_activity
"
android:id=
"@+id/iv_icon_pat
"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_180"
android:layout_height=
"wrap_content"
/>
android:scaleType=
"centerCrop"
/>
<ImageView
android:id=
"@+id/iv_isvideo"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:src=
"@drawable/icon_fragment_video_hint"
/>
</RelativeLayout>
<TextView
<TextView
android:id=
"@+id/tv_title"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_5"
android:layout_marginTop=
"@dimen/size_5"
android:paddingLeft=
"@dimen/size_5"
android:paddingLeft=
"@dimen/size_5"
android:paddingRight=
"@dimen/size_5"
android:paddingRight=
"@dimen/size_5"
android:maxLines=
"2"
android:ellipsize=
"end"
android:text=
"行摄川西邂逅生命中未知的精彩"
android:text=
"行摄川西邂逅生命中未知的精彩"
android:textColor=
"@color/colorMain"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_14"
/>
android:textSize=
"@dimen/text_14"
/>
...
@@ -34,8 +48,7 @@
...
@@ -34,8 +48,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_5"
android:layout_marginTop=
"@dimen/size_5"
android:layout_marginBottom=
"@dimen/size_10"
android:layout_marginBottom=
"@dimen/size_10"
android:paddingLeft=
"@dimen/size_5"
android:paddingLeft=
"@dimen/size_5"
>
android:paddingRight=
"@dimen/size_5"
>
<LinearLayout
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
@@ -43,12 +56,13 @@
...
@@ -43,12 +56,13 @@
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<ImageView
<com.base.utils.ui.image.round.RoundImageView
android:id=
"@+id/iv_user_icon"
android:layout_width=
"@dimen/size_15"
android:layout_width=
"@dimen/size_15"
android:layout_height=
"@dimen/size_15"
android:layout_height=
"@dimen/size_15"
/>
android:src=
"@drawable/aa_ivava"
/>
<TextView
<TextView
android:id=
"@+id/tv_user_name"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_3"
android:layout_marginLeft=
"@dimen/size_3"
...
@@ -57,24 +71,30 @@
...
@@ -57,24 +71,30 @@
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_item_islike"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:paddingLeft=
"@dimen/size_15"
android:paddingTop=
"@dimen/size_5"
android:paddingBottom=
"@dimen/size_5"
android:paddingRight=
"@dimen/size_15"
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<ImageView
<ImageView
android:id=
"@+id/iv_like"
android:layout_width=
"@dimen/size_15"
android:layout_width=
"@dimen/size_15"
android:layout_height=
"@dimen/size_15"
android:layout_height=
"@dimen/size_15"
android:padding=
"@dimen/size_1"
android:padding=
"@dimen/size_1"
/>
android:src=
"@drawable/aa_icon_like"
/>
<TextView
<TextView
android:id=
"@+id/iv_like_number"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_3"
android:layout_marginLeft=
"@dimen/size_3"
android:text=
"10589"
android:text=
"10589"
android:textColor=
"
#FFB74B
"
android:textColor=
"
@color/textGray
"
android:textSize=
"@dimen/text_8"
/>
android:textSize=
"@dimen/text_8"
/>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
...
...
module_mine/src/main/java/com/rv/rvmine/MineFragment.java
View file @
f014039a
...
@@ -435,7 +435,6 @@ public class MineFragment extends BaseFragment<CommonPresenter> implements Simpl
...
@@ -435,7 +435,6 @@ public class MineFragment extends BaseFragment<CommonPresenter> implements Simpl
}
}
}
}
/**
/**
* 获取轮播图
* 获取轮播图
*/
*/
...
...
module_mine/src/main/java/com/rv/rvmine/traveler/PersonalInformationActivity.java
View file @
f014039a
...
@@ -90,6 +90,8 @@ public class PersonalInformationActivity extends BaseStatusActivity<PickerPresen
...
@@ -90,6 +90,8 @@ public class PersonalInformationActivity extends BaseStatusActivity<PickerPresen
private
String
mUnionid
;
private
String
mUnionid
;
private
String
mHeadImg
;
private
String
mHeadImg
;
private
String
birthday
;
public
static
Intent
getIntent
(
Context
context
,
UserInfoBean
.
UserInfo
info
)
{
public
static
Intent
getIntent
(
Context
context
,
UserInfoBean
.
UserInfo
info
)
{
return
new
Intent
(
context
,
PersonalInformationActivity
.
class
)
return
new
Intent
(
context
,
PersonalInformationActivity
.
class
)
.
putExtra
(
"userinfo"
,
info
);
.
putExtra
(
"userinfo"
,
info
);
...
@@ -127,6 +129,7 @@ public class PersonalInformationActivity extends BaseStatusActivity<PickerPresen
...
@@ -127,6 +129,7 @@ public class PersonalInformationActivity extends BaseStatusActivity<PickerPresen
etName
.
setText
(
info
.
getRealname
());
etName
.
setText
(
info
.
getRealname
());
}
}
if
(
info
.
getBirthday
()
!=
null
)
{
if
(
info
.
getBirthday
()
!=
null
)
{
birthday
=
info
.
getBirthday
();
tvDateOfBirth
.
setText
(
info
.
getBirthday
());
tvDateOfBirth
.
setText
(
info
.
getBirthday
());
}
}
if
(
info
.
getSex
()
!=
null
)
{
if
(
info
.
getSex
()
!=
null
)
{
...
@@ -358,12 +361,11 @@ public class PersonalInformationActivity extends BaseStatusActivity<PickerPresen
...
@@ -358,12 +361,11 @@ public class PersonalInformationActivity extends BaseStatusActivity<PickerPresen
return
;
return
;
}
}
String
dataBirth
=
tvDateOfBirth
.
getText
().
toString
();
if
(
TextUtil
.
isEmpty
(
birthday
))
{
if
(
TextUtil
.
isEmpty
(
dataBirth
))
{
showToast
(
"生日不为空!"
);
showToast
(
"生日不为空!"
);
return
;
return
;
}
}
mPresenter
.
postBodyData
(
RvFrameConfig
.
ADMIN_POST
,
1
,
ApiConfig
.
HTTP_URL_UPUSER_EDIT
,
BaseBean
.
class
,
new
UserInfo
(
info
.
getId
()
+
""
,
info
.
getUserid
()
+
""
,
info
.
getUsername
(),
"0"
,
nickName
,
info
.
getRealname
(),
ivAvatarUrl
,
dataBirth
,
sex
,
mWXOpenid
,
mUnionid
,
mQQOpenid
),
getHeadMap
(),
true
);
mPresenter
.
postBodyData
(
RvFrameConfig
.
ADMIN_POST
,
1
,
ApiConfig
.
HTTP_URL_UPUSER_EDIT
,
BaseBean
.
class
,
new
UserInfo
(
info
.
getId
()
+
""
,
info
.
getUserid
()
+
""
,
info
.
getUsername
(),
"0"
,
nickName
,
info
.
getRealname
(),
ivAvatarUrl
,
birthday
,
sex
,
mWXOpenid
,
mUnionid
,
mQQOpenid
),
getHeadMap
(),
true
);
}
}
private
Map
<
String
,
Object
>
getHeadMap
()
{
private
Map
<
String
,
Object
>
getHeadMap
()
{
...
@@ -577,6 +579,7 @@ public class PersonalInformationActivity extends BaseStatusActivity<PickerPresen
...
@@ -577,6 +579,7 @@ public class PersonalInformationActivity extends BaseStatusActivity<PickerPresen
@Override
@Override
public
void
onTimeSelect
(
Date
date
,
View
v
)
{
//选中事件回调
public
void
onTimeSelect
(
Date
date
,
View
v
)
{
//选中事件回调
// 这里回调过来的v,就是show()方法里面所添加的 View 参数,如果show的时候没有添加参数,v则为null
// 这里回调过来的v,就是show()方法里面所添加的 View 参数,如果show的时候没有添加参数,v则为null
birthday
=
getTime
(
date
);
tvDateOfBirth
.
setText
(
getTime
(
date
));
tvDateOfBirth
.
setText
(
getTime
(
date
));
}
}
})
})
...
...
module_tourism/src/main/AndroidManifest.xml
View file @
f014039a
...
@@ -3,7 +3,8 @@
...
@@ -3,7 +3,8 @@
package=
"com.rv.tourism"
>
package=
"com.rv.tourism"
>
<application>
<application>
<activity
android:name=
".other.TravelerConfirmOrderActivity"
></activity>
<activity
android:name=
".other.TravelerConfirmOrderActivity"
>
</activity>
<activity
<activity
android:name=
".other.TravelDetailsActivity"
android:name=
".other.TravelDetailsActivity"
android:label=
"@string/title_activity_travel_details"
android:label=
"@string/title_activity_travel_details"
...
...
plugin_member/src/main/java/com/rv.member/adapter/ConsumeRecordListAdapter.java
View file @
f014039a
...
@@ -52,7 +52,13 @@ public class ConsumeRecordListAdapter extends BaseQuickAdapter<OrderListBean.Dat
...
@@ -52,7 +52,13 @@ public class ConsumeRecordListAdapter extends BaseQuickAdapter<OrderListBean.Dat
if
(!
TextUtils
.
isEmpty
(
bean
.
getPicture
()))
{
if
(!
TextUtils
.
isEmpty
(
bean
.
getPicture
()))
{
ImageView
imgCarType
=
helper
.
itemView
.
findViewById
(
R
.
id
.
img_car_type
);
ImageView
imgCarType
=
helper
.
itemView
.
findViewById
(
R
.
id
.
img_car_type
);
GlideManager
.
getInstance
(
mContext
).
loadImage
(
bean
.
getIcon
(),
imgCarType
);
String
icon
=
""
;
if
(!
TextUtils
.
isEmpty
(
bean
.
getCoverPic
())){
icon
=
bean
.
getCoverPic
();
}
else
{
icon
=
bean
.
getIcon
();
}
GlideManager
.
getInstance
(
mContext
).
loadImage
(
icon
,
imgCarType
);
}
}
}
}
OrderListBean
.
DataBeanX
.
DataBean
.
OrderRentVehicleDetail
vehicleDetail
=
bean
.
getOrderRentVehicleDetail
();
OrderListBean
.
DataBeanX
.
DataBean
.
OrderRentVehicleDetail
vehicleDetail
=
bean
.
getOrderRentVehicleDetail
();
...
...
plugin_version/src/main/res/layout/dialog_update_view.xml
View file @
f014039a
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<ImageView
<ImageView
android:scaleType=
"centerCrop"
android:scaleType=
"centerCrop"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
wrap_conten
t"
android:layout_height=
"
@dimen/dialog_img_heigh
t"
android:src=
"@drawable/icon_dialog_top"
/>
android:src=
"@drawable/icon_dialog_top"
/>
<TextView
<TextView
...
...
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