时间问题修复
This commit is contained in:
@@ -279,6 +279,16 @@ public class DiscoveryFragment extends BaseFragment<FragmentDiscoveryBinding> im
|
|||||||
Map<String, String> map = new HashMap<>();
|
Map<String, String> map = new HashMap<>();
|
||||||
if (user != null) {
|
if (user != null) {
|
||||||
map.put("userid", user.getUserid());
|
map.put("userid", user.getUserid());
|
||||||
|
mDataBinding.head.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View view) {
|
||||||
|
Intent intent = new Intent(getContext(), HistoryRecordActivity.class);
|
||||||
|
intent.putExtra("userId", user.getUserid());
|
||||||
|
intent.putExtra("userName", user.getNickname());
|
||||||
|
intent.putExtra("title", user.getNickname());
|
||||||
|
startActivity(intent);
|
||||||
|
}
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
map.put("userid", 0 + "");
|
map.put("userid", 0 + "");
|
||||||
}
|
}
|
||||||
@@ -287,6 +297,7 @@ public class DiscoveryFragment extends BaseFragment<FragmentDiscoveryBinding> im
|
|||||||
map.put("page", mypage + "");
|
map.put("page", mypage + "");
|
||||||
map.put("sign", Md5.md5("Goods" + "GoodsLists" + Md5.secret));
|
map.put("sign", Md5.md5("Goods" + "GoodsLists" + Md5.secret));
|
||||||
getGankList(ApiConfig.BASE_URL, map, getResources().getString(R.string.requsting), mypage);
|
getGankList(ApiConfig.BASE_URL, map, getResources().getString(R.string.requsting), mypage);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addCart(String goods_id, String product_code, String goodsNum) {
|
private void addCart(String goods_id, String product_code, String goodsNum) {
|
||||||
@@ -770,6 +781,7 @@ public class DiscoveryFragment extends BaseFragment<FragmentDiscoveryBinding> im
|
|||||||
BaseRecycleViewAdapter baseRecycleViewAdapter = (BaseRecycleViewAdapter) mDataBinding.recyView.getAdapter();
|
BaseRecycleViewAdapter baseRecycleViewAdapter = (BaseRecycleViewAdapter) mDataBinding.recyView.getAdapter();
|
||||||
baseRecycleViewAdapter.setData(discoveryListEntities);
|
baseRecycleViewAdapter.setData(discoveryListEntities);
|
||||||
page++;
|
page++;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// ArrayList<DiscoveryListEntity> o = new Gson().fromJson(array.toString(), type);
|
// ArrayList<DiscoveryListEntity> o = new Gson().fromJson(array.toString(), type);
|
||||||
List<DiscoveryListEntity> info = discoverEntity.getInfo();
|
List<DiscoveryListEntity> info = discoverEntity.getInfo();
|
||||||
|
|||||||
Reference in New Issue
Block a user