/** 对话框按钮单击事件 */
  public void onButtonClick(View view) {
    Log.i(TAG, "buttonClick");
    switch (view.getId()) {
      case R.id.capturePhotoLL:
        modifyUserPhotoDialog.dismiss();
        takePhoto();
        break;

      case R.id.galleryPhotoLL:
        modifyUserPhotoDialog.dismiss();
        openGallery();
        break;
      case R.id.unBindBtn:
        unBindDialog.dismiss();

        boolean shouldUnbind = false;
        if (mobile != null) {
          shouldUnbind = true;
        } else {
          if (qqOpenId != null && weiboOpenId != null && wechatOpenId != null) {
            shouldUnbind = true;
          }
        }
        if (shouldUnbind) {
          processDialog.show();
          if (BUND_TYPE_QQ.equals(unbindType)) {
            unbindQQAccount();
          }
          if (BUND_TYPE_WEIBO.equals(unbindType)) {
            unbindWeiBoAccount();
          }
          if (BUND_TYPE_WECHAT.equals(unbindType)) {
            unbindWechatAccount();
          }
        } else {
          Toast.makeText(this, "解除绑定失败,请先绑定手机号码并设置密码", Toast.LENGTH_SHORT).show();
        }
        break;
      case R.id.cancelUnbindBtn:
        unBindDialog.dismiss();
        break;
      case R.id.qqPhotoLL:
        onModifyUserPhotoInQQ();
        break;
      case R.id.weiboPhotoLL:
        onModifyUserPhotoInWeibo();
        break;
    }
    // modifyUserPhotoDialog.dismiss();
  }
 /** 修改wechat头像 */
 void onModifyUserPhotoInWechat() {
   modifyUserPhotoDialog.dismiss();
   processDialog.show();
   modifyUserPhotoInThird(wechat_photo_url);
 }
 /** 修改qq头像 */
 void onModifyUserPhotoInQQ() {
   modifyUserPhotoDialog.dismiss();
   processDialog.show();
   modifyUserPhotoInThird(qq_photo_url);
 }