删除测试sn

This commit is contained in:
liujing
2020-08-03 11:43:17 +08:00
parent 003443e41c
commit 75c87c81a9
3 changed files with 20 additions and 7 deletions

View File

@@ -15,6 +15,7 @@ import androidx.recyclerview.widget.RecyclerView;
import com.alibaba.android.arouter.launcher.ARouter;
import com.mogo.commons.mvp.MvpFragment;
import com.mogo.commons.network.SubscribeImpl;
import com.mogo.commons.network.Utils;
import com.mogo.module.v2x.R;
import com.mogo.module.v2x.adapter.V2XShareEventAdapter;
import com.mogo.module.v2x.entity.panel.ShareEventDescription;
@@ -32,6 +33,8 @@ import com.mogo.service.MogoServicePaths;
import com.mogo.service.network.IMogoNetwork;
import com.mogo.utils.network.RequestOptions;
import com.mogo.utils.network.utils.GsonUtil;
import com.mogo.utils.network.utils.Util;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
@@ -97,7 +100,7 @@ public class V2XShareEventsFragment extends MvpFragment implements AdapterCallba
* */
private void getShareEventDescription() {
//ZD802B1932L00622 测试数据sn
ShareEventParameter parameter = new ShareEventParameter("ZD802B1932L00622");
ShareEventParameter parameter = new ShareEventParameter(Utils.getSn());
Map<String, Object> parameters = new HashMap<>();
parameters.put("data", GsonUtil.jsonFromObject(parameter));
@@ -128,7 +131,7 @@ public class V2XShareEventsFragment extends MvpFragment implements AdapterCallba
* 分享列表
* */
public void getShareEventList(int page, int size) {
ShareEventParameter parameter = new ShareEventParameter("ZD802B1932L00622", page, 10);
ShareEventParameter parameter = new ShareEventParameter(Utils.getSn(), page, 10);
HashMap<String, Object> parameters = new HashMap<>();
parameters.put("data", GsonUtil.jsonFromObject(parameter));
v2XAnimationManager.start();
@@ -181,6 +184,7 @@ public class V2XShareEventsFragment extends MvpFragment implements AdapterCallba
public void onError(String message, int code) {
super.onError(message, code);
countDownLatch.countDown();
v2XAnimationManager.stop();
}
});
}

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="match_parent">
<TextView
android:id="@+id/share_event_guide_des"
@@ -31,9 +31,9 @@
android:layout_below="@+id/share_event_null_des"
android:layout_centerHorizontal="true"
android:background="#FFFFFF"
android:text="去分享"
android:clickable="true"
android:onClick="shareEventAction"
android:text="去分享"
android:textSize="25sp" />
</RelativeLayout>

View File

@@ -8,15 +8,24 @@
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/road_case_share_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical"
android:overScrollMode="never"
android:background="#000000"
tools:itemCount="1"
tools:listitem="@layout/module_v2x_event_share_description"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" >
</androidx.recyclerview.widget.RecyclerView>
<Button
android:layout_width="50dp"
android:layout_height="50dp"
android:id="@+id/loading_error"
android:layout_centerInParent="true"
android:text="重试"
android:visibility="gone"
android:textSize="30sp">
</Button>
<ImageView
android:layout_height="50dp"
android:layout_width="50dp"