|
|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.qhclh.ytzh.login; |
|
|
|
|
|
|
|
import android.content.Intent; |
|
|
|
import android.view.KeyEvent; |
|
|
|
import android.view.View; |
|
|
|
import android.widget.Button; |
|
|
|
@ -12,6 +13,7 @@ import com.qhclh.ytzh.configs.LoginUserConfig; |
|
|
|
import com.qhclh.ytzh.configs.ServerConfig; |
|
|
|
import com.qhclh.ytzh.home.MainActivity; |
|
|
|
import com.qhclh.ytzh.home.MyApplication; |
|
|
|
import com.qhclh.ytzh.home.SetUrlActivity; |
|
|
|
import com.qhclh.ytzh.tasks.ViewOnClickTask; |
|
|
|
import com.qhclh.ytzh.utils.ActivityUtil; |
|
|
|
import com.qhclh.ytzh.utils.DialogUtil; |
|
|
|
@ -38,6 +40,9 @@ public class LoginActivity extends BaseActivity { |
|
|
|
@BindView(R.id.login_sure) |
|
|
|
Button login_sure; |
|
|
|
|
|
|
|
@BindView(R.id.shezhiurl) |
|
|
|
Button shezhiurl; |
|
|
|
|
|
|
|
private LoginUserConfig config = new LoginUserConfig(this); |
|
|
|
private ServerConfig sconfig = new ServerConfig(this); |
|
|
|
|
|
|
|
@ -67,7 +72,7 @@ public class LoginActivity extends BaseActivity { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@OnClick({R.id.login_sure}) |
|
|
|
@OnClick({R.id.login_sure,R.id.shezhiurl}) |
|
|
|
public void onClick(View view) { |
|
|
|
switch (view.getId()) { |
|
|
|
case R.id.login_sure: |
|
|
|
@ -77,6 +82,9 @@ public class LoginActivity extends BaseActivity { |
|
|
|
DialogUtil.AutoHiddenAlert(LoginActivity.this, "网络不可用"); |
|
|
|
} |
|
|
|
break; |
|
|
|
case R.id.shezhiurl: |
|
|
|
startActivity(new Intent(this, SetUrlActivity.class)); |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|