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
c5b840af
Commit
c5b840af
authored
Jul 10, 2019
by
linfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
658175ad
Changes
31
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
306 additions
and
179 deletions
+306
-179
Constance.java
MyFrame/src/main/java/com/frame/base/url/Constance.java
+2
-0
build.gradle
RvClient/build.gradle
+2
-2
MainActivity.java
RvClient/src/main/java/com/xxfc/rv/MainActivity.java
+1
-1
MvpPresenter.java
...in/java/com/ruiwenliu/wrapper/presenter/MvpPresenter.java
+37
-15
ProgressWebView.java
...c/main/java/com/rv/component/control/ProgressWebView.java
+50
-0
shape_rv_bg_yellow_progress_hint.xml
...rc/main/res/drawable/shape_rv_bg_yellow_progress_hint.xml
+17
-0
ObservableScrollView.java
...ain/java/com/rv/component/utils/ObservableScrollView.java
+2
-4
CampFragment.java
module_camp/src/main/java/com/rv/camp/CampFragment.java
+1
-1
BingPhoneActivity.java
...ava/com/rv/home/rv/module/ui/login/BingPhoneActivity.java
+0
-1
ConfirmPwdActivity.java
...va/com/rv/home/rv/module/ui/login/ConfirmPwdActivity.java
+0
-34
LoginRvActivity.java
.../java/com/rv/home/rv/module/ui/login/LoginRvActivity.java
+2
-3
RegisteredActivity.java
...va/com/rv/home/rv/module/ui/login/RegisteredActivity.java
+2
-2
CarDetailActivity.java
...com/rv/home/rv/module/ui/main/home/CarDetailActivity.java
+51
-26
CarRentalActivity.java
...com/rv/home/rv/module/ui/main/home/CarRentalActivity.java
+2
-2
CarRentalListActivity.java
...rv/home/rv/module/ui/main/home/CarRentalListActivity.java
+2
-2
ConfirmOrderActivity.java
.../rv/home/rv/module/ui/main/home/ConfirmOrderActivity.java
+5
-3
HomeFragment.java
...java/com/rv/home/rv/module/ui/main/home/HomeFragment.java
+3
-3
HomePageFragment.java
.../com/rv/home/rv/module/ui/main/home/HomePageFragment.java
+2
-2
SelectLocationActivity.java
...v/home/rv/module/ui/main/home/SelectLocationActivity.java
+3
-1
ShareImageActivity.java
...om/rv/home/rv/module/ui/main/home/ShareImageActivity.java
+23
-16
HotCarTypeAdapter.java
...ome/rv/module/ui/main/home/adapter/HotCarTypeAdapter.java
+4
-4
GetOnTheCarQRCodeActivity.java
.../module/ui/main/home/order/GetOnTheCarQRCodeActivity.java
+1
-1
PickUpTheCarQRCodeActivity.java
...module/ui/main/home/order/PickUpTheCarQRCodeActivity.java
+3
-3
OrderListBean.java
...home/rv/module/ui/main/home/order/bean/OrderListBean.java
+9
-0
fragment_home.xml
module_home/src/main/res/layout/fragment_home.xml
+24
-23
rv_act_car_detail.xml
module_home/src/main/res/layout/rv_act_car_detail.xml
+10
-3
activity_mine.xml
module_mine/src/main/res/layout/activity_mine.xml
+0
-2
TravelDetailsActivity.java
...main/java/com/rv/tourism/other/TravelDetailsActivity.java
+41
-12
activity_travel_details.xml
...e_tourism/src/main/res/layout/activity_travel_details.xml
+5
-11
CalendarActivity.java
...rc/main/java/com/rv/plugin/calendar/CalendarActivity.java
+1
-1
TravelSearchActivity.java
...rch/src/main/java/com/rv/search/TravelSearchActivity.java
+1
-1
No files found.
MyFrame/src/main/java/com/frame/base/url/Constance.java
View file @
c5b840af
...
@@ -27,4 +27,6 @@ public final class Constance {
...
@@ -27,4 +27,6 @@ public final class Constance {
public
static
final
String
ACTIVITY_URL_CARDETAILMAP
=
"/main/home/CarDetailMapActivity"
;
public
static
final
String
ACTIVITY_URL_CARDETAILMAP
=
"/main/home/CarDetailMapActivity"
;
public
static
final
String
ACTIVITY_URL_CALENDAR
=
"/plugin/calendar/CalendarActivity"
;
public
static
final
String
ACTIVITY_URL_CALENDAR
=
"/plugin/calendar/CalendarActivity"
;
public
static
final
String
ACTIVITY_URL_SHAREIMAGE
=
"/main/home/ShareImageActivity"
;
}
}
RvClient/build.gradle
View file @
c5b840af
...
@@ -7,8 +7,8 @@ android {
...
@@ -7,8 +7,8 @@ android {
applicationId
"com.xxfc.rv"
applicationId
"com.xxfc.rv"
minSdkVersion
rootProject
.
ext
.
minSdkVersion
minSdkVersion
rootProject
.
ext
.
minSdkVersion
targetSdkVersion
rootProject
.
ext
.
targetSdkVersion
targetSdkVersion
rootProject
.
ext
.
targetSdkVersion
versionCode
10
7
versionCode
10
9
versionName
"1.0.
7
"
versionName
"1.0.
9
"
multiDexEnabled
true
multiDexEnabled
true
//新版Gradle 是 implementation 为了兼容compile,写上这句话
//新版Gradle 是 implementation 为了兼容compile,写上这句话
...
...
RvClient/src/main/java/com/xxfc/rv/MainActivity.java
View file @
c5b840af
...
@@ -226,7 +226,7 @@ public class MainActivity extends BaseActivity<CommonPresenter> {
...
@@ -226,7 +226,7 @@ public class MainActivity extends BaseActivity<CommonPresenter> {
Map
<
String
,
Object
>
headMap
=
new
LinkedHashMap
<>();
Map
<
String
,
Object
>
headMap
=
new
LinkedHashMap
<>();
String
versionName
=
updateAppUtils
.
getAppVersionName
(
this
);
String
versionName
=
updateAppUtils
.
getAppVersionName
(
this
);
if
(!
TextUtils
.
isEmpty
(
versionName
))
{
if
(!
TextUtils
.
isEmpty
(
versionName
))
{
mPresenter
.
getData
(
0
,
String
.
format
(
ApiConfig
.
HTTP_URL_VERSION_CHECK
,
versionName
),
VersionCheckBean
.
class
,
headMap
,
tru
e
);
mPresenter
.
getData
(
0
,
String
.
format
(
ApiConfig
.
HTTP_URL_VERSION_CHECK
,
versionName
),
VersionCheckBean
.
class
,
headMap
,
fals
e
);
}
}
}
}
...
...
RvWrapper/src/main/java/com/ruiwenliu/wrapper/presenter/MvpPresenter.java
View file @
c5b840af
This diff is collapsed.
Click to expand it.
component_control/src/main/java/com/rv/component/control/ProgressWebView.java
0 → 100644
View file @
c5b840af
package
com
.
rv
.
component
.
control
;
import
android.content.Context
;
import
android.graphics.drawable.Drawable
;
import
android.util.AttributeSet
;
import
android.webkit.WebView
;
import
android.widget.LinearLayout
;
import
android.widget.ProgressBar
;
public
class
ProgressWebView
extends
WebView
{
private
ProgressBar
mProgressBar
;
public
ProgressWebView
(
Context
context
,
AttributeSet
attrs
)
{
super
(
context
,
attrs
);
mProgressBar
=
new
ProgressBar
(
context
,
null
,
android
.
R
.
attr
.
progressBarStyleHorizontal
);
LinearLayout
.
LayoutParams
layoutParams
=
new
LinearLayout
.
LayoutParams
(
LinearLayout
.
LayoutParams
.
MATCH_PARENT
,
8
);
mProgressBar
.
setLayoutParams
(
layoutParams
);
Drawable
drawable
=
context
.
getResources
().
getDrawable
(
R
.
drawable
.
shape_rv_bg_yellow_progress_hint
);
mProgressBar
.
setProgressDrawable
(
drawable
);
addView
(
mProgressBar
);
setWebChromeClient
(
new
WebChromeClient
());
}
public
class
WebChromeClient
extends
android
.
webkit
.
WebChromeClient
{
@Override
public
void
onProgressChanged
(
WebView
view
,
int
newProgress
)
{
if
(
newProgress
==
100
)
{
mProgressBar
.
setVisibility
(
GONE
);
}
else
{
if
(
mProgressBar
.
getVisibility
()
==
GONE
)
mProgressBar
.
setVisibility
(
VISIBLE
);
mProgressBar
.
setProgress
(
newProgress
);
}
super
.
onProgressChanged
(
view
,
newProgress
);
}
}
@Override
protected
void
onScrollChanged
(
int
l
,
int
t
,
int
oldl
,
int
oldt
)
{
LayoutParams
lp
=
(
LayoutParams
)
mProgressBar
.
getLayoutParams
();
lp
.
x
=
l
;
lp
.
y
=
t
;
mProgressBar
.
setLayoutParams
(
lp
);
super
.
onScrollChanged
(
l
,
t
,
oldl
,
oldt
);
}
}
component_control/src/main/res/drawable/shape_rv_bg_yellow_progress_hint.xml
0 → 100644
View file @
c5b840af
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:id=
"@android:id/background"
>
<color
android:color=
"#ffffff"
/>
</item>
<item
android:id=
"@android:id/progress"
>
<clip>
<shape>
<gradient
android:centerColor=
"#aaf3dd23"
android:endColor=
"#f3dd23"
android:startColor=
"#99f3dd23"
/>
</shape>
</clip>
</item>
</layer-list>
\ No newline at end of file
component_utils/src/main/java/com/rv/component/utils/ObservableScrollView.java
View file @
c5b840af
...
@@ -8,8 +8,7 @@ public class ObservableScrollView extends ScrollView {
...
@@ -8,8 +8,7 @@ public class ObservableScrollView extends ScrollView {
public
interface
ScrollViewListener
{
public
interface
ScrollViewListener
{
void
onScrollChanged
(
ObservableScrollView
scrollView
,
int
x
,
int
y
,
void
onScrollChanged
(
ObservableScrollView
scrollView
,
int
x
,
int
y
,
int
oldx
,
int
oldy
);
int
oldx
,
int
oldy
);
}
}
...
@@ -19,8 +18,7 @@ public class ObservableScrollView extends ScrollView {
...
@@ -19,8 +18,7 @@ public class ObservableScrollView extends ScrollView {
super
(
context
);
super
(
context
);
}
}
public
ObservableScrollView
(
Context
context
,
AttributeSet
attrs
,
public
ObservableScrollView
(
Context
context
,
AttributeSet
attrs
,
int
defStyle
)
{
int
defStyle
)
{
super
(
context
,
attrs
,
defStyle
);
super
(
context
,
attrs
,
defStyle
);
}
}
...
...
module_camp/src/main/java/com/rv/camp/CampFragment.java
View file @
c5b840af
...
@@ -182,7 +182,7 @@ public class CampFragment extends BaseFragment<CampPresenter> implements BaseQui
...
@@ -182,7 +182,7 @@ public class CampFragment extends BaseFragment<CampPresenter> implements BaseQui
if
(
type
!=
null
)
{
if
(
type
!=
null
)
{
map
.
put
(
"type"
,
type
);
map
.
put
(
"type"
,
type
);
}
}
mPresenter
.
getData
(
RvFrameConfig
.
VEHICLE_CAMPLIST
,
0
,
CampApi
.
TRAVEL_CAMPSITESHOP
,
CampListBean
.
class
,
map
,
page
==
1
?
tru
e
:
false
);
mPresenter
.
getData
(
RvFrameConfig
.
VEHICLE_CAMPLIST
,
0
,
CampApi
.
TRAVEL_CAMPSITESHOP
,
CampListBean
.
class
,
map
,
page
==
1
?
fals
e
:
false
);
}
}
private
void
getCampTypeList
()
{
private
void
getCampTypeList
()
{
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/login/BingPhoneActivity.java
View file @
c5b840af
...
@@ -41,7 +41,6 @@ import io.reactivex.functions.Consumer;
...
@@ -41,7 +41,6 @@ import io.reactivex.functions.Consumer;
*/
*/
public
class
BingPhoneActivity
extends
BaseLoginActivity
<
CommonPresenter
>
{
public
class
BingPhoneActivity
extends
BaseLoginActivity
<
CommonPresenter
>
{
@BindView
(
R2
.
id
.
et_phone
)
@BindView
(
R2
.
id
.
et_phone
)
EditText
etPhone
;
EditText
etPhone
;
@BindView
(
R2
.
id
.
iv_clear_phone
)
@BindView
(
R2
.
id
.
iv_clear_phone
)
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/login/ConfirmPwdActivity.java
View file @
c5b840af
...
@@ -169,40 +169,6 @@ public class ConfirmPwdActivity extends BaseLoginActivity<CommonPresenter> {
...
@@ -169,40 +169,6 @@ public class ConfirmPwdActivity extends BaseLoginActivity<CommonPresenter> {
}
}
otherLoginBind
(
mPhone
,
mCode
,
getPwd
(),
mName
,
mHeadImg
,
mOpenid
,
2
,
mIsQQ
,
mUnionid
);
otherLoginBind
(
mPhone
,
mCode
,
getPwd
(),
mName
,
mHeadImg
,
mOpenid
,
2
,
mIsQQ
,
mUnionid
);
}
}
// switch (view.getId()) {
// case R.id.iv_clear_pwd:
// pwdShow=!pwdShow;
// ivClearPwd.setSelected(pwdShow);
// etPwd.setTransformationMethod(pwdShow? HideReturnsTransformationMethod.getInstance(): PasswordTransformationMethod.getInstance());
//// clearEditData(etPwd);
// break;
// case R.id.iv_clear_again_pwd:
// confirmShow=!confirmShow;
// ivClearAgainPwd.setSelected(confirmShow);
// etAgainPwd.setTransformationMethod(confirmShow? HideReturnsTransformationMethod.getInstance(): PasswordTransformationMethod.getInstance());
//// clearEditData(etAgainPwd);
// break;
// case R.id.tv_agreement:
// break;
// case R.id.tv_registered:
// if (getPwd().length() < 8) {
// showToast(mActivity.getString(R.string.rv_pwd_length));
// return;
// }
// if (!getPwd().equals(getAgainPwd())) {
// showToast(mActivity.getString(R.string.rv_pwd_same));
// return;
// }
// if (cbAnnotations.isChecked() == false) {
// showToast(mActivity.getString(R.string.rv_confirm_agreement));
// return;
// }
// otherLoginBind(mPhone, mCode, getPwd(), mName, mHeadImg, mOpenid, 2, mIsQQ,mUnionid);
//
// break;
// }
}
}
/**
/**
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/login/LoginRvActivity.java
View file @
c5b840af
...
@@ -109,7 +109,6 @@ public class LoginRvActivity extends BaseLoginActivity<CommonPresenter> {
...
@@ -109,7 +109,6 @@ public class LoginRvActivity extends BaseLoginActivity<CommonPresenter> {
switch
(
requestType
)
{
switch
(
requestType
)
{
case
0
:
case
0
:
showToast
(
mActivity
.
getString
(
R
.
string
.
rv_phone_code_toast
));
showToast
(
mActivity
.
getString
(
R
.
string
.
rv_phone_code_toast
));
sendCode
(
60
);
break
;
break
;
case
1
:
case
1
:
case
2
:
case
2
:
...
@@ -129,8 +128,7 @@ public class LoginRvActivity extends BaseLoginActivity<CommonPresenter> {
...
@@ -129,8 +128,7 @@ public class LoginRvActivity extends BaseLoginActivity<CommonPresenter> {
showToast
(
mActivity
.
getString
(
R
.
string
.
rv_phone_hint
));
showToast
(
mActivity
.
getString
(
R
.
string
.
rv_phone_hint
));
return
;
return
;
}
}
sendCode
();
sendCode
(
60
);
}
else
if
(
view
.
getId
()
==
R
.
id
.
tv_login
)
{
}
else
if
(
view
.
getId
()
==
R
.
id
.
tv_login
)
{
codeLogin
();
codeLogin
();
...
@@ -268,6 +266,7 @@ public class LoginRvActivity extends BaseLoginActivity<CommonPresenter> {
...
@@ -268,6 +266,7 @@ public class LoginRvActivity extends BaseLoginActivity<CommonPresenter> {
@Override
@Override
public
void
accept
(
Disposable
disposable
)
throws
Exception
{
public
void
accept
(
Disposable
disposable
)
throws
Exception
{
tvGetCode
.
setEnabled
(
false
);
tvGetCode
.
setEnabled
(
false
);
sendCode
();
}
}
},
new
Observer
<
Long
>()
{
},
new
Observer
<
Long
>()
{
@Override
@Override
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/login/RegisteredActivity.java
View file @
c5b840af
...
@@ -103,7 +103,6 @@ public class RegisteredActivity extends BaseLoginActivity<CommonPresenter> {
...
@@ -103,7 +103,6 @@ public class RegisteredActivity extends BaseLoginActivity<CommonPresenter> {
switch
(
requestType
)
{
switch
(
requestType
)
{
case
0
:
case
0
:
showToast
(
mActivity
.
getString
(
R
.
string
.
rv_phone_code_toast
));
showToast
(
mActivity
.
getString
(
R
.
string
.
rv_phone_code_toast
));
sendCode
(
60
);
break
;
break
;
case
1
:
case
1
:
processLoginData
((
RegisteredBean
)
result
);
processLoginData
((
RegisteredBean
)
result
);
...
@@ -125,7 +124,7 @@ public class RegisteredActivity extends BaseLoginActivity<CommonPresenter> {
...
@@ -125,7 +124,7 @@ public class RegisteredActivity extends BaseLoginActivity<CommonPresenter> {
showToast
(
mActivity
.
getString
(
R
.
string
.
rv_phone_hint
));
showToast
(
mActivity
.
getString
(
R
.
string
.
rv_phone_hint
));
return
;
return
;
}
}
sendCode
();
sendCode
(
60
);
}
else
if
(
view
.
getId
()
==
R
.
id
.
iv_clear_code
)
{
}
else
if
(
view
.
getId
()
==
R
.
id
.
iv_clear_code
)
{
pwdShow
=
!
pwdShow
;
pwdShow
=
!
pwdShow
;
ivClearPwd
.
setSelected
(
pwdShow
);
ivClearPwd
.
setSelected
(
pwdShow
);
...
@@ -317,6 +316,7 @@ public class RegisteredActivity extends BaseLoginActivity<CommonPresenter> {
...
@@ -317,6 +316,7 @@ public class RegisteredActivity extends BaseLoginActivity<CommonPresenter> {
@Override
@Override
public
void
accept
(
Disposable
disposable
)
throws
Exception
{
public
void
accept
(
Disposable
disposable
)
throws
Exception
{
tvGetCode
.
setEnabled
(
false
);
tvGetCode
.
setEnabled
(
false
);
sendCode
();
}
}
},
new
Observer
<
Long
>()
{
},
new
Observer
<
Long
>()
{
@Override
@Override
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/CarDetailActivity.java
View file @
c5b840af
...
@@ -13,6 +13,7 @@ import android.webkit.JavascriptInterface;
...
@@ -13,6 +13,7 @@ import android.webkit.JavascriptInterface;
import
android.webkit.WebChromeClient
;
import
android.webkit.WebChromeClient
;
import
android.webkit.WebSettings
;
import
android.webkit.WebSettings
;
import
android.webkit.WebView
;
import
android.webkit.WebView
;
import
android.webkit.WebViewClient
;
import
android.widget.ImageView
;
import
android.widget.ImageView
;
import
android.widget.TextView
;
import
android.widget.TextView
;
...
@@ -24,14 +25,14 @@ import com.frame.base.url.Constance;
...
@@ -24,14 +25,14 @@ import com.frame.base.url.Constance;
import
com.frame.rv.config.RvFrameConfig
;
import
com.frame.rv.config.RvFrameConfig
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.BaseStatusActivity
;
import
com.ruiwenliu.wrapper.base.BaseStatusActivity
;
import
com.ruiwenliu.wrapper.bean.BeanUserInfo
;
import
com.ruiwenliu.wrapper.util.um.CustomShareListener
;
import
com.ruiwenliu.wrapper.util.um.CustomShareListener
;
import
com.ruiwenliu.wrapper.util.um.ShareManager
;
import
com.ruiwenliu.wrapper.util.um.ShareManager
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.rv.component.control.ProgressWebView
;
import
com.rv.home.R
;
import
com.rv.home.R
;
import
com.rv.home.R2
;
import
com.rv.home.R2
;
import
com.rv.home.rv.module.ApiConfig
;
import
com.rv.home.rv.module.ApiConfig
;
import
com.ruiwenliu.wrapper.bean.BeanUserInfo
;
import
com.rv.home.rv.module.basic.presenter.CommonPresenter
;
import
com.rv.home.rv.module.basic.presenter.CommonPresenter
;
import
com.rv.home.rv.module.ui.login.LoginRvActivity
;
import
com.rv.home.rv.module.ui.login.LoginRvActivity
;
import
com.rv.home.rv.module.ui.main.home.bean.CarTypeListBean
;
import
com.rv.home.rv.module.ui.main.home.bean.CarTypeListBean
;
...
@@ -43,6 +44,7 @@ import com.umeng.socialize.utils.ShareBoardlistener;
...
@@ -43,6 +44,7 @@ import com.umeng.socialize.utils.ShareBoardlistener;
import
com.yuyife.okgo.OkGoUtil
;
import
com.yuyife.okgo.OkGoUtil
;
import
butterknife.BindView
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
butterknife.OnClick
;
import
butterknife.OnClick
;
import
io.reactivex.schedulers.Schedulers
;
import
io.reactivex.schedulers.Schedulers
;
...
@@ -55,13 +57,14 @@ import static com.ruiwenliu.wrapper.weight.webview.SafeWebView.hasKitkat;
...
@@ -55,13 +57,14 @@ import static com.ruiwenliu.wrapper.weight.webview.SafeWebView.hasKitkat;
*/
*/
public
class
CarDetailActivity
extends
BaseStatusActivity
<
CommonPresenter
>
{
public
class
CarDetailActivity
extends
BaseStatusActivity
<
CommonPresenter
>
{
@BindView
(
R2
.
id
.
webView
)
@BindView
(
R2
.
id
.
webView
)
WebView
mWebView
;
Progress
WebView
mWebView
;
@BindView
(
R2
.
id
.
tv_center
)
@BindView
(
R2
.
id
.
tv_center
)
TextView
tvTitleCenter
;
TextView
tvTitleCenter
;
@BindView
(
R2
.
id
.
iv_collect
)
@BindView
(
R2
.
id
.
iv_collect
)
ImageView
ivCollect
;
ImageView
ivCollect
;
@BindView
(
R2
.
id
.
iv_share
)
@BindView
(
R2
.
id
.
iv_share
)
ImageView
ivShare
;
ImageView
ivShare
;
private
OrderDataBean
dataBean
;
private
OrderDataBean
dataBean
;
private
CarTypeListBean
.
DataBeanX
.
DataBean
mCarBean
;
private
CarTypeListBean
.
DataBeanX
.
DataBean
mCarBean
;
private
ShareManager
shareManager
;
private
ShareManager
shareManager
;
...
@@ -74,7 +77,9 @@ public class CarDetailActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -74,7 +77,9 @@ public class CarDetailActivity extends BaseStatusActivity<CommonPresenter> {
.
putExtra
(
"carBean"
,
carBean
)
.
putExtra
(
"carBean"
,
carBean
)
.
putExtra
(
"startTime"
,
startTime
)
.
putExtra
(
"startTime"
,
startTime
)
.
putExtra
(
"endTime"
,
endTime
);
.
putExtra
(
"endTime"
,
endTime
);
};
}
;
public
static
Intent
getIntent
(
Context
context
,
int
type
)
{
public
static
Intent
getIntent
(
Context
context
,
int
type
)
{
return
new
Intent
(
context
,
CarDetailActivity
.
class
)
return
new
Intent
(
context
,
CarDetailActivity
.
class
)
...
@@ -96,7 +101,7 @@ public class CarDetailActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -96,7 +101,7 @@ public class CarDetailActivity extends BaseStatusActivity<CommonPresenter> {
webUrl
=
ApiConfig
.
HTTP_URL_CAR_TYPE_DETAIL
+
"?id="
+
mCarBean
.
getVehicleModel
().
getId
()
+
"&companyId="
+
mCarBean
.
getCompany
().
getId
();
webUrl
=
ApiConfig
.
HTTP_URL_CAR_TYPE_DETAIL
+
"?id="
+
mCarBean
.
getVehicleModel
().
getId
()
+
"&companyId="
+
mCarBean
.
getCompany
().
getId
();
initWeb
();
initWeb
();
initRxbus
();
initRxbus
();
initShare
(
webUrl
+
"&shareType=app"
,
mCarBean
.
getVehicleModel
().
getName
(),
mCarBean
.
getCompany
().
getAddrDetail
(),
mCarBean
.
getVehicleModel
().
getIcon
());
initShare
(
webUrl
+
"&shareType=app"
,
mCarBean
.
getVehicleModel
().
getName
(),
mCarBean
.
getCompany
().
getAddrDetail
(),
mCarBean
.
getVehicleModel
().
getIcon
());
}
}
private
void
initRxbus
()
{
private
void
initRxbus
()
{
...
@@ -184,24 +189,24 @@ public class CarDetailActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -184,24 +189,24 @@ public class CarDetailActivity extends BaseStatusActivity<CommonPresenter> {
@OnClick
({
R2
.
id
.
iv_back
,
R2
.
id
.
iv_collect
,
R2
.
id
.
iv_share
,
R2
.
id
.
tv_appointment
})
@OnClick
({
R2
.
id
.
iv_back
,
R2
.
id
.
iv_collect
,
R2
.
id
.
iv_share
,
R2
.
id
.
tv_appointment
})
public
void
onViewClicked
(
View
view
)
{
public
void
onViewClicked
(
View
view
)
{
if
(
view
.
getId
()==
R
.
id
.
iv_back
)
{
if
(
view
.
getId
()
==
R
.
id
.
iv_back
)
{
finish
();
finish
();
}
else
if
(
view
.
getId
()==
R
.
id
.
iv_collect
)
{
}
else
if
(
view
.
getId
()
==
R
.
id
.
iv_collect
)
{
//添加收藏
//添加收藏
addCollection
();
addCollection
();
}
else
if
(
view
.
getId
()==
R
.
id
.
iv_share
)
{
}
else
if
(
view
.
getId
()
==
R
.
id
.
iv_share
)
{
if
(
shareManager
!=
null
)
{
if
(
shareManager
!=
null
)
{
shareManager
.
open
();
shareManager
.
open
();
}
}
}
else
if
(
view
.
getId
()==
R
.
id
.
tv_appointment
)
{
}
else
if
(
view
.
getId
()
==
R
.
id
.
tv_appointment
)
{
if
(
TextUtils
.
isEmpty
(
OkGoUtil
.
getToken
()))
{
if
(
TextUtils
.
isEmpty
(
OkGoUtil
.
getToken
()))
{
RvFrameConfig
.
RvFrameInfo
.
TYPE_LOGIN
=
1
;
RvFrameConfig
.
RvFrameInfo
.
TYPE_LOGIN
=
1
;
startActivity
(
LoginRvActivity
.
getIntent
(
mActivity
));
startActivity
(
LoginRvActivity
.
getIntent
(
mActivity
));
return
;
return
;
}
}
BeanUserInfo
.
UserInfo
userInfo
=
getUserInfo
();
BeanUserInfo
.
UserInfo
userInfo
=
getUserInfo
();
if
(
userInfo
!=
null
)
{
if
(
userInfo
!=
null
)
{
if
(
userInfo
.
getCertificationStatus
()
==
0
)
{
if
(
userInfo
.
getCertificationStatus
()
==
0
)
{
ARouter
.
getInstance
().
build
(
Constance
.
ACTIVITY_URL_IDCARDCERTIFICATION
).
navigation
();
ARouter
.
getInstance
().
build
(
Constance
.
ACTIVITY_URL_IDCARDCERTIFICATION
).
navigation
();
return
;
return
;
}
}
...
@@ -254,16 +259,22 @@ public class CarDetailActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -254,16 +259,22 @@ public class CarDetailActivity extends BaseStatusActivity<CommonPresenter> {
// 如果此设置是允许,则 setAllowFileAccessFromFileURLs 不起做用
// 如果此设置是允许,则 setAllowFileAccessFromFileURLs 不起做用
webSettings
.
setAllowUniversalAccessFromFileURLs
(
true
);
webSettings
.
setAllowUniversalAccessFromFileURLs
(
true
);
mWebView
.
addJavascriptInterface
(
new
AndroidJs
(),
"AndroidJs"
);
mWebView
.
addJavascriptInterface
(
new
AndroidJs
(),
"AndroidJs"
);
mWebView
.
loadUrl
(
webUrl
);
mWebView
.
setWebViewClient
(
new
WebViewClient
(){
mWebView
.
setWebChromeClient
(
new
WebChromeClient
()
{
@Override
@Override
public
void
onProgressChanged
(
WebView
view
,
int
newProgress
)
{
public
boolean
shouldOverrideUrlLoading
(
WebView
view
,
String
url
)
{
super
.
onProgressChanged
(
view
,
newProgress
);
return
false
;
if
(
newProgress
==
100
)
{
onHideLoading
();
}
}
}
});
});
mWebView
.
loadUrl
(
webUrl
);
// mWebView.setWebChromeClient(new WebChromeClient() {
// @Override
// public void onProgressChanged(WebView view, int newProgress) {
// super.onProgressChanged(view, newProgress);
// if (newProgress == 100) {
// onHideLoading();
// }
// }
// });
}
}
...
@@ -277,7 +288,13 @@ public class CarDetailActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -277,7 +288,13 @@ public class CarDetailActivity extends BaseStatusActivity<CommonPresenter> {
public
void
onclick
(
SnsPlatform
snsPlatform
,
SHARE_MEDIA
share_media
)
{
public
void
onclick
(
SnsPlatform
snsPlatform
,
SHARE_MEDIA
share_media
)
{
if
(
snsPlatform
.
mShowWord
.
equals
(
"生成海报"
))
{
if
(
snsPlatform
.
mShowWord
.
equals
(
"生成海报"
))
{
startActivity
(
ShareImageActivity
.
getIntent
(
mActivity
,
mCarBean
));
ARouter
.
getInstance
()
.
build
(
Constance
.
ACTIVITY_URL_SHAREIMAGE
)
.
withString
(
"icon"
,
mCarBean
.
getVehicleModel
().
getIcon
())
.
withString
(
"name"
,
mCarBean
.
getVehicleModel
().
getName
())
.
withString
(
"keyword"
,
mCarBean
.
getVehicleModel
().
getKeyword
())
.
withDouble
(
"price"
,
mCarBean
.
getVehicleModel
().
getPrice
()).
navigation
();
}
else
if
(
snsPlatform
.
mShowWord
.
equals
(
"复制链接"
))
{
}
else
if
(
snsPlatform
.
mShowWord
.
equals
(
"复制链接"
))
{
copyText
();
copyText
();
}
}
...
@@ -317,6 +334,13 @@ public class CarDetailActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -317,6 +334,13 @@ public class CarDetailActivity extends BaseStatusActivity<CommonPresenter> {
},
"rv_um_share_bill"
,
"rv_um_share_copy"
);
},
"rv_um_share_bill"
,
"rv_um_share_copy"
);
}
}
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
// TODO: add setContentView(...) invocation
ButterKnife
.
bind
(
this
);
}
/**
/**
* 与h5交互
* 与h5交互
*/
*/
...
@@ -329,11 +353,11 @@ public class CarDetailActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -329,11 +353,11 @@ public class CarDetailActivity extends BaseStatusActivity<CommonPresenter> {
if
(
mCarBean
!=
null
)
{
if
(
mCarBean
!=
null
)
{
ARouter
.
getInstance
()
ARouter
.
getInstance
()
.
build
(
Constance
.
ACTIVITY_URL_CARDETAILMAP
)
.
build
(
Constance
.
ACTIVITY_URL_CARDETAILMAP
)
.
withString
(
"addrDetail"
,
mCarBean
.
getCompany
().
getAddrDetail
())
.
withString
(
"addrDetail"
,
mCarBean
.
getCompany
().
getAddrDetail
())
.
withString
(
"phone"
,
mCarBean
.
getCompany
().
getPhone
())
.
withString
(
"phone"
,
mCarBean
.
getCompany
().
getPhone
())
.
withString
(
"name"
,
mCarBean
.
getCompany
().
getName
())
.
withString
(
"name"
,
mCarBean
.
getCompany
().
getName
())
.
withDouble
(
"latitude"
,
mCarBean
.
getCompany
().
getLatitude
())
.
withDouble
(
"latitude"
,
mCarBean
.
getCompany
().
getLatitude
())
.
withDouble
(
"longitude"
,
mCarBean
.
getCompany
().
getLongitude
())
.
withDouble
(
"longitude"
,
mCarBean
.
getCompany
().
getLongitude
())
.
navigation
();
.
navigation
();
}
}
...
@@ -349,6 +373,7 @@ public class CarDetailActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -349,6 +373,7 @@ public class CarDetailActivity extends BaseStatusActivity<CommonPresenter> {
}
}
ClipData
myClip
=
ClipData
.
newPlainText
(
"text"
,
webUrl
);
ClipData
myClip
=
ClipData
.
newPlainText
(
"text"
,
webUrl
);
myClipboard
.
setPrimaryClip
(
myClip
);
myClipboard
.
setPrimaryClip
(
myClip
);
showToast
(
"复制成功!"
);
}
}
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/CarRentalActivity.java
View file @
c5b840af
...
@@ -306,7 +306,7 @@ public class CarRentalActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -306,7 +306,7 @@ public class CarRentalActivity extends BaseStatusActivity<CommonPresenter> {
// if (getSwitchType == 0) {
// if (getSwitchType == 0) {
// startActivityForResult(SelectShopActivity.getIntent(mActivity, 1,"",getCity.equals(nowCity) && mLatLng!=null?mLatLng.latitude:0,getCity.equals(nowCity)&& mLatLng!=null?mLatLng.longitude:0), TYPE_REQUEST_SHOP);
// startActivityForResult(SelectShopActivity.getIntent(mActivity, 1,"",getCity.equals(nowCity) && mLatLng!=null?mLatLng.latitude:0,getCity.equals(nowCity)&& mLatLng!=null?mLatLng.longitude:0), TYPE_REQUEST_SHOP);
// } else {
// } else {
startActivityForResult
(
SelectLocationActivity
.
getIntent
(
mActivity
,
1
,
getCity
,
latLatitude
,
lonLongitude
,
nowCity
,
0
),
TYPE_REQUEST_ADDRESS
);
//
startActivityForResult(SelectLocationActivity.getIntent(mActivity, 1, getCity, latLatitude, lonLongitude, nowCity,0), TYPE_REQUEST_ADDRESS);
// }
// }
}
else
if
(
v
.
getId
()==
R
.
id
.
tv_out_address
){
}
else
if
(
v
.
getId
()==
R
.
id
.
tv_out_address
){
...
@@ -314,7 +314,7 @@ public class CarRentalActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -314,7 +314,7 @@ public class CarRentalActivity extends BaseStatusActivity<CommonPresenter> {
// if (outSwitchType == 0) {
// if (outSwitchType == 0) {
// startActivityForResult(SelectShopActivity.getIntent(mActivity, 2,"",outCity.equals(nowCity)&& mLatLng!=null?mLatLng.latitude:0,outCity.equals(nowCity)&& mLatLng!=null?mLatLng.longitude:0), TYPE_REQUEST_SHOP);
// startActivityForResult(SelectShopActivity.getIntent(mActivity, 2,"",outCity.equals(nowCity)&& mLatLng!=null?mLatLng.latitude:0,outCity.equals(nowCity)&& mLatLng!=null?mLatLng.longitude:0), TYPE_REQUEST_SHOP);
// } else {
// } else {
startActivityForResult
(
SelectLocationActivity
.
getIntent
(
mActivity
,
2
,
outCity
,
outLatitude
,
outLongitude
,
nowCity
,
0
),
TYPE_REQUEST_ADDRESS
);
//
startActivityForResult(SelectLocationActivity.getIntent(mActivity, 2, outCity, outLatitude, outLongitude, nowCity,0), TYPE_REQUEST_ADDRESS);
// }
// }
}
else
if
(
v
.
getId
()==
R
.
id
.
tv_get_time
){
}
else
if
(
v
.
getId
()==
R
.
id
.
tv_get_time
){
if
(
mapGetTime
==
null
)
{
if
(
mapGetTime
==
null
)
{
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/CarRentalListActivity.java
View file @
c5b840af
...
@@ -199,11 +199,11 @@ public class CarRentalListActivity extends BaseStatusActivity<CommonPresenter> i
...
@@ -199,11 +199,11 @@ public class CarRentalListActivity extends BaseStatusActivity<CommonPresenter> i
}
else
if
(
id
==
R
.
id
.
ll_item_get_address
)
{
}
else
if
(
id
==
R
.
id
.
ll_item_get_address
)
{
//取车地址
//取车地址
startActivityForResult
(
SelectLocationActivity
.
getIntent
(
mActivity
,
1
,
dataBean
.
getStartCityName
(),
mLat
,
mLon
,
""
,
1
),
110
);
startActivityForResult
(
SelectLocationActivity
.
getIntent
(
mActivity
,
1
,
dataBean
.
getStartCityName
(),
dataBean
.
getStartCity
(),
mLat
,
mLon
,
""
,
1
),
110
);
}
else
if
(
id
==
R
.
id
.
ll_item_out_address
)
{
}
else
if
(
id
==
R
.
id
.
ll_item_out_address
)
{
//还车地址
//还车地址
startActivityForResult
(
SelectLocationActivity
.
getIntent
(
mActivity
,
2
,
dataBean
.
getStartCityName
(),
outLatitude
,
outLongitude
,
""
,
1
),
110
);
startActivityForResult
(
SelectLocationActivity
.
getIntent
(
mActivity
,
2
,
dataBean
.
getStartCityName
(),
dataBean
.
getEndCity
(),
outLatitude
,
outLongitude
,
""
,
1
),
110
);
}
else
if
(
id
==
R
.
id
.
ll_item_filter
)
{
}
else
if
(
id
==
R
.
id
.
ll_item_filter
)
{
if
(
attributeListBean
==
null
)
{
if
(
attributeListBean
==
null
)
{
return
;
return
;
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/ConfirmOrderActivity.java
View file @
c5b840af
...
@@ -208,7 +208,7 @@ public class ConfirmOrderActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -208,7 +208,7 @@ public class ConfirmOrderActivity extends BaseStatusActivity<CommonPresenter> {
.
subscribe
(
new
Observer
<
LoginUserInfoEvent
>(
disposable
)
{
.
subscribe
(
new
Observer
<
LoginUserInfoEvent
>(
disposable
)
{
@Override
@Override
public
void
onNext
(
LoginUserInfoEvent
event
)
{
public
void
onNext
(
LoginUserInfoEvent
event
)
{
tvPrice
.
setText
(
String
.
format
(
"%1$s%2$s"
,
mCarBean
.
getVehicleModel
().
getSum
(),
mActivity
.
getString
(
R
.
string
.
rv_day
)));
tvPrice
.
setText
(
String
.
format
(
"
¥
%1$s%2$s"
,
mCarBean
.
getVehicleModel
().
getSum
(),
mActivity
.
getString
(
R
.
string
.
rv_day
)));
if
(
info
!=
null
)
{
if
(
info
!=
null
)
{
if
(
0
==
info
.
getIsMember
())
{
if
(
0
==
info
.
getIsMember
())
{
tvLayoutMemberHint
.
setVisibility
(
View
.
GONE
);
tvLayoutMemberHint
.
setVisibility
(
View
.
GONE
);
...
@@ -309,12 +309,14 @@ public class ConfirmOrderActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -309,12 +309,14 @@ public class ConfirmOrderActivity extends BaseStatusActivity<CommonPresenter> {
rbUserDriving
.
setChecked
(
false
);
rbUserDriving
.
setChecked
(
false
);
llAddDriving
.
setVisibility
(
View
.
GONE
);
llAddDriving
.
setVisibility
(
View
.
GONE
);
rbXinDriving
.
setChecked
(
true
);
rbXinDriving
.
setChecked
(
true
);
dataBean
.
setMyDriverIds
(
"1"
);
dataBean
.
setDriverType
(
1
);
getPayMoney
();
getPayMoney
();
}
else
if
(
id
==
R
.
id
.
rb_user_driving
||
id
==
R
.
id
.
tv_user_driving_hint
)
{
}
else
if
(
id
==
R
.
id
.
rb_user_driving
||
id
==
R
.
id
.
tv_user_driving_hint
)
{
drivingType
=
2
;
drivingType
=
2
;
rbXinDriving
.
setChecked
(
false
);
rbXinDriving
.
setChecked
(
false
);
rbUserDriving
.
setChecked
(
true
);
rbUserDriving
.
setChecked
(
true
);
dataBean
.
setDriverType
(
2
);
if
(
drivingListBean
!=
null
)
{
if
(
drivingListBean
!=
null
)
{
llAddDriving
.
setVisibility
(
View
.
VISIBLE
);
llAddDriving
.
setVisibility
(
View
.
VISIBLE
);
}
}
...
@@ -464,7 +466,7 @@ public class ConfirmOrderActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -464,7 +466,7 @@ public class ConfirmOrderActivity extends BaseStatusActivity<CommonPresenter> {
tvName
.
setText
(
mCarBean
.
getVehicleModel
().
getName
());
tvName
.
setText
(
mCarBean
.
getVehicleModel
().
getName
());
tvContent
.
setText
(
mCarBean
.
getVehicleModel
().
getKeyword
());
tvContent
.
setText
(
mCarBean
.
getVehicleModel
().
getKeyword
());
ratingBar
.
setStarMark
((
float
)
mCarBean
.
getVehicleModel
().
getScore
()
/
10
);
ratingBar
.
setStarMark
((
float
)
mCarBean
.
getVehicleModel
().
getScore
()
/
10
);
tvPrice
.
setText
(
String
.
format
(
"%1$s%2$s"
,
mCarBean
.
getVehicleModel
().
getSum
(),
mActivity
.
getString
(
R
.
string
.
rv_day
)));
tvPrice
.
setText
(
String
.
format
(
"
¥
%1$s%2$s"
,
mCarBean
.
getVehicleModel
().
getSum
(),
mActivity
.
getString
(
R
.
string
.
rv_day
)));
tvEventDate
.
setText
(
getIntent
().
getStringExtra
(
"startTime"
)
+
"~"
+
getIntent
().
getStringExtra
(
"endTime"
));
tvEventDate
.
setText
(
getIntent
().
getStringExtra
(
"startTime"
)
+
"~"
+
getIntent
().
getStringExtra
(
"endTime"
));
tvActivityDay
.
setText
(
String
.
format
(
"%1$s%2$s"
,
dataBean
.
getDayNum
(),
mActivity
.
getString
(
R
.
string
.
rv_days
)));
tvActivityDay
.
setText
(
String
.
format
(
"%1$s%2$s"
,
dataBean
.
getDayNum
(),
mActivity
.
getString
(
R
.
string
.
rv_days
)));
tvGetCarAddress
.
setText
(
dataBean
.
getStartAddr
());
tvGetCarAddress
.
setText
(
dataBean
.
getStartAddr
());
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/HomeFragment.java
View file @
c5b840af
...
@@ -497,7 +497,7 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
...
@@ -497,7 +497,7 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
private
void
setRecommendGood
(
HomeHotGoodListBean
data
)
{
private
void
setRecommendGood
(
HomeHotGoodListBean
data
)
{
mAdapter
.
getData
().
clear
();
mAdapter
.
getData
().
clear
();
mAdapter
.
add
Data
(
data
.
getData
());
mAdapter
.
setNew
Data
(
data
.
getData
());
}
}
private
void
setHotData
(
HomePopularBrigade
data
)
{
private
void
setHotData
(
HomePopularBrigade
data
)
{
...
@@ -573,13 +573,13 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
...
@@ -573,13 +573,13 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
// if (getSwitchType == 0) {
// if (getSwitchType == 0) {
// startActivityForResult(SelectShopActivity.getIntent(mActivity, 1,"",getCity.equals(nowCity) && mLatLng!=null?mLatLng.latitude:0,getCity.equals(nowCity)&& mLatLng!=null?mLatLng.longitude:0), TYPE_REQUEST_SHOP);
// startActivityForResult(SelectShopActivity.getIntent(mActivity, 1,"",getCity.equals(nowCity) && mLatLng!=null?mLatLng.latitude:0,getCity.equals(nowCity)&& mLatLng!=null?mLatLng.longitude:0), TYPE_REQUEST_SHOP);
// } else {
// } else {
startActivityForResult
(
SelectLocationActivity
.
getIntent
(
getContext
(),
1
,
getCity
,
latLatitude
,
lonLongitude
,
nowCity
,
0
),
TYPE_REQUEST_ADDRESS
);
startActivityForResult
(
SelectLocationActivity
.
getIntent
(
getContext
(),
1
,
getCity
,
0
,
latLatitude
,
lonLongitude
,
nowCity
,
0
),
TYPE_REQUEST_ADDRESS
);
}
else
if
(
id
==
R
.
id
.
tv_out_address
)
{
}
else
if
(
id
==
R
.
id
.
tv_out_address
)
{
String
outCity
=
headTvOutCity
.
getText
().
toString
().
trim
();
String
outCity
=
headTvOutCity
.
getText
().
toString
().
trim
();
// if (outSwitchType == 0) {
// if (outSwitchType == 0) {
// startActivityForResult(SelectShopActivity.getIntent(mActivity, 2,"",outCity.equals(nowCity)&& mLatLng!=null?mLatLng.latitude:0,outCity.equals(nowCity)&& mLatLng!=null?mLatLng.longitude:0), TYPE_REQUEST_SHOP);
// startActivityForResult(SelectShopActivity.getIntent(mActivity, 2,"",outCity.equals(nowCity)&& mLatLng!=null?mLatLng.latitude:0,outCity.equals(nowCity)&& mLatLng!=null?mLatLng.longitude:0), TYPE_REQUEST_SHOP);
// } else {
// } else {
startActivityForResult
(
SelectLocationActivity
.
getIntent
(
getContext
(),
2
,
outCity
,
outLatitude
,
outLongitude
,
nowCity
,
0
),
TYPE_REQUEST_ADDRESS
);
startActivityForResult
(
SelectLocationActivity
.
getIntent
(
getContext
(),
2
,
outCity
,
0
,
outLatitude
,
outLongitude
,
nowCity
,
0
),
TYPE_REQUEST_ADDRESS
);
}
else
if
(
id
==
R
.
id
.
ll_item_select_data
)
{
}
else
if
(
id
==
R
.
id
.
ll_item_select_data
)
{
//选择日期
//选择日期
ARouter
.
getInstance
()
ARouter
.
getInstance
()
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/HomePageFragment.java
View file @
c5b840af
...
@@ -321,7 +321,7 @@ public class HomePageFragment extends BaseFragment<CommonPresenter> {
...
@@ -321,7 +321,7 @@ public class HomePageFragment extends BaseFragment<CommonPresenter> {
// if (getSwitchType == 0) {
// if (getSwitchType == 0) {
// startActivityForResult(SelectShopActivity.getIntent(mActivity, 1,"",getCity.equals(nowCity) && mLatLng!=null?mLatLng.latitude:0,getCity.equals(nowCity)&& mLatLng!=null?mLatLng.longitude:0), TYPE_REQUEST_SHOP);
// startActivityForResult(SelectShopActivity.getIntent(mActivity, 1,"",getCity.equals(nowCity) && mLatLng!=null?mLatLng.latitude:0,getCity.equals(nowCity)&& mLatLng!=null?mLatLng.longitude:0), TYPE_REQUEST_SHOP);
// } else {
// } else {
startActivityForResult
(
SelectLocationActivity
.
getIntent
(
getContext
(),
1
,
getCity
,
latLatitude
,
lonLongitude
,
nowCity
,
0
),
TYPE_REQUEST_ADDRESS
);
//
startActivityForResult(SelectLocationActivity.getIntent(getContext(), 1, getCity, latLatitude, lonLongitude, nowCity,0), TYPE_REQUEST_ADDRESS);
// }
// }
...
@@ -330,7 +330,7 @@ public class HomePageFragment extends BaseFragment<CommonPresenter> {
...
@@ -330,7 +330,7 @@ public class HomePageFragment extends BaseFragment<CommonPresenter> {
// if (outSwitchType == 0) {
// if (outSwitchType == 0) {
// startActivityForResult(SelectShopActivity.getIntent(mActivity, 2,"",outCity.equals(nowCity)&& mLatLng!=null?mLatLng.latitude:0,outCity.equals(nowCity)&& mLatLng!=null?mLatLng.longitude:0), TYPE_REQUEST_SHOP);
// startActivityForResult(SelectShopActivity.getIntent(mActivity, 2,"",outCity.equals(nowCity)&& mLatLng!=null?mLatLng.latitude:0,outCity.equals(nowCity)&& mLatLng!=null?mLatLng.longitude:0), TYPE_REQUEST_SHOP);
// } else {
// } else {
startActivityForResult
(
SelectLocationActivity
.
getIntent
(
getContext
(),
2
,
outCity
,
outLatitude
,
outLongitude
,
nowCity
,
0
),
TYPE_REQUEST_ADDRESS
);
//
startActivityForResult(SelectLocationActivity.getIntent(getContext(), 2, outCity, outLatitude, outLongitude, nowCity,0), TYPE_REQUEST_ADDRESS);
// }
// }
}
else
if
(
i
==
R
.
id
.
tv_get_time
)
{
}
else
if
(
i
==
R
.
id
.
tv_get_time
)
{
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/SelectLocationActivity.java
View file @
c5b840af
...
@@ -91,10 +91,11 @@ public class SelectLocationActivity extends BaseStatusActivity<CommonPresenter>
...
@@ -91,10 +91,11 @@ public class SelectLocationActivity extends BaseStatusActivity<CommonPresenter>
private
int
isShowCity
;
private
int
isShowCity
;
private
GeoCoder
geoCoder
;
private
GeoCoder
geoCoder
;
public
static
Intent
getIntent
(
Context
context
,
int
type
,
String
city
,
double
latitude
,
double
longitude
,
String
now_city
,
int
isShowCity
)
{
public
static
Intent
getIntent
(
Context
context
,
int
type
,
String
city
,
int
cityId
,
double
latitude
,
double
longitude
,
String
now_city
,
int
isShowCity
)
{
return
new
Intent
(
context
,
SelectLocationActivity
.
class
)
return
new
Intent
(
context
,
SelectLocationActivity
.
class
)
.
putExtra
(
"type"
,
type
)
.
putExtra
(
"type"
,
type
)
.
putExtra
(
"city"
,
city
)
.
putExtra
(
"city"
,
city
)
.
putExtra
(
"cityId"
,
cityId
)
.
putExtra
(
"latitude"
,
latitude
)
.
putExtra
(
"latitude"
,
latitude
)
.
putExtra
(
"longitude"
,
longitude
)
.
putExtra
(
"longitude"
,
longitude
)
.
putExtra
(
"now_city"
,
now_city
)
.
putExtra
(
"now_city"
,
now_city
)
...
@@ -108,6 +109,7 @@ public class SelectLocationActivity extends BaseStatusActivity<CommonPresenter>
...
@@ -108,6 +109,7 @@ public class SelectLocationActivity extends BaseStatusActivity<CommonPresenter>
@Override
@Override
protected
void
initView
(
Bundle
savedInstanceState
,
TitleView
titleView
,
Intent
intent
)
{
protected
void
initView
(
Bundle
savedInstanceState
,
TitleView
titleView
,
Intent
intent
)
{
mCityId
=
intent
.
getIntExtra
(
"cityId"
,
0
);
selectCity
=
intent
.
getStringExtra
(
"city"
);
selectCity
=
intent
.
getStringExtra
(
"city"
);
locationType
=
intent
.
getIntExtra
(
"type"
,
1
);
locationType
=
intent
.
getIntExtra
(
"type"
,
1
);
latLatitude
=
intent
.
getDoubleExtra
(
"latitude"
,
0
);
latLatitude
=
intent
.
getDoubleExtra
(
"latitude"
,
0
);
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/ShareImageActivity.java
View file @
c5b840af
...
@@ -12,6 +12,9 @@ import android.widget.ImageView;
...
@@ -12,6 +12,9 @@ import android.widget.ImageView;
import
android.widget.RelativeLayout
;
import
android.widget.RelativeLayout
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
com.alibaba.android.arouter.facade.annotation.Autowired
;
import
com.alibaba.android.arouter.facade.annotation.Route
;
import
com.frame.base.url.Constance
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.swipe.SwipeBackActivity
;
import
com.ruiwenliu.wrapper.base.swipe.SwipeBackActivity
;
import
com.ruiwenliu.wrapper.util.glide.GlideManager
;
import
com.ruiwenliu.wrapper.util.glide.GlideManager
;
...
@@ -30,6 +33,7 @@ import com.umeng.socialize.utils.ShareBoardlistener;
...
@@ -30,6 +33,7 @@ import com.umeng.socialize.utils.ShareBoardlistener;
import
butterknife.BindView
;
import
butterknife.BindView
;
import
butterknife.OnClick
;
import
butterknife.OnClick
;
@Route
(
path
=
Constance
.
ACTIVITY_URL_SHAREIMAGE
)
public
class
ShareImageActivity
extends
SwipeBackActivity
<
CommonPresenter
>
{
public
class
ShareImageActivity
extends
SwipeBackActivity
<
CommonPresenter
>
{
@BindView
(
R2
.
id
.
iv_goods
)
@BindView
(
R2
.
id
.
iv_goods
)
...
@@ -45,12 +49,15 @@ public class ShareImageActivity extends SwipeBackActivity<CommonPresenter> {
...
@@ -45,12 +49,15 @@ public class ShareImageActivity extends SwipeBackActivity<CommonPresenter> {
@BindView
(
R2
.
id
.
rl_body
)
@BindView
(
R2
.
id
.
rl_body
)
RelativeLayout
rlBody
;
RelativeLayout
rlBody
;
private
ShareManager
shareManager
;
private
ShareManager
shareManager
;
private
CarTypeListBean
.
DataBeanX
.
DataBean
mCarBean
;
public
static
Intent
getIntent
(
Context
context
,
CarTypeListBean
.
DataBeanX
.
DataBean
carBean
)
{
@Autowired
()
return
new
Intent
(
context
,
ShareImageActivity
.
class
)
String
icon
;
.
putExtra
(
"carBean"
,
carBean
);
@Autowired
()
};
String
name
;
@Autowired
()
String
keyword
;
@Autowired
()
double
price
;
@Override
@Override
protected
void
loadData
(
Bundle
savedInstanceState
,
Intent
intent
)
{
protected
void
loadData
(
Bundle
savedInstanceState
,
Intent
intent
)
{
...
@@ -65,11 +72,10 @@ public class ShareImageActivity extends SwipeBackActivity<CommonPresenter> {
...
@@ -65,11 +72,10 @@ public class ShareImageActivity extends SwipeBackActivity<CommonPresenter> {
@Override
@Override
protected
void
initView
(
Bundle
savedInstanceState
,
TitleView
titleView
,
Intent
intent
)
{
protected
void
initView
(
Bundle
savedInstanceState
,
TitleView
titleView
,
Intent
intent
)
{
showTitle
(
false
);
showTitle
(
false
);
mCarBean
=
(
CarTypeListBean
.
DataBeanX
.
DataBean
)
getIntent
().
getSerializableExtra
(
"carBean"
);
GlideManager
.
getInstance
(
this
).
loadImage
(
icon
,
ivGoods
);
GlideManager
.
getInstance
(
this
).
loadImage
(
mCarBean
.
getVehicleModel
().
getIcon
(),
ivGoods
);
tvName
.
setText
(
name
);
tvName
.
setText
(
mCarBean
.
getVehicleModel
().
getName
());
tvContent
.
setText
(
keyword
);
tvContent
.
setText
(
mCarBean
.
getVehicleModel
().
getKeyword
());
tvPrice
.
setText
(
String
.
format
(
"%1$s%2$s"
,
price
,
this
.
getString
(
R
.
string
.
rv_day
)));
tvPrice
.
setText
(
String
.
format
(
"%1$s%2$s"
,
mCarBean
.
getVehicleModel
().
getPrice
(),
this
.
getString
(
R
.
string
.
rv_day
)));
}
}
@Override
@Override
...
@@ -115,7 +121,7 @@ public class ShareImageActivity extends SwipeBackActivity<CommonPresenter> {
...
@@ -115,7 +121,7 @@ public class ShareImageActivity extends SwipeBackActivity<CommonPresenter> {
/**
/**
* 获取scrollview的截屏
* 获取scrollview的截屏
*/
*/
public
Bitmap
getViewBitmap
(
RelativeLayout
view
)
{
public
Bitmap
getViewBitmap
(
RelativeLayout
view
)
{
int
w
=
view
.
getWidth
();
int
w
=
view
.
getWidth
();
int
h
=
view
.
getHeight
();
int
h
=
view
.
getHeight
();
Bitmap
bmp
=
Bitmap
.
createBitmap
(
w
,
h
,
Bitmap
.
Config
.
ARGB_8888
);
Bitmap
bmp
=
Bitmap
.
createBitmap
(
w
,
h
,
Bitmap
.
Config
.
ARGB_8888
);
...
@@ -126,25 +132,26 @@ public class ShareImageActivity extends SwipeBackActivity<CommonPresenter> {
...
@@ -126,25 +132,26 @@ public class ShareImageActivity extends SwipeBackActivity<CommonPresenter> {
view
.
draw
(
c
);
view
.
draw
(
c
);
return
bmp
;
return
bmp
;
}
}
/**
/**
* 初始化分享
* 初始化分享
*/
*/
private
void
initShare
(
final
Bitmap
bitmap
)
{
private
void
initShare
(
final
Bitmap
bitmap
)
{
if
(
shareManager
==
null
)
{
if
(
shareManager
==
null
)
{
shareManager
=
new
ShareManager
(
this
,
new
ShareBoardlistener
()
{
shareManager
=
new
ShareManager
(
this
,
new
ShareBoardlistener
()
{
@Override
@Override
public
void
onclick
(
SnsPlatform
snsPlatform
,
SHARE_MEDIA
share_media
)
{
public
void
onclick
(
SnsPlatform
snsPlatform
,
SHARE_MEDIA
share_media
)
{
shareManager
.
showShareImage
(
share_media
,
bitmap
,
new
CustomShareListener
(
mActivity
)
{
shareManager
.
showShareImage
(
share_media
,
bitmap
,
new
CustomShareListener
(
mActivity
)
{
@Override
@Override
public
void
onResult
(
SHARE_MEDIA
platform
)
{
public
void
onResult
(
SHARE_MEDIA
platform
)
{
super
.
onResult
(
platform
);
super
.
onResult
(
platform
);
if
(
platform
.
name
().
equals
(
"WEIXIN_FAVORITE"
))
{
if
(
platform
.
name
().
equals
(
"WEIXIN_FAVORITE"
))
{
showToast
(
platform
+
" 收藏成功啦"
);
showToast
(
platform
+
" 收藏成功啦"
);
}
else
{
}
else
{
if
(
platform
!=
SHARE_MEDIA
.
MORE
&&
platform
!=
SHARE_MEDIA
.
SMS
if
(
platform
!=
SHARE_MEDIA
.
MORE
&&
platform
!=
SHARE_MEDIA
.
SMS
...
@@ -159,7 +166,7 @@ public class ShareImageActivity extends SwipeBackActivity<CommonPresenter> {
...
@@ -159,7 +166,7 @@ public class ShareImageActivity extends SwipeBackActivity<CommonPresenter> {
&&
platform
!=
SHARE_MEDIA
.
GOOGLEPLUS
&&
platform
!=
SHARE_MEDIA
.
GOOGLEPLUS
&&
platform
!=
SHARE_MEDIA
.
YNOTE
&&
platform
!=
SHARE_MEDIA
.
YNOTE
&&
platform
!=
SHARE_MEDIA
.
EVERNOTE
)
{
&&
platform
!=
SHARE_MEDIA
.
EVERNOTE
)
{
showToast
(
platform
+
"分享成功啦"
);
showToast
(
platform
+
"分享成功啦"
);
}
}
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/adapter/HotCarTypeAdapter.java
View file @
c5b840af
...
@@ -31,8 +31,8 @@ public class HotCarTypeAdapter extends BaseQuickAdapter<HomeHotGoodListBean.Data
...
@@ -31,8 +31,8 @@ public class HotCarTypeAdapter extends BaseQuickAdapter<HomeHotGoodListBean.Data
helper
.
setText
(
R
.
id
.
tv_price
,
""
);
helper
.
setText
(
R
.
id
.
tv_price
,
""
);
}
}
}
}
//
@Override
@Override
//
public int getItemCount() {
public
int
getItemCount
()
{
//
return 4;
return
4
;
//
}
}
}
}
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/order/GetOnTheCarQRCodeActivity.java
View file @
c5b840af
...
@@ -89,7 +89,7 @@ public class GetOnTheCarQRCodeActivity extends BaseStatusActivity<PickerPresente
...
@@ -89,7 +89,7 @@ public class GetOnTheCarQRCodeActivity extends BaseStatusActivity<PickerPresente
}
}
//生成带中间图标的二维码
//生成带中间图标的二维码
Bitmap
success
=
createQRImage
(
"33333333333333333333333"
,
100
,
100
,
Bitmap
success
=
createQRImage
(
dataBean
.
getQrcodeStr
()
,
100
,
100
,
BitmapFactory
.
decodeResource
(
getResources
(),
R
.
mipmap
.
ic_launcher
));
BitmapFactory
.
decodeResource
(
getResources
(),
R
.
mipmap
.
ic_launcher
));
ivZxing
.
setImageBitmap
(
success
);
ivZxing
.
setImageBitmap
(
success
);
}
}
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/order/PickUpTheCarQRCodeActivity.java
View file @
c5b840af
...
@@ -96,13 +96,13 @@ public class PickUpTheCarQRCodeActivity extends BaseStatusActivity<PickerPresent
...
@@ -96,13 +96,13 @@ public class PickUpTheCarQRCodeActivity extends BaseStatusActivity<PickerPresent
tvGetTime
.
setText
(
TimeManager
.
stampToDate
(
String
.
valueOf
(
detail
.
getStart_time
())));
tvGetTime
.
setText
(
TimeManager
.
stampToDate
(
String
.
valueOf
(
detail
.
getStart_time
())));
tvOutAddress
.
setText
(
detail
.
getEnd_addr
());
tvOutAddress
.
setText
(
detail
.
getEnd_addr
());
tvOutTime
.
setText
(
TimeManager
.
stampToDate
(
String
.
valueOf
(
detail
.
getEnd_time
())));
tvOutTime
.
setText
(
TimeManager
.
stampToDate
(
String
.
valueOf
(
detail
.
getEnd_time
())));
tvPrice
.
setText
(
String
.
format
(
"¥%1$s"
,
dataBean
.
get
Order
Amount
()));
tvPrice
.
setText
(
String
.
format
(
"¥%1$s"
,
dataBean
.
get
Real
Amount
()));
GlideManager
.
getInstance
(
mActivity
).
loadImage
(
dataBean
.
get
Picture
(),
ivGoods
);
GlideManager
.
getInstance
(
mActivity
).
loadImage
(
dataBean
.
get
Icon
(),
ivGoods
);
}
}
}
}
//生成带中间图标的二维码
//生成带中间图标的二维码
Bitmap
success
=
createQRImage
(
"33333333333333333333333"
,
100
,
100
,
Bitmap
success
=
createQRImage
(
dataBean
.
getQrcodeStr
()
,
100
,
100
,
BitmapFactory
.
decodeResource
(
getResources
(),
R
.
mipmap
.
ic_launcher
));
BitmapFactory
.
decodeResource
(
getResources
(),
R
.
mipmap
.
ic_launcher
));
ivZxing
.
setImageBitmap
(
success
);
ivZxing
.
setImageBitmap
(
success
);
}
}
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/order/bean/OrderListBean.java
View file @
c5b840af
...
@@ -138,12 +138,21 @@ public class OrderListBean extends BaseBean {
...
@@ -138,12 +138,21 @@ public class OrderListBean extends BaseBean {
private
String
updUser
;
private
String
updUser
;
private
String
updName
;
private
String
updName
;
private
String
updHost
;
private
String
updHost
;
private
String
qrcodeStr
;
private
OrderRentVehicleDetail
orderRentVehicleDetail
;
private
OrderRentVehicleDetail
orderRentVehicleDetail
;
private
OrderTourDetail
orderTourDetail
;
private
OrderTourDetail
orderTourDetail
;
private
OrderMemberDetail
orderMemberDetail
;
private
OrderMemberDetail
orderMemberDetail
;
private
int
detailId
;
private
int
detailId
;
private
String
name
;
private
String
name
;
public
String
getQrcodeStr
()
{
return
qrcodeStr
;
}
public
void
setQrcodeStr
(
String
qrcodeStr
)
{
this
.
qrcodeStr
=
qrcodeStr
;
}
public
double
getRealAmount
()
{
public
double
getRealAmount
()
{
return
realAmount
;
return
realAmount
;
}
}
...
...
module_home/src/main/res/layout/fragment_home.xml
View file @
c5b840af
...
@@ -6,7 +6,8 @@
...
@@ -6,7 +6,8 @@
android:background=
"@color/colorLine"
android:background=
"@color/colorLine"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<com.ruiwenliu.wrapper.weight.refresh.SimpleRefreshLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<com.ruiwenliu.wrapper.weight.refresh.SimpleRefreshLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/refresh"
android:id=
"@+id/refresh"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
...
@@ -18,7 +19,7 @@
...
@@ -18,7 +19,7 @@
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
match_par
ent"
android:layout_height=
"
wrap_cont
ent"
android:descendantFocusability=
"beforeDescendants"
android:descendantFocusability=
"beforeDescendants"
android:focusable=
"true"
android:focusable=
"true"
android:focusableInTouchMode=
"true"
android:focusableInTouchMode=
"true"
...
@@ -618,13 +619,12 @@
...
@@ -618,13 +619,12 @@
android:textSize=
"@dimen/text_10"
/>
android:textSize=
"@dimen/text_10"
/>
</LinearLayout>
</LinearLayout>
</android.support.v7.widget.CardView>
</android.support.v7.widget.CardView>
</RelativeLayout>
</RelativeLayout>
<android.support.v7.widget.RecyclerView
<android.support.v7.widget.RecyclerView
android:id=
"@+id/recyclerView_content"
android:id=
"@+id/recyclerView_content"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
match_par
ent"
android:layout_height=
"
wrap_cont
ent"
android:layout_marginTop=
"@dimen/size_10"
android:layout_marginTop=
"@dimen/size_10"
android:paddingLeft=
"@dimen/size_10"
android:paddingLeft=
"@dimen/size_10"
android:paddingRight=
"@dimen/size_10"
/>
android:paddingRight=
"@dimen/size_10"
/>
...
@@ -747,16 +747,16 @@
...
@@ -747,16 +747,16 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginRight=
"@dimen/size_15"
android:layout_marginTop=
"@dimen/size_15"
android:layout_marginTop=
"@dimen/size_15"
android:layout_marginRight=
"@dimen/size_15"
android:layout_marginBottom=
"@dimen/size_15"
android:layout_marginBottom=
"@dimen/size_15"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<LinearLayout
<LinearLayout
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_marginRight=
"@dimen/size_5"
android:layout_marginRight=
"@dimen/size_5"
android:layout_weight=
"1"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<LinearLayout
<LinearLayout
...
@@ -768,8 +768,8 @@
...
@@ -768,8 +768,8 @@
<ImageView
<ImageView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:s
rc=
"@drawable/aa1
"
android:s
caleType=
"centerCrop
"
android:s
caleType=
"centerCrop
"
/>
android:s
rc=
"@drawable/aa1
"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
@@ -835,15 +835,15 @@
...
@@ -835,15 +835,15 @@
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@drawable/shape_rv_bg_write_semicircle"
android:layout_marginTop=
"@dimen/size_10"
android:layout_marginTop=
"@dimen/size_10"
android:background=
"@drawable/shape_rv_bg_write_semicircle"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<ImageView
<ImageView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:s
rc=
"@drawable/aa4
"
android:s
caleType=
"centerCrop
"
android:s
caleType=
"centerCrop
"
/>
android:s
rc=
"@drawable/aa4
"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
@@ -911,8 +911,8 @@
...
@@ -911,8 +911,8 @@
<LinearLayout
<LinearLayout
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_marginLeft=
"@dimen/size_5"
android:layout_marginLeft=
"@dimen/size_5"
android:layout_weight=
"1"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<LinearLayout
<LinearLayout
...
@@ -924,8 +924,8 @@
...
@@ -924,8 +924,8 @@
<ImageView
<ImageView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:s
rc=
"@drawable/aa33
"
android:s
caleType=
"centerCrop
"
android:s
caleType=
"centerCrop
"
/>
android:s
rc=
"@drawable/aa33
"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
@@ -998,8 +998,8 @@
...
@@ -998,8 +998,8 @@
<ImageView
<ImageView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:s
rc=
"@drawable/aa2
"
android:s
caleType=
"centerCrop
"
android:s
caleType=
"centerCrop
"
/>
android:s
rc=
"@drawable/aa2
"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
@@ -1065,13 +1065,14 @@
...
@@ -1065,13 +1065,14 @@
</LinearLayout>
</LinearLayout>
<!-- <android.support.v7.widget.RecyclerView
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerView_rv_enthusiast"
android:id=
"@+id/recyclerView_rv_enthusiast"
android:layout_width="match_parent"
android:layout_width=
"match_parent"
android:layout_height="wrap_content"
android:visibility=
"gone"
android:layout_alignParentBottom="true"
android:layout_height=
"wrap_content"
android:paddingLeft="@dimen/size_8"
android:layout_alignParentBottom=
"true"
android:paddingRight="@dimen/size_8" />-->
android:paddingLeft=
"@dimen/size_8"
android:paddingRight=
"@dimen/size_8"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
...
...
module_home/src/main/res/layout/rv_act_car_detail.xml
View file @
c5b840af
...
@@ -71,12 +71,19 @@
...
@@ -71,12 +71,19 @@
</RelativeLayout>
</RelativeLayout>
<include
layout=
"@layout/common_line"
/>
<include
layout=
"@layout/common_line"
/>
<WebView
<
com.rv.component.control.Progress
WebView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:id=
"@+id/webView"
android:id=
"@+id/webView"
>
/>
</com.rv.component.control.ProgressWebView>
<!--<WebView-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="match_parent"-->
<!--android:layout_weight="1"-->
<!--android:id="@+id/webView"-->
<!--/>-->
<TextView
<TextView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
...
module_mine/src/main/res/layout/activity_mine.xml
View file @
c5b840af
...
@@ -64,7 +64,6 @@
...
@@ -64,7 +64,6 @@
android:id=
"@+id/tv_nickname"
android:id=
"@+id/tv_nickname"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"333333"
android:textColor=
"@color/colorYellow"
android:textColor=
"@color/colorYellow"
android:textSize=
"@dimen/text_16"
android:textSize=
"@dimen/text_16"
android:visibility=
"gone"
/>
android:visibility=
"gone"
/>
...
@@ -80,7 +79,6 @@
...
@@ -80,7 +79,6 @@
android:paddingTop=
"@dimen/size_1"
android:paddingTop=
"@dimen/size_1"
android:paddingRight=
"@dimen/size_3"
android:paddingRight=
"@dimen/size_3"
android:paddingBottom=
"@dimen/size_1"
android:paddingBottom=
"@dimen/size_1"
android:text=
"股东"
android:textColor=
"@color/colorGray"
android:textColor=
"@color/colorGray"
android:textSize=
"@dimen/text_10"
android:textSize=
"@dimen/text_10"
android:visibility=
"gone"
/>
android:visibility=
"gone"
/>
...
...
module_tourism/src/main/java/com/rv/tourism/other/TravelDetailsActivity.java
View file @
c5b840af
package
com
.
rv
.
tourism
.
other
;
package
com
.
rv
.
tourism
.
other
;
import
android.content.ClipData
;
import
android.content.ClipboardManager
;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.content.res.Configuration
;
import
android.content.res.Configuration
;
import
android.os.Build
;
import
android.os.Build
;
...
@@ -12,6 +14,7 @@ import android.webkit.JavascriptInterface;
...
@@ -12,6 +14,7 @@ import android.webkit.JavascriptInterface;
import
android.webkit.WebChromeClient
;
import
android.webkit.WebChromeClient
;
import
android.webkit.WebSettings
;
import
android.webkit.WebSettings
;
import
android.webkit.WebView
;
import
android.webkit.WebView
;
import
android.webkit.WebViewClient
;
import
android.widget.ImageView
;
import
android.widget.ImageView
;
import
android.widget.LinearLayout
;
import
android.widget.LinearLayout
;
import
android.widget.TextView
;
import
android.widget.TextView
;
...
@@ -34,6 +37,7 @@ import com.ruiwenliu.wrapper.util.um.CustomShareListener;
...
@@ -34,6 +37,7 @@ import com.ruiwenliu.wrapper.util.um.CustomShareListener;
import
com.ruiwenliu.wrapper.util.um.ShareManager
;
import
com.ruiwenliu.wrapper.util.um.ShareManager
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.ruiwenliu.wrapper.weight.refresh.IFooterWrapper
;
import
com.ruiwenliu.wrapper.weight.refresh.IFooterWrapper
;
import
com.rv.component.control.ProgressWebView
;
import
com.rv.tourism.R
;
import
com.rv.tourism.R
;
import
com.rv.tourism.R2
;
import
com.rv.tourism.R2
;
import
com.rv.tourism.api.TourismApi
;
import
com.rv.tourism.api.TourismApi
;
...
@@ -65,7 +69,7 @@ import static com.ruiwenliu.wrapper.weight.webview.SafeWebView.hasKitkat;
...
@@ -65,7 +69,7 @@ import static com.ruiwenliu.wrapper.weight.webview.SafeWebView.hasKitkat;
public
class
TravelDetailsActivity
extends
BaseStatusActivity
<
TourismPresenter
>
{
public
class
TravelDetailsActivity
extends
BaseStatusActivity
<
TourismPresenter
>
{
@BindView
(
R2
.
id
.
webView
)
@BindView
(
R2
.
id
.
webView
)
WebView
mWebView
;
Progress
WebView
mWebView
;
@BindView
(
R2
.
id
.
tv_center
)
@BindView
(
R2
.
id
.
tv_center
)
TextView
tvTitleCenter
;
TextView
tvTitleCenter
;
@BindView
(
R2
.
id
.
iv_collect
)
@BindView
(
R2
.
id
.
iv_collect
)
...
@@ -82,6 +86,7 @@ public class TravelDetailsActivity extends BaseStatusActivity<TourismPresenter>
...
@@ -82,6 +86,7 @@ public class TravelDetailsActivity extends BaseStatusActivity<TourismPresenter>
private
BeanOrderParam
beanOrderParam
;
private
BeanOrderParam
beanOrderParam
;
private
String
mCollectId
;
private
String
mCollectId
;
private
static
String
isCollection
=
"0"
;
//0 没有收藏 1 收藏
private
static
String
isCollection
=
"0"
;
//0 没有收藏 1 收藏
private
ClipboardManager
myClipboard
;
@Autowired
()
@Autowired
()
String
id
;
String
id
;
...
@@ -283,17 +288,23 @@ public class TravelDetailsActivity extends BaseStatusActivity<TourismPresenter>
...
@@ -283,17 +288,23 @@ public class TravelDetailsActivity extends BaseStatusActivity<TourismPresenter>
// 如果此设置是允许,则 setAllowFileAccessFromFileURLs 不起做用
// 如果此设置是允许,则 setAllowFileAccessFromFileURLs 不起做用
webSettings
.
setAllowUniversalAccessFromFileURLs
(
true
);
webSettings
.
setAllowUniversalAccessFromFileURLs
(
true
);
mWebView
.
addJavascriptInterface
(
new
AndroidJs
(),
"AndroidJs"
);
mWebView
.
addJavascriptInterface
(
new
AndroidJs
(),
"AndroidJs"
);
mWebView
.
loadUrl
(
webUrl
);
mWebView
.
setWebViewClient
(
new
WebViewClient
(){
mWebView
.
setWebChromeClient
(
new
WebChromeClient
()
{
@Override
@Override
public
void
onProgressChanged
(
WebView
view
,
int
newProgress
)
{
public
boolean
shouldOverrideUrlLoading
(
WebView
view
,
String
url
)
{
super
.
onProgressChanged
(
view
,
newProgress
);
return
false
;
if
(
newProgress
==
100
)
{
onHideLoading
();
}
}
}
});
});
mWebView
.
loadUrl
(
webUrl
);
// mWebView.setWebChromeClient(new WebChromeClient() {
// @Override
// public void onProgressChanged(WebView view, int newProgress) {
// super.onProgressChanged(view, newProgress);
// if (newProgress == 100) {
// onHideLoading();
// }
// }
// });
}
}
/**
/**
...
@@ -306,9 +317,14 @@ public class TravelDetailsActivity extends BaseStatusActivity<TourismPresenter>
...
@@ -306,9 +317,14 @@ public class TravelDetailsActivity extends BaseStatusActivity<TourismPresenter>
public
void
onclick
(
SnsPlatform
snsPlatform
,
SHARE_MEDIA
share_media
)
{
public
void
onclick
(
SnsPlatform
snsPlatform
,
SHARE_MEDIA
share_media
)
{
if
(
snsPlatform
.
mShowWord
.
equals
(
"生成海报"
))
{
if
(
snsPlatform
.
mShowWord
.
equals
(
"生成海报"
))
{
// startActivity(ShareImageActivity.getIntent(mActivity, mCarBean));
ARouter
.
getInstance
()
.
build
(
Constance
.
ACTIVITY_URL_SHAREIMAGE
)
.
withString
(
"icon"
,
url
)
.
withString
(
"name"
,
name
)
.
withString
(
"keyword"
,
content
)
.
withDouble
(
"price"
,
0
).
navigation
();
}
else
if
(
snsPlatform
.
mShowWord
.
equals
(
"复制链接"
))
{
}
else
if
(
snsPlatform
.
mShowWord
.
equals
(
"复制链接"
))
{
//
copyText();
copyText
();
}
}
shareManager
.
showShare
(
share_media
,
webUrl
,
name
,
content
,
logo
shareManager
.
showShare
(
share_media
,
webUrl
,
name
,
content
,
logo
...
@@ -399,7 +415,7 @@ public class TravelDetailsActivity extends BaseStatusActivity<TourismPresenter>
...
@@ -399,7 +415,7 @@ public class TravelDetailsActivity extends BaseStatusActivity<TourismPresenter>
new
TypeToken
<
BeanOrderParam
>()
{
new
TypeToken
<
BeanOrderParam
>()
{
}.
getType
());
}.
getType
());
if
(
Integer
.
valueOf
(
beanOrderParam
.
getAdultNum
())
<
Integer
.
valueOf
(
beanOrderParam
.
getChildNum
())){
if
(
Integer
.
valueOf
(
beanOrderParam
.
getAdultNum
())
<
Integer
.
valueOf
(
beanOrderParam
.
getChildNum
())){
showToast
(
"
儿童数要大于或等于成人
数"
);
showToast
(
"
成人数要大于或等于儿童
数"
);
}
else
if
(
Integer
.
valueOf
(
beanOrderParam
.
getAdultNum
())
==
0
){
}
else
if
(
Integer
.
valueOf
(
beanOrderParam
.
getAdultNum
())
==
0
){
showToast
(
"成人数不能为空!"
);
showToast
(
"成人数不能为空!"
);
}
else
{
}
else
{
...
@@ -502,4 +518,17 @@ public class TravelDetailsActivity extends BaseStatusActivity<TourismPresenter>
...
@@ -502,4 +518,17 @@ public class TravelDetailsActivity extends BaseStatusActivity<TourismPresenter>
this
.
status
=
status
;
this
.
status
=
status
;
}
}
}
}
/**
* 复制文本
*/
private
void
copyText
()
{
if
(
myClipboard
==
null
)
{
myClipboard
=
(
ClipboardManager
)
getSystemService
(
CLIPBOARD_SERVICE
);
}
ClipData
myClip
=
ClipData
.
newPlainText
(
"text"
,
webUrl
);
myClipboard
.
setPrimaryClip
(
myClip
);
showToast
(
"复制成功!"
);
}
}
}
module_tourism/src/main/res/layout/activity_travel_details.xml
View file @
c5b840af
...
@@ -62,19 +62,13 @@
...
@@ -62,19 +62,13 @@
<include
layout=
"@layout/common_line"
/>
<include
layout=
"@layout/common_line"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:orientation=
"vertical"
>
<
WebView
<com.rv.component.control.Progress
WebView
android:id=
"@+id/webView"
android:id=
"@+id/webView"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
/
>
android:layout_weight=
"1"
></com.rv.component.control.ProgressWebView
>
</LinearLayout>
<include
layout=
"@layout/common_line"
/>
<include
layout=
"@layout/common_line"
/>
...
...
plugin_calendar/src/main/java/com/rv/plugin/calendar/CalendarActivity.java
View file @
c5b840af
...
@@ -57,7 +57,7 @@ public class CalendarActivity extends BaseStatusActivity<CalendarPresenter> {
...
@@ -57,7 +57,7 @@ public class CalendarActivity extends BaseStatusActivity<CalendarPresenter> {
/**
/**
* 最大的日历期限
* 最大的日历期限
*/
*/
private
final
int
MAX_SPAN
=
3
66
;
private
final
int
MAX_SPAN
=
3
0
;
private
int
spanIndex
=
1
;
private
int
spanIndex
=
1
;
...
...
plugin_search/src/main/java/com/rv/search/TravelSearchActivity.java
View file @
c5b840af
...
@@ -149,7 +149,7 @@ public class TravelSearchActivity extends BaseStatusActivity<SearchPresenter> {
...
@@ -149,7 +149,7 @@ public class TravelSearchActivity extends BaseStatusActivity<SearchPresenter> {
map
.
put
(
"limit"
,
"10"
);
map
.
put
(
"limit"
,
"10"
);
map
.
put
(
"latitudel"
,
latLatitude
);
map
.
put
(
"latitudel"
,
latLatitude
);
map
.
put
(
"longitude"
,
lonLongitude
);
map
.
put
(
"longitude"
,
lonLongitude
);
mPresenter
.
getData
(
0
,
SearchApi
.
QUERY_RIM_LIST
,
BeanTravelSearch
.
class
,
map
,
fals
e
);
mPresenter
.
getData
(
0
,
SearchApi
.
QUERY_RIM_LIST
,
BeanTravelSearch
.
class
,
map
,
tru
e
);
}
}
}
}
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