Commit 2dcc72ef authored by linfeng's avatar linfeng

活动记录、8.0闪退等bug修复和优化

parent 095ceae1
...@@ -166,7 +166,8 @@ ...@@ -166,7 +166,8 @@
<category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" /> <category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="tencent100424468" /> <!--<data android:scheme="tencent100424468" />-->
<data android:scheme="tencent1109685555" />
</intent-filter> </intent-filter>
</activity> </activity>
<activity <activity
...@@ -177,8 +178,7 @@ ...@@ -177,8 +178,7 @@
<activity <activity
android:name=".MainActivity" android:name=".MainActivity"
android:launchMode="singleTask" android:launchMode="singleTask" />
android:screenOrientation="portrait" />
<activity <activity
android:name="com.rv.home.rv.module.ui.login.LoginRvActivity" android:name="com.rv.home.rv.module.ui.login.LoginRvActivity"
android:screenOrientation="portrait" /> android:screenOrientation="portrait" />
......
...@@ -156,7 +156,7 @@ public class RvClientApplication extends FrameApp { ...@@ -156,7 +156,7 @@ public class RvClientApplication extends FrameApp {
// PlatformConfig.setWeixin(RvFrameConfig.APP_ID, "088effbd5e5c5340779d512f87fab15e"); // PlatformConfig.setWeixin(RvFrameConfig.APP_ID, "088effbd5e5c5340779d512f87fab15e");
PlatformConfig.setWeixin(RvFrameConfig.APP_ID, "128cf4ad74b73c16ae5c5b3601da3f27"); PlatformConfig.setWeixin(RvFrameConfig.APP_ID, "128cf4ad74b73c16ae5c5b3601da3f27");
PlatformConfig.setQQZone("100424468", "c7394704798a158208a74ab60104f0ba"); PlatformConfig.setQQZone("1109685555", "c7394704798a158208a74ab60104f0ba");
} }
......
...@@ -47,7 +47,7 @@ public class WelcomeActivity extends BaseActivity<CommonPresenter> { ...@@ -47,7 +47,7 @@ public class WelcomeActivity extends BaseActivity<CommonPresenter> {
@Override @Override
protected void loadData(Bundle savedInstanceState, Intent intent) { protected void loadData(Bundle savedInstanceState, Intent intent) {
mPresenter.saveOnclick("8", "");
} }
@Override @Override
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
<item name="android:backgroundDimAmount">0.6</item> <item name="android:backgroundDimAmount">0.6</item>
</style> </style>
<style name="AppTheme.NoActionBar.SwipeBack"> <style name="AppTheme.NoActionBar.SwipeBack">
<item name="android:windowIsTranslucent">true</item> <!--<item name="android:windowIsTranslucent">false</item>-->
</style> </style>
......
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/common_icon_select_dark" android:state_selected="true"/>
<item android:drawable="@drawable/common_icon_unselect_dark" android:state_selected="false"/>
</selector>
\ No newline at end of file
...@@ -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";
......
...@@ -182,14 +182,10 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa ...@@ -182,14 +182,10 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
private ArrayList<String> images = new ArrayList<>(); //图片(默认采用网络地址) private ArrayList<String> images = new ArrayList<>(); //图片(默认采用网络地址)
private List<String> titles = new ArrayList<>(); //图片标题 private List<String> titles = new ArrayList<>(); //图片标题
Unbinder unbinder1;
private final int TYPE_REQUEST_CITY = 1;//城市列表 private final int TYPE_REQUEST_CITY = 1;//城市列表
private final int REQUEST_GET_CODE = 10001; // 取车地址选择请求码 private final int REQUEST_GET_CODE = 10001; // 取车地址选择请求码
private final int REQUEST_RETURN_CODE = 10002; // 换车地址选择请求码 private final int REQUEST_RETURN_CODE = 10002; // 换车地址选择请求码
Unbinder unbinder2;
Unbinder unbinder3;
private String nowCity = ""; private String nowCity = "";
private int getSwitchType;//取车开关类型 private int getSwitchType;//取车开关类型
...@@ -306,6 +302,7 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa ...@@ -306,6 +302,7 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
@Override @Override
public void onItemClick(BaseQuickAdapter adapter, View view, int position) { public void onItemClick(BaseQuickAdapter adapter, View view, int position) {
SelectedActivitiesBean.SelectedActivityItem item = (SelectedActivitiesBean.SelectedActivityItem) adapter.getItem(position); SelectedActivitiesBean.SelectedActivityItem item = (SelectedActivitiesBean.SelectedActivityItem) adapter.getItem(position);
mPresenter.saveOnclick("3", String.valueOf(item.getId()));
if (item != null && !TextUtils.isEmpty(item.getUrl()) && !TextUtils.isEmpty(item.getName())) { if (item != null && !TextUtils.isEmpty(item.getUrl()) && !TextUtils.isEmpty(item.getName())) {
mPresenter.toTarget(getActivity(), item.getUrl(), item.getName()); mPresenter.toTarget(getActivity(), item.getUrl(), item.getName());
} }
...@@ -1261,15 +1258,15 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa ...@@ -1261,15 +1258,15 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
if (result == null || result.error != SearchResult.ERRORNO.NO_ERROR) { if (result == null || result.error != SearchResult.ERRORNO.NO_ERROR) {
//没有检索到结果 //没有检索到结果
} else { } else {
latLatitude = result.getLocation().latitude; // latLatitude = result.getLocation().latitude;
lonLongitude = result.getLocation().longitude; // lonLongitude = result.getLocation().longitude;
getLatitude = result.getLocation().latitude; // getLatitude = result.getLocation().latitude;
getLongitude = result.getLocation().longitude; // getLongitude = result.getLocation().longitude;
outLatitude = result.getLocation().latitude; // outLatitude = result.getLocation().latitude;
outLongitude = result.getLocation().longitude; // outLongitude = result.getLocation().longitude;
rvTourLatitude = result.getLocation().latitude; rvTourLatitude = result.getLocation().latitude;
rvTourLongitude = result.getLocation().longitude; rvTourLongitude = result.getLocation().longitude;
getShopList(false); // getShopList(false);
} }
//获取地理编码结果 //获取地理编码结果
} }
...@@ -1279,15 +1276,15 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa ...@@ -1279,15 +1276,15 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
if (result == null || result.error != SearchResult.ERRORNO.NO_ERROR) { if (result == null || result.error != SearchResult.ERRORNO.NO_ERROR) {
//没有找到检索结果 //没有找到检索结果
} else { } else {
latLatitude = result.getLocation().latitude; // latLatitude = result.getLocation().latitude;
lonLongitude = result.getLocation().longitude; // lonLongitude = result.getLocation().longitude;
getLatitude = result.getLocation().latitude; // getLatitude = result.getLocation().latitude;
getLongitude = result.getLocation().longitude; // getLongitude = result.getLocation().longitude;
outLatitude = result.getLocation().latitude; // outLatitude = result.getLocation().latitude;
outLongitude = result.getLocation().longitude; // outLongitude = result.getLocation().longitude;
rvTourLatitude = result.getLocation().latitude; rvTourLatitude = result.getLocation().latitude;
rvTourLongitude = result.getLocation().longitude; rvTourLongitude = result.getLocation().longitude;
getShopList(false); // getShopList(false);
} }
} }
}); });
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<item name="android:backgroundDimAmount">0.6</item> <item name="android:backgroundDimAmount">0.6</item>
</style> </style>
<style name="AppTheme.NoActionBar.SwipeBack"> <style name="AppTheme.NoActionBar.SwipeBack">
<item name="android:windowIsTranslucent">true</item> <!--<item name="android:windowIsTranslucent">true</item>-->
</style> </style>
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
<item name="windowNoTitle">true</item> <item name="windowNoTitle">true</item>
</style> </style>
<style name="RvTheme.NoActionBar.SwipeBack"> <style name="RvTheme.NoActionBar.SwipeBack">
<item name="android:windowIsTranslucent">true</item> <!--<item name="android:windowIsTranslucent">true</item>-->
</style> </style>
......
...@@ -377,6 +377,7 @@ public class MineFragment extends BaseFragment<CommonPresenter> implements Simpl ...@@ -377,6 +377,7 @@ public class MineFragment extends BaseFragment<CommonPresenter> implements Simpl
tvIntegral.setText("0"); tvIntegral.setText("0");
tvWallet.setText("0"); tvWallet.setText("0");
tvCoupon.setText("0"); tvCoupon.setText("0");
mSimpleRefreshLayout.setPullDownEnable(false);
} }
} }
......
...@@ -117,13 +117,15 @@ public class PersonalInformationActivity extends BaseStatusActivity<PickerPresen ...@@ -117,13 +117,15 @@ public class PersonalInformationActivity extends BaseStatusActivity<PickerPresen
ivAvatarUrl = info.getHeadimgurl(); ivAvatarUrl = info.getHeadimgurl();
mWXOpenid = info.getWxOpenid(); mWXOpenid = info.getWxOpenid();
mUnionid = info.getUnionid(); mUnionid = info.getUnionid();
mQQOpenid =info.getOpenid() ; mQQOpenid = info.getOpenid();
GlideManager.getInstance(mActivity).loadImage(info.getHeadimgurl(), ivAvatar); GlideManager.getInstance(mActivity).loadImage(info.getHeadimgurl(), ivAvatar);
if (info.getNickname() != null) { if (info.getNickname() != null) {
etNickname.setText(info.getNickname()); etNickname.setText(info.getNickname());
if (!TextUtils.isEmpty(info.getNickname())) {
etNickname.setSelection(info.getNickname().length()); etNickname.setSelection(info.getNickname().length());
} }
}
if (info.getRealname() != null) { if (info.getRealname() != null) {
etName.setText(info.getRealname()); etName.setText(info.getRealname());
} }
...@@ -364,7 +366,7 @@ public class PersonalInformationActivity extends BaseStatusActivity<PickerPresen ...@@ -364,7 +366,7 @@ public class PersonalInformationActivity extends BaseStatusActivity<PickerPresen
showToast("生日不为空!"); showToast("生日不为空!");
return; return;
} }
mPresenter.postBodyData(RvFrameConfig.ADMIN_POST, 1, ApiConfig.HTTP_URL_UPUSER_EDIT, BaseBean.class, new UserInfo(info.getId() + "", info.getUserid() + "", info.getUsername(), "0", nickName, info.getRealname(), ivAvatarUrl, birthday, sex,mWXOpenid,mUnionid,mQQOpenid), getHeadMap(), true); mPresenter.postBodyData(RvFrameConfig.ADMIN_POST, 1, ApiConfig.HTTP_URL_UPUSER_EDIT, BaseBean.class, new UserInfo(info.getId() + "", info.getUserid() + "", info.getUsername(), "0", nickName, info.getRealname(), ivAvatarUrl, birthday, sex, mWXOpenid, mUnionid, mQQOpenid), getHeadMap(), true);
} }
private Map<String, Object> getHeadMap() { private Map<String, Object> getHeadMap() {
...@@ -391,7 +393,7 @@ public class PersonalInformationActivity extends BaseStatusActivity<PickerPresen ...@@ -391,7 +393,7 @@ public class PersonalInformationActivity extends BaseStatusActivity<PickerPresen
mUnionid = data.get("unionid"); mUnionid = data.get("unionid");
mWXOpenid = data.get("openid"); mWXOpenid = data.get("openid");
tvBindingWx.setText("已绑定"); tvBindingWx.setText("已绑定");
}else { } else {
mQQOpenid = data.get("openid"); mQQOpenid = data.get("openid");
tvBindingQq.setText("已绑定"); tvBindingQq.setText("已绑定");
} }
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
android:layout_height="@dimen/size_50" android:layout_height="@dimen/size_50"
android:layout_gravity="bottom" android:layout_gravity="bottom"
android:layout_margin="@dimen/dp_10" android:layout_margin="@dimen/dp_10"
android:background="@drawable/shape_rv_bg_yellow" android:background="@drawable/shape_rv_bg_shallow_dark_yellow_circle"
android:gravity="center" android:gravity="center"
android:text="确定" android:text="确定"
android:textColor="@color/white" android:textColor="@color/white"
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<LinearLayout <LinearLayout
android:id="@+id/ll_item_select" android:id="@+id/ll_item_select"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/size_100" android:layout_height="@dimen/size_120"
android:layout_marginLeft="@dimen/size_15" android:layout_marginLeft="@dimen/size_15"
android:layout_marginTop="@dimen/size_15" android:layout_marginTop="@dimen/size_15"
android:layout_marginRight="@dimen/size_15" android:layout_marginRight="@dimen/size_15"
...@@ -20,14 +20,21 @@ ...@@ -20,14 +20,21 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:gravity="center_vertical"
android:orientation="vertical" android:orientation="vertical"
android:paddingLeft="@dimen/size_20"> android:paddingLeft="@dimen/size_20">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_marginRight="@dimen/size_20"
android:orientation="vertical">
<TextView <TextView
android:id="@+id/tv_name" android:id="@+id/tv_name"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/size_15"
android:text="租车券" android:text="租车券"
android:textColor="@color/colorMain" android:textColor="@color/colorMain"
android:textSize="@dimen/text_18" android:textSize="@dimen/text_18"
...@@ -37,10 +44,11 @@ ...@@ -37,10 +44,11 @@
android:id="@+id/tv_type" android:id="@+id/tv_type"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/size_2" android:layout_marginTop="@dimen/size_5"
android:text="不限车型" android:text="不限车型"
android:textColor="@color/textGray" android:textColor="@color/textGray"
android:textSize="@dimen/text_14" /> android:textSize="@dimen/text_14" />
</LinearLayout>
<TextView <TextView
android:id="@+id/tv_date" android:id="@+id/tv_date"
...@@ -49,6 +57,7 @@ ...@@ -49,6 +57,7 @@
android:layout_marginTop="@dimen/size_8" android:layout_marginTop="@dimen/size_8"
android:text="有效期至2019.12.31" android:text="有效期至2019.12.31"
android:textColor="@color/text_Gray" android:textColor="@color/text_Gray"
android:layout_marginBottom="@dimen/size_15"
android:textSize="@dimen/text_10" /> android:textSize="@dimen/text_10" />
</LinearLayout> </LinearLayout>
...@@ -61,18 +70,15 @@ ...@@ -61,18 +70,15 @@
android:orientation="horizontal" android:orientation="horizontal"
android:paddingLeft="@dimen/size_10"> android:paddingLeft="@dimen/size_10">
<LinearLayout <RelativeLayout
android:layout_width="0dp" android:layout_width="0dp"
android:layout_weight="1" android:layout_height="match_parent"
android:layout_height="wrap_content"> android:layout_weight="1">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:orientation="horizontal"> android:orientation="horizontal">
<TextView <TextView
...@@ -96,29 +102,31 @@ ...@@ -96,29 +102,31 @@
android:id="@+id/tv_condition" android:id="@+id/tv_condition"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="无门槛" android:layout_alignParentBottom="true"
android:layout_marginBottom="@dimen/size_15"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:text="无门槛"
android:textColor="@color/text_Gray" android:textColor="@color/text_Gray"
android:textSize="@dimen/text_10" /> android:textSize="@dimen/text_10" />
</LinearLayout> </RelativeLayout>
</LinearLayout>
<ImageView <ImageView
android:id="@+id/iv_select" android:id="@+id/iv_select"
android:layout_width="@dimen/size_20" android:layout_width="@dimen/size_20"
android:layout_height="@dimen/size_20" android:layout_height="@dimen/size_20"
android:layout_gravity="center_vertical|right"
android:layout_marginLeft="@dimen/size_10" android:layout_marginLeft="@dimen/size_10"
android:layout_marginRight="@dimen/size_20" android:layout_marginRight="@dimen/size_20"
android:layout_gravity="center_vertical|right" android:src="@drawable/selector_rv_icon_mark2" />
android:src="@drawable/selector_rv_icon_mark"/>
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
<TextView <TextView
android:visibility="visible"
android:id="@+id/tv_layout_gray" android:id="@+id/tv_layout_gray"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_marginTop="@dimen/size_15"
android:layout_height="@dimen/size_100" android:layout_height="@dimen/size_100"
android:background="@color/gray_50ffffff"/> android:layout_marginTop="@dimen/size_15"
android:background="@color/gray_50ffffff"
android:visibility="visible" />
</RelativeLayout> </RelativeLayout>
\ No newline at end of file
...@@ -10,7 +10,9 @@ ...@@ -10,7 +10,9 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textSize="@dimen/text_16" android:textSize="@dimen/text_16"
android:layout_margin="@dimen/size_15" android:textStyle="bold"
android:layout_marginTop="@dimen/size_15"
android:layout_marginLeft="@dimen/size_15"
android:textColor="@color/colorMain" android:textColor="@color/colorMain"
android:text="通用券"/> android:text="通用券"/>
......
...@@ -206,6 +206,11 @@ public class RvWebView extends WebView { ...@@ -206,6 +206,11 @@ public class RvWebView extends WebView {
listener.finish(); listener.finish();
} }
@JavascriptInterface
public String getUkID() {
return OkGoUtil.getYkId();
}
} }
public interface WebViewListener { public interface WebViewListener {
......
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