Compare commits

...

5 Commits

Author SHA1 Message Date
cbm f856e7abad 需求.jpg
1 year ago
cbm 202e9a20b2 界面顺序图.jpg
1 year ago
cbm 4957a6437b 设计与分析类图.jpg
1 year ago
cbm 5d085306f1 代码测试.txt
1 year ago
cbm 612123abc6 SE0 课程简介.pdf
1 year ago

@ -1,2 +1,3 @@
# git-test1 # git-test1
1

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

@ -0,0 +1,25 @@
@Override
public void onSucess(String response) {
//执行登陆请求成功 解析返回json内容
System.out.println("response = " + response);
JSONObject object = JSON.parseObject(response);
Integer status = object.getInteger("status");
String msg = object.getString("msg");
String data = object.getString("data");
if (status == 200) {
/*Looper.prepare();
Toast.makeText(getApplicationContext(), "登录成功", Toast.LENGTH_SHORT).show();
Looper.loop();*/
System.out.println("登录成功");
//更新界面
User user = JSON.parseObject(data, User.class);
App.user = user;
startActivity(new Intent(getApplicationContext(), MainActivity.class));
finish();
} else {
Looper.prepare();
Toast.makeText(getApplicationContext(), "登录失败", Toast.LENGTH_SHORT).show();
Looper.loop();
System.out.println("登录失败");
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Loading…
Cancel
Save