修改充电站推送任务增加桩编辑点位时的bug
This commit is contained in:
parent
1dd9c6a5a6
commit
6ba575d0cf
@ -3,7 +3,7 @@ apply plugin: 'com.android.application'
|
|||||||
android {
|
android {
|
||||||
compileSdkVersion 29
|
compileSdkVersion 29
|
||||||
buildToolsVersion '29.0.2'
|
buildToolsVersion '29.0.2'
|
||||||
ndkVersion '23.0.7123448'
|
//ndkVersion '23.0.7123448'
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "com.navinfo.outdoor"
|
applicationId "com.navinfo.outdoor"
|
||||||
|
@ -77,7 +77,6 @@ public class ForgetPawFragment extends BaseFragment implements View.OnClickListe
|
|||||||
registerNote();
|
registerNote();
|
||||||
initGetNote();
|
initGetNote();
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case R.id.btn_forgetPaw:
|
case R.id.btn_forgetPaw:
|
||||||
initForgetPaw();
|
initForgetPaw();
|
||||||
@ -140,6 +139,7 @@ public class ForgetPawFragment extends BaseFragment implements View.OnClickListe
|
|||||||
public void onSuccess(UserBean response, int id) {
|
public void onSuccess(UserBean response, int id) {
|
||||||
dismissLoadingDialog();
|
dismissLoadingDialog();
|
||||||
if (response.getCode()==200){
|
if (response.getCode()==200){
|
||||||
|
Toast.makeText(getActivity(), "修改成功", Toast.LENGTH_SHORT).show();
|
||||||
Constant.USER_NAME = mobile;
|
Constant.USER_NAME = mobile;
|
||||||
Constant.PASS_WORD = password;
|
Constant.PASS_WORD = password;
|
||||||
Message obtain = Message.obtain();
|
Message obtain = Message.obtain();
|
||||||
@ -147,6 +147,7 @@ public class ForgetPawFragment extends BaseFragment implements View.OnClickListe
|
|||||||
obtain.obj = true;
|
obtain.obj = true;
|
||||||
EventBus.getDefault().post(obtain);
|
EventBus.getDefault().post(obtain);
|
||||||
getActivity().finish();
|
getActivity().finish();
|
||||||
|
|
||||||
}else {
|
}else {
|
||||||
Toast.makeText(getActivity(), response.getMessage(), Toast.LENGTH_SHORT).show();
|
Toast.makeText(getActivity(), response.getMessage(), Toast.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
@ -196,7 +197,6 @@ public class ForgetPawFragment extends BaseFragment implements View.OnClickListe
|
|||||||
.Builder(getActivity())
|
.Builder(getActivity())
|
||||||
.url(HttpInterface.USER_MESSAGE)
|
.url(HttpInterface.USER_MESSAGE)
|
||||||
.cls(MessageCodeBean.class)
|
.cls(MessageCodeBean.class)
|
||||||
.token(Constant.ACCESS_TOKEN)
|
|
||||||
.params(httpParams)
|
.params(httpParams)
|
||||||
.getRequest(new Callback<MessageCodeBean>() {
|
.getRequest(new Callback<MessageCodeBean>() {
|
||||||
@Override
|
@Override
|
||||||
@ -204,6 +204,8 @@ public class ForgetPawFragment extends BaseFragment implements View.OnClickListe
|
|||||||
dismissLoadingDialog();
|
dismissLoadingDialog();
|
||||||
if (response.getCode() == 200) {
|
if (response.getCode() == 200) {
|
||||||
sessionId = response.getBody();
|
sessionId = response.getBody();
|
||||||
|
|
||||||
|
Toast.makeText(getActivity(), "验证码已发送", Toast.LENGTH_SHORT).show();
|
||||||
}else {
|
}else {
|
||||||
Toast.makeText(getActivity(), response.getMessage() + "", Toast.LENGTH_SHORT).show();
|
Toast.makeText(getActivity(), response.getMessage() + "", Toast.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
|
@ -124,6 +124,7 @@ public class RegisterFragment extends BaseFragment implements View.OnClickListen
|
|||||||
dismissLoadingDialog();
|
dismissLoadingDialog();
|
||||||
if (response.getCode() == 200) {
|
if (response.getCode() == 200) {
|
||||||
sessionId = response.getBody();
|
sessionId = response.getBody();
|
||||||
|
|
||||||
Toast.makeText(getActivity(), "验证码已发送", Toast.LENGTH_SHORT).show();
|
Toast.makeText(getActivity(), "验证码已发送", Toast.LENGTH_SHORT).show();
|
||||||
}else {
|
}else {
|
||||||
Toast.makeText(getActivity(), response.getMessage()+"", Toast.LENGTH_SHORT).show();
|
Toast.makeText(getActivity(), response.getMessage()+"", Toast.LENGTH_SHORT).show();
|
||||||
@ -196,6 +197,7 @@ public class RegisterFragment extends BaseFragment implements View.OnClickListen
|
|||||||
public void onSuccess(UserBean response, int id) {
|
public void onSuccess(UserBean response, int id) {
|
||||||
dismissLoadingDialog();
|
dismissLoadingDialog();
|
||||||
if (response.getCode() == 200) {
|
if (response.getCode() == 200) {
|
||||||
|
Toast.makeText(getActivity(), "注册成功", Toast.LENGTH_SHORT).show();
|
||||||
Constant.USER_NAME = mobile;
|
Constant.USER_NAME = mobile;
|
||||||
Constant.PASS_WORD = password;
|
Constant.PASS_WORD = password;
|
||||||
Message obtain = Message.obtain();
|
Message obtain = Message.obtain();
|
||||||
@ -203,6 +205,7 @@ public class RegisterFragment extends BaseFragment implements View.OnClickListen
|
|||||||
obtain.obj = true;
|
obtain.obj = true;
|
||||||
EventBus.getDefault().post(obtain);
|
EventBus.getDefault().post(obtain);
|
||||||
getActivity().finish();
|
getActivity().finish();
|
||||||
|
|
||||||
}else {
|
}else {
|
||||||
Toast.makeText(getActivity(), response.getMessage() + "", Toast.LENGTH_SHORT).show();
|
Toast.makeText(getActivity(), response.getMessage() + "", Toast.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
|
@ -176,7 +176,7 @@ public class WithdrawFragment extends BaseFragment implements View.OnClickListen
|
|||||||
String price = etAllPrice.getText().toString().trim();
|
String price = etAllPrice.getText().toString().trim();
|
||||||
if (price!=null&&!price.equals("")){
|
if (price!=null&&!price.equals("")){
|
||||||
double aDouble = Double.valueOf(price);
|
double aDouble = Double.valueOf(price);
|
||||||
if (aDouble<10){
|
if (aDouble<10 ){
|
||||||
Toast.makeText(getActivity(), "提现金额不能低于10元", Toast.LENGTH_SHORT).show();
|
Toast.makeText(getActivity(), "提现金额不能低于10元", Toast.LENGTH_SHORT).show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user