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