/** * 显示退货数据 * * @param returnDetailBean */ private void showData(ReturnDetailBean returnDetailBean) { // 设置标题 setTitle(returnDetailBean.TITLE); // 商品列表 adapter.refreshData(returnDetailBean.returnDetailList); // 售后类型 salTypeTv.setText(returnDetailBean.TYPE_NAME); // 退款金额 returnMoneyTv.setText("¥ " + returnDetailBean.getRETURN_MONEY()); // 申请理由 applyReasonTv.setText(returnDetailBean.REASON_NAME); applyReasonTv.setTag(returnDetailBean.REASON_TYPE); // 描述 desQuestionTv.setText(returnDetailBean.DESCRIBE); // 更新上传的图片 List<ImageData> list = returnDetailBean.getImageData(); if (null != list && list.size() > 0) { uploadLayout.setVisibility(View.VISIBLE); imageAdapter.refreshData(list); } else { uploadLayout.setVisibility(View.GONE); } }
@Override public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) { switch (arg0.getId()) { case R.id.upload_gridview: // 上传凭证图片 startPhotoViewActivity(imageAdapter.getImageUrlList(), arg2); break; default: break; } }