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
ea6e7e31
Commit
ea6e7e31
authored
Jan 10, 2020
by
linfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开发票功能
parent
9a5d3b83
Changes
46
Show whitespace changes
Inline
Side-by-side
Showing
46 changed files
with
1067 additions
and
188 deletions
+1067
-188
rv_common_icon_accomplish.png
...src/main/res/drawable-xhdpi/rv_common_icon_accomplish.png
+0
-0
strings.xml
component_resource/src/main/res/values/strings.xml
+104
-0
CarDetailActivity.java
...com/rv/home/rv/module/ui/main/home/CarDetailActivity.java
+9
-9
CarDetailMapActivity.java
.../rv/home/rv/module/ui/main/home/CarDetailMapActivity.java
+4
-4
CarRentalListActivity.java
...rv/home/rv/module/ui/main/home/CarRentalListActivity.java
+1
-1
CarVRActivity.java
...ava/com/rv/home/rv/module/ui/main/home/CarVRActivity.java
+1
-1
CityListActivity.java
.../com/rv/home/rv/module/ui/main/home/CityListActivity.java
+8
-8
ConfirmOrderActivity.java
.../rv/home/rv/module/ui/main/home/ConfirmOrderActivity.java
+1
-1
HomeFragment.java
...java/com/rv/home/rv/module/ui/main/home/HomeFragment.java
+16
-16
RVEnthusiastAdapter.java
...e/rv/module/ui/main/home/adapter/RVEnthusiastAdapter.java
+1
-1
fragment_home.xml
module_home/src/main/res/layout/fragment_home.xml
+30
-31
rv_act_car_detail.xml
module_home/src/main/res/layout/rv_act_car_detail.xml
+1
-1
rv_act_city_list.xml
module_home/src/main/res/layout/rv_act_city_list.xml
+1
-1
rv_act_confim_order.xml
module_home/src/main/res/layout/rv_act_confim_order.xml
+26
-28
rv_item_rv_tourlist_label.xml
...le_home/src/main/res/layout/rv_item_rv_tourlist_label.xml
+1
-1
select_shop_empty.xml
module_home/src/main/res/layout/select_shop_empty.xml
+1
-1
strings.xml
module_home/src/main/res/values/strings.xml
+11
-16
VisitorInformationAdapter.java
...ava/com/rv/tourism/adapter/VisitorInformationAdapter.java
+2
-2
TravelBookingDialog.java
.../main/java/com/rv/tourism/dialog/TravelBookingDialog.java
+13
-11
dialog_travel_booking.xml
module_tourism/src/main/res/layout/dialog_travel_booking.xml
+6
-6
rv_item_recommended_route.xml
...tourism/src/main/res/layout/rv_item_recommended_route.xml
+2
-2
rv_item_travel_booking_departure.xml
.../src/main/res/layout/rv_item_travel_booking_departure.xml
+2
-2
rv_item_travel_booking_departure_time.xml
...main/res/layout/rv_item_travel_booking_departure_time.xml
+1
-1
rv_item_visitor_information.xml
...urism/src/main/res/layout/rv_item_visitor_information.xml
+2
-2
AndroidManifest.xml
plugin_invoice/src/main/AndroidManifest.xml
+4
-1
BillingHistoryActivity.java
...ava/com/xxrv/invoice/activity/BillingHistoryActivity.java
+11
-1
CheckOrderInvoicingActivity.java
...om/xxrv/invoice/activity/CheckOrderInvoicingActivity.java
+134
-0
InvoicingActivity.java
...ain/java/com/xxrv/invoice/activity/InvoicingActivity.java
+18
-4
InvoicingDetailsActivity.java
...a/com/xxrv/invoice/activity/InvoicingDetailsActivity.java
+181
-0
InvoicingSuccessActivity.java
...a/com/xxrv/invoice/activity/InvoicingSuccessActivity.java
+52
-0
OrderInvoicingCarActivity.java
.../com/xxrv/invoice/activity/OrderInvoicingCarActivity.java
+36
-6
OrderInvoicingCarDetailsActivity.java
...rv/invoice/activity/OrderInvoicingCarDetailsActivity.java
+44
-6
CheckOrderInvoicingAdapter.java
.../com/xxrv/invoice/adapter/CheckOrderInvoicingAdapter.java
+47
-0
InvoiceBillingHistoryAdapter.java
...om/xxrv/invoice/adapter/InvoiceBillingHistoryAdapter.java
+8
-0
OrderInvoicingCarAdapter.java
...va/com/xxrv/invoice/adapter/OrderInvoicingCarAdapter.java
+3
-3
InvoiceApi.java
...nvoice/src/main/java/com/xxrv/invoice/api/InvoiceApi.java
+6
-2
BillingHistoryBean.java
...c/main/java/com/xxrv/invoice/bean/BillingHistoryBean.java
+9
-0
Invoiceing.java
...voice/src/main/java/com/xxrv/invoice/bean/Invoiceing.java
+43
-0
OrderInvoicingCarBean.java
...ain/java/com/xxrv/invoice/bean/OrderInvoicingCarBean.java
+9
-0
InvoicingSuccessEvent.java
...main/java/com/xxrv/invoice/bus/InvoicingSuccessEvent.java
+4
-0
activity_check_order_invoicing.xml
...ce/src/main/res/layout/activity_check_order_invoicing.xml
+19
-0
activity_invoicing.xml
plugin_invoice/src/main/res/layout/activity_invoicing.xml
+10
-4
activity_invoicing_details.xml
...nvoice/src/main/res/layout/activity_invoicing_details.xml
+25
-0
activity_invoicing_success.xml
...nvoice/src/main/res/layout/activity_invoicing_success.xml
+52
-0
rv_dialog_invoicing_announcement.xml
.../src/main/res/layout/rv_dialog_invoicing_announcement.xml
+9
-15
rv_item_check_order_invoicing.xml
...ice/src/main/res/layout/rv_item_check_order_invoicing.xml
+99
-0
No files found.
module_hom
e/src/main/res/drawable-xhdpi/rv_common_icon_accomplish.png
→
component_resourc
e/src/main/res/drawable-xhdpi/rv_common_icon_accomplish.png
View file @
ea6e7e31
File moved
component_resource/src/main/res/values/strings.xml
View file @
ea6e7e31
...
...
@@ -25,6 +25,7 @@
<string
name=
"copy_successful"
>
复制成功!
</string>
<string
name=
"positioning_permission"
>
需要定位权限
</string>
<string
name=
"positioning_permission_hint"
>
如果没有此权限,此应用程序可能无法正常工作,是否打开设置修改该应用权限
</string>
<string
name=
"positioning_permission_hint2"
>
位置权限已关闭,开启以便滴房车正常使用
</string>
<string
name=
"dongguan_city"
>
东莞市
</string>
<string
name=
"popular_tour"
>
热门游
</string>
<string
name=
"tour_around"
>
周边游
</string>
...
...
@@ -59,4 +60,107 @@
<string
name=
"contract"
>
《合同协议》
</string>
<string
name=
"payment_amount"
>
支付金额:
</string>
<string
name=
"detail"
>
明细
</string>
<string
name=
"choose_your_starting_point"
>
选择出发地点
</string>
<string
name=
"select_event_date"
>
选择活动日期
</string>
<string
name=
"number_of_tourists"
>
出游人数
</string>
<string
name=
"number_of_tourists_hint"
>
1个成人可以携带1个1.2米以下儿童
</string>
<string
name=
"number_of_tourists_hint2"
>
1.2~1.4米儿童半价收费
</string>
<string
name=
"determine"
>
确定
</string>
<string
name=
"please_select_a_tourist"
>
请选择出游人
</string>
<string
name=
"identity_number"
>
身份证号
</string>
<string
name=
"adult"
>
成人
</string>
<string
name=
"child"
>
儿童
</string>
<string
name=
"adult_and_child_hint"
>
成人出游人数要大于或等于儿童出游人数
</string>
<string
name=
"adult_isnot"
>
成人出游人数不能为空!
</string>
<string
name=
"adult_unit"
>
成人:¥!
</string>
<string
name=
"child_unit"
>
儿童:¥
</string>
<string
name=
"people"
>
/人
</string>
<string
name=
"sunday"
>
周日
</string>
<string
name=
"on_monday"
>
周一
</string>
<string
name=
"on_tuesday"
>
周二
</string>
<string
name=
"on_wednesday"
>
周三
</string>
<string
name=
"thursday"
>
周四
</string>
<string
name=
"friday"
>
周五
</string>
<string
name=
"on_saturday"
>
周六
</string>
<string
name=
"rent_a_car"
>
租房车
</string>
<string
name=
"rv_tour"
>
房车游
</string>
<string
name=
"pickup_company"
>
取车公司
</string>
<string
name=
"pickup_company2"
>
取车公司:
</string>
<string
name=
"get_select_a_car_hint"
>
请选择取车分公司
</string>
<string
name=
"drop_off_company"
>
还车公司
</string>
<string
name=
"drop_off_company2"
>
还车公司:
</string>
<string
name=
"still_select_a_car_hint"
>
请选择还车分公司
</string>
<string
name=
"take"
>
取
</string>
<string
name=
"also"
>
还
</string>
<string
name=
"choose_a_car_now"
>
立即选车
</string>
<string
name=
"car_rental_guide"
>
租车指南
</string>
<string
name=
"destination_city_hint"
>
请选择目的地城市
</string>
<string
name=
"hot"
>
热门
</string>
<string
name=
"popular_travel"
>
热门旅行
</string>
<string
name=
"popular_travel_hint"
>
精选房车游路线
</string>
<string
name=
"entertainment_camp"
>
娱乐营地
</string>
<string
name=
"entertainment_camp_hint"
>
娱乐休息两不误
</string>
<string
name=
"buying_a_car"
>
购房车
</string>
<string
name=
"buying_a_car_hint"
>
精心打造你的房车
</string>
<string
name=
"more_popular_travel_itineraries"
>
更多热门旅行线路
</string>
<string
name=
"featured_events"
>
精选活动
</string>
<string
name=
"featured_events_hint"
>
小编精选,最好玩的活动都在这里
</string>
<string
name=
"touring_car_tour_list"
>
房车游榜单
</string>
<string
name=
"touring_car_tour_list_hint"
>
精选优质旅游路线,满足你的出行需求
</string>
<string
name=
"rv_enthusiasts"
>
房车发烧友
</string>
<string
name=
"rv_enthusiasts_hint"
>
分享精彩时刻
</string>
<string
name=
"back_to_top"
>
回顶部
</string>
<string
name=
"week"
>
周
</string>
<string
name=
"day"
>
天
</string>
<string
name=
"day_toast_hint"
>
租车天数必须大于等于1
</string>
<string
name=
"car_toast_hint"
>
请选择取/还车地址
</string>
<string
name=
"more_entertainment_camps"
>
更多娱乐营地
</string>
<string
name=
"more_premium_models"
>
更多优质车型
</string>
<string
name=
"set_up"
>
设置
</string>
<string
name=
"rv_day"
>
/天
</string>
<string
name=
"rv_one_car"
>
/辆
</string>
<string
name=
"rv_one_person"
>
/人
</string>
<string
name=
"likes"
>
点赞数
</string>
<string
name=
"vehicle_details"
>
车辆详情
</string>
<string
name=
"order_now"
>
立即下单
</string>
<string
name=
"rv_shop_map"
>
门店地图
</string>
<string
name=
"not_car_hint"
>
暂无房车,请更改取车公司或时间
</string>
<string
name=
"rv_select_car"
>
选择车型
</string>
<string
name=
"vr_display"
>
VR展示
</string>
<string
name=
"rv_city_list"
>
选择城市
</string>
<string
name=
"city_hint"
>
请输入城市名称
</string>
<string
name=
"beijing"
>
北京市
</string>
<string
name=
"shanghai"
>
上海市
</string>
<string
name=
"dongguan"
>
东莞市
</string>
<string
name=
"shenzhen"
>
深圳市
</string>
<string
name=
"guangzhou"
>
广州市
</string>
<string
name=
"hangzhou"
>
杭州市
</string>
<string
name=
"nanchang"
>
南昌市
</string>
<string
name=
"xian"
>
西安市
</string>
<string
name=
"daily_price"
>
每日价格
</string>
<string
name=
"car_rental_date"
>
租车日期:
</string>
<string
name=
"rv_deposit"
>
欣新平台租车押金
</string>
<string
name=
"rv_enjoy_service"
>
尊享服务
</string>
<string
name=
"car_rental_included"
>
已含租车费
</string>
<string
name=
"service_charge_during_car_rental"
>
租车期间服务费
</string>
<string
name=
"vehicle_cleaning_fee_included"
>
已含车辆清洁费
</string>
<string
name=
"vehicle_cleaning_fee"
>
车辆清洁费
</string>
<string
name=
"vehicle_cleaning_fee_hint"
>
1. 已含100元车辆清洁费(含车辆外观、内饰等的清洁费用), 保证取车时车辆 干净整洁;
</string>
<string
name=
"vehicle_cleaning_fee_hint2"
>
2. 还车时,因客户原因,出现以下情形的:\n a.黑水箱未清理或移动马桶有污渍;\n b.冰箱未清理或有污渍;\n c.床垫有明显新增污渍,每项加收100元清洁服务费。
</string>
<string
name=
"car_damage_deductible"
>
车损免赔
</string>
<string
name=
"member_is_privilege"
>
会员特权
</string>
<string
name=
"free_car"
>
免费用车
</string>
<string
name=
"rv_driving_set"
>
驾驶人设置
</string>
<string
name=
"rv_select_driving_num_hint"
>
欣新专职司机
</string>
<string
name=
"rv_user_driving"
>
自驾
</string>
<string
name=
"rv_user_driving_hint"
>
(需提供驾驶人信息)
</string>
<string
name=
"add_a_driver"
>
添加驾驶人
</string>
<string
name=
"rv_driving_info"
>
驾驶人信息
</string>
<string
name=
"rv_delete"
>
删除
</string>
<string
name=
"on_board_items"
>
随车物品
</string>
<string
name=
"select"
>
选择
</string>
<string
name=
"rv_reservation_know"
>
预定须知
</string>
<string
name=
"detailed_description"
>
详细说明
</string>
<string
name=
"read_and_agree"
>
已阅读并同意
</string>
<string
name=
"car_rental_contract_agreement"
>
《租车合同协议》
</string>
</resources>
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/CarDetailActivity.java
View file @
ea6e7e31
...
...
@@ -122,7 +122,7 @@ public class CarDetailActivity extends BaseStatusActivity<CommonPresenter> {
begDate
=
getIntent
().
getStringExtra
(
"startTime"
);
endDate
=
getIntent
().
getStringExtra
(
"endTime"
);
showTitle
(
false
);
tvTitleCenter
.
setText
(
"车辆详情"
);
tvTitleCenter
.
setText
(
mActivity
.
getString
(
R
.
string
.
vehicle_details
)
);
webUrl
=
ApiConfig
.
HTTP_URL_CAR_TYPE_DETAIL
+
"?id="
+
mCarBean
.
getVehicleModel
().
getId
()
+
"&companyId="
+
mCarBean
.
getCompany
().
getId
();
initWeb
();
initRxbus
();
...
...
@@ -412,7 +412,7 @@ public class CarDetailActivity extends BaseStatusActivity<CommonPresenter> {
shareManager
=
new
ShareManager
(
this
,
new
ShareBoardlistener
()
{
@Override
public
void
onclick
(
SnsPlatform
snsPlatform
,
SHARE_MEDIA
share_media
)
{
if
(
snsPlatform
.
mShowWord
.
equals
(
"生成海报"
))
{
if
(
snsPlatform
.
mShowWord
.
equals
(
mActivity
.
getString
(
R
.
string
.
generate_poster
)
))
{
String
icon
=
""
;
if
(
TextUtils
.
isEmpty
(
mCarBean
.
getVehicleModel
().
getPosterBackground
()))
{
icon
=
mCarBean
.
getVehicleModel
().
getIcon
();
...
...
@@ -429,16 +429,16 @@ public class CarDetailActivity extends BaseStatusActivity<CommonPresenter> {
.
withString
(
"price"
,
String
.
valueOf
(
mCarBean
.
getVehicleModel
().
getPrice
()))
.
navigation
();
}
else
if
(
snsPlatform
.
mShowWord
.
equals
(
"复制链接"
))
{
}
else
if
(
snsPlatform
.
mShowWord
.
equals
(
mActivity
.
getString
(
R
.
string
.
copy_link
)
))
{
copyText
();
}
else
if
(
snsPlatform
.
mShowWord
.
contains
(
"微信"
))
{
}
else
if
(
snsPlatform
.
mShowWord
.
contains
(
mActivity
.
getString
(
R
.
string
.
wechat
)
))
{
if
(!
IsAppInstall
.
isWeixinAvilible
(
mActivity
))
{
showToast
(
"亲,您微信还没有安装呢"
);
showToast
(
mActivity
.
getString
(
R
.
string
.
not_wechat_hint
)
);
return
;
}
}
else
if
(
snsPlatform
.
mShowWord
.
contains
(
"QQ"
))
{
if
(!
IsAppInstall
.
isQQClientAvailable
(
mActivity
))
{
showToast
(
"亲,您QQ还没有安装呢"
);
showToast
(
mActivity
.
getString
(
R
.
string
.
not_qq_hint
)
);
return
;
}
}
...
...
@@ -452,7 +452,7 @@ public class CarDetailActivity extends BaseStatusActivity<CommonPresenter> {
if
(
platform
.
name
().
equals
(
"WEIXIN_FAVORITE"
))
{
showToast
(
" 收藏成功啦"
);
showToast
(
mActivity
.
getString
(
R
.
string
.
collection_success
)
);
}
else
{
if
(
platform
!=
SHARE_MEDIA
.
MORE
&&
platform
!=
SHARE_MEDIA
.
SMS
...
...
@@ -467,7 +467,7 @@ public class CarDetailActivity extends BaseStatusActivity<CommonPresenter> {
&&
platform
!=
SHARE_MEDIA
.
GOOGLEPLUS
&&
platform
!=
SHARE_MEDIA
.
YNOTE
&&
platform
!=
SHARE_MEDIA
.
EVERNOTE
)
{
showToast
(
"分享成功啦"
);
showToast
(
mActivity
.
getString
(
R
.
string
.
sharing_success
)
);
sharingSuccess
();
}
...
...
@@ -552,7 +552,7 @@ public class CarDetailActivity extends BaseStatusActivity<CommonPresenter> {
String
code
=
Cookie
.
getStringValue
(
getApplicationContext
(),
SPConstance
.
USER_JSON_CODE
,
""
);
ClipData
myClip
=
ClipData
.
newPlainText
(
"text"
,
webUrl
+
"&shareType=app&code="
+
code
);
myClipboard
.
setPrimaryClip
(
myClip
);
showToast
(
"复制成功!"
);
showToast
(
mActivity
.
getString
(
R
.
string
.
copy_successful
)
);
}
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/CarDetailMapActivity.java
View file @
ea6e7e31
...
...
@@ -91,8 +91,8 @@ public class CarDetailMapActivity extends SwipeBackActivity<CommonPresenter> {
titleView
.
setTitle
(
mActivity
.
getString
(
R
.
string
.
rv_shop_map
));
showTitle
(
false
);
initMap
();
tvAddress
.
setText
(
String
.
format
(
"%1$s%2$s"
,
"地址:"
,
addrDetail
));
tvPhone
.
setText
(
String
.
format
(
"%1$s%2$s"
,
"联系电话:"
,
phone
));
tvAddress
.
setText
(
String
.
format
(
"%1$s%2$s"
,
mActivity
.
getString
(
R
.
string
.
address
)
,
addrDetail
));
tvPhone
.
setText
(
String
.
format
(
"%1$s%2$s"
,
mActivity
.
getString
(
R
.
string
.
contact_number
)
,
phone
));
tvName
.
setText
(
name
);
}
...
...
@@ -248,8 +248,8 @@ public class CarDetailMapActivity extends SwipeBackActivity<CommonPresenter> {
@Override
public
void
helper
(
ViewHolder
helper
)
{
super
.
helper
(
helper
);
helper
.
setText
(
R
.
id
.
btn_camera
,
"百度地图"
);
helper
.
setText
(
R
.
id
.
btn_album
,
"高德地图"
);
helper
.
setText
(
R
.
id
.
btn_camera
,
mActivity
.
getString
(
R
.
string
.
baidu_map
)
);
helper
.
setText
(
R
.
id
.
btn_album
,
mActivity
.
getString
(
R
.
string
.
gouda_map
)
);
helper
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/CarRentalListActivity.java
View file @
ea6e7e31
...
...
@@ -401,7 +401,7 @@ public class CarRentalListActivity extends BaseStatusActivity<CommonPresenter> i
countPage
=
bean
.
getData
().
getTotalPage
();
mAdapter
.
setNewData
(
bean
.
getData
().
getData
());
if
(
bean
.
getData
().
getTotalCount
()
==
0
)
{
mAdapter
.
setEmptyView
(
getEmptyView
(
recyclerView
,
-
1
,
"暂无房车,请更改取车公司或时间"
));
mAdapter
.
setEmptyView
(
getEmptyView
(
recyclerView
,
-
1
,
mActivity
.
getString
(
R
.
string
.
not_car_hint
)
));
mAdapter
.
notifyDataSetChanged
();
}
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/CarVRActivity.java
View file @
ea6e7e31
...
...
@@ -49,7 +49,7 @@ public class CarVRActivity extends BaseStatusActivity<CommonPresenter> {
@Override
protected
void
initView
(
Bundle
savedInstanceState
,
TitleView
titleView
,
Intent
intent
)
{
titleView
.
setTitle
(
"VR展示"
);
titleView
.
setTitle
(
mActivity
.
getString
(
R
.
string
.
vr_display
)
);
url
=
intent
.
getStringExtra
(
"url"
);
webUrl
=
ApiConfig
.
HTTP_URL_VIEW_VRSHOW
;
initWeb
();
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/CityListActivity.java
View file @
ea6e7e31
...
...
@@ -123,14 +123,14 @@ public class CityListActivity extends BaseStatusActivity<CommonPresenter> {
private
List
<
HotCityBean
>
getHotCitys
()
{
List
<
HotCityBean
>
lists
=
new
ArrayList
<>();
lists
.
add
(
new
HotCityBean
(
"北京市"
,
110100
));
lists
.
add
(
new
HotCityBean
(
"上海市"
,
310100
));
lists
.
add
(
new
HotCityBean
(
"东莞市"
,
441900
));
lists
.
add
(
new
HotCityBean
(
"深圳市"
,
440300
));
lists
.
add
(
new
HotCityBean
(
"广州市"
,
440100
));
lists
.
add
(
new
HotCityBean
(
"杭州市"
,
330100
));
lists
.
add
(
new
HotCityBean
(
"南昌市"
,
360100
));
lists
.
add
(
new
HotCityBean
(
"西安市"
,
610100
));
lists
.
add
(
new
HotCityBean
(
mActivity
.
getString
(
R
.
string
.
beijing
)
,
110100
));
lists
.
add
(
new
HotCityBean
(
mActivity
.
getString
(
R
.
string
.
shanghai
)
,
310100
));
lists
.
add
(
new
HotCityBean
(
mActivity
.
getString
(
R
.
string
.
dongguan
)
,
441900
));
lists
.
add
(
new
HotCityBean
(
mActivity
.
getString
(
R
.
string
.
shenzhen
)
,
440300
));
lists
.
add
(
new
HotCityBean
(
mActivity
.
getString
(
R
.
string
.
guangzhou
)
,
440100
));
lists
.
add
(
new
HotCityBean
(
mActivity
.
getString
(
R
.
string
.
hangzhou
)
,
330100
));
lists
.
add
(
new
HotCityBean
(
mActivity
.
getString
(
R
.
string
.
nanchang
)
,
360100
));
lists
.
add
(
new
HotCityBean
(
mActivity
.
getString
(
R
.
string
.
xian
)
,
610100
));
return
lists
;
}
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/ConfirmOrderActivity.java
View file @
ea6e7e31
...
...
@@ -218,7 +218,7 @@ public class ConfirmOrderActivity extends BaseStatusActivity<CommonPresenter> {
@Override
protected
void
initView
(
Bundle
savedInstanceState
,
TitleView
titleView
,
Intent
intent
)
{
titleView
.
setTitle
(
mActivity
.
getString
(
R
.
string
.
rv_
confirm_order
));
titleView
.
setTitle
(
mActivity
.
getString
(
R
.
string
.
confirm_order
));
api
=
WXAPIFactory
.
createWXAPI
(
this
,
RvFrameConfig
.
APP_ID
);
dataBean
=
(
OrderDataBean
)
intent
.
getSerializableExtra
(
"bean"
);
mCarBean
=
(
CarTypeListBean
.
DataBeanX
.
DataBean
)
intent
.
getSerializableExtra
(
"carBean"
);
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/HomeFragment.java
View file @
ea6e7e31
...
...
@@ -491,13 +491,13 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
}
tvGetTime
.
setText
(
DateUtils
.
formatDate66
(
begDate
));
tvGetWeek
.
setText
(
"周"
+
MyUtils
.
getWeek
(
DateUtils
.
formatDate16
(
begDate
)));
tvGetWeek
.
setText
(
_mActivity
.
getString
(
R
.
string
.
week
)
+
MyUtils
.
getWeek
(
DateUtils
.
formatDate16
(
begDate
)));
tvOutTime
.
setText
(
DateUtils
.
formatDate66
(
endDate
));
tvOutWeek
.
setText
(
"周"
+
MyUtils
.
getWeek
(
DateUtils
.
formatDate16
(
endDate
)));
tvOutWeek
.
setText
(
_mActivity
.
getString
(
R
.
string
.
week
)
+
MyUtils
.
getWeek
(
DateUtils
.
formatDate16
(
endDate
)));
copyDay
=
getCountDay
(
begDate
,
endDate
);
tvDay
.
setText
(
String
.
format
(
"%1$s%2$s"
,
copyDay
,
getContext
().
getString
(
R
.
string
.
rv_days
)));
tvDay
.
setText
(
String
.
format
(
"%1$s%2$s"
,
copyDay
,
getContext
().
getString
(
R
.
string
.
day
)));
}
...
...
@@ -799,12 +799,12 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
}
else
if
(
id
==
R
.
id
.
tv_home_select_car
)
{
//租房车 立即选车
if
(
copyDay
<
1
)
{
showToast
(
getContext
().
getString
(
R
.
string
.
rv_day_toas
t
));
showToast
(
getContext
().
getString
(
R
.
string
.
day_toast_hin
t
));
return
;
}
if
(
TextUtil
.
isEmpty
(
headTvGetShop
.
getText
().
toString
().
trim
())
||
TextUtil
.
isEmpty
(
headTvOutShop
.
getText
().
toString
().
trim
()))
{
showToast
(
"请选择取/还车地址"
);
showToast
(
getContext
().
getString
(
R
.
string
.
car_toast_hint
)
);
return
;
}
...
...
@@ -895,7 +895,7 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
tvHotRvtour
.
getPaint
().
setFakeBoldText
(
true
);
tvHotEntertainmentCamp
.
getPaint
().
setFakeBoldText
(
false
);
tvHotCarRental
.
getPaint
().
setFakeBoldText
(
false
);
tvSeeMorePopular
.
setText
(
"更多热门旅行线路"
);
tvSeeMorePopular
.
setText
(
_mActivity
.
getString
(
R
.
string
.
more_popular_travel_itineraries
)
);
mAdapter
.
getData
().
clear
();
mAdapter
.
notifyDataSetChanged
();
recommendGood
(
"2"
);
...
...
@@ -916,7 +916,7 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
tvHotRvtour
.
getPaint
().
setFakeBoldText
(
false
);
tvHotEntertainmentCamp
.
getPaint
().
setFakeBoldText
(
true
);
tvHotCarRental
.
getPaint
().
setFakeBoldText
(
false
);
tvSeeMorePopular
.
setText
(
"更多娱乐营地"
);
tvSeeMorePopular
.
setText
(
_mActivity
.
getString
(
R
.
string
.
more_entertainment_camps
)
);
mAdapter
.
getData
().
clear
();
mAdapter
.
notifyDataSetChanged
();
recommendGood
(
"3"
);
...
...
@@ -937,7 +937,7 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
tvHotEntertainmentCamp
.
getPaint
().
setFakeBoldText
(
false
);
tvHotCarRental
.
getPaint
().
setFakeBoldText
(
true
);
tvSeeMorePopular
.
setText
(
"更多优质车型"
);
tvSeeMorePopular
.
setText
(
_mActivity
.
getString
(
R
.
string
.
more_premium_models
)
);
mAdapter
.
getData
().
clear
();
mAdapter
.
notifyDataSetChanged
();
recommendGood
(
"4"
);
...
...
@@ -978,7 +978,7 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
}
else
if
(
id
==
R
.
id
.
tv_home_car_rental_guide
)
{
//租车指南
ARouter
.
getInstance
().
build
(
Constance
.
ACTIVITY_URL_WEBVIEW
)
.
withString
(
"title"
,
"租车指南"
)
.
withString
(
"title"
,
_mActivity
.
getString
(
R
.
string
.
car_rental_guide
)
)
.
withString
(
"url"
,
ApiConfig
.
HTTP_URL_CAR_TYPE_NOTICE
)
.
withInt
(
"type"
,
1
)
.
navigation
();
...
...
@@ -1105,13 +1105,13 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
tvOutTime
.
setText
(
DateUtils
.
formatDate66
(
endDate
));
}
if
(
tvGetWeek
!=
null
)
{
tvGetWeek
.
setText
(
"周"
+
MyUtils
.
getWeek
(
begDate
));
tvGetWeek
.
setText
(
_mActivity
.
getString
(
R
.
string
.
week
)
+
MyUtils
.
getWeek
(
begDate
));
}
if
(
tvOutWeek
!=
null
)
{
tvOutWeek
.
setText
(
"周"
+
MyUtils
.
getWeek
(
endDate
));
tvOutWeek
.
setText
(
_mActivity
.
getString
(
R
.
string
.
week
)
+
MyUtils
.
getWeek
(
endDate
));
}
if
(
tvDay
!=
null
)
{
tvDay
.
setText
(
String
.
format
(
"%1$s%2$s"
,
copyDay
,
getContext
().
getString
(
R
.
string
.
rv_days
)));
tvDay
.
setText
(
String
.
format
(
"%1$s%2$s"
,
copyDay
,
getContext
().
getString
(
R
.
string
.
day
)));
}
}
}
...
...
@@ -1423,13 +1423,13 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
initGps
();
initCity
();
}
else
{
new
AlertDialog
.
Builder
(
_mActivity
).
setTitle
(
"需要定位权限"
)
.
setMessage
(
"位置权限已关闭,开启以便滴房车正常使用"
)
.
setNegativeButton
(
"取消"
,
(
dialogInterface
,
i
)
->
{
new
AlertDialog
.
Builder
(
_mActivity
).
setTitle
(
_mActivity
.
getString
(
R
.
string
.
positioning_permission
)
)
.
setMessage
(
_mActivity
.
getString
(
R
.
string
.
positioning_permission_hint2
)
)
.
setNegativeButton
(
_mActivity
.
getString
(
R
.
string
.
cancel
)
,
(
dialogInterface
,
i
)
->
{
_mActivity
.
finish
();
dialogInterface
.
dismiss
();
})
.
setPositiveButton
(
"设置"
,
(
dialogInterface
,
i
)
->
{
.
setPositiveButton
(
_mActivity
.
getString
(
R
.
string
.
set_up
)
,
(
dialogInterface
,
i
)
->
{
Intent
in
=
new
Intent
(
Settings
.
ACTION_APPLICATION_DETAILS_SETTINGS
)
.
setData
(
Uri
.
fromParts
(
"package"
,
_mActivity
.
getPackageName
(),
null
));
startActivityForResult
(
in
,
CODE_REQUEST_POISITION
);
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/adapter/RVEnthusiastAdapter.java
View file @
ea6e7e31
...
...
@@ -50,7 +50,7 @@ public class RVEnthusiastAdapter extends BaseQuickAdapter<DiscoveryDataBean, Bas
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
());
helper
.
setText
(
R
.
id
.
iv_like_number
,
mContext
.
getString
(
R
.
string
.
likes
)
+
item
.
getCount
().
getPraise
());
}
if
(
1
==
item
.
getIsPraise
())
{
//0:未点赞 1:已点赞
helper
.
setTextColor
(
R
.
id
.
iv_like_number
,
mContext
.
getResources
().
getColor
(
R
.
color
.
gray_FFB74B
));
...
...
module_home/src/main/res/layout/fragment_home.xml
View file @
ea6e7e31
...
...
@@ -6,8 +6,7 @@
android:background=
"@color/colorLine"
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_home"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
...
...
@@ -72,7 +71,7 @@
android:layout_weight=
"1"
android:background=
"@drawable/selector_home_item_button_left"
android:gravity=
"center"
android:text=
"
租房车
"
android:text=
"
@string/rent_a_car
"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_16"
/>
...
...
@@ -83,7 +82,7 @@
android:layout_weight=
"1"
android:background=
"@drawable/selector_home_item_button_right"
android:gravity=
"center"
android:text=
"
房车游
"
android:text=
"
@string/rv_tour
"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_16"
/>
</LinearLayout>
...
...
@@ -113,7 +112,7 @@
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/
rv_get_car_address
"
android:text=
"@string/
pickup_company
"
android:textColor=
"@color/textLightGrey"
android:textSize=
"@dimen/text_12"
/>
...
...
@@ -125,7 +124,7 @@
android:layout_marginTop=
"@dimen/size_5"
android:layout_weight=
"1"
android:gravity=
"left|center_vertical"
android:hint=
"@string/
rv_get
_car_hint"
android:hint=
"@string/
get_select_a
_car_hint"
android:textColorHint=
"@color/textMain"
android:textSize=
"@dimen/text_16"
/>
</LinearLayout>
...
...
@@ -143,7 +142,7 @@
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/
rv_get_out_address
"
android:text=
"@string/
drop_off_company
"
android:textColor=
"@color/textLightGrey"
android:textSize=
"@dimen/text_12"
/>
...
...
@@ -155,7 +154,7 @@
android:layout_marginTop=
"@dimen/size_5"
android:layout_weight=
"1"
android:gravity=
"left|center_vertical"
android:hint=
"@string/
rv_get_out
_hint"
android:hint=
"@string/
still_select_a_car
_hint"
android:textColorHint=
"@color/textMain"
android:textSize=
"@dimen/text_16"
/>
...
...
@@ -187,7 +186,7 @@
android:paddingTop=
"@dimen/size_1"
android:paddingRight=
"@dimen/size_3"
android:paddingBottom=
"@dimen/size_1"
android:text=
"@string/
rv_get
"
android:text=
"@string/
take
"
android:textColor=
"@color/colorWrite"
android:textSize=
"@dimen/text_10"
/>
...
...
@@ -249,7 +248,7 @@
android:paddingTop=
"@dimen/size_1"
android:paddingRight=
"@dimen/size_3"
android:paddingBottom=
"@dimen/size_1"
android:text=
"@string/
rv_out
"
android:text=
"@string/
also
"
android:textColor=
"@color/colorWrite"
android:textSize=
"@dimen/text_10"
/>
...
...
@@ -293,7 +292,7 @@
android:layout_weight=
"1"
android:background=
"@drawable/shape_rv_bg_shallow_dark_yellow_circle"
android:gravity=
"center"
android:text=
"
立即选车
"
android:text=
"
@string/choose_a_car_now
"
android:textColor=
"@color/colorWrite"
android:textSize=
"@dimen/text_16"
/>
...
...
@@ -304,7 +303,7 @@
android:layout_marginLeft=
"@dimen/size_20"
android:drawableRight=
"@drawable/common_icon_rig_black"
android:drawablePadding=
"@dimen/size_2"
android:text=
"
租车指南
"
android:text=
"
@string/car_rental_guide
"
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_12"
/>
</LinearLayout>
...
...
@@ -330,7 +329,7 @@
android:id=
"@+id/tv_home_rv_city"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
请选择目的地城市
"
android:text=
"
@string/destination_city_hint
"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_15"
/>
...
...
@@ -350,7 +349,7 @@
android:layout_marginTop=
"@dimen/size_20"
android:background=
"@drawable/shape_rv_bg_shallow_dark_yellow_circle"
android:gravity=
"center"
android:text=
"
立即预订
"
android:text=
"
@string/book_now
"
android:textColor=
"@color/colorWrite"
android:textSize=
"@dimen/text_16"
/>
...
...
@@ -371,7 +370,7 @@
android:layout_height=
"@dimen/size_20"
android:background=
"@drawable/shape_rv_bg_crimson_xiao_fang"
android:gravity=
"center"
android:text=
"
热门
"
android:text=
"
@string/hot
"
android:textColor=
"@color/colorWrite"
android:textSize=
"@dimen/text_10"
/>
</LinearLayout>
...
...
@@ -474,7 +473,7 @@
android:id=
"@+id/tv_home_hot_rvtour"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
热门旅行
"
android:text=
"
@string/popular_travel
"
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_14"
/>
...
...
@@ -482,7 +481,7 @@
android:id=
"@+id/tv_home_hot_rvtour_hint"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
精选房车游路线
"
android:text=
"
@string/popular_travel_hint
"
android:textColor=
"@color/text_Gray"
android:textSize=
"@dimen/text_10"
/>
</LinearLayout>
...
...
@@ -508,7 +507,7 @@
android:id=
"@+id/tv_home_hot_entertainment_camp"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
娱乐营地
"
android:text=
"
@string/entertainment_camp
"
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_14"
/>
...
...
@@ -516,7 +515,7 @@
android:id=
"@+id/tv_home_hot_entertainment_hint"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
娱乐休息两不误
"
android:text=
"
@string/entertainment_camp_hint
"
android:textColor=
"@color/text_Gray"
android:textSize=
"@dimen/text_10"
/>
</LinearLayout>
...
...
@@ -542,7 +541,7 @@
android:id=
"@+id/tv_home_hot_car_rental"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
购房车
"
android:text=
"
@string/buying_a_car
"
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_14"
/>
...
...
@@ -550,7 +549,7 @@
android:id=
"@+id/tv_home_hot_car_rental_hint"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
精心打造你的房车
"
android:text=
"
@string/buying_a_car_hint
"
android:textColor=
"@color/text_Gray"
android:textSize=
"@dimen/text_10"
/>
</LinearLayout>
...
...
@@ -573,14 +572,14 @@
android:layout_marginTop=
"@dimen/size_20"
android:background=
"@drawable/shape_rv_button_gray_circle"
android:gravity=
"center"
android:text=
"
更多热门旅行线路
"
/>
android:text=
"
@string/more_popular_travel_itineraries
"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_30"
android:paddingLeft=
"@dimen/size_15"
android:text=
"
精选活动
"
android:text=
"
@string/featured_events
"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_18"
/>
...
...
@@ -599,7 +598,7 @@
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"
小编精选,最好玩的活动都在这里
"
android:text=
"
@string/featured_events_hint
"
android:textSize=
"@dimen/text_10"
/>
<TextView
...
...
@@ -607,7 +606,7 @@
android:layout_height=
"wrap_content"
android:drawableRight=
"@drawable/common_icon_rig_black_gray"
android:drawablePadding=
"@dimen/size_5"
android:text=
"
全部
"
android:text=
"
@string/all
"
android:textSize=
"@dimen/text_10"
android:visibility=
"gone"
/>
</LinearLayout>
...
...
@@ -625,7 +624,7 @@
android:layout_marginTop=
"@dimen/size_30"
android:paddingLeft=
"@dimen/size_15"
android:paddingRight=
"@dimen/size_15"
android:text=
"
房车游榜单
"
android:text=
"
@string/touring_car_tour_list
"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_18"
/>
...
...
@@ -636,7 +635,7 @@
android:layout_marginBottom=
"@dimen/size_10"
android:paddingLeft=
"@dimen/size_15"
android:paddingRight=
"@dimen/size_15"
android:text=
"
精选优质旅游路线,满足你的出行需求
"
android:text=
"
@string/touring_car_tour_list_hint
"
android:textSize=
"@dimen/text_10"
/>
<RelativeLayout
...
...
@@ -672,7 +671,7 @@
android:layout_marginTop=
"@dimen/size_20"
android:paddingLeft=
"@dimen/size_15"
android:paddingRight=
"@dimen/size_15"
android:text=
"
房车发烧友
"
android:text=
"
@string/rv_enthusiasts
"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_18"
/>
...
...
@@ -682,7 +681,7 @@
android:layout_marginTop=
"@dimen/size_10"
android:paddingLeft=
"@dimen/size_15"
android:paddingRight=
"@dimen/size_15"
android:text=
"
分享精彩时刻
"
android:text=
"
@string/rv_enthusiasts_hint
"
android:textSize=
"@dimen/text_10"
/>
<android.support.v7.widget.RecyclerView
...
...
@@ -760,7 +759,7 @@
android:layout_weight=
"1"
android:background=
"@null"
android:gravity=
"center_vertical"
android:hint=
"
搜索目的地/旅游线
"
android:hint=
"
@string/search_tourism_hint
"
android:paddingLeft=
"@dimen/ui_dimen_common"
android:paddingRight=
"@dimen/ui_dimen_padding_h1"
android:textColor=
"@color/colorTextH1"
...
...
@@ -796,7 +795,7 @@
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
回顶部
"
android:text=
"
@string/back_to_top
"
android:textColor=
"@color/gray_FFB74B"
android:textSize=
"@dimen/text_8"
/>
</LinearLayout>
...
...
module_home/src/main/res/layout/rv_act_car_detail.xml
View file @
ea6e7e31
...
...
@@ -97,7 +97,7 @@
android:id=
"@+id/tv_appointment"
android:background=
"@color/gray_FFB74B"
android:textColor=
"@color/colorWrite"
android:text=
"@string/
rv_to_appointment
"
android:text=
"@string/
order_now
"
/>
</LinearLayout>
module_home/src/main/res/layout/rv_act_city_list.xml
View file @
ea6e7e31
...
...
@@ -18,7 +18,7 @@
android:background=
"@drawable/shape_rv_textview_home_search"
android:gravity=
"center"
android:orientation=
"horizontal"
android:hint=
"
请输入城市名称
"
android:hint=
"
@string/city_hint
"
android:textColor=
"@color/colorMain"
android:textColorHint=
"@color/tv_gr999999"
android:textSize=
"@dimen/sp_14"
/>
...
...
module_home/src/main/res/layout/rv_act_confim_order.xml
View file @
ea6e7e31
...
...
@@ -149,7 +149,7 @@
android:paddingLeft=
"@dimen/size_30"
android:paddingTop=
"@dimen/size_10"
android:paddingBottom=
"@dimen/size_10"
android:text=
"
每日价格
"
android:text=
"
@string/daily_price
"
android:textColor=
"@color/text_Main"
android:textSize=
"@dimen/text_12"
/>
...
...
@@ -168,7 +168,7 @@
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
租车日期:
"
android:text=
"
@string/car_rental_date
"
android:textColor=
"@color/textLightGrey"
android:textSize=
"@dimen/text_14"
/>
...
...
@@ -205,7 +205,7 @@
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
取车公司:
"
android:text=
"
@string/pickup_company2
"
android:textColor=
"@color/textLightGrey"
android:textSize=
"@dimen/text_14"
/>
...
...
@@ -213,7 +213,6 @@
android:id=
"@+id/tv_get_car_address"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:hint=
"@string/rv_get_car_hint"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_16"
/>
...
...
@@ -240,7 +239,7 @@
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
还车公司:
"
android:text=
"
@string/drop_off_company2
"
android:textColor=
"@color/textLightGrey"
android:textSize=
"@dimen/text_14"
/>
...
...
@@ -248,7 +247,6 @@
android:id=
"@+id/tv_out_car_address"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:hint=
"@string/rv_get_out_hint"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_16"
/>
...
...
@@ -408,7 +406,7 @@
android:layout_height=
"wrap_content"
android:drawableRight=
"@drawable/rv_common_icon_notice"
android:drawablePadding=
"@dimen/size_5"
android:text=
"
已含租车费
"
android:text=
"
@string/car_rental_included
"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_14"
/>
</LinearLayout>
...
...
@@ -419,7 +417,7 @@
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginBottom=
"@dimen/size_10"
android:text=
"
租车期间服务费
"
android:text=
"
@string/service_charge_during_car_rental
"
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_10"
android:visibility=
"gone"
/>
...
...
@@ -445,7 +443,7 @@
android:layout_height=
"wrap_content"
android:drawableRight=
"@drawable/rv_common_icon_notice"
android:drawablePadding=
"@dimen/size_5"
android:text=
"
已含车辆清洁费
"
android:text=
"
@string/vehicle_cleaning_fee_included
"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_14"
/>
</LinearLayout>
...
...
@@ -462,7 +460,7 @@
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
车辆清洁费
"
android:text=
"
@string/vehicle_cleaning_fee
"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_10"
/>
...
...
@@ -470,7 +468,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_5"
android:text=
"
1. 已含100元车辆清洁费(含车辆外观、内饰等的清洁费用), 保证取车时车辆 干净整洁;
"
android:text=
"
@string/vehicle_cleaning_fee_hint
"
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_10"
/>
...
...
@@ -480,7 +478,7 @@
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_5"
android:layout_marginBottom=
"@dimen/size_10"
android:text=
"
2. 还车时,因客户原因,出现以下情形的:\n a.黑水箱未清理或移动马桶有污渍;\n b.冰箱未清理或有污渍;\n c.床垫有明显新增污渍,每项加收100元清洁服务费。
"
android:text=
"
@string/vehicle_cleaning_fee_hint2
"
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_10"
/>
</LinearLayout>
...
...
@@ -509,7 +507,7 @@
android:paddingLeft=
"@dimen/size_10"
android:paddingTop=
"@dimen/size_15"
android:paddingBottom=
"@dimen/size_15"
android:text=
"
车损免赔
"
android:text=
"
@string/car_damage_deductible
"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_14"
/>
...
...
@@ -551,7 +549,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_15"
android:text=
"
会员特权
"
android:text=
"
@string/member_is_privilege
"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_16"
android:visibility=
"visible"
/>
...
...
@@ -567,7 +565,7 @@
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
免费用车
"
android:text=
"
@string/free_car
"
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_12"
/>
...
...
@@ -602,7 +600,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:text=
"
使用优惠券
"
android:text=
"
@string/use_a_coupon
"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_16"
/>
...
...
@@ -614,7 +612,7 @@
android:layout_centerVertical=
"true"
android:drawableRight=
"@drawable/common_icon_rig_gray"
android:drawablePadding=
"@dimen/size_5"
android:text=
"
暂无优惠券
"
android:text=
"
@string/no_coupons
"
android:textColor=
"@color/gray_FFB74B"
android:textSize=
"@dimen/text_14"
/>
</RelativeLayout>
...
...
@@ -706,7 +704,7 @@
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginRight=
"@dimen/size_20"
android:layout_weight=
"1"
android:text=
"
添加驾驶人
"
android:text=
"
@string/add_a_driver
"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_16"
/>
...
...
@@ -797,7 +795,7 @@
android:layout_height=
"wrap_content"
android:drawableRight=
"@drawable/rv_common_icon_notice"
android:drawablePadding=
"@dimen/size_5"
android:text=
"
随车物品
"
android:text=
"
@string/on_board_items
"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_16"
/>
...
...
@@ -812,7 +810,7 @@
android:gravity=
"right"
android:paddingTop=
"@dimen/size_15"
android:paddingBottom=
"@dimen/size_15"
android:text=
"
选择
"
android:text=
"
@string/select
"
android:textColor=
"@color/text_Gray"
android:textSize=
"@dimen/text_10"
/>
</LinearLayout>
...
...
@@ -848,7 +846,7 @@
android:layout_centerVertical=
"true"
android:drawableRight=
"@drawable/common_icon_rig_gray"
android:drawablePadding=
"@dimen/size_5"
android:text=
"
详细说明
"
android:text=
"
@string/detailed_description
"
android:textColor=
"@color/text_Gray"
android:textSize=
"@dimen/text_10"
/>
</RelativeLayout>
...
...
@@ -867,7 +865,7 @@
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_weight=
"1"
android:text=
"@string/
rv_inviter_phone
"
android:text=
"@string/
internal_inviter
"
android:textColor=
"@color/textMain"
android:textSize=
"@dimen/text_16"
/>
...
...
@@ -879,7 +877,7 @@
android:layout_centerVertical=
"true"
android:background=
"@color/colorWrite"
android:gravity=
"center_vertical"
android:hint=
"
请输入邀请人手机号
"
android:hint=
"
@string/internal_inviter_hint
"
android:inputType=
"phone"
android:maxLength=
"11"
android:textColor=
"@color/text_Gray"
...
...
@@ -898,7 +896,7 @@
android:layout_height=
"wrap_content"
android:button=
"@drawable/selector_rv_check"
android:paddingLeft=
"@dimen/size_10"
android:text=
"
已阅读并同意
"
android:text=
"
@string/read_and_agree
"
android:textColor=
"@color/textLightGrey"
android:textSize=
"@dimen/text_14"
/>
...
...
@@ -906,7 +904,7 @@
android:id=
"@+id/tv_contract_agreement"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
《租车合同协议》
"
android:text=
"
@string/car_rental_contract_agreement
"
android:textColor=
"@color/gray_FFB74B"
android:textSize=
"@dimen/text_16"
/>
</LinearLayout>
...
...
@@ -928,7 +926,7 @@
android:paddingLeft=
"@dimen/size_15"
android:paddingTop=
"@dimen/size_15"
android:paddingBottom=
"@dimen/size_15"
android:text=
"@string/
rv_pay_money_conte
nt"
android:text=
"@string/
payment_amou
nt"
android:textColor=
"@color/textMain"
android:textSize=
"@dimen/text_16"
/>
...
...
@@ -955,7 +953,7 @@
android:layout_marginRight=
"@dimen/size_10"
android:drawableRight=
"@drawable/rv_common_icon_down_arrow"
android:drawablePadding=
"@dimen/size_2"
android:text=
"@string/
rv_
detail"
android:text=
"@string/detail"
android:textColor=
"@color/textMain"
/>
<TextView
...
...
@@ -964,7 +962,7 @@
android:layout_height=
"match_parent"
android:background=
"@color/gray_FFB74B"
android:gravity=
"center"
android:text=
"@string/
rv_
confirm_order"
android:text=
"@string/confirm_order"
android:textColor=
"@color/colorWrite"
/>
</LinearLayout>
</LinearLayout>
module_home/src/main/res/layout/rv_item_rv_tourlist_label.xml
View file @
ea6e7e31
...
...
@@ -15,6 +15,6 @@
android:maxLength=
"3"
android:textSize=
"@dimen/text_12"
android:background=
"@drawable/shape_rv_dark_gray_circle"
android:text=
"
浪漫游
"
/>
android:text=
""
/>
</RelativeLayout>
\ No newline at end of file
module_home/src/main/res/layout/select_shop_empty.xml
View file @
ea6e7e31
...
...
@@ -20,7 +20,7 @@
android:layout_height=
"wrap_content"
android:layout_below=
"@id/iv_flag"
android:layout_centerHorizontal=
"true"
android:text=
"
暂无分公司,请换个城市试试!
"
android:text=
"
@string/not_car_hint
"
android:textColor=
"#333333"
android:textSize=
"@dimen/sp_14"
/>
...
...
module_home/src/main/res/values/strings.xml
View file @
ea6e7e31
...
...
@@ -37,12 +37,8 @@
<string
name=
"rv_car_type_price"
>
价格
</string>
<string
name=
"rv_car_type_seat"
>
6剩6坐
</string>
<string
name=
"rv_car_type_selected"
>
筛选
</string>
<string
name=
"rv_day"
>
/天
</string>
<string
name=
"rv_one_car"
>
/辆
</string>
<string
name=
"rv_one_person"
>
/人
</string>
<string
name=
"rv_km"
>
km
</string>
<string
name=
"rv_km_you"
>
距您
</string>
<string
name=
"rv_select_car"
>
选择车型
</string>
<string
name=
"rv_reset"
>
重置
</string>
<string
name=
"rv_ok"
>
确定
</string>
<string
name=
"rv_rental_car"
>
租房车
</string>
...
...
@@ -63,7 +59,7 @@
<string
name=
"rv_to_shop"
>
到店
</string>
<string
name=
"rv_to_door"
>
上门
</string>
<string
name=
"rv_to_top"
>
置顶
</string>
<string
name=
"rv_city_list"
>
选择城市
</string>
<string
name=
"rv_select_shop"
>
选择门店
</string>
<string
name=
"rv_select_address"
>
选择地址
</string>
<string
name=
"rv_select_address_hint"
>
请输入地址
</string>
...
...
@@ -77,24 +73,23 @@
<string
name=
"rv_edit_pwd"
>
设置密码
</string>
<string
name=
"rv_user_info_error"
>
用户名或密码错误
</string>
<string
name=
"rv_cancel"
>
取消
</string>
<string
name=
"rv_shop_map"
>
门店地图
</string>
<string
name=
"rv_select_car_num_hint"
>
选择车辆数量
</string>
<string
name=
"rv_select_driving_num_hint"
>
欣新专职司机
</string>
<string
name=
"rv_user_driving"
>
自驾
</string>
<string
name=
"rv_user_driving_hint"
>
(需提供驾驶人信息)
</string>
<string
name=
"rv_driving_set"
>
驾驶人设置
</string>
<string
name=
"rv_deposit"
>
欣新平台租车押金
</string>
<string
name=
"rv_give_driving"
>
自配司机
</string>
<string
name=
"rv_enjoy_service"
>
尊享服务
</string>
<string
name=
"rv_include_rent_car"
>
已含租车费
</string>
<string
name=
"rv_detailed_info"
>
详细信息
</string>
<string
name=
"rv_include_car_clear"
>
已含车辆清洁费
</string>
<string
name=
"rv_car_not_hurt"
>
车损免赔
</string>
<string
name=
"rv_passenger_security"
>
乘客座位保障
</string>
<string
name=
"rv_personal_safety"
>
保人身安全
</string>
<string
name=
"rv_reservation_know"
>
预定须知
</string>
<string
name=
"rv_inviter_phone"
>
内部邀请人
</string>
<string
name=
"rv_agreed_reservation_know"
>
同意预定须知和
</string>
<string
name=
"rv_contract_agreement"
>
《合同协议》
</string>
<string
name=
"rv_driving"
>
驾驶人
</string>
...
...
@@ -117,11 +112,11 @@
<string
name=
"rv_save"
>
保存
</string>
<string
name=
"rv_upload_driving_toast"
>
请上传驾驶证照片
</string>
<string
name=
"rv_upload_driving_copy_toast"
>
请上传驾驶证附件照片
</string>
<string
name=
"rv_delete"
>
删除
</string>
<string
name=
"rv_driving_data_null"
>
您还没有驾驶员哦
</string>
<string
name=
"rv_car_type_data_null"
>
未找到筛选数据
</string>
<string
name=
"rv_day_toast"
>
租车天数必须大于等于1
</string>
<string
name=
"rv_driving_info"
>
驾驶人信息
</string>
<string
name=
"rv_rb"
>
元
</string>
<string
name=
"rv_id_card"
>
身份证号
</string>
<string
name=
"rv_add_driving_toast"
>
请添加驾驶证
</string>
...
...
module_tourism/src/main/java/com/rv/tourism/adapter/VisitorInformationAdapter.java
View file @
ea6e7e31
...
...
@@ -21,9 +21,9 @@ public class VisitorInformationAdapter extends BaseQuickAdapter<BeanVisitorInfor
@Override
protected
void
convert
(
BaseViewHolder
helper
,
BeanVisitorInformation
item
)
{
if
(
"0"
.
equals
(
item
.
getIsChild
()))
{
helper
.
setText
(
R
.
id
.
tv_people_type
,
"成人"
);
helper
.
setText
(
R
.
id
.
tv_people_type
,
mContext
.
getString
(
R
.
string
.
adult
)
);
}
else
{
helper
.
setText
(
R
.
id
.
tv_people_type
,
"儿童"
);
helper
.
setText
(
R
.
id
.
tv_people_type
,
mContext
.
getString
(
R
.
string
.
child
)
);
}
if
(
item
==
null
||
TextUtil
.
isEmpty
(
item
.
getName
())
||
(
"0"
.
equals
(
item
.
getIsChild
())
&&
TextUtil
.
isEmpty
(
item
.
getPhone
())))
{
...
...
module_tourism/src/main/java/com/rv/tourism/dialog/TravelBookingDialog.java
View file @
ea6e7e31
...
...
@@ -31,6 +31,7 @@ import java.util.List;
public
class
TravelBookingDialog
extends
BaseDialog
{
private
final
Context
context
;
private
TravelBookingDepartureAdapter
mAdapter
;
private
TravelBookingDeparturetimeAdapter
mTimeAdapter
;
private
int
adufe
=
1
;
...
...
@@ -44,6 +45,7 @@ public class TravelBookingDialog extends BaseDialog {
public
TravelBookingDialog
(
@NonNull
Context
context
)
{
super
(
context
);
this
.
context
=
context
;
setDialogParams
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
DisplayUtil
.
dip2px
(
context
,
450
),
Gravity
.
BOTTOM
);
}
...
...
@@ -119,12 +121,12 @@ public class TravelBookingDialog extends BaseDialog {
}
else
if
(
id
==
R
.
id
.
tv_travel_booking_ok
)
{
if
(
adufe
<
chile
)
{
Toast
.
makeText
(
getContext
(),
"成人出游人数要大于或等于儿童出游人数"
,
Toast
.
LENGTH_SHORT
).
show
();
Toast
.
makeText
(
getContext
(),
context
.
getString
(
R
.
string
.
adult_and_child_hint
)
,
Toast
.
LENGTH_SHORT
).
show
();
return
;
}
if
(
adufe
==
0
)
{
Toast
.
makeText
(
getContext
(),
"成人出游人数不能为空!"
,
Toast
.
LENGTH_SHORT
).
show
();
Toast
.
makeText
(
getContext
(),
context
.
getString
(
R
.
string
.
adult_isnot
)
,
Toast
.
LENGTH_SHORT
).
show
();
return
;
}
...
...
@@ -163,8 +165,8 @@ public class TravelBookingDialog extends BaseDialog {
}
if
(
adultPrice
!=
null
&&
childPrice
!=
null
&&
bean
!=
null
)
{
adultPrice
.
setText
(
"成人:¥"
+
bean
.
getPrice
()
+
"/人"
);
childPrice
.
setText
(
"儿童:¥"
+
bean
.
getChildPrice
()
+
"/人"
);
adultPrice
.
setText
(
context
.
getString
(
R
.
string
.
adult_unit
)
+
bean
.
getPrice
()
+
context
.
getString
(
R
.
string
.
people
)
);
childPrice
.
setText
(
context
.
getString
(
R
.
string
.
child_unit
)
+
bean
.
getChildPrice
()
+
context
.
getString
(
R
.
string
.
people
)
);
}
if
(
bean
!=
null
&&
bean
.
getDeparture
()
!=
null
&&
bean
.
getDeparture
().
size
()
>
0
)
{
...
...
@@ -199,25 +201,25 @@ public class TravelBookingDialog extends BaseDialog {
String
week
=
""
;
switch
(
no
)
{
case
0
:
week
=
"周日"
;
week
=
context
.
getString
(
R
.
string
.
sunday
)
;
break
;
case
1
:
week
=
"周一"
;
week
=
context
.
getString
(
R
.
string
.
on_monday
)
;
break
;
case
2
:
week
=
"周二"
;
week
=
context
.
getString
(
R
.
string
.
on_tuesday
)
;
break
;
case
3
:
week
=
"周三"
;
week
=
context
.
getString
(
R
.
string
.
on_wednesday
)
;
break
;
case
4
:
week
=
"周四"
;
week
=
context
.
getString
(
R
.
string
.
thursday
)
;
break
;
case
5
:
week
=
"周五"
;
week
=
context
.
getString
(
R
.
string
.
friday
)
;
break
;
case
6
:
week
=
"周六"
;
week
=
context
.
getString
(
R
.
string
.
on_saturday
)
;
break
;
}
return
week
;
...
...
module_tourism/src/main/res/layout/dialog_travel_booking.xml
View file @
ea6e7e31
...
...
@@ -38,7 +38,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_5"
android:text=
"
选择出发地点
"
android:text=
"
@string/choose_your_starting_point
"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_16"
/>
...
...
@@ -51,7 +51,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_10"
android:text=
"
选择活动日期
"
android:text=
"
@string/select_event_date
"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_16"
/>
...
...
@@ -65,7 +65,7 @@
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_10"
android:layout_marginBottom=
"@dimen/size_10"
android:text=
"
出游人数
"
android:text=
"
@string/number_of_tourists
"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_16"
/>
...
...
@@ -95,7 +95,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_3"
android:text=
"
1个成人可以携带1个1.2米以下儿童
"
android:text=
"
@string/number_of_tourists_hint
"
android:textColor=
"@color/colorGray"
android:textSize=
"@dimen/text_10"
/>
</LinearLayout>
...
...
@@ -174,7 +174,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_3"
android:text=
"
1.2~1.4米儿童半价收费
"
android:text=
"
@string/number_of_tourists_hint2
"
android:textColor=
"@color/colorGray"
android:textSize=
"@dimen/text_10"
/>
</LinearLayout>
...
...
@@ -240,7 +240,7 @@
android:layout_marginTop=
"@dimen/size_5"
android:background=
"@drawable/shape_rv_bg_shallow_dark_yellow_circle"
android:gravity=
"center"
android:text=
"
确定
"
android:text=
"
@string/determine
"
android:textColor=
"@color/colorWrite"
android:textSize=
"@dimen/text_16"
/>
</LinearLayout>
\ No newline at end of file
module_tourism/src/main/res/layout/rv_item_recommended_route.xml
View file @
ea6e7e31
...
...
@@ -29,7 +29,7 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:lines=
"2"
android:text=
"
草原大漠6天5晚,穿越沙漠+宗教人文+房车露营
"
android:text=
""
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_14"
/>
...
...
@@ -41,7 +41,7 @@
android:layout_alignParentBottom=
"true"
android:textColor=
"@color/colorAuxiliaryRed"
android:textSize=
"@dimen/text_16"
android:text=
"
¥5000/人
"
/>
android:text=
""
/>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
module_tourism/src/main/res/layout/rv_item_travel_booking_departure.xml
View file @
ea6e7e31
...
...
@@ -29,7 +29,7 @@
android:id=
"@+id/tv_company"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
欣新房车(松山湖)有限公司
"
android:text=
""
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_14"
/>
...
...
@@ -38,7 +38,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_3"
android:text=
"
东莞市和兴街与莞樟路交叉口西100米
"
android:text=
""
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_12"
/>
</LinearLayout>
...
...
module_tourism/src/main/res/layout/rv_item_travel_booking_departure_time.xml
View file @
ea6e7e31
...
...
@@ -23,7 +23,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_10"
android:text=
"
2019-06-12周三~2019-06-18周二
"
android:text=
""
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_14"
/>
</LinearLayout>
...
...
module_tourism/src/main/res/layout/rv_item_visitor_information.xml
View file @
ea6e7e31
...
...
@@ -22,7 +22,7 @@
android:id=
"@+id/tv_hint"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
请选择出游人
"
android:text=
"
@string/please_select_a_tourist
"
android:layout_marginLeft=
"@dimen/size_20"
android:textColor=
"@color/text_Gray"
android:textSize=
"@dimen/text_14"
/>
...
...
@@ -66,7 +66,7 @@
android:id=
"@+id/tv_idcard_title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
身份证号
"
android:text=
"
@string/identity_number
"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_12"
/>
...
...
plugin_invoice/src/main/AndroidManifest.xml
View file @
ea6e7e31
...
...
@@ -3,7 +3,10 @@
package=
"com.xxrv.invoice"
>
<application>
<activity
android:name=
".activity.OrderInvoicingCarDetailsActivity"
></activity>
<activity
android:name=
".activity.InvoicingSuccessActivity"
></activity>
<activity
android:name=
".activity.CheckOrderInvoicingActivity"
/>
<activity
android:name=
".activity.InvoicingDetailsActivity"
/>
<activity
android:name=
".activity.OrderInvoicingCarDetailsActivity"
/>
<activity
android:name=
".activity.OrderInvoicingCarActivity"
/>
<activity
android:name=
".activity.BillingHistoryActivity"
/>
<activity
...
...
plugin_invoice/src/main/java/com/xxrv/invoice/activity/BillingHistoryActivity.java
View file @
ea6e7e31
...
...
@@ -66,6 +66,14 @@ public class BillingHistoryActivity extends BaseStatusActivity<InvoicePresenter>
mSimpleRefreshLayout
.
setHeaderView
(
new
SimpleRefreshView
(
this
));
mSimpleRefreshLayout
.
setOnSimpleRefreshListener
(
this
);
rvContent
.
setAdapter
(
adapter
);
adapter
.
setOnItemClickListener
(
new
BaseQuickAdapter
.
OnItemClickListener
()
{
@Override
public
void
onItemClick
(
BaseQuickAdapter
adapter
,
View
view
,
int
position
)
{
BillingHistoryBean
.
DataBeanX
.
DataBean
item
=
(
BillingHistoryBean
.
DataBeanX
.
DataBean
)
adapter
.
getItem
(
position
);
startActivity
(
InvoicingDetailsActivity
.
getIntent
(
mActivity
,
item
.
getId
(),
item
.
getType
(),
item
.
getOrderIds
()));
}
});
}
@Override
...
...
@@ -77,7 +85,9 @@ public class BillingHistoryActivity extends BaseStatusActivity<InvoicePresenter>
Map
<
String
,
Object
>
headMap
=
new
LinkedHashMap
<>();
if
(
OkGoUtil
.
getToken
()
!=
null
)
headMap
.
put
(
"Authorization"
,
OkGoUtil
.
getToken
());
mPresenter
.
getData
(
RvFrameConfig
.
VEHICLE_ORDER
,
0
,
InvoiceApi
.
HTTP_URL_INVOICE_SELECTBYTYPE
,
BillingHistoryBean
.
class
,
headMap
,
true
);
Map
<
String
,
Object
>
mapData
=
new
LinkedHashMap
<>();
mapData
.
put
(
"page"
,
page
);
mPresenter
.
getData
(
RvFrameConfig
.
HOST
,
0
,
InvoiceApi
.
HTTP_URL_INVOICE_GETALL
,
BillingHistoryBean
.
class
,
mapData
,
headMap
,
true
);
}
@Override
...
...
plugin_invoice/src/main/java/com/xxrv/invoice/activity/CheckOrderInvoicingActivity.java
0 → 100644
View file @
ea6e7e31
package
com
.
xxrv
.
invoice
.
activity
;
import
android.content.Context
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.support.v7.widget.LinearLayoutManager
;
import
android.support.v7.widget.RecyclerView
;
import
android.view.View
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.frame.rv.config.RvFrameConfig
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.BaseStatusActivity
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.ruiwenliu.wrapper.weight.refresh.SimpleRefreshLayout
;
import
com.ruiwenliu.wrapper.weight.refresh.SimpleRefreshView
;
import
com.xxrv.invoice.R
;
import
com.xxrv.invoice.R2
;
import
com.xxrv.invoice.adapter.CheckOrderInvoicingAdapter
;
import
com.xxrv.invoice.api.InvoiceApi
;
import
com.xxrv.invoice.bean.OrderInvoicingCarBean
;
import
com.xxrv.invoice.presenter.InvoicePresenter
;
import
com.yuyife.okgo.OkGoUtil
;
import
java.util.LinkedHashMap
;
import
java.util.Map
;
import
butterknife.BindView
;
public
class
CheckOrderInvoicingActivity
extends
BaseStatusActivity
<
InvoicePresenter
>
implements
BaseQuickAdapter
.
RequestLoadMoreListener
,
SimpleRefreshLayout
.
OnSimpleRefreshListener
{
@BindView
(
R2
.
id
.
rv_content
)
RecyclerView
rvContent
;
@BindView
(
R2
.
id
.
refresh
)
SimpleRefreshLayout
mSimpleRefreshLayout
;
private
CheckOrderInvoicingAdapter
adapter
;
private
double
totalPrice
;
private
int
mPage
;
private
int
countPage
;
private
String
type
;
private
String
orderIds
;
public
static
Intent
getIntent
(
Context
context
,
String
type
,
String
orderIds
)
{
return
new
Intent
(
context
,
CheckOrderInvoicingActivity
.
class
)
.
putExtra
(
"type"
,
type
)
.
putExtra
(
"orderIds"
,
orderIds
);
}
@Override
protected
int
setLayout
()
{
return
R
.
layout
.
activity_check_order_invoicing
;
}
@Override
protected
void
initView
(
Bundle
savedInstanceState
,
TitleView
titleView
,
Intent
intent
)
{
titleView
.
setTitle
(
"订单详情"
);
type
=
intent
.
getStringExtra
(
"type"
);
orderIds
=
intent
.
getStringExtra
(
"orderIds"
);
adapter
=
new
CheckOrderInvoicingAdapter
();
rvContent
.
setLayoutManager
(
new
LinearLayoutManager
(
mActivity
,
LinearLayoutManager
.
VERTICAL
,
false
));
adapter
.
setOnLoadMoreListener
(
this
,
rvContent
);
mSimpleRefreshLayout
.
setHeaderView
(
new
SimpleRefreshView
(
this
));
mSimpleRefreshLayout
.
setOnSimpleRefreshListener
(
this
);
rvContent
.
setAdapter
(
adapter
);
}
@Override
public
void
onShowResult
(
int
requestType
,
BaseBean
result
)
{
mSimpleRefreshLayout
.
onRefreshComplete
();
switch
(
requestType
)
{
case
0
:
processData
((
OrderInvoicingCarBean
)
result
);
break
;
}
}
@Override
protected
void
loadData
(
Bundle
savedInstanceState
,
Intent
intent
)
{
onRefresh
();
}
@Override
public
void
onRefresh
()
{
mPage
=
1
;
orderData
(
mPage
);
}
private
void
orderData
(
int
page
)
{
Map
<
String
,
Object
>
headMap
=
new
LinkedHashMap
<>();
if
(
OkGoUtil
.
getToken
()
!=
null
)
headMap
.
put
(
"Authorization"
,
OkGoUtil
.
getToken
());
Map
<
String
,
Object
>
mapData
=
new
LinkedHashMap
<>();
mapData
.
put
(
"page"
,
page
);
mapData
.
put
(
"limit"
,
10
);
mapData
.
put
(
"orderIds"
,
orderIds
);
mapData
.
put
(
"multiStatus"
,
"6"
);
mapData
.
put
(
"type"
,
type
);
//"订单类型 1--租车;2--旅游; 3--会员订单")
mapData
.
put
(
"invoiceStatus"
,
"1"
);
//"开票状态,0未开票,1已开票
mPresenter
.
getData
(
RvFrameConfig
.
VEHICLE_ORDER
,
0
,
InvoiceApi
.
HTTP_URL_ORDER_LIST
,
OrderInvoicingCarBean
.
class
,
mapData
,
headMap
,
page
==
1
?
true
:
false
);
}
/**
* 处理请求数据
*
* @param bean
*/
private
void
processData
(
OrderInvoicingCarBean
bean
)
{
if
(
mPage
==
1
)
{
countPage
=
bean
.
getData
().
getTotalPage
();
adapter
.
setNewData
(
bean
.
getData
().
getData
());
mSimpleRefreshLayout
.
onRefreshComplete
();
}
else
{
adapter
.
addData
(
bean
.
getData
().
getData
());
adapter
.
loadMoreComplete
();
}
}
@Override
public
void
onLoadMoreRequested
()
{
if
(
mPage
>=
countPage
)
{
adapter
.
loadMoreEnd
();
}
else
{
mPage
++;
orderData
(
mPage
);
}
}
}
plugin_invoice/src/main/java/com/xxrv/invoice/activity/InvoicingActivity.java
View file @
ea6e7e31
package
com
.
xxrv
.
invoice
.
activity
;
import
android.content.ComponentName
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.view.View
;
...
...
@@ -7,10 +8,13 @@ import android.view.View;
import
com.alibaba.android.arouter.facade.annotation.Route
;
import
com.alibaba.android.arouter.launcher.ARouter
;
import
com.frame.base.url.Constance
;
import
com.ruiwenliu.wrapper.SPConstance
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.BaseStatusActivity
;
import
com.ruiwenliu.wrapper.inter.ImInitListenter
;
import
com.ruiwenliu.wrapper.util.ViewHolder
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.rv.component.utils.Cookie
;
import
com.xxrv.invoice.R
;
import
com.xxrv.invoice.R2
;
import
com.xxrv.invoice.api.InvoiceApi
;
...
...
@@ -47,7 +51,7 @@ public class InvoicingActivity extends BaseStatusActivity<InvoicePresenter> {
ButterKnife
.
bind
(
this
);
}
@OnClick
({
R2
.
id
.
rl_item_announcement
,
R2
.
id
.
rl_item_car
,
R2
.
id
.
rl_item_tourism
,
R2
.
id
.
rl_item_member
,
R2
.
id
.
rl_item_billing_history
,
R2
.
id
.
rl_item_invoicing_help
,
R2
.
id
.
tv
_item_customer_service
})
@OnClick
({
R2
.
id
.
rl_item_announcement
,
R2
.
id
.
rl_item_car
,
R2
.
id
.
rl_item_tourism
,
R2
.
id
.
rl_item_member
,
R2
.
id
.
rl_item_billing_history
,
R2
.
id
.
rl_item_invoicing_help
,
R2
.
id
.
ll
_item_customer_service
})
public
void
onViewClicked
(
View
view
)
{
int
id
=
view
.
getId
();
if
(
id
==
R
.
id
.
rl_item_announcement
)
{
...
...
@@ -71,7 +75,17 @@ public class InvoicingActivity extends BaseStatusActivity<InvoicePresenter> {
.
withString
(
"url"
,
InvoiceApi
.
HTTP_URL_CAR_TYPE_NOTICE
)
.
withInt
(
"type"
,
27
)
.
navigation
();
}
else
if
(
id
==
R
.
id
.
tv_item_customer_service
)
{
}
else
if
(
id
==
R
.
id
.
ll_item_customer_service
)
{
//客服
if
(
mActivity
instanceof
ImInitListenter
&&
!((
ImInitListenter
)
mActivity
).
isBindService
())
{
showToast
(
"Im初始化中..."
);
return
;
}
ComponentName
name
=
new
ComponentName
(
mActivity
,
"com.rv.im.CustomerListActivity"
);
Intent
intent
=
new
Intent
();
intent
.
putExtra
(
"login_user_id"
,
Cookie
.
getStringValue
(
getApplicationContext
(),
SPConstance
.
USER_JSON_IMUSERID
));
intent
.
setComponent
(
name
);
startActivity
(
intent
);
}
}
...
...
@@ -88,11 +102,11 @@ public class InvoicingActivity extends BaseStatusActivity<InvoicePresenter> {
@Override
public
void
onClick
(
View
v
)
{
int
id
=
v
.
getId
();
if
(
id
==
R
.
id
.
ll
_item_ok
)
{
if
(
id
==
R
.
id
.
tv
_item_ok
)
{
dismiss
();
}
}
},
R
.
id
.
ll
_item_ok
);
},
R
.
id
.
tv
_item_ok
);
}
}.
show
();
}
...
...
plugin_invoice/src/main/java/com/xxrv/invoice/activity/InvoicingDetailsActivity.java
0 → 100644
View file @
ea6e7e31
package
com
.
xxrv
.
invoice
.
activity
;
import
android.annotation.TargetApi
;
import
android.content.Context
;
import
android.content.Intent
;
import
android.os.Build
;
import
android.os.Bundle
;
import
android.util.Log
;
import
android.view.View
;
import
android.webkit.JavascriptInterface
;
import
android.webkit.WebChromeClient
;
import
android.webkit.WebResourceRequest
;
import
android.webkit.WebSettings
;
import
android.webkit.WebView
;
import
android.webkit.WebViewClient
;
import
android.widget.ProgressBar
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.BaseStatusActivity
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.xxrv.invoice.R
;
import
com.xxrv.invoice.R2
;
import
com.xxrv.invoice.api.InvoiceApi
;
import
com.xxrv.invoice.presenter.InvoicePresenter
;
import
com.yuyife.okgo.OkGoUtil
;
import
butterknife.BindView
;
import
static
com
.
ruiwenliu
.
wrapper
.
weight
.
webview
.
SafeWebView
.
hasKitkat
;
/**
* 电子发票详情
*/
public
class
InvoicingDetailsActivity
extends
BaseStatusActivity
<
InvoicePresenter
>
{
@BindView
(
R2
.
id
.
pb_progress
)
ProgressBar
pbProgress
;
@BindView
(
R2
.
id
.
webView
)
WebView
mWebView
;
private
String
webUrl
;
private
String
id
;
private
String
type
;
private
String
orderIds
;
public
static
Intent
getIntent
(
Context
context
,
String
id
,
String
type
,
String
orderIds
)
{
return
new
Intent
(
context
,
InvoicingDetailsActivity
.
class
)
.
putExtra
(
"id"
,
id
)
.
putExtra
(
"type"
,
type
)
.
putExtra
(
"orderIds"
,
orderIds
);
}
@Override
protected
int
setLayout
()
{
return
R
.
layout
.
activity_invoicing_details
;
}
@Override
protected
void
initView
(
Bundle
savedInstanceState
,
TitleView
titleView
,
Intent
intent
)
{
titleView
.
setTitle
(
"电子发票详情"
);
id
=
intent
.
getStringExtra
(
"id"
);
type
=
intent
.
getStringExtra
(
"type"
);
orderIds
=
intent
.
getStringExtra
(
"orderIds"
);
webUrl
=
InvoiceApi
.
HTTP_URL_INVOICE_INVOICEINFO
+
"?id="
+
id
;
Log
.
i
(
"CampDetailActivity"
,
"initView: "
+
webUrl
);
initWeb
();
}
@TargetApi
(
Build
.
VERSION_CODES
.
JELLY_BEAN
)
private
void
initWeb
()
{
WebSettings
webSettings
=
mWebView
.
getSettings
();
if
(
webSettings
==
null
)
return
;
// 支持 Js 使用
webSettings
.
setJavaScriptEnabled
(
true
);
// 开启DOM缓存,默认状态下是不支持LocalStorage的
webSettings
.
setDomStorageEnabled
(
true
);
// 开启数据库缓存
webSettings
.
setDatabaseEnabled
(
true
);
// 支持自动加载图片
webSettings
.
setLoadsImagesAutomatically
(
hasKitkat
());
// 设置 WebView 的缓存模式
webSettings
.
setCacheMode
(
WebSettings
.
LOAD_DEFAULT
);
// 支持启用缓存模式
webSettings
.
setAppCacheEnabled
(
true
);
// 设置 AppCache 最大缓存值(现在官方已经不提倡使用,已废弃)
// webSettings.setAppCacheMaxSize(8 * 1024 * 1024);
// Android 私有缓存存储,如果你不调用setAppCachePath方法,WebView将不会产生这个目录
webSettings
.
setAppCachePath
(
getCacheDir
().
getAbsolutePath
());
// 数据库路径
// if (!hasKitkat()) {
// webSettings.setDatabasePath(getDatabasePath("html").getPath());
// }
// 关闭密码保存提醒功能
// webSettings.setSavePassword(false);
// 支持缩放
webSettings
.
setSupportZoom
(
true
);
// 设置 UserAgent 属性
webSettings
.
setUserAgentString
(
""
);
// 允许加载本地 html 文件/false
webSettings
.
setAllowFileAccess
(
true
);
// 允许通过 file url 加载的 Javascript 读取其他的本地文件,Android 4.1 之前默认是true,在 Android 4.1 及以后默认是false,也就是禁止
webSettings
.
setAllowFileAccessFromFileURLs
(
true
);
// 允许通过 file url 加载的 Javascript 可以访问其他的源,包括其他的文件和 http,https 等其他的源,
// Android 4.1 之前默认是true,在 Android 4.1 及以后默认是false,也就是禁止
// 如果此设置是允许,则 setAllowFileAccessFromFileURLs 不起做用
webSettings
.
setAllowUniversalAccessFromFileURLs
(
true
);
mWebView
.
addJavascriptInterface
(
new
AndroidJs
(),
"AndroidJs"
);
mWebView
.
setWebViewClient
(
new
WebViewClient
()
{
@Override
public
boolean
shouldOverrideUrlLoading
(
WebView
view
,
WebResourceRequest
request
)
{
return
super
.
shouldOverrideUrlLoading
(
view
,
request
);
}
});
mWebView
.
loadUrl
(
webUrl
);
mWebView
.
setWebChromeClient
(
new
WebChromeClient
()
{
@Override
public
void
onProgressChanged
(
WebView
view
,
int
newProgress
)
{
if
(
newProgress
==
100
)
{
pbProgress
.
setVisibility
(
View
.
GONE
);
//加载完网页进度条消失
}
else
{
pbProgress
.
setVisibility
(
View
.
VISIBLE
);
//开始加载网页时显示进度条
pbProgress
.
setProgress
(
newProgress
);
//设置进度值
}
}
});
}
public
class
AndroidJs
{
@JavascriptInterface
public
String
getToken
()
{
return
OkGoUtil
.
getToken
();
}
/**
* 查看订单
*/
@JavascriptInterface
public
void
goToInvoiceOrderList
()
{
startActivity
(
CheckOrderInvoicingActivity
.
getIntent
(
mActivity
,
type
,
orderIds
));
}
}
@Override
protected
void
onStart
()
{
super
.
onStart
();
}
@Override
public
void
onResume
()
{
super
.
onResume
();
mWebView
.
onResume
();
// 生命周期onResume
}
@Override
protected
void
onPause
()
{
super
.
onPause
();
mWebView
.
onPause
();
//生命周期onPause
}
@Override
public
void
onDestroy
()
{
super
.
onDestroy
();
mWebView
.
stopLoading
();
// 停止当前加载
mWebView
.
clearMatches
();
// 清除网页查找的高亮匹配字符。
mWebView
.
clearHistory
();
// 清除当前 WebView 访问的历史记录
mWebView
.
clearSslPreferences
();
//清除ssl信息
mWebView
.
clearCache
(
true
);
//清空网页访问留下的缓存数据。需要注意的时,由于缓存是全局的,所以只要是WebView用到的缓存都会被清空,即便其他地方也会使用到。该方法接受一个参数,从命名即可看出作用。若设为false,则只清空内存里的资源缓存,而不清空磁盘里的。
mWebView
.
loadUrl
(
"about:blank"
);
// 清空当前加载
mWebView
.
removeAllViews
();
// 清空子 View
if
(
Build
.
VERSION
.
SDK_INT
<
Build
.
VERSION_CODES
.
JELLY_BEAN_MR2
)
{
mWebView
.
removeJavascriptInterface
(
"AndroidNative"
);
// 向 Web端注入 java 对象
}
// mWebView.addJavascriptInterface(new AndroidJs(),"AndroidJs");
mWebView
.
destroy
();
// 生命周期销毁
}
@Override
public
void
onShowResult
(
int
requestType
,
BaseBean
result
)
{
}
}
plugin_invoice/src/main/java/com/xxrv/invoice/activity/InvoicingSuccessActivity.java
0 → 100644
View file @
ea6e7e31
package
com
.
xxrv
.
invoice
.
activity
;
import
android.content.Context
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.widget.TextView
;
import
com.frame.base.bus.RxBus
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.BaseStatusActivity
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.xxrv.invoice.R
;
import
com.xxrv.invoice.R2
;
import
com.xxrv.invoice.bus.InvoicingSuccessEvent
;
import
com.xxrv.invoice.presenter.InvoicePresenter
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
butterknife.OnClick
;
/**
* 开票功能页面
*/
public
class
InvoicingSuccessActivity
extends
BaseStatusActivity
<
InvoicePresenter
>
{
public
static
Intent
getIntent
(
Context
context
)
{
return
new
Intent
(
context
,
InvoicingSuccessActivity
.
class
);
}
@Override
protected
int
setLayout
()
{
return
R
.
layout
.
activity_invoicing_success
;
}
@Override
protected
void
initView
(
Bundle
savedInstanceState
,
TitleView
titleView
,
Intent
intent
)
{
titleView
.
setTitle
(
"开具电子发票"
);
}
@Override
public
void
onShowResult
(
int
requestType
,
BaseBean
result
)
{
}
@OnClick
(
R2
.
id
.
tv_ok
)
public
void
onViewClicked
()
{
RxBus
.
post
(
new
InvoicingSuccessEvent
());
finish
();
}
}
plugin_invoice/src/main/java/com/xxrv/invoice/activity/OrderInvoicingCarActivity.java
View file @
ea6e7e31
...
...
@@ -12,7 +12,11 @@ import android.widget.LinearLayout;
import
android.widget.TextView
;
import
com.alibaba.android.arouter.launcher.ARouter
;
import
com.alibaba.fastjson.JSON
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.frame.base.bus.Observer
;
import
com.frame.base.bus.PaymentSuccessfulEvent
;
import
com.frame.base.bus.RxBus
;
import
com.frame.base.url.Constance
;
import
com.frame.rv.config.RvFrameConfig
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
...
...
@@ -24,11 +28,14 @@ import com.xxrv.invoice.R;
import
com.xxrv.invoice.R2
;
import
com.xxrv.invoice.adapter.OrderInvoicingCarAdapter
;
import
com.xxrv.invoice.api.InvoiceApi
;
import
com.xxrv.invoice.bean.Invoiceing
;
import
com.xxrv.invoice.bean.OrderInvoicingCarBean
;
import
com.xxrv.invoice.bus.InvoicingSuccessEvent
;
import
com.xxrv.invoice.presenter.InvoicePresenter
;
import
com.yuyife.okgo.OkGoUtil
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.LinkedHashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -36,6 +43,7 @@ import java.util.Map;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
butterknife.OnClick
;
import
io.reactivex.android.schedulers.AndroidSchedulers
;
/**
* 租车开发票订单列表
...
...
@@ -63,9 +71,9 @@ public class OrderInvoicingCarActivity extends BaseStatusActivity<InvoicePresent
private
OrderInvoicingCarAdapter
mAdapter
;
private
List
<
String
>
orderIdList
=
new
ArrayList
<>();
//选择中的订单
private
boolean
isCheckAll
=
true
;
private
double
totalPrice
;
private
int
mPage
;
private
int
countPage
;
...
...
@@ -111,15 +119,30 @@ public class OrderInvoicingCarActivity extends BaseStatusActivity<InvoicePresent
}
}
});
initRxbus
();
}
private
void
initRxbus
()
{
RxBus
.
tObservable
(
InvoicingSuccessEvent
.
class
)
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
(
new
Observer
<
InvoicingSuccessEvent
>(
disposable
)
{
@Override
public
void
onNext
(
InvoicingSuccessEvent
event
)
{
onRefresh
();
}
});
}
private
void
getCountSelectData
()
{
List
<
OrderInvoicingCarBean
.
DataBeanX
.
DataBean
>
selectItem
=
mAdapter
.
getSelectItem
();
tvNumber
.
setText
(
String
.
valueOf
(
selectItem
.
size
()));
double
totalPrice
=
0
;
totalPrice
=
0
;
orderIdList
.
clear
();
if
(
selectItem
!=
null
&&
selectItem
.
size
()
>
0
)
{
for
(
int
i
=
0
;
i
<
selectItem
.
size
();
i
++)
{
totalPrice
=
totalPrice
+
selectItem
.
get
(
i
).
getRealAmount
();
totalPrice
=
totalPrice
+
selectItem
.
get
(
i
).
getOrderRealAmount
();
orderIdList
.
add
(
String
.
valueOf
(
selectItem
.
get
(
i
).
getId
()));
}
}
tvPrice
.
setText
(
String
.
valueOf
(
new
BigDecimal
(
totalPrice
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
).
doubleValue
()));
...
...
@@ -182,7 +205,14 @@ public class OrderInvoicingCarActivity extends BaseStatusActivity<InvoicePresent
getCountSelectData
();
}
else
if
(
id
==
R
.
id
.
tv_item_next
)
{
startActivity
(
OrderInvoicingCarDetailsActivity
.
getIntent
(
mActivity
));
String
ids
=
orderIdList
.
toString
().
replace
(
"["
,
""
).
replace
(
"]"
,
""
).
replaceAll
(
" "
,
""
);
Invoiceing
invoiceing
=
new
Invoiceing
();
invoiceing
.
setIds
(
ids
);
invoiceing
.
setAmount
(
new
BigDecimal
(
totalPrice
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
).
doubleValue
());
invoiceing
.
setType
(
type
);
String
jsonString
=
JSON
.
toJSONString
(
invoiceing
);
startActivity
(
OrderInvoicingCarDetailsActivity
.
getIntent
(
mActivity
,
jsonString
));
}
}
...
...
@@ -210,7 +240,7 @@ public class OrderInvoicingCarActivity extends BaseStatusActivity<InvoicePresent
Map
<
String
,
Object
>
mapData
=
new
LinkedHashMap
<>();
mapData
.
put
(
"page"
,
page
);
mapData
.
put
(
"limit"
,
10
);
mapData
.
put
(
"multiStatus"
,
"6
,-1
"
);
mapData
.
put
(
"multiStatus"
,
"6"
);
mapData
.
put
(
"type"
,
type
);
//"订单类型 1--租车;2--旅游; 3--会员订单")
mapData
.
put
(
"invoiceStatus"
,
"0"
);
//"开票状态,0未开票,1已开票
mPresenter
.
getData
(
RvFrameConfig
.
VEHICLE_ORDER
,
0
,
InvoiceApi
.
HTTP_URL_ORDER_LIST
,
OrderInvoicingCarBean
.
class
,
mapData
,
headMap
,
page
==
1
?
true
:
false
);
...
...
plugin_invoice/src/main/java/com/xxrv/invoice/activity/OrderInvoicingCarDetailsActivity.java
View file @
ea6e7e31
...
...
@@ -16,16 +16,23 @@ import android.webkit.WebView;
import
android.webkit.WebViewClient
;
import
android.widget.ProgressBar
;
import
com.frame.base.bus.Observer
;
import
com.frame.base.bus.PaymentSuccessfulEvent
;
import
com.frame.base.bus.RxBus
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.BaseStatusActivity
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.xxrv.invoice.R
;
import
com.xxrv.invoice.R2
;
import
com.xxrv.invoice.api.InvoiceApi
;
import
com.xxrv.invoice.bus.InvoicingSuccessEvent
;
import
com.xxrv.invoice.presenter.InvoicePresenter
;
import
com.yuyife.okgo.OkGoUtil
;
import
butterknife.BindView
;
import
butterknife.OnClick
;
import
io.reactivex.android.schedulers.AndroidSchedulers
;
import
io.reactivex.schedulers.Schedulers
;
import
static
com
.
ruiwenliu
.
wrapper
.
weight
.
webview
.
SafeWebView
.
hasKitkat
;
...
...
@@ -39,11 +46,11 @@ public class OrderInvoicingCarDetailsActivity extends BaseStatusActivity<Invoice
WebView
mWebView
;
private
String
webUrl
;
private
String
name
;
private
String
amount
;
private
String
json
;
public
static
Intent
getIntent
(
Context
context
)
{
return
new
Intent
(
context
,
OrderInvoicingCarDetailsActivity
.
class
);
public
static
Intent
getIntent
(
Context
context
,
String
json
)
{
return
new
Intent
(
context
,
OrderInvoicingCarDetailsActivity
.
class
)
.
putExtra
(
"json"
,
json
);
}
@Override
...
...
@@ -54,10 +61,22 @@ public class OrderInvoicingCarDetailsActivity extends BaseStatusActivity<Invoice
@Override
protected
void
initView
(
Bundle
savedInstanceState
,
TitleView
titleView
,
Intent
intent
)
{
titleView
.
setTitle
(
"开具电子发票"
);
// webUrl = WalletApi.HTTP_URL_WALLET_WITHDRAWDETAIL + "?id=" + id
;
json
=
intent
.
getStringExtra
(
"json"
);
webUrl
=
InvoiceApi
.
HTTP_URL_INVOICE_INVOICE
;
Log
.
i
(
"CampDetailActivity"
,
"initView: "
+
webUrl
);
initWeb
();
initRxbus
();
}
private
void
initRxbus
()
{
RxBus
.
tObservable
(
InvoicingSuccessEvent
.
class
)
.
observeOn
(
Schedulers
.
newThread
())
.
subscribe
(
new
Observer
<
InvoicingSuccessEvent
>(
disposable
)
{
@Override
public
void
onNext
(
InvoicingSuccessEvent
event
)
{
finish
();
}
});
}
@TargetApi
(
Build
.
VERSION_CODES
.
JELLY_BEAN
)
...
...
@@ -124,6 +143,25 @@ public class OrderInvoicingCarDetailsActivity extends BaseStatusActivity<Invoice
public
String
getToken
()
{
return
OkGoUtil
.
getToken
();
}
/**
* H5获取组装数据
*
* @return
*/
@JavascriptInterface
public
String
getInvoicing
()
{
return
json
;
}
/**
* 发票提交成功SS
*/
@JavascriptInterface
public
void
goToInvoiceResult
()
{
startActivity
(
InvoicingSuccessActivity
.
getIntent
(
mActivity
));
}
}
@Override
...
...
plugin_invoice/src/main/java/com/xxrv/invoice/adapter/CheckOrderInvoicingAdapter.java
0 → 100644
View file @
ea6e7e31
package
com
.
xxrv
.
invoice
.
adapter
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.chad.library.adapter.base.BaseViewHolder
;
import
com.rv.component.utils.DateUtils
;
import
com.xxrv.invoice.R
;
import
com.xxrv.invoice.bean.OrderInvoicingCarBean
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
* 开票详情查看订单
*/
public
class
CheckOrderInvoicingAdapter
extends
BaseQuickAdapter
<
OrderInvoicingCarBean
.
DataBeanX
.
DataBean
,
BaseViewHolder
>
{
public
CheckOrderInvoicingAdapter
()
{
super
(
R
.
layout
.
rv_item_check_order_invoicing
);
}
@Override
protected
void
convert
(
BaseViewHolder
helper
,
final
OrderInvoicingCarBean
.
DataBeanX
.
DataBean
item
)
{
helper
.
setText
(
R
.
id
.
tv_name
,
item
.
getName
());
OrderInvoicingCarBean
.
DataBeanX
.
DataBean
.
OrderRentVehicleDetail
orderRentVehicleDetail
=
item
.
getOrderRentVehicleDetail
();
OrderInvoicingCarBean
.
DataBeanX
.
DataBean
.
OrderTourDetail
orderTourDetail
=
item
.
getOrderTourDetail
();
OrderInvoicingCarBean
.
DataBeanX
.
DataBean
.
OrderMemberDetail
orderMemberDetail
=
item
.
getOrderMemberDetail
();
if
(
orderRentVehicleDetail
!=
null
)
{
helper
.
setText
(
R
.
id
.
tv_type
,
"租房车"
);
helper
.
setText
(
R
.
id
.
tv_get_date
,
"取:"
+
DateUtils
.
timestampToString1
(
orderRentVehicleDetail
.
getStart_time
())
+
orderRentVehicleDetail
.
getStart_addr
());
helper
.
setText
(
R
.
id
.
tv_out_date
,
"还:"
+
DateUtils
.
timestampToString1
(
orderRentVehicleDetail
.
getEnd_time
())
+
orderRentVehicleDetail
.
getEnd_addr
());
helper
.
setText
(
R
.
id
.
tv_price
,
String
.
format
(
"¥%1$s"
,
item
.
getOrderRealAmount
()));
}
else
if
(
orderTourDetail
!=
null
)
{
helper
.
setText
(
R
.
id
.
tv_type
,
"房车游"
);
helper
.
setText
(
R
.
id
.
tv_get_date
,
"出发时间:"
+
DateUtils
.
timestampToString1
(
orderTourDetail
.
getStartTime
()));
helper
.
setText
(
R
.
id
.
tv_out_date
,
"人数:"
+
orderTourDetail
.
getTotalNumber
()
+
"人"
);
helper
.
setText
(
R
.
id
.
tv_price
,
String
.
format
(
"¥%1$s"
,
item
.
getOrderRealAmount
()));
}
else
if
(
orderMemberDetail
!=
null
)
{
helper
.
setText
(
R
.
id
.
tv_type
,
"会员"
);
helper
.
setText
(
R
.
id
.
tv_get_date
,
orderMemberDetail
.
getContent
());
helper
.
setText
(
R
.
id
.
tv_out_date
,
item
.
getCrtTime
());
helper
.
setText
(
R
.
id
.
tv_price
,
String
.
format
(
"¥%1$s"
,
item
.
getOrderRealAmount
()));
}
}
}
plugin_invoice/src/main/java/com/xxrv/invoice/adapter/InvoiceBillingHistoryAdapter.java
View file @
ea6e7e31
...
...
@@ -23,6 +23,14 @@ public class InvoiceBillingHistoryAdapter extends BaseQuickAdapter<BillingHistor
helper
.
setText
(
R
.
id
.
tv_type
,
item
.
getTitleName
());
helper
.
setText
(
R
.
id
.
tv_price
,
String
.
valueOf
(
item
.
getAmount
()));
if
(
"1"
.
equals
(
item
.
getStatus
()))
{
//1:开票中;2:为开票成功;3:开票失败
helper
.
setText
(
R
.
id
.
tv_status
,
"开票中"
);
}
else
if
(
"2"
.
equals
(
item
.
getStatus
()))
{
helper
.
setText
(
R
.
id
.
tv_status
,
"已开票"
);
}
else
if
(
"3"
.
equals
(
item
.
getStatus
()))
{
helper
.
setText
(
R
.
id
.
tv_status
,
"开票失败"
);
}
if
(
"1"
.
equals
(
item
.
getType
()))
{
//"订单类型 1--租车;2--旅游; 3--会员订单")
helper
.
setText
(
R
.
id
.
tv_title
,
"租房车"
);
}
else
if
(
"2"
.
equals
(
item
.
getType
()))
{
...
...
plugin_invoice/src/main/java/com/xxrv/invoice/adapter/OrderInvoicingCarAdapter.java
View file @
ea6e7e31
...
...
@@ -36,17 +36,17 @@ public class OrderInvoicingCarAdapter extends BaseQuickAdapter<OrderInvoicingCar
helper
.
setText
(
R
.
id
.
tv_type
,
"租房车"
);
helper
.
setText
(
R
.
id
.
tv_get_date
,
"取:"
+
DateUtils
.
timestampToString1
(
orderRentVehicleDetail
.
getStart_time
())
+
orderRentVehicleDetail
.
getStart_addr
());
helper
.
setText
(
R
.
id
.
tv_out_date
,
"还:"
+
DateUtils
.
timestampToString1
(
orderRentVehicleDetail
.
getEnd_time
())
+
orderRentVehicleDetail
.
getEnd_addr
());
helper
.
setText
(
R
.
id
.
tv_price
,
String
.
format
(
"¥%1$s"
,
item
.
getRealAmount
()));
helper
.
setText
(
R
.
id
.
tv_price
,
String
.
format
(
"¥%1$s"
,
item
.
get
Order
RealAmount
()));
}
else
if
(
orderTourDetail
!=
null
)
{
helper
.
setText
(
R
.
id
.
tv_type
,
"房车游"
);
helper
.
setText
(
R
.
id
.
tv_get_date
,
"出发时间:"
+
DateUtils
.
timestampToString1
(
orderTourDetail
.
getStartTime
()));
helper
.
setText
(
R
.
id
.
tv_out_date
,
"人数:"
+
orderTourDetail
.
getTotalNumber
()
+
"人"
);
helper
.
setText
(
R
.
id
.
tv_price
,
String
.
format
(
"¥%1$s"
,
item
.
getRealAmount
()));
helper
.
setText
(
R
.
id
.
tv_price
,
String
.
format
(
"¥%1$s"
,
item
.
get
Order
RealAmount
()));
}
else
if
(
orderMemberDetail
!=
null
)
{
helper
.
setText
(
R
.
id
.
tv_type
,
"会员"
);
helper
.
setText
(
R
.
id
.
tv_get_date
,
orderMemberDetail
.
getContent
());
helper
.
setText
(
R
.
id
.
tv_out_date
,
item
.
getCrtTime
());
helper
.
setText
(
R
.
id
.
tv_price
,
String
.
format
(
"¥%1$s"
,
item
.
getRealAmount
()));
helper
.
setText
(
R
.
id
.
tv_price
,
String
.
format
(
"¥%1$s"
,
item
.
get
Order
RealAmount
()));
}
helper
.
addOnClickListener
(
R
.
id
.
ll_item_bg
);
...
...
plugin_invoice/src/main/java/com/xxrv/invoice/api/InvoiceApi.java
View file @
ea6e7e31
...
...
@@ -6,7 +6,11 @@ import com.frame.rv.config.RvFrameConfig;
public
class
InvoiceApi
{
public
static
String
HTTP_URL_CAR_TYPE_NOTICE
=
RvFrameConfig
.
HOST_H5_DETAIL
+
"/h5/appHtml/view/notice.html"
;
//预定须知
public
static
String
HTTP_URL_ORDER_LIST
=
RvFrameConfig
.
VEHICLE_ORDER
+
"baseOrder/
page
"
;
//订单列表
public
static
String
HTTP_URL_ORDER_LIST
=
RvFrameConfig
.
VEHICLE_ORDER
+
"baseOrder/
getInvoiceOrderList
"
;
//订单列表
public
static
String
HTTP_URL_INVOICE_SELECTBYTYPE
=
RvFrameConfig
.
HOST
+
"/api/order/order/invoice/selectByType"
;
//开票记录
public
static
String
HTTP_URL_INVOICE_GETALL
=
RvFrameConfig
.
HOST
+
"/api/order/order/invoice/getAll"
;
//获取所有用户开票记录
public
static
String
HTTP_URL_INVOICE_INVOICE
=
RvFrameConfig
.
HOST
+
"/h5/appHtml/view/dzfp/invoice.html"
;
//开票
public
static
String
HTTP_URL_INVOICE_INVOICEINFO
=
RvFrameConfig
.
HOST
+
"/h5/appHtml/view/dzfp/invoiceInfo.html"
;
//开票详情
}
plugin_invoice/src/main/java/com/xxrv/invoice/bean/BillingHistoryBean.java
View file @
ea6e7e31
...
...
@@ -87,6 +87,7 @@ public class BillingHistoryBean extends BaseBean {
private
long
crtTime
;
private
long
updTime
;
private
String
userId
;
private
String
status
;
public
String
getId
()
{
return
id
;
...
...
@@ -215,6 +216,14 @@ public class BillingHistoryBean extends BaseBean {
public
void
setUserId
(
String
userId
)
{
this
.
userId
=
userId
;
}
public
String
getStatus
()
{
return
status
;
}
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
}
}
}
plugin_invoice/src/main/java/com/xxrv/invoice/bean/Invoiceing.java
0 → 100644
View file @
ea6e7e31
package
com
.
xxrv
.
invoice
.
bean
;
import
com.base.utils.ui.datetime.selector.util.TextUtil
;
import
com.google.gson.annotations.SerializedName
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
java.io.Serializable
;
import
java.util.List
;
/**
* 开票数据
*/
public
class
Invoiceing
implements
Serializable
{
private
String
ids
;
private
double
amount
;
private
int
type
;
public
String
getIds
()
{
return
ids
;
}
public
void
setIds
(
String
ids
)
{
this
.
ids
=
ids
;
}
public
double
getAmount
()
{
return
amount
;
}
public
void
setAmount
(
double
amount
)
{
this
.
amount
=
amount
;
}
public
int
getType
()
{
return
type
;
}
public
void
setType
(
int
type
)
{
this
.
type
=
type
;
}
}
plugin_invoice/src/main/java/com/xxrv/invoice/bean/OrderInvoicingCarBean.java
View file @
ea6e7e31
...
...
@@ -111,6 +111,7 @@ public class OrderInvoicingCarBean extends BaseBean {
private
double
goodsAmount
;
private
double
orderAmount
;
private
double
realAmount
;
private
double
orderRealAmount
;
private
int
userId
;
private
String
picture
;
private
String
crtTime
;
...
...
@@ -129,6 +130,14 @@ public class OrderInvoicingCarBean extends BaseBean {
private
String
name
;
private
String
coverPic
;
public
double
getOrderRealAmount
()
{
return
orderRealAmount
;
}
public
void
setOrderRealAmount
(
double
orderRealAmount
)
{
this
.
orderRealAmount
=
orderRealAmount
;
}
public
String
getCoverPic
()
{
return
coverPic
;
}
...
...
plugin_invoice/src/main/java/com/xxrv/invoice/bus/InvoicingSuccessEvent.java
0 → 100644
View file @
ea6e7e31
package
com
.
xxrv
.
invoice
.
bus
;
public
class
InvoicingSuccessEvent
{
}
plugin_invoice/src/main/res/layout/activity_check_order_invoicing.xml
0 → 100644
View file @
ea6e7e31
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/colorGrayBg"
tools:context=
".activity.CheckOrderInvoicingActivity"
>
<com.ruiwenliu.wrapper.weight.refresh.SimpleRefreshLayout
android:id=
"@+id/refresh"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<android.support.v7.widget.RecyclerView
android:id=
"@+id/rv_content"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
</com.ruiwenliu.wrapper.weight.refresh.SimpleRefreshLayout>
</LinearLayout>
\ No newline at end of file
plugin_invoice/src/main/res/layout/activity_invoicing.xml
View file @
ea6e7e31
...
...
@@ -177,9 +177,13 @@
</LinearLayout>
<LinearLayout
android:id=
"@+id/ll_item_customer_service"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
android:paddingTop=
"@dimen/size_15"
android:paddingBottom=
"@dimen/size_15"
>
<TextView
android:layout_width=
"wrap_content"
...
...
@@ -189,15 +193,17 @@
android:textSize=
"@dimen/text_12"
/>
<TextView
android:id=
"@+id/tv_item_customer_service"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:paddingTop=
"@dimen/size_15"
android:paddingBottom=
"@dimen/size_15"
android:text=
"在线客服"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_12"
/>
<ImageView
android:layout_width=
"@dimen/size_20"
android:layout_height=
"@dimen/size_20"
android:src=
"@drawable/common_journey_service_gray"
/>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
plugin_invoice/src/main/res/layout/activity_invoicing_details.xml
0 → 100644
View file @
ea6e7e31
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/colorLine"
android:orientation=
"vertical"
>
<ProgressBar
android:id=
"@+id/pb_progress"
style=
"?android:attr/progressBarStyleHorizontal"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_3"
android:indeterminateOnly=
"false"
android:max=
"100"
android:progressDrawable=
"@drawable/shape_rv_bg_yellow_progress"
android:visibility=
"gone"
>
</ProgressBar>
<WebView
android:id=
"@+id/webView"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
/>
</LinearLayout>
\ No newline at end of file
plugin_invoice/src/main/res/layout/activity_invoicing_success.xml
0 → 100644
View file @
ea6e7e31
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
<ImageView
android:layout_width=
"@dimen/size_70"
android:layout_height=
"@dimen/size_70"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"@dimen/size_80"
android:src=
"@drawable/rv_common_icon_accomplish"
/>
<TextView
android:id=
"@+id/tv_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"@dimen/size_20"
android:gravity=
"center"
android:text=
"提交成功!"
android:textColor=
"#ff000000"
android:textSize=
"@dimen/text_16"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"@dimen/size_20"
android:gravity=
"center"
android:text=
"您的发票预计将在24小时内开出,请注意查收!"
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_12"
/>
<TextView
android:id=
"@+id/tv_ok"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_50"
android:layout_marginLeft=
"@dimen/size_50"
android:layout_marginTop=
"@dimen/size_50"
android:layout_marginRight=
"@dimen/size_50"
android:background=
"@drawable/shape_rv_bg_yellow"
android:gravity=
"center"
android:text=
"确认提交"
android:textColor=
"@color/colorWrite"
android:textSize=
"@dimen/text_16"
/>
</LinearLayout>
\ No newline at end of file
plugin_invoice/src/main/res/layout/rv_dialog_invoicing_announcement.xml
View file @
ea6e7e31
...
...
@@ -9,7 +9,7 @@
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_40"
android:layout_marginRight=
"@dimen/size_40"
android:background=
"@
color/colorWrit
e"
android:background=
"@
drawable/shape_rv_bg_while_circl
e"
android:orientation=
"vertical"
>
...
...
@@ -31,31 +31,25 @@
<TextView
android:id=
"@+id/tv_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_170"
android:gravity=
"center_vertical"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginTop=
"@dimen/size_20"
android:layout_marginRight=
"@dimen/size_15"
android:layout_marginBottom=
"@dimen/size_36"
android:text=
"尊敬的用户您好,为了响应国家推行发票的号召并确保发票开具时效,自2019年12月起,滴房车将在全国范围启用电子发票。电子发票支持报销入账,其法律效力、基本用途及使用规定与增值税普通纸质发票一致。"
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/size_16"
/>
<include
layout=
"@layout/common_line"
/>
<
LinearLayout
android:id=
"@+id/
ll
_item_ok"
<
TextView
android:id=
"@+id/
tv
_item_ok"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_60"
android:gravity=
"center"
android:orientation=
"horizontal"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"我知道了"
android:textColor=
"@color/gray_FFB74B"
android:textSize=
"@dimen/text_16"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
plugin_invoice/src/main/res/layout/rv_item_check_order_invoicing.xml
0 → 100644
View file @
ea6e7e31
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/ll_item_bg"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_10"
android:background=
"@color/colorWrite"
android:orientation=
"horizontal"
android:paddingTop=
"@dimen/size_10"
android:paddingBottom=
"@dimen/size_10"
>
<LinearLayout
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginRight=
"@dimen/size_15"
android:layout_weight=
"1"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<TextView
android:id=
"@+id/tv_name"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"大通自行式C型房车"
android:textColor=
"@color/text_Main"
android:textSize=
"@dimen/text_14"
/>
<TextView
android:id=
"@+id/tv_type"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_10"
android:text=
"租房车"
android:textColor=
"@color/text_Gray"
android:textSize=
"@dimen/text_12"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_5"
android:orientation=
"horizontal"
>
<LinearLayout
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/tv_get_date"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:ellipsize=
"end"
android:maxLines=
"1"
android:text=
"取:2019-05-15 10:00 欣新房车控股集团(东莞市)"
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_12"
/>
<TextView
android:id=
"@+id/tv_out_date"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_5"
android:ellipsize=
"end"
android:maxLines=
"1"
android:text=
"还:2019-05-17 10:00 欣新房车控股集团(东莞市)"
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_12"
/>
</LinearLayout>
<TextView
android:id=
"@+id/tv_price"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginLeft=
"@dimen/size_10"
android:text=
"3200"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_14"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:text=
"元"
android:textColor=
"@color/text_Gray"
android:textSize=
"@dimen/text_12"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
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