1 |
- !function(){function e(e,t,r,n,a,c,u){try{var i=e[c](u),o=i.value}catch(s){return void r(s)}i.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 u=t.apply(r,n);function i(t){e(u,a,c,i,o,"next",t)}function o(t){e(u,a,c,i,o,"throw",t)}i(void 0)}))}}System.register(["./index-legacy.b903c881.js","./index-legacy.6b8d5fc3.js","./cert-three-legacy.f5cc0136.js","./teacherState-legacy.b3331ddc.js","./index-legacy.885c229f.js","./index-legacy.71eb94ae.js","./index-legacy.6a47581c.js","./index-legacy.2aba0015.js","./index-legacy.5b93d63d.js","./index-legacy.ae2ce69e.js","./index-legacy.712aadc5.js","./oss-file-upload-legacy.930c862e.js","./index-legacy.b7f666cc.js","./index-legacy.e9e6da38.js","./use-id-legacy.29724920.js"],(function(e){"use strict";var r,n,a,c,u,i,o,s,d,l,f,h,g;return{setters:[function(e){r=e.d,n=e.g,a=e.D,c=e.w,u=e.T,i=e.j,o=e.F,s=e.C,d=e.B},function(e){l=e.C},function(e){f=e.C},function(e){h=e.t},function(e){g=e.C},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,u,i,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:u=t.sent,i=u.data||{},o=i.teacherAuthStatus||0,e.authStatus="DOING"===o,h.teacherCert.graduateSchool=i.graduateSchool,h.teacherCert.subject=i.subject,h.teacherCert.subjectId=i.subjectId,h.teacherCert.introduction=i.introduction,h.teacherCert.styleVideoJson=i.styleVideoJson,h.teacherCert.gradCertificate=i.gradCertificate,h.teacherCert.degreeCertificate=i.degreeCertificate,h.teacherCert.teacherCertificate=i.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=h.teacherCert).graduateSchool){t.next=4;break}return u("请输入您的毕业院校"),t.abrupt("return");case 4:if(r.subject){t.next=7;break}return u("请输入您的专业"),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:u("提交成功"),e.authStatus=!0;case 11:case"end":return t.stop()}}),t)})))()}},render:function(){var e=this;return i(o,null,[this.authStatus?i(o,null,[i(g,null,null),i(s,{type:"teacherCert",style:{paddingTop:"60px"},classImgSize:"CERT",tips:"感谢您的申请,小酷将在24小时内完成审核,请留意APP消息及短信获取审核结果。"},null)]):i(o,null,[i(g,null,null),i("div",{style:{paddingTop:"12px"}},[i(f,null,null),i(l,{position:"bottom"},{default:function(){return[i("div",{class:["btnGroup"],style:{paddingTop:"12px"}},[i(d,{block:!0,round:!0,onClick:e.onSubmit,type:"primary",text:"提交审核"},null)])]}})])])])}}))}}}))}();
|