| | |
| | | case 0://未上报 |
| | | binding.stateText.setTextColor(OrderDetailActivity.this.getResources().getColor(R.color.black, null)); |
| | | binding.stateText.setBackground(ResourcesCompat.getDrawable(OrderDetailActivity.this.getResources(), R.drawable.order_state_no_bg, null)); |
| | | binding.dealButton.setBackgroundColor(getResources().getColor(R.color.title_color, null)); |
| | | binding.dealButton.setBackground(getResources().getDrawable(R.drawable.bottom_butten_blue_ripple, null)); |
| | | binding.dealButton.setVisibility(View.VISIBLE); |
| | | break; |
| | | case 1://已上报 |
| | | binding.stateText.setTextColor(OrderDetailActivity.this.getResources().getColor(R.color.white, null)); |
| | | binding.stateText.setBackground(ResourcesCompat.getDrawable(OrderDetailActivity.this.getResources(), R.drawable.order_state_wait_bg, null)); |
| | | binding.dealButton.setBackgroundColor(getResources().getColor(R.color.delete_color, null)); |
| | | binding.dealButton.setBackground(getResources().getDrawable(R.drawable.bottom_butten_red_ripple, null)); |
| | | binding.dealButton.setVisibility(View.VISIBLE); |
| | | binding.dealButton.setText("删除处理结果"); |
| | | break; |
| | |
| | | case 3://被驳回 |
| | | binding.stateText.setTextColor(OrderDetailActivity.this.getResources().getColor(R.color.white, null)); |
| | | binding.stateText.setBackground(ResourcesCompat.getDrawable(OrderDetailActivity.this.getResources(), R.drawable.order_state_reject_bg, null)); |
| | | binding.dealButton.setBackgroundColor(getResources().getColor(R.color.title_color)); |
| | | binding.dealButton.setBackground(getResources().getDrawable(R.drawable.bottom_butten_blue_ripple, null)); |
| | | binding.dealButton.setVisibility(View.VISIBLE); |
| | | break; |
| | | |
| | |
| | | binding.orderDealLL.setVisibility(View.VISIBLE); |
| | | binding.setDealData(t.getContent()); |
| | | |
| | | if (!t.getContent().getImages().isEmpty()){ |
| | | for (ImageResult imageResult:t.getContent().getImages()){ |
| | | if (!t.getContent().getImages().isEmpty()) { |
| | | for (ImageResult imageResult : t.getContent().getImages()) { |
| | | ImageBean imageBean = new ImageBean(); |
| | | imageBean.setId(imageResult.getId()); |
| | | imageBean.setWebPath(imageResult.getWebPathZip()); |
| | |
| | | ImageInfo info = new ImageInfo(); |
| | | info.setOriginUrl(imageResult.getWebPath()); |
| | | info.setType(Type.IMAGE); |
| | | if (imageResult.getWebPathZip()!=null){ |
| | | if (imageResult.getWebPathZip() != null) { |
| | | info.setThumbnailUrl(imageResult.getWebPathZip()); |
| | | } |
| | | |
| | | imageInfoList.add(info); |
| | | } |
| | | } |
| | | if (!t.getContent().getVideos().isEmpty()){ |
| | | for (ImageResult imageResult:t.getContent().getVideos()){ |
| | | if (!t.getContent().getVideos().isEmpty()) { |
| | | for (ImageResult imageResult : t.getContent().getVideos()) { |
| | | ImageBean imageBean = new ImageBean(); |
| | | imageBean.setId(imageResult.getId()); |
| | | imageBean.setWebPath(imageResult.getWebPathZip()); |
| | |
| | | ImageInfo info = new ImageInfo(); |
| | | info.setOriginUrl(imageResult.getWebPath()); |
| | | info.setThumbnailUrl(imageResult.getWebPath()); |
| | | if (imageResult.getWebPathZip()!=null){ |
| | | if (imageResult.getWebPathZip() != null) { |
| | | info.setThumbnailUrl(imageResult.getWebPathZip()); |
| | | } |
| | | info.setType(Type.VIDEO); |