index-legacy.67b60c86.js 3.6 KB

1
  1. !function(){function e(e,t,r,n,a,c,i){try{var u=e[c](i),o=u.value}catch(s){return void r(s)}u.done?t(o):Promise.resolve(o).then(n,a)}function t(t){return function(){var r=this,n=arguments;return new Promise((function(a,c){var i=t.apply(r,n);function u(t){e(i,a,c,u,o,"next",t)}function o(t){e(i,a,c,u,o,"throw",t)}u(void 0)}))}}System.register(["./ResizeObserver.es-legacy.8d60aee1.js","./index-legacy.02065493.js","./cert-three-legacy.3882a496.js","./index-legacy.87bcd48f.js","./index-legacy.bbc2b10e.js","./index-legacy.2a290207.js","./index-legacy.f8f0c467.js","./index-legacy.7df716cf.js","./index-legacy.598eb07e.js","./index-legacy.4a75d877.js","./index-legacy.7e047c4c.js","./index-legacy.a082ee96.js","./index-legacy.610f0a70.js","./index-legacy.78ce4f6b.js","./use-id-legacy.54528695.js"],(function(e){"use strict";var r,n,a,c,i,u,o,s,d,l,f,h,g;return{setters:[function(e){r=e.d,n=e.g,a=e.D,c=e.y,i=e.T,u=e.j,o=e.F,s=e.C,d=e.B},function(e){l=e.C},function(e){f=e.t,h=e.C},function(e){g=e.C},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){e("default",r({name:"teacher-cert-update",data:function(){return{authStatus:!1}},mounted:function(){var e=this;return t(regeneratorRuntime.mark((function t(){var r,i,u,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,null!==(r=n.user.data)&&void 0!==r&&r.entryFlag){t.next=4;break}return a.alert({message:"您尚未完成老师认证,老师认证后才可更新资料哦!",confirmButtonColor:"#2DC7AA"}).then((function(){e.$router.replace("/teacherCert")})),t.abrupt("return");case 4:return t.next=6,c.get("/api-teacher/teacherAuthEntryRecord/getLastRecordByUserId");case 6:i=t.sent,u=i.data||{},o=u.teacherAuthStatus||0,e.authStatus="DOING"===o,f.teacherCert.graduateSchool=u.graduateSchool,f.teacherCert.subject=u.subject,f.teacherCert.subjectId=u.subjectId,f.teacherCert.introduction=u.introduction,f.teacherCert.styleVideoJson=u.styleVideoJson,f.teacherCert.gradCertificate=u.gradCertificate,f.teacherCert.degreeCertificate=u.degreeCertificate,f.teacherCert.teacherCertificate=u.teacherCertificate,t.next=22;break;case 20:t.prev=20,t.t0=t.catch(0);case 22:case"end":return t.stop()}}),t,null,[[0,20]])})))()},methods:{onSubmit:function(){var e=this;return t(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((r=f.teacherCert).graduateSchool){t.next=4;break}return i("请输入您的毕业院校"),t.abrupt("return");case 4:if(r.subject){t.next=7;break}return i("请输入您的专业"),t.abrupt("return");case 7:return t.next=9,c.post("/api-teacher/teacherAuthEntryRecord/doApply",{data:{graduateSchool:r.graduateSchool,subject:r.subject,subjectId:r.subjectId,introduction:r.introduction,styleVideoJson:r.styleVideoJson,gradCertificate:r.gradCertificate,degreeCertificate:r.degreeCertificate,teacherCertificate:r.teacherCertificate}});case 9:i("提交成功"),e.authStatus=!0;case 11:case"end":return t.stop()}}),t)})))()}},render:function(){var e=this;return u(o,null,[this.authStatus?u(o,null,[u(g,null,null),u(s,{type:"teacherCert",style:{paddingTop:"60px"},classImgSize:"CERT",tips:"感谢您的申请,小酷将在24小时内完成审核,请留意APP消息及短信获取审核结果。"},null)]):u(o,null,[u(g,null,null),u("div",{style:{paddingTop:"12px"}},[u(h,null,null),u(l,{position:"bottom"},{default:function(){return[u("div",{class:["btnGroup"],style:{paddingTop:"12px"}},[u(d,{block:!0,round:!0,onClick:e.onSubmit,type:"primary",text:"提交审核"},null)])]}})])])])}}))}}}))}();