import{B as t,o as e,bp as s,f as l,g as i,w as n,aQ as o,q as a,n as c,u as r,l as p}from"./index-007bf156.js";import{_ as u}from"./mp-html.a102e735.js";import{_ as m}from"./s-layout.19bedb43.js";import{_ as d}from"./_plugin-vue_export-helper.1b428a4d.js";import"./phone-international-input.3617e4e0.js";import"./useGoods.ac3bf93e.js";const f=d({__name:"richtext",props:{title:{defautls:"",type:String},type:{defautls:"",type:String}},setup(d){const f=t({title:"",content:""});const y=d;return e((t=>{(t.title||y.title)&&(f.title=t.title||y.title,s({title:f.title||y.title})),async function(t,e){const{code:l,data:i}=await o.getArticle(t,e);0===l&&(f.content=i.content,f.title!==i.title&&(f.title=i.title,s({title:f.title})))}(t.id,t.title||y.title)})),(t,e)=>{const s=a(r("mp-html"),u),o=p,y=a(r("s-layout"),m);return f.title&&!d.type?(l(),i(y,{key:0,class:"set-wrap",title:f.title,bgStyle:{color:"#FFF"}},{default:n((()=>[c(o,{class:"ss-p-30"},{default:n((()=>[c(s,{class:"richtext",content:f.content},null,8,["content"])])),_:1})])),_:1},8,["title"])):(l(),i(s,{key:1,class:"richtext",content:f.content},null,8,["content"]))}}},[["__scopeId","data-v-5342d437"]]);export{f as default};
