소스 검색

优化激活进度

腾讯ocr渠道不签约
yangteng 2 달 전
부모
커밋
2fd36be83f
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7
    1
      subpackage/after-sale/activation/activate.vue

+ 7
- 1
subpackage/after-sale/activation/activate.vue 파일 보기

}); });
function cmdResult1() { function cmdResult1() {
// tools.showLoadingAlert('正在激活,请等待') // tools.showLoadingAlert('正在激活,请等待')
state.progressNum=10
const options = { const options = {
type: 2, //type: 2,JSON格式提交数据(默认表单形式提交) type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
showLoading: false, showLoading: false,
errorLog(datas.cmd,JSON.stringify(err),datas.stepNo) errorLog(datas.cmd,JSON.stringify(err),datas.stepNo)
tools.hideLoadingAlert(); tools.hideLoadingAlert();
state.showPopup=false state.showPopup=false
state.disabled = true
}); });
}) })
.catch((err) => { .catch((err) => {
console.log(err); console.log(err);
tools.hideLoadingAlert(); tools.hideLoadingAlert();
state.showPopup=false state.showPopup=false
state.disabled = true
}); });
} }


function implementCmd(transOrderId, cmd, cmdResult, stepNo) { function implementCmd(transOrderId, cmd, cmdResult, stepNo) {
state.progressNum=state.progressNum+5
console.log("datas.stepNo1",stepNo)
state.progressNum=Number(stepNo)*10+10
const options = { const options = {
type: 2, //type: 2,JSON格式提交数据(默认表单形式提交) type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
showLoading: false, showLoading: false,
}, (err) => { }, (err) => {
console.log("err",err) console.log("err",err)
state.showPopup=false state.showPopup=false
state.disabled = true
errorLog(datas.cmd,JSON.stringify(err),datas.stepNo) errorLog(datas.cmd,JSON.stringify(err),datas.stepNo)
showModals('在线激活异常') showModals('在线激活异常')
}); });
console.log(err); console.log(err);
tools.hideLoadingAlert(); tools.hideLoadingAlert();
state.showPopup=false state.showPopup=false
state.disabled = true
}); });
} }



Loading…
취소
저장