|
|
@@ -36,6 +36,7 @@ import com.kfzs.duanduan.event.BigEvent;
|
|
|
import com.kfzs.duanduan.react.ConfigUtil;
|
|
|
import com.kfzs.duanduan.react.SharedPreferences;
|
|
|
import com.kfzs.duanduan.utils.NumberFormatUtils;
|
|
|
+import com.kfzs.duanduan.utils.dlg.FormatAny;
|
|
|
import com.kfzs.duanduan.view.ViewPagerAutoHeigh;
|
|
|
import com.sheep.gamegroup.di.components.DaggerSmallSheepComponent;
|
|
|
import com.sheep.gamegroup.di.modules.SmallSheepModule;
|
|
|
@@ -173,6 +174,8 @@ public class FgtSmallSheep extends BaseCompatFragment implements SmallSheepContr
|
|
|
TextView homepage_item_money_tv;
|
|
|
@BindView(R.id.homepage_item_juan_tv)
|
|
|
TextView homepage_item_juan_tv;
|
|
|
+ @BindView(R.id.recyclerview_line)
|
|
|
+ View recyclerview_line;
|
|
|
|
|
|
|
|
|
@Inject
|
|
|
@@ -212,6 +215,7 @@ public class FgtSmallSheep extends BaseCompatFragment implements SmallSheepContr
|
|
|
case 1:
|
|
|
tryMakeMoneyAdp.clear();
|
|
|
if(!ListUtil.isEmpty(allTaskAcceptedTaskList)){
|
|
|
+ recyclerview_line.setVisibility(View.VISIBLE);
|
|
|
tryMakeMoneyAdp.add(RecyleObj.make(RecyleType.RUN_TASK, allTaskAcceptedTaskList));
|
|
|
}
|
|
|
if(!ListUtil.isEmpty(releaseEtyLists)) {
|
|
|
@@ -510,6 +514,15 @@ public class FgtSmallSheep extends BaseCompatFragment implements SmallSheepContr
|
|
|
|
|
|
if(o != null){
|
|
|
CashAwarsEntity cashAwarsEntity = o.getData(CashAwarsEntity.class);
|
|
|
+ if(cashAwarsEntity != null){
|
|
|
+
|
|
|
+ String award = String.format(activity.getResources().getString(R.string.homepage_award), FormatAny.getInstance().formatString(cashAwarsEntity.getAward()+""));
|
|
|
+ String cash = String.format(activity.getResources().getString(R.string.homepage_cash), FormatAny.getInstance().formatString(cashAwarsEntity.getCash()+""));
|
|
|
+ String welfare = String.format(activity.getResources().getString(R.string.homepage_welfare), FormatAny.getInstance().formatString(cashAwarsEntity.getWelfare()+""));
|
|
|
+ homepage_item_get_award_name_tv.setText(award+"");
|
|
|
+ homepage_item_money_tv.setText(cash+"");
|
|
|
+ homepage_item_juan_tv.setText(welfare+"");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
@@ -560,12 +573,10 @@ public class FgtSmallSheep extends BaseCompatFragment implements SmallSheepContr
|
|
|
UMConfigUtils.IdEvent.HOME_LIST.commit(homeListEntity.getId());
|
|
|
if(homeListEntity.getJump().equals("-2")){
|
|
|
setValueList(!homeListEntity.isSelect());
|
|
|
- homeListEntity.setSelect(!homeListEntity.isSelect());
|
|
|
}else {
|
|
|
CommonUtil.getInstance()
|
|
|
.goWhere(activity, homeListEntity, "首页");
|
|
|
}
|
|
|
- adpHomeListGrideview.notifyDataSetChanged();
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
@@ -1204,7 +1215,11 @@ public class FgtSmallSheep extends BaseCompatFragment implements SmallSheepContr
|
|
|
homeListEntity.setDesc("查看更多");
|
|
|
homeListEntity.setJump("-2");
|
|
|
homeListEntity.setSelect(flag);
|
|
|
- homeListEntity.setIcon(R.mipmap.homepage_chakangd+"");
|
|
|
+ if (flag) {
|
|
|
+ homeListEntity.setIcon(R.mipmap.homepage_chakangd_click+"");
|
|
|
+ } else {
|
|
|
+ homeListEntity.setIcon(R.mipmap.homepage_chakangd+"");
|
|
|
+ }
|
|
|
homeListEntitysGridview.set(7, homeListEntity);
|
|
|
}
|
|
|
adpHomeListGrideview.notifyDataSetChanged();
|