package com.zxhl.cms.common.base;

import android.content.Intent;
import android.view.View;
import com.zxhl.cms.R;
import com.zxhl.cms.common.Constant;
import com.zxhl.cms.widget.LoadingDialog;


/**
 * Created by gaoleichao on 2018/6/20.
 * 上传Google 已废弃
 */

public abstract class WxImpl extends BaseActivity{

    protected LoadingDialog mLoading;

    @Override
    public int layoutID() {
        return 0;
    }

    @Override
    public void init() {
       // PlatformConfig.setWeixin(Constant.Key.WX_LOGIN_APP_ID, Constant.Key.WX_LOGIN_KEY);
        mLoading = LoadingDialog.getLoadingDialog(this, getString(R.string.wait_ing), false, false);

    }

    @Override
    public void onClick(View v) {

    }

    protected void onWxLogin() {
        mLoading.setLoading(getString(R.string.login_ing));
        mLoading.show();
    }

    protected void onAuth() {
        mLoading.setLoading(getString(R.string.auth_ing));
        mLoading.show();
    }


    public abstract void onWxSuccess(String token, String openid);
}
