Kaynağa Gözat

goods saleid for jump

billyyoyo 6 yıl önce
ebeveyn
işleme
a3e07a898b

+ 9 - 0
app/src/main/java/com/sheep/gamegroup/model/entity/ShopGoodsInfo.java

@@ -3,6 +3,7 @@ package com.sheep.gamegroup.model.entity;
 public class ShopGoodsInfo {
 
     private int id;
+    private int sale_id;
     private String name;
     private String image;
     private String brand;
@@ -22,6 +23,14 @@ public class ShopGoodsInfo {
         this.id = id;
     }
 
+    public int getSale_id() {
+        return sale_id;
+    }
+
+    public void setSale_id(int sale_id) {
+        this.sale_id = sale_id;
+    }
+
     public String getName() {
         return name;
     }

+ 1 - 1
app/src/main/java/com/sheep/gamegroup/module/home/GoodsRecommendsBarHelper.java

@@ -122,7 +122,7 @@ public class GoodsRecommendsBarHelper {
             nameView.getLayoutParams().width = tileWidth;
             imageView.getLayoutParams().width = tileWidth;
             imageView.getLayoutParams().height = tileWidth;
-            itemView.setOnClickListener(v -> Jump2View.getInstance().gotoYYShopMerchandiseById(mContext, goods.getId() + ""));
+            itemView.setOnClickListener(v -> Jump2View.getInstance().gotoYYShopMerchandiseById(mContext, goods.getSale_id() + ""));
         }
 
         public void bind(ShopGoodsInfo info) {

+ 1 - 1
app/src/main/java/com/sheep/gamegroup/module/search/GoodsHolder.java

@@ -30,7 +30,7 @@ public class GoodsHolder extends SearchResultHolder<ShopGoodsInfo> {
     public GoodsHolder(@NonNull View itemView) {
         super(itemView);
         itemView.setOnClickListener((v) -> {
-            Jump2View.getInstance().gotoYYShopMerchandiseById(itemView.getContext(), item.getId() + "");
+            Jump2View.getInstance().gotoYYShopMerchandiseById(itemView.getContext(), item.getSale_id() + "");
         });
     }