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
42f9ce5c
Commit
42f9ce5c
authored
Aug 09, 2019
by
linfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
fc2019fb
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
11 deletions
+52
-11
DiscoveryApi.java
...ry/src/main/java/com/xxfc/discovery/api/DiscoveryApi.java
+2
-2
HomeFragment.java
...java/com/rv/home/rv/module/ui/main/home/HomeFragment.java
+7
-3
DepositefundProgressDetailsActivity.java
.../main/home/order/DepositefundProgressDetailsActivity.java
+24
-0
ForPaymentFragment.java
...home/rv/module/ui/main/home/order/ForPaymentFragment.java
+16
-4
activity_mine.xml
module_mine/src/main/res/layout/activity_mine.xml
+3
-2
No files found.
module_discovery/src/main/java/com/xxfc/discovery/api/DiscoveryApi.java
View file @
42f9ce5c
...
@@ -3,8 +3,8 @@ package com.xxfc.discovery.api;
...
@@ -3,8 +3,8 @@ package com.xxfc.discovery.api;
import
com.frame.rv.config.RvFrameConfig
;
import
com.frame.rv.config.RvFrameConfig
;
public
interface
DiscoveryApi
extends
RvFrameConfig
{
public
interface
DiscoveryApi
extends
RvFrameConfig
{
//
String IMA_BASEUSRL = "https://imapi.dfangche.com";
String
IMA_BASEUSRL
=
"https://imapi.dfangche.com"
;
String
IMA_BASEUSRL
=
"https://xxfcim.upyuns.com/xxfcim"
;
//
String IMA_BASEUSRL = "https://xxfcim.upyuns.com/xxfcim";
//问题列表
//问题列表
String
DISCOVERY_IMQUESTION_LIST
=
HOST
+
"/api/im/imQuestion/list"
;
String
DISCOVERY_IMQUESTION_LIST
=
HOST
+
"/api/im/imQuestion/list"
;
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/HomeFragment.java
View file @
42f9ce5c
...
@@ -632,7 +632,6 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
...
@@ -632,7 +632,6 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
}
}
private
void
setRecommendGood
(
HomeHotGoodListBean
data
)
{
private
void
setRecommendGood
(
HomeHotGoodListBean
data
)
{
mAdapter
.
getData
().
clear
();
mAdapter
.
setType
(
hotType
);
mAdapter
.
setType
(
hotType
);
mAdapter
.
setNewData
(
data
.
getData
());
mAdapter
.
setNewData
(
data
.
getData
());
}
}
...
@@ -803,7 +802,8 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
...
@@ -803,7 +802,8 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
tvHotEntertainmentCamp
.
getPaint
().
setFakeBoldText
(
false
);
tvHotEntertainmentCamp
.
getPaint
().
setFakeBoldText
(
false
);
tvHotCarRental
.
getPaint
().
setFakeBoldText
(
false
);
tvHotCarRental
.
getPaint
().
setFakeBoldText
(
false
);
tvSeeMorePopular
.
setText
(
"更多热门旅行线路"
);
tvSeeMorePopular
.
setText
(
"更多热门旅行线路"
);
mAdapter
.
getData
().
clear
();
mAdapter
.
notifyDataSetChanged
();
recommendGood
(
"2"
);
recommendGood
(
"2"
);
hotType
=
"2"
;
hotType
=
"2"
;
...
@@ -823,7 +823,8 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
...
@@ -823,7 +823,8 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
tvHotEntertainmentCamp
.
getPaint
().
setFakeBoldText
(
true
);
tvHotEntertainmentCamp
.
getPaint
().
setFakeBoldText
(
true
);
tvHotCarRental
.
getPaint
().
setFakeBoldText
(
false
);
tvHotCarRental
.
getPaint
().
setFakeBoldText
(
false
);
tvSeeMorePopular
.
setText
(
"更多娱乐营地"
);
tvSeeMorePopular
.
setText
(
"更多娱乐营地"
);
mAdapter
.
getData
().
clear
();
mAdapter
.
notifyDataSetChanged
();
recommendGood
(
"3"
);
recommendGood
(
"3"
);
hotType
=
"3"
;
hotType
=
"3"
;
}
else
if
(
id
==
R
.
id
.
ll_item_hot_car_rental
)
{
}
else
if
(
id
==
R
.
id
.
ll_item_hot_car_rental
)
{
...
@@ -843,8 +844,11 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
...
@@ -843,8 +844,11 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
tvHotCarRental
.
getPaint
().
setFakeBoldText
(
true
);
tvHotCarRental
.
getPaint
().
setFakeBoldText
(
true
);
tvSeeMorePopular
.
setText
(
"更多优质车型"
);
tvSeeMorePopular
.
setText
(
"更多优质车型"
);
mAdapter
.
getData
().
clear
();
mAdapter
.
notifyDataSetChanged
();
recommendGood
(
"4"
);
recommendGood
(
"4"
);
hotType
=
"1"
;
hotType
=
"1"
;
}
else
if
(
id
==
R
.
id
.
tv_see_more_popular
)
{
}
else
if
(
id
==
R
.
id
.
tv_see_more_popular
)
{
//查看更多热门
//查看更多热门
if
(
"2"
.
equals
(
hotType
))
{
if
(
"2"
.
equals
(
hotType
))
{
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/order/DepositefundProgressDetailsActivity.java
View file @
42f9ce5c
...
@@ -12,7 +12,13 @@ import android.webkit.WebSettings;
...
@@ -12,7 +12,13 @@ import android.webkit.WebSettings;
import
android.webkit.WebView
;
import
android.webkit.WebView
;
import
android.webkit.WebViewClient
;
import
android.webkit.WebViewClient
;
import
android.widget.ProgressBar
;
import
android.widget.ProgressBar
;
import
com.base.utils.tools.android.IntentUtil
;
import
com.base.utils.ui.datetime.selector.util.TextUtil
;
import
com.google.gson.Gson
;
import
com.google.gson.reflect.TypeToken
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.browse.ActivityImageBrowseUrl
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.rv.home.R
;
import
com.rv.home.R
;
import
com.rv.home.R2
;
import
com.rv.home.R2
;
...
@@ -21,6 +27,9 @@ import com.rv.home.rv.module.basic.BaseStatusActivity;
...
@@ -21,6 +27,9 @@ import com.rv.home.rv.module.basic.BaseStatusActivity;
import
com.rv.home.rv.module.basic.presenter.PickerPresenter
;
import
com.rv.home.rv.module.basic.presenter.PickerPresenter
;
import
com.yuyife.okgo.OkGoUtil
;
import
com.yuyife.okgo.OkGoUtil
;
import
java.util.ArrayList
;
import
java.util.List
;
import
butterknife.BindView
;
import
butterknife.BindView
;
import
static
com
.
ruiwenliu
.
wrapper
.
weight
.
webview
.
SafeWebView
.
hasKitkat
;
import
static
com
.
ruiwenliu
.
wrapper
.
weight
.
webview
.
SafeWebView
.
hasKitkat
;
...
@@ -117,10 +126,25 @@ public class DepositefundProgressDetailsActivity extends BaseStatusActivity<Pick
...
@@ -117,10 +126,25 @@ public class DepositefundProgressDetailsActivity extends BaseStatusActivity<Pick
}
}
public
class
AndroidJs
{
public
class
AndroidJs
{
@JavascriptInterface
@JavascriptInterface
public
String
getToken
()
{
public
String
getToken
()
{
return
OkGoUtil
.
getToken
();
return
OkGoUtil
.
getToken
();
}
}
@JavascriptInterface
public
void
showImage
(
int
selectPosition
,
String
imageJson
)
{
if
(!
TextUtil
.
isEmpty
(
imageJson
))
{
List
<
String
>
imagesList
=
new
Gson
().
fromJson
(
imageJson
,
new
TypeToken
<
List
<
String
>>()
{
}.
getType
());
Bundle
bundle
=
new
Bundle
();
bundle
.
putInt
(
ActivityImageBrowseUrl
.
KEY_BACKGROUND
,
R
.
color
.
colorPrimary
);
bundle
.
putInt
(
ActivityImageBrowseUrl
.
KEY_SELECTPOSITION
,
selectPosition
);
bundle
.
putStringArrayList
(
ActivityImageBrowseUrl
.
KEY_IMAGE
,
(
ArrayList
<
String
>)
imagesList
);
IntentUtil
.
startActivity
(
mActivity
,
ActivityImageBrowseUrl
.
class
,
bundle
);
}
}
}
}
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/order/ForPaymentFragment.java
View file @
42f9ce5c
...
@@ -16,6 +16,8 @@ import android.view.View;
...
@@ -16,6 +16,8 @@ import android.view.View;
import
com.alipay.sdk.app.PayTask
;
import
com.alipay.sdk.app.PayTask
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.chad.library.adapter.base.entity.MultiItemEntity
;
import
com.chad.library.adapter.base.entity.MultiItemEntity
;
import
com.frame.base.bus.CancelOrderEvent
;
import
com.frame.base.bus.Observer
;
import
com.frame.base.bus.PaymentSuccessfulEvent
;
import
com.frame.base.bus.PaymentSuccessfulEvent
;
import
com.frame.base.bus.RxBus
;
import
com.frame.base.bus.RxBus
;
import
com.frame.rv.config.RvFrameConfig
;
import
com.frame.rv.config.RvFrameConfig
;
...
@@ -138,12 +140,12 @@ public class ForPaymentFragment extends BaseFragment<CommonPresenter> implements
...
@@ -138,12 +140,12 @@ public class ForPaymentFragment extends BaseFragment<CommonPresenter> implements
}
}
private
Disposable
disposable
;
private
Disposable
disposable
s
;
@SuppressLint
(
"CheckResult"
)
@SuppressLint
(
"CheckResult"
)
private
void
initRxBus
()
{
private
void
initRxBus
()
{
disposable
=
RxBus
.
tObservable
(
PaymentSuccessfulEvent
.
class
)
disposable
s
=
RxBus
.
tObservable
(
PaymentSuccessfulEvent
.
class
)
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
(
new
Consumer
<
PaymentSuccessfulEvent
>()
{
.
subscribe
(
new
Consumer
<
PaymentSuccessfulEvent
>()
{
@Override
@Override
...
@@ -164,13 +166,23 @@ public class ForPaymentFragment extends BaseFragment<CommonPresenter> implements
...
@@ -164,13 +166,23 @@ public class ForPaymentFragment extends BaseFragment<CommonPresenter> implements
}
}
}
}
});
});
RxBus
.
tObservable
(
CancelOrderEvent
.
class
)
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
(
new
Observer
<
CancelOrderEvent
>(
disposable
)
{
@Override
public
void
onNext
(
CancelOrderEvent
event
)
{
onRefresh
();
}
});
}
}
@Override
@Override
public
void
onDestroyView
()
{
public
void
onDestroyView
()
{
super
.
onDestroyView
();
super
.
onDestroyView
();
if
(
disposable
!=
null
&&
!
disposable
.
isDisposed
())
{
if
(
disposable
s
!=
null
&&
!
disposables
.
isDisposed
())
{
disposable
.
dispose
();
disposable
s
.
dispose
();
}
}
}
}
...
...
module_mine/src/main/res/layout/activity_mine.xml
View file @
42f9ce5c
...
@@ -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"
>
...
@@ -268,7 +269,7 @@
...
@@ -268,7 +269,7 @@
android:clickable=
"false"
android:clickable=
"false"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:visibility=
"visible"
>
android:visibility=
"
in
visible"
>
<ImageView
<ImageView
android:layout_width=
"@dimen/size_25"
android:layout_width=
"@dimen/size_25"
...
...
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