@Override
  public void onClick(View v) {
    switch (v.getId()) {
      case R.id.car_selectall:
        showLoading();
        LocalCarController.selectAll();
        hideLoading();
        refresh();
        break;

      case R.id.car_buy:
        if (User.getUser().isLogin()) {
          if (totalMoney > 0) {
            jump(LocalCarBuyFragment.class.getName(), "确认订单");
          } else {
            Notify.show("请选择要购买商品");
          }
        } else {
          Notify.show("请先登录");
          jump(UserLoginFragment.class.getName(), "登录");
        }
        break;

      default:
        break;
    }
  }
 private void login() {
   if (!isPhoneNumber(nameEdit.getText().toString())) {
     Notify.show("请输入正确的手机号");
   } else if (passwordEdit.length() == 0) {
     Notify.show("请输入密码");
   } else {
     loginUser();
   }
 }
 private void confirmOrder() {
   if (totalMoney <= 0) {
     Notify.show("商品信息有误");
   } else if (addressFragment.getAddress() == null) {
     Notify.show("收货人地址有误");
   } else {
     addLocalGoodsOrder();
   }
 }