|
|
@@ -57,26 +57,28 @@ export default{ |
|
|
|
_postData.keyValue = this.keyValue; |
|
|
|
_postData.StuNo = user.account; |
|
|
|
this.LOADING('正在提交…'); |
|
|
|
this.HTTP_POST('learun/OpenLessonPlanOfElectiveStudent/SignInByMobile', _postData, '加载数据时出错').then((res,info, code) => { |
|
|
|
// this.HIDE_LOADING(); |
|
|
|
console.log(res); |
|
|
|
// console.log(info); |
|
|
|
// console.log(code); |
|
|
|
if (res) {// 表单数据保存成功 |
|
|
|
this.HTTP_POST('learun/OpenLessonPlanOfElectiveStudent/SignInByMobile', _postData, '加载数据时出错').then(data => { |
|
|
|
this.HIDE_LOADING(); |
|
|
|
this.EMIT('OpenLessonPlanOfElectiveStudent') |
|
|
|
this.TOAST('报名成功,请耐心等待结果。'); |
|
|
|
setTimeout(()=>{ |
|
|
|
this.NAV_BACK() |
|
|
|
},1000); |
|
|
|
// if (data) {// 表单数据保存成功 |
|
|
|
//判断队列结果 |
|
|
|
// let timer = setInterval(() => { |
|
|
|
// _this.LOADING('正在提交…'); |
|
|
|
this.HTTP_POST('learun/OpenLessonPlanOfElectiveStudent/GetApplyResult', _postData, '报名状态').then((dataresult) => { |
|
|
|
console.log(dataresult) |
|
|
|
//clearInterval(timer); |
|
|
|
if(!dataresult)return |
|
|
|
this.HIDE_LOADING(); |
|
|
|
this.EMIT('OpenLessonPlanOfElectiveStudent') |
|
|
|
// _this.TOAST(dataresult.msg || dataresult.info); |
|
|
|
// _this.NAV_BACK() |
|
|
|
}); |
|
|
|
// this.HTTP_POST('learun/OpenLessonPlanOfElectiveStudent/GetApplyResult', _postData, '报名状态').then((dataresult) => { |
|
|
|
|
|
|
|
// //clearInterval(timer); |
|
|
|
// if(!dataresult)return |
|
|
|
// this.HIDE_LOADING(); |
|
|
|
// this.EMIT('OpenLessonPlanOfElectiveStudent') |
|
|
|
// this.TOAST('报名成功,请耐心等待结果。'); |
|
|
|
// this.NAV_BACK() |
|
|
|
// }); |
|
|
|
// }, 5000); |
|
|
|
} |
|
|
|
// } |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|