index.9bb60c6b.js 887 B

1
  1. import{d as l,g as r,m as c,c as o,f as n,aj as p}from"./index.5f7ffb46.js";const i="_mProtocol_lk2r6_1",T="_LABOR_TEACHER_lk2r6_18";var a={mProtocol:i,LABOR_TEACHER:T},u=l({name:"preview-protocol",data(){return{protocolHTML:""}},async mounted(){let t="REGISTER";const e=this.$route.query.type;e?(t=e.toString(),e==="LABOR_TEACHER"&&(document.title="\u7BA1\u4E50\u56E2\u52B3\u52A1\u534F\u8BAE")):r.platformType==="STUDENT"?t="REGISTER":t="REGISTER_TEACHER";try{if(!this.protocolHTML){const{data:s}=await c.get(r.platformApi+"/open/userContractRecord/queryLatestContractTemplate",{params:{contractType:t||"REGISTER"}});this.protocolHTML=s.contractTemplateContent||""}}catch{}},render(){return o("div",{id:"mProtocol"},[n().isApp&&o(p,null,null),o("div",{class:[a.mProtocol,this.$route.query.type?a[this.$route.query.type]:""],innerHTML:this.protocolHTML},null)])}});export{u as default};