Authored by qinchao

按钮控制

... ... @@ -739,6 +739,13 @@ public class ExpressInfoServiceImpl implements IExpressInfoService {
QualityCheck qualityCheck = expressInfo.getQualityCheck();
boolean showBtn=false;
int leftTime = 0;
//倒计时
int expireTime = qualityCheck.getCreateTime() + 24 * 60 * 60 ;
int nowTs = DateUtil.getCurrentTimeSecond();
if(expireTime> nowTs){
leftTime = expireTime - nowTs;
}
MiniFaultConfirm miniFaultConfirm=new MiniFaultConfirm();
//质检不通过,只有卖家显示
if(qualityCheck.getType()!=null&&EnumQualityCheckType.CHECK_NOT_PASS.getCode().intValue()==qualityCheck.getType().intValue()){
... ... @@ -761,15 +768,10 @@ public class ExpressInfoServiceImpl implements IExpressInfoService {
//瑕疵待确认
if(qualityCheck.getStatus()!=null&&EnumQualityCheckStatus.WAIT_CONFIRM.getCode().intValue()==qualityCheck.getStatus().intValue()){
if(TabType.BUY==actor){
showBtn=true;
//显示按钮的情况下,才有倒计时
int expireTime = qualityCheck.getCreateTime() + 24 * 60 * 60 ;
int nowTs = DateUtil.getCurrentTimeSecond();
if(expireTime> nowTs){
leftTime = expireTime - nowTs;
//倒计时大于零,才有按钮
if(leftTime>0){
showBtn=true;
}
//
miniFaultConfirm.setSuppleText("");//后续由app添加倒计时
}
... ...