zengjiebin лет назад: 7
Родитель
Сommit
da26c7c06d

+ 3 - 3
app/src/main/java/com/sheep/gamegroup/module/game/util/PromoteGoodsHelper.java

@@ -48,6 +48,8 @@ public class PromoteGoodsHelper {
     TextView hp_gwe_tv2;
 
 
+    @BindView(R.id.item_gpg_hpg)
+    View item_gpg_hpg;
     @BindView(R.id.item_icon_iv)
     ImageView item_icon_iv;
     @BindView(R.id.item_remainder_time)
@@ -58,8 +60,6 @@ public class PromoteGoodsHelper {
     TextView item_yuan_jia_tv;
     @BindView(R.id.item_xian_jia_tv)
     TextView item_xian_jia_tv;
-    @BindView(R.id.item_discount_box)
-    LinearLayout item_discount_box;
     @BindView(R.id.item_discount_tv)
     TextView item_discount_tv;
 
@@ -139,7 +139,7 @@ public class PromoteGoodsHelper {
         ViewUtil.setText(item_xian_jia_tv, item.getPromotePriceText());
         ViewUtil.setText(item_yuan_jia_tv, item.getMarketPriceText());
         ViewUtil.setText(item_discount_tv, item.getDiscountText());
-        item_discount_box.setOnClickListener(view -> {
+        item_gpg_hpg.setOnClickListener(view -> {
             String url = String.format(Locale.CHINA, "%s?id=%s", getPromoteGoodsUrl.getGoods_url(), item.getGoods_id());
             Jump2View.getInstance().goWeb(SheepApp.getInstance().getCurrentActivity(), new WebParams(url).setTitle(item.getGoods_name()));
         });

+ 1 - 2
app/src/main/java/com/sheep/gamegroup/module/home/adapter/AdpPromoteGoods.java

@@ -39,7 +39,6 @@ public class AdpPromoteGoods extends BaseQuickAdapter<PromoteGoods, BaseViewHold
         TextView item_name_tv = baseViewHolder.itemView.findViewById(R.id.item_name_tv);
         TextView item_yuan_jia_tv = baseViewHolder.itemView.findViewById(R.id.item_yuan_jia_tv);
         TextView item_xian_jia_tv = baseViewHolder.itemView.findViewById(R.id.item_xian_jia_tv);
-        LinearLayout item_discount_box = baseViewHolder.itemView.findViewById(R.id.item_discount_box);
         TextView item_discount_tv = baseViewHolder.itemView.findViewById(R.id.item_discount_tv);
 
         if(item == null){
@@ -52,7 +51,7 @@ public class AdpPromoteGoods extends BaseQuickAdapter<PromoteGoods, BaseViewHold
         ViewUtil.setText(item_xian_jia_tv, item.getPromotePriceText());
         ViewUtil.setText(item_yuan_jia_tv, item.getMarketPriceText());
         ViewUtil.setText(item_discount_tv, item.getDiscountText());
-        item_discount_box.setOnClickListener(view -> {
+        baseViewHolder.itemView.setOnClickListener(view -> {
             String url = String.format(Locale.CHINA, "%s?id=%s", baseUrl, item.getGoods_id());
             Jump2View.getInstance().goWeb(SheepApp.getInstance().getCurrentActivity(), new WebParams(url).setTitle(item.getGoods_name()));
         });

+ 0 - 1
app/src/main/java/com/sheep/gamegroup/util/SysAppUtil.java

@@ -943,7 +943,6 @@ public class SysAppUtil {
             ShortcutUtils.addShortcut(activity, getShortCutIntent(activity), mShortcutName, false,
                     BitmapFactory.decodeResource(activity.getResources(), R.drawable.icon_yf));
             showShortcutTip(activity);
-            G.showToast("添加成功");
         } else {
             G.showToast("已经添加成功");
         }

+ 1 - 1
app/src/main/res/layout/fgt_game_center.xml

@@ -91,7 +91,7 @@
         android:gravity="right"
         android:paddingTop="@dimen/content_padding_10"
         android:paddingBottom="@dimen/content_padding_10"
-        android:visibility="visible">
+        android:visibility="gone">
 
         <ImageView
             android:layout_width="90dp"

+ 1 - 0
app/src/main/res/layout/item_game_promote_goods.xml

@@ -9,6 +9,7 @@
         android:background="@color/bg_home_color"/>
     <include layout="@layout/hp_game_welfare_entrance"/>
     <include
+        android:id="@+id/item_gpg_hpg"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_marginTop="-7dp"

+ 2 - 2
gradle.properties

@@ -17,8 +17,8 @@
 # org.gradle.parallel=true
 #android.injected.build.model.only.versioned = 3
 
-VERSION_NAME=3.5.3
-VERSION_CODE=3005003
+VERSION_NAME=3.5.4
+VERSION_CODE=3005004
 ANDROID_COMPILE_SDK_VERSION=28
 ANDROID_MIN_SDK_VERSION=17
 ANDORID_TARGET_SDK_VERSION=28