Explorar el Código

修改取消订单问题

上海闵中
liup hace 2 meses
padre
commit
579aba4eaa
Se han modificado 1 ficheros con 17 adiciones y 2 borrados
  1. +17
    -2
      app/src/main/java/com/bonait/bnframework/newui/fragment/main/HomeOrderFragment.java

+ 17
- 2
app/src/main/java/com/bonait/bnframework/newui/fragment/main/HomeOrderFragment.java Ver fichero

@@ -411,8 +411,13 @@ public class HomeOrderFragment extends BaseFragment {
NewToastUtil.getInstance().showToast("删除成功");
xCom.dismissX();


if(status==1){
stopCooking();
if(type==0){
stopCooking();
}else{
stopCooking2();
}
}
EventBus.getDefault().post(new FreshOrderEvent());
});
@@ -680,7 +685,7 @@ public class HomeOrderFragment extends BaseFragment {
}

/**
* 开始制作
* 取消订单 炒锅
*/
private void stopCooking(){
ExecuteTheRecipe.IsForcedEnd = true;
@@ -689,6 +694,16 @@ public class HomeOrderFragment extends BaseFragment {
ExecuteTheRecipe.IsStart = false;
}

/**
* 取消订单 烤箱
*/
private void stopCooking2(){
ExecuteTheRecipe.IsForcedEnd2 = true;
ExecuteTheRecipe.IsPause2 = false;
ExecuteTheRecipe.MakeStatus2 = false;
ExecuteTheRecipe.IsStart2 = false;
}


@Override
public void onPause() {


Cargando…
Cancelar
Guardar