admin
2020-09-30 21a3b19894807c46f96e2106a5acb92d8afbd720
BuWanVideo/src/com/weikou/beibeivideo/ui/login/LoginActivity.java
@@ -50,15 +50,11 @@
import java.util.Map;
public class LoginActivity extends BaseActivity implements OnClickListener {
    //        private Tencent mTencent;
    public static final int RESULT_LOGIN = 10;
    //    private UserInfo mInfo;
    private ProgressDialog dialog;
    private LinearLayout ll_login_qq, ll_login_wx;
    private TextView tv_cancel;// 取消
    private boolean isTouchLogin;// 用户是否点击登录
    private String uid;
    //    private IUiListener listener;// 用于接收返回数据的监听
    private String loginType = "";// 登录类型 默认为空字符 QQ为1
    private String openId = "";// 用户第三方登录唯一识别码
@@ -93,18 +89,17 @@
        }
        uid = getSharedPreferences("user", Context.MODE_PRIVATE).getString(
                "uid", "");
        tv_cancel = (TextView) findViewById(R.id.login_tv_cancel);
        ll_login_qq = findViewById(R.id.ll_login_qq);
        tv_cancel.setOnClickListener(this);
        findViewById(R.id.ll_login_qq).setOnClickListener(this);
        findViewById(R.id.ll_login_wx).setOnClickListener(this);
//        aq.id(R.id.ll_login_qq).click(this);
//        aq.id(R.id.ll_login_wx).click(this);
        // Tencent类是SDK的主要实现类,开发者可通过Tencent类访问腾讯开放的OpenAPI。
        // 其中APP_ID是分配给第三方应用的appid,类型为String。测试号222222 木瓜影视大全专用号1104492673
//        mTencent = Tencent.createInstance(BeibeiConstant.QQ_ID,
//                this.getApplicationContext());
        findViewById(R.id.login_tv_cancel).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        dialog = new ProgressDialog(this);
        ll_login_content = (LinearLayout) findViewById(R.id.ll_login_content);
@@ -348,7 +343,6 @@
     * 锁定返回
     */
    private void lockBack(boolean isSure) {
        tv_cancel.setEnabled(!isSure);
        isTouchLogin = isSure;
    }