| | |
| | | import com.yeshi.ec.rebate.myapplication.util.GlideCircleTransform; |
| | | import com.yeshi.ec.rebate.myapplication.util.ToolUtil; |
| | | import com.yeshi.ec.rebate.myapplication.util.TopStatusSettings; |
| | | import com.yeshi.ec.rebate.myapplication.util.ui.ColorUtil; |
| | | import com.yeshi.ec.rebate.myapplication.util.umengCustomEvent.BrandRebateEvent; |
| | | |
| | | import org.apache.http.Header; |
| | |
| | | setTopimg(BrandInfoActivity.this, mshop.optString("shopIcon"), braninfo_top_img); |
| | | String show[] = showImageFace(mshop.optInt("userType")); |
| | | setShape(4, show[0], show[0], show[1], braninfo_top_userType); |
| | | setShape(100, "#E5005C", "#E5005C", "进店", braninfo_top_store); |
| | | setShape(100,ColorUtil.getHexString(getResources().getColor(R.color.theme)), ColorUtil.getHexString(getResources().getColor(R.color.theme)), "进店", braninfo_top_store); |
| | | shopLink = mshop.getString("shopLink"); |
| | | } |
| | | if (shop.length() >= 2) {//店铺二 |
| | |
| | | setTopimg(BrandInfoActivity.this, mshop.optString("shopIcon"), braninfo_top_img2); |
| | | String show[] = showImageFace(mshop.optInt("userType")); |
| | | setShape(4, show[0], show[0], show[1], braninfo_top_userType2); |
| | | setShape(100, "#E5005C", "#E5005C", "进店", braninfo_top_store2); |
| | | setShape(100, ColorUtil.getHexString(getResources().getColor(R.color.theme)), ColorUtil.getHexString(getResources().getColor(R.color.theme)), "进店", braninfo_top_store2); |
| | | shopLink2 = mshop.getString("shopLink"); |
| | | } |
| | | if (shop.length() == 3) {//店铺三 |
| | |
| | | setTopimg(BrandInfoActivity.this, mshop.optString("shopIcon"), braninfo_top_img3); |
| | | String show[] = showImageFace(mshop.optInt("userType")); |
| | | setShape(4, show[0], show[0], show[1], braninfo_top_userType3); |
| | | setShape(100, "#E5005C", "#E5005C", "进店", braninfo_top_store3); |
| | | setShape(100, ColorUtil.getHexString(getResources().getColor(R.color.theme)), ColorUtil.getHexString(getResources().getColor(R.color.theme)), "进店", braninfo_top_store3); |
| | | shopLink3 = mshop.getString("shopLink"); |
| | | } |
| | | } else { |
| | |
| | | bottom.setVisibility(View.VISIBLE); |
| | | iv_loading.setVisibility(View.GONE); |
| | | ll_go_scan.setVisibility(View.GONE); |
| | | tv_loading.setText("-到底了*^_^*-"); |
| | | tv_loading.setText(getResources().getString(R.string.list_no_more)); |
| | | } else { |
| | | if (jsonObject.optJSONObject("data").optJSONArray("picList").toString().equals("[]") && |
| | | jsonObject.optJSONObject("data").optJSONArray("shopList").toString().equals("[]") && |