@Override
 public View getView(int position, View convertView, ViewGroup parent) {
   ViewHolder holder;
   if (convertView == null) {
     holder = new ViewHolder();
     convertView = layoutInflater.inflate(R.layout.list_class_min, null);
     holder.textView = (TextView) convertView.findViewById(R.id.class_min_name);
     FrameLayout.LayoutParams layoutParams =
         new FrameLayout.LayoutParams(
             FrameLayout.LayoutParams.MATCH_PARENT, ApplicationTool.dip2px(36));
     holder.textView.setLayoutParams(layoutParams);
     convertView.setTag(holder);
   } else {
     holder = (ViewHolder) convertView.getTag();
   }
   if (timeSelection == position) {
     holder.textView.setTextColor(getResources().getColor(R.color.textColorCompany));
     holder.textView.setBackgroundResource(R.drawable.back_white_rec_border_orange);
   } else {
     holder.textView.setTextColor(getResources().getColor(R.color.textColorSecond));
     holder.textView.setBackgroundResource(R.drawable.selector_white_rec_border);
   }
   if (times[position] > 1) {
     holder.textView.setText((int) times[position] + "小时");
   } else {
     holder.textView.setText(times[position] + "小时");
   }
   return convertView;
 }
 private void addOrder() {
   if (addressFragment.getAddress() == null) {
     ApplicationTool.showToast("收货人信息有误");
   } else {
     buy();
   }
 }
 private void charge() {
   if (isPhoneNumber(phoneNumber)) {
     if (chargeInfo.getSellprice() > 0) {
       phoneCharge();
     }
   } else {
     ApplicationTool.showToast("请输入正确的手机号");
   }
 }