From 06a80d5c4b3a971cdc1ca3d91717ec3f6e03a443 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期一, 17 五月 2021 18:59:39 +0800
Subject: [PATCH] 特价完善

---
 app/src/main/java/com/tejia/lijin/app/ui/recommend/RecommendCategoryAdapter.java |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/app/src/main/java/com/tejia/lijin/app/ui/recommend/RecommendCategoryAdapter.java b/app/src/main/java/com/tejia/lijin/app/ui/recommend/RecommendCategoryAdapter.java
index bedd9e9..fcc1063 100644
--- a/app/src/main/java/com/tejia/lijin/app/ui/recommend/RecommendCategoryAdapter.java
+++ b/app/src/main/java/com/tejia/lijin/app/ui/recommend/RecommendCategoryAdapter.java
@@ -79,7 +79,7 @@
         } else if (viewType == TYPE_HEADER) {
             return new ViewHolder(VIEW_HEADER);
         } else {
-            View view = LayoutInflater.from(mContext).inflate(R.layout.item_recomend_category_goods, parent, false);
+            View view = LayoutInflater.from(mContext).inflate(R.layout.item_goods, parent, false);
             ViewHolder holder = new ViewHolder(view);
             return holder;
         }
@@ -139,9 +139,10 @@
                 public void onClick(View v) {
                     if (!StringUtils.isEmpty(type))
                         CategoryCustomEvent.classGoods(mContext, type);
-                    Intent intent = GoodsDetailJumpUtil.getGoodsDetailIntent(mContext, info.getGoodsType());
+                    Intent intent= new Intent(mContext, GoodsDetailActivity.class);
+                    intent.putExtra("goodsId", info.getGoodsId());
+                    intent.putExtra("goodsType", info.getGoodsType());
                     intent.putExtra("title", info.getTitle());
-                    intent.putExtra("id", info.getGoodsId());
                     intent.putExtra("from", from);
                     mContext.startActivity(intent);
                 }

--
Gitblit v1.8.0