PageSourceSearch

https://common.busionline.com/website-micro/dev/js/1412.0bb6ec34.js

js busionline.com collected 2026-10-08 22:20:23 UTC 12,952 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkmalanhua"]=self["webpackChunkmalanhua"]||[]).push([[1412],{91412:function(e,t,n){n.r(t),n.d(t,{default:function(){return I}});var i=function(){var e=this,t=e._self._c;return t("LecturerSignup",{attrs:{bannerImg:e.info.report_banner,desc:e.info.report_desc,status:e.info.report_status,sendPhoneCodeFunc:e.sendPhoneCode},on:{submit:e.onSubmit}})},a=[],r=n(53219),s=n.n(r),o=n(88553),l=n(90683),c=(n(68309),function(){var e=this,t=e._self._c;return t("div",{class:{container:!0,signup:!0,disabled:e.showSuccessDialog||e.showEditConfirmDialog}},[e.bannerImg?t("img",{staticClass:"banner",attrs:{src:e.bannerImg,alt:""}}):e._e(),t("div",{staticClass:"form"},[1===e.status?t("div",{staticClass:"form__content"},[t("div",{staticClass:"form__content__box"},[e.desc?t("div",{staticClass:"form__content__desc"},[t("span",[e._v(e._s(e.desc))]),t("div",{staticClass:"form__content__desc__sign"})]):e._e(),t("el-steps",{staticStyle:{"margin-top":"48px"},attrs:{active:e.stepActive,"align-center":""}},[t("el-step",{attrs:{title:"验证报名信息"}}),t("el-step",{attrs:{title:"提交资料作品"}}),t("el-step",{attrs:{title:"完成"}})],1),1==e.stepActive?[t("el-form",{ref:"signUpForm",attrs:{"label-position":"top",inline:!0,model:e.formField,rules:e.formRules}},[t("el-row",{attrs:{gutter:32}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{prop:"realname",label:"姓名"}},[t("el-input",{attrs:{placeholder:"请输入姓名",maxlength:"20"},model:{value:e.formField.realname,callback:function(t){e.$set(e.formField,"realname",t)},expression:"formField.realname"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{prop:"idcard",label:"身份证号"}},[t("el-input",{attrs:{placeholder:"请输入身份证号",maxlength:"18"},model:{value:e.formField.idcard,callback:function(t){e.$set(e.formField,"idcard",t)},expression:"formField.idcard"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{prop:"phone",label:"手机号码"}},[t("el-input",{attrs:{placeholder:"请输入手机号码",maxlength:"11"},model:{value:e.formField.phone,callback:function(t){e.$set(e.formField,"phone",t)},expression:"formField.phone"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{prop:"phoneCode",label:"验证码"}},[t("el-input",{attrs:{placeholder:"请输入验证码",maxlength:"6"},model:{value:e.formField.phoneCode,callback:function(t){e.$set(e.formField,"phoneCode",t)},expression:"formField.phoneCode"}},[t("template",{slot:"append"},[t("el-button",{class:{sendCode:!0,disabled:!e.canSendCode},on:{click:function(t){return e.debounce(e.fnSendCode)}}},[e._v(e._s(0===e.sendTime?"发送验证码":"".concat(e.sendTime,"s重新发送")))])],1)],2)],1)],1)],1)],1),t("div",{staticStyle:{width:"100%","text-align":"center","margin-top":"32px"}},[t("el-button",{staticClass:"submit",attrs:{type:"primary"},on:{click:function(t){return e.debounce(e.checkSignup)}}},[e._v("下一步")])],1)]:e._e(),2==e.stepActive?[t("el-form",{ref:"materialForm",staticStyle:{"max-width":"600px",margin:"0 auto"},attrs:{"label-position":"top",inline:!0,model:e.materialsField,rules:e.formRules}},[t("el-form-item",{attrs:{prop:"channel_id",label:"报名赛道"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:e.materialsField.channel_id,callback:function(t){e.$set(e.materialsField,"channel_id",t)},expression:"materialsField.channel_id"}},e._l(e.channelList,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),t("el-form-item",{attrs:{label:"参赛视频"}},[t("el-upload",{attrs:{limit:1,action:e.FILE_ADDR,"on-success":function(t){return e.signupHandleSuccess(t,e.FILE_TYPE["Video"])},"on-remove":function(t){return e.signupHandleRemove(t,e.FILE_TYPE["Video"])},"on-exceed":e.signupHandleExceed,"before-upload":function(t){return e.beforeUpload(t,100,["mp4"])},accept:e.FILE_ACCEPT["Video"]}},[t("el-button",{attrs:{type:"primary",plain:""}},[e._v("上传视频")]),t("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("建议上传清晰度在720P以上的视频,格式为mp4,大小在100M以内")])],1)],1),t("el-form-item",{attrs:{label:"参赛材料",prop:"materials_files"}},[t("el-upload",{attrs:{limit:5,action:e.FILE_ADDR,"on-success":function(t){return e.signupHandleSuccess(t,e.FILE_TYPE["Attachment"])},"on-remove":function(t){return e.signupHandleRemove(t,e.FILE_TYPE["Attachment"])},"on-exceed":e.signupHandleExceed,accept:e.FILE_ACCEPT["Attachment"],"before-upload":function(t){return e.beforeUpload(t,10,["pdf","docx","xlsx","pptx","jpg","jpeg","png"])}}},[t("el-button",{attrs:{type:"primary",plain:""}},[e._v("上传材料")]),t("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v(" 作品提交格式要求,格式为pdf、docx、xlsx、pptx、jpg,jpeg,png文件,最多上传5份 ")])],1)],1)],1),t("div",{staticStyle:{width:"100%","text-align":"center","margin-top":"32px"}},[t("el-button",{staticClass:"submit",attrs:{type:"primary"},on:{click:function(t){return e.debounce(e.submitMaterialForm)}}},[e._v("确认提交")])],1)]:e._e()],2)]):t("div",{staticClass:"form__empty"},[t("img",{staticClass:"form__empty__img",attrs:{src:n(77642),alt:""}}),t("p",{staticClass:"form__empty__desc"},[e._v(" "+e._s(e.SIGNUP_STATUS[e.status])+" ")])])]),t("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.showRemindDialog,expression:"showRemindDialog !== 0"}],staticClass:"dialog"},[t("div",{staticClass:"dialog__container"},[1===e.showRemindDialog?t("div",{staticClass:"dialog__container__content"},[t("i",{staticClass:"iconfont iconicon_jingshi_xian"}),t("div",{staticClass:"dialog__container__content__desc",staticStyle:{"margin-top":"16px"}},[e._v(" 确认提交后将不能修改参赛材料申报信息,请确认是否提交? ")]),t("div",{staticClass:"button"},[t("el-button",{on:{click:function(t){e.showRemindDialog=0}}},[e._v("取消")]),t("el-button",{attrs:{type:"primary"},on:{click:e.sureBut}}
1,[e._v("确认")])],1)]):e._e()])])])}),d=[],u=n(86080),m=n(51907),p=n(85617),f=(n(9653),n(74916),n(73210),n(26699),n(32023),n(57327),n(41539),n(15306),n(52614)),h=(n(69600),{EntryForm:1,Video:2,Attachment:3}),_={ID_CARD:/^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,PHONE:/^1[3456789]\d{9}$/},g={Entry:["image/jpg","image/jpeg","image/png"].join(", "),Video:["video/mp4"].join(", "),Attachment:["application/pdf","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","image/jpg","image/jpeg","image/png"].join(", ")},v={0:"资料申报未开启",2:"资料申报已结束"},F={realname:{required:!0,message:"姓名不能为空",trigger:"blur"},idcard:[{required:!0,validator:function(e,t,n){return t?_["ID_CARD"].test(t)?void n():n(new Error("身份证格式错误")):n(new Error("身份证不能为空"))}}],phone:[{required:!0,validator:function(e,t,n){return t?_["PHONE"].test(t)?void n():n(new Error("请输入正确的手机号码")):n(new Error("手机号不能为空"))}}],phoneCode:[{required:!0,message:"验证码不能为空"}],channel_id:[{required:!0,message:"报名赛道不能为空"}],materials_files:[{required:!0,validator:function(e,t,n){if(!t.length)return n(new Error("参赛材料必填"));n()}}]},b={inject:["reload"],props:{bannerImg:{type:String,default:""},desc:{type:String,default:""},status:{type:Number,default:0},sendPhoneCodeFunc:{type:Function}},data:function(){return{FILE_ADDR:f.Z.FILE_UPLOAD_URL,SIGNUP_STATUS:v,FILE_TYPE:h,RULES:_,FILE_ACCEPT:g,showSuccessDialog:!1,showEditConfirmDialog:!1,dialogImageUrl:"",dialogVisible:!1,timeout:null,sendTime:0,formRules:F,showRemindDialog:0,stepActive:1,channelList:[],formField:{realname:"",idcard:"",phone:"",ph
1oneCode:""},materialsField:{channel_id:null,materials_videos:[],materials_files:[]}}},computed:{canSendCode:function(){return this.RULES["PHONE"].test(this.formField.phone)&&this.sendTime<=0}},methods:{sureBut:function(){this.showRemindDialog=0},fnSendCode:function(){var e=this;return(0,p.Z)((0,m.Z)().mark((function t(){var n,i,a,r;return(0,m.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.canSendCode){t.next=2;break}return t.abrupt("return");case 2:return n=e.formField,i=n.realname,a=n.idcard,r=n.phone,t.next=5,e.sendPhoneCodeFunc({realname:i,idcard:a,phone:r,secret:e.$route.query.secret});case 5:e.sendTime=60,setInterval((function(){e.sendTime>0&&e.sendTime--}),1e3);case 7:case"end":return t.stop()}}),t)})))()},checkSignup:function(){var e=this;return(0,p.Z)((0,m.Z)().mark((function t(){return(0,m.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$refs.signUpForm.validate(function(){var t=(0,p.Z)((0,m.Z)().mark((function t(n){var i;return(0,m.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n){t.next=2;break}return t.abrupt("return");case 2:i={secret:e.$route.query.secret,realname:e.formField.realname,idcard:e.formField.idcard,phone:e.formField.phone,phoneCode:e.formField.phoneCode,verify_code:1},(0,l.P9)((0,u.Z)((0,u.Z)({},i),{},{phoneCode:e.formField.phoneCode})).then((function(){(0,l.jF)((0,u.Z)({},i)).then((function(t){200===t.code&&(Array.isArray(t.data)&&t.data.length>=0?(e.channelList=t.data,e.stepActive++):e.$message.warning("请先完成报名,再进行作品提交"))}))})).catch((function(e){console.log("🐞 => checkEnrollInfo => err:",e)}));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},submitMaterialForm:function(){var e=this;return(0,p.Z)((0,m.Z)().mark((function t(){return(0,m.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$refs.materialForm.validate(function(){var t=(0,p.Z)((0,m.Z)().mark((function t(n){var i;return(0,m.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n){t.next=2;break}return t.abrupt("return");case 2:i={realname:e.formField.realname,idcard:e.formField.idcard,phone:e.formField.phone,phoneCode:e.formField.phoneCode},e.$emit("submit",(0,u.Z)((0,u.Z)((0,u.Z)({},i),e.materialsField),{},{secret:e.$route.query.secret}));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},signupHandleSuccess:function(e,t){var n=e.data,i=n.filename,a=n.url,r={name:i,address:a};switch(t){case this.FILE_TYPE["Video"]:this.materialsField.materials_videos.length?(this.materialsField.materials_videos=[],this.materialsField.materials_videos.push(r)):this.materialsField.materials_videos.push(r);break;case this.FILE_TYPE["Attachment"]:this.materialsField.materials_files.push(r);break;default:break}},beforeUpload:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=e.name.trim(),a=i.substring(i.lastIndexOf(".")+1,i.length);if(n.length>0&&!n.includes(a))return this.$message.error("上传文件格式不符合要求!"),!1;var r=e.size/1024/1024<t;return r||this.$message.error("上传文件大小不能超过 ".concat(t,"MB!")),r},signupHandleExceed:function(e,t){this.$message.warning("当前限制最多只能上传 ".concat(t.length," 个文件"))},signupHandleRemove:function(e,t){var n=e.response.data.url;switch(t){case this.FILE_TYPE["Video"]:this.materialsField.materials_videos=this.materialsField.materials_videos.filter((function(e){return e.address!==n}));break;case this.FILE_TYPE["Attachment"]:this.materialsField.materials_files=this.materialsField.materials_files.filter((function(e){return e.address!==n}));break}},debounce:function(e){var t=this;this.timeout&&clearTimeout(this.timeout),e(),this.timeout=setTimeout((function(){t.timeout=null}),100)}},watch:{"formField.idcard":function(e){this.formField.idcard=e.replace(/[\u4e00-\u9fa5/\s+/]|[^a-zA-Z0-9\u4E00-\u9FA5]/g,"")},"formField.phone":function(e){this.formField.phone=e.replace(/[^\d]/g,"")},"formField.phoneCode":function(e){this.formField.phoneCode=e.replace(/[^\d]/g,"")}}},C=b,x=n(1001),w=(0,x.Z)(C,c,d,!1,null,"779a456a",null),E=w.exports,y={inject:["reload"],components:{LecturerSignup:E},data:function(){return{info:{},sendPhoneCode:l.bL}},created:function(){this.fetch()},methods:{fetch:function(){var e=this;(0,l.C5)({secret:this.$route.query.secret}).then((function(t){200===t.code&&(Date.now()>s()(t.data.report_end_time).valueOf()&&(t.data.report_status=2),e.info=t.data)}))},onSubmit:function(e){var t=this;e.contest_files=e.materials_files,e.contest_videos=e.materials_videos,delete e.materials_files,delete e.materials_videos,(0,l.F2)(e).then((function(e){t.$confirm("申报成功","提示",{confirmButtonText:"确定",showCancelButton:!1,type:"success"}).then((function(){(0,o.f)()}))}))}}},S=y,k=(0,x.Z)(S,i,a,!1,null,null,null),I=k.exports}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.