Commit eb752a18 authored by jianglx's avatar jianglx

2019-8-2 改bug

parent 47c4d8da
......@@ -75,7 +75,7 @@ public class CityListActivity extends BaseStatusActivity<CommonPresenter> {
@Override
protected void initView(Bundle savedInstanceState, TitleView titleView, Intent intent) {
titleView.setTitle(mActivity.getString(R.string.rv_city_list));
titleView.setImageResource(R.id.iv_title_left, R.drawable.rv_common_icon_back_white);
titleView.setImageResource(R.id.iv_title_left, R.drawable.rv_common_icon_back_dark);
cityListAdapter = new CityListAdapter(new ArrayList<MultiItemBean>(), listener, mNowCity);
recyclerView.setLayoutManager(new GridLayoutManager(this, 6));
recyclerView.setAdapter(cityListAdapter);
......
......@@ -97,7 +97,7 @@ public class SelectShopActivity extends BaseStatusActivity<CommonPresenter> impl
} else if (shopType == 2) {
titleView.setTitle("选择还车公司");
}
titleView.setImageResource(R.id.iv_title_left, R.drawable.rv_common_icon_back_white);
titleView.setImageResource(R.id.iv_title_left, R.drawable.rv_common_icon_back_dark);
Drawable drawable = getResources().getDrawable(R.drawable.icon_position);
drawable.setBounds(0, 0, DisplayUtil.dip2px(this, 12), DisplayUtil.dip2px(this, 15));
tvCurrentCity.setCompoundDrawables(drawable, null, null, null);
......
......@@ -6,17 +6,16 @@
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"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.rv.component.utils.ObservableScrollView
android:id="@+id/scrollview"
android:scrollbars="none"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:scrollbars="none">
<LinearLayout
android:layout_width="match_parent"
......@@ -608,7 +607,8 @@
android:drawableRight="@drawable/common_icon_rig_black_gray"
android:drawablePadding="@dimen/size_5"
android:text="全部"
android:textSize="@dimen/text_10" />
android:textSize="@dimen/text_10"
android:visibility="gone" />
</LinearLayout>
<android.support.v7.widget.RecyclerView
......@@ -1021,9 +1021,9 @@
</com.ruiwenliu.wrapper.weight.refresh.SimpleRefreshLayout>
<com.ruiwenliu.wrapper.statusbar.StatusBarHeightView
android:id="@+id/ll_item_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/ll_item_title"
android:orientation="vertical"
app:use_type="use_padding_top">
......
......@@ -17,7 +17,6 @@
android:layout_marginBottom="5dp"
android:background="@drawable/shape_rv_textview_home_search"
android:gravity="center"
android:hint="上海"
android:orientation="horizontal"
android:textColor="@color/colorMain"
android:textColorHint="@color/colorMain"
......
......@@ -361,12 +361,13 @@ public class TourismFragment extends BaseFragment<TourismPresenter> implements
@Override
public void OnBannerClick(int position) {
BeanTourismBanner.DataBean dataBean = banners.get(position);
ComponentName componentName = new ComponentName(getActivity(), "com.rv.share.WebViewActivity");
Intent intent = new Intent();
intent.setComponent(componentName);
intent.putExtra("url", dataBean.getUrl());
intent.putExtra("title", dataBean.getTitle());
startActivity(intent);
mPresenter.toTarget(getActivity(),dataBean.getUrl(),dataBean.getTitle());
// ComponentName componentName = new ComponentName(getActivity(), "com.rv.share.WebViewActivity");
// Intent intent = new Intent();
// intent.setComponent(componentName);
// intent.putExtra("url", dataBean.getUrl());
// intent.putExtra("title", dataBean.getTitle());
// startActivity(intent);
// BeanTourismBanner.DataBean dataBean = banners.get(position);
// ARouter.getInstance()
// .build(Constance.ACTIVITY_URL_TRAVELDETAILS)
......
......@@ -122,7 +122,7 @@ public class TravelDetailsActivity extends BaseStatusActivity<TourismPresenter>
protected void initView(Bundle savedInstanceState, TitleView titleView, Intent intent) {
showTitle(false);
tvTitleCenter.setText("旅游详情");
webUrl = "https://xxtest.upyuns.com/h5/appHtml/view/travelDetails.html?id=" + id;
webUrl = RvFrameConfig.HOST + "/h5/appHtml/view/travelDetails.html?id=" + id;
initWeb();
initRxbus();
initShare(webUrl+"&shareType=app", name, content, url);
......
package com.rv.tourism.presenter;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;
import com.frame.rv.config.RvFrameConfig;
import com.ruiwenliu.wrapper.presenter.MvpPresenter;
......@@ -19,4 +24,45 @@ public class TourismPresenter extends MvpPresenter {
public String getBaseUrl() {
return RvFrameConfig.AUTH_POST;
}
/******
* 打开目标页面
* @param context
* @param url
* @param title
*/
public void toTarget(Context context, String url, String title) {
if (url.startsWith("http")) {
ComponentName componentName = new ComponentName(context, "com.rv.share.WebViewActivity");
Intent intent = new Intent();
intent.setComponent(componentName);
intent.putExtra("url", url);
intent.putExtra("title", title);
context.startActivity(intent);
} else if (url.startsWith("app:")) {
String target = null;
String[] params = null;
if (url.contains("?")) {
target = url.substring(url.indexOf(":") + 1, url.indexOf("?"));
String paramsString = url.substring(url.indexOf("?") + 1);
params = paramsString.split("&");
} else {
target = url.substring(url.indexOf(":") + 1);
}
if (!TextUtils.isEmpty(target)) {
ComponentName componentName = new ComponentName(context, target);
Intent intent = new Intent();
intent.setComponent(componentName);
if (params != null && params.length > 0) {
for (String param : params) {
String[] values = param.split("=");
if (values.length == 2) {
intent.putExtra(values[0], values[1]);
}
}
}
context.startActivity(intent);
}
}
}
}
......@@ -97,7 +97,7 @@ public class ConsumeRecordActivity extends BaseStatusActivity<CommonPresenter> i
// bodyMap.put("status", "3");
bodyMap.put("hasMemberRight", 1);
bodyMap.put("type", 1);
bodyMap.put("multiStatus", "3,4,5,6");
// bodyMap.put("multiStatus", "3,4,5,6");
mPresenter.getData(RvFrameConfig.VEHICLE_ORDER, position, ApiConfig.HTTP_URL_ORDER_LIST, OrderListBean.class, bodyMap, headMap, mPage == 1 ? true : false);
}
......
......@@ -34,10 +34,11 @@ public class ConsumeRecordListAdapter extends BaseQuickAdapter<OrderListBean.Dat
if (bean != null) {
if (!TextUtils.isEmpty(bean.getCrtTime())) {
helper.setText(R.id.tv_consume_time, "下单时间: " + bean.getCrtTime());
if (bean.getStatusX() == 3) {
if(bean.getStatusX() == 2){
helper.setText(R.id.tv_state, "已取消");
} else if (bean.getStatusX() == 3) {
helper.setText(R.id.tv_state, "待支付");
}
if (bean.getStatusX() == 4) {
} else if (bean.getStatusX() == 4) {
helper.setText(R.id.tv_state, "待出行");
} else if (bean.getStatusX() == 5) {
helper.setText(R.id.tv_state, "出行中");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment