1 |
- import{Y as t,v as e,o as l,b7 as i,e as s,f as a,w as o,l as n,j as r,m as c,i as p}from"./index-f0468be9.js";import{_ as u}from"./mp-html.24b14287.js";import{_ as m}from"./s-layout.fd85e290.js";import{_ as d}from"./_plugin-vue_export-helper.1b428a4d.js";const _={getArticle:(e,l)=>t({url:"/promotion/article/get",method:"GET",params:{id:e,title:l}})},f=d({__name:"richtext",props:{title:{defautls:"",type:String},type:{defautls:"",type:String}},setup(t){const d=t,f=e({title:"",content:""});return l((t=>{(t.title||d.title)&&(f.title=t.title||d.title,i({title:f.title||d.title})),async function(t,e){const{code:l,data:s}=await _.getArticle(t,e);0===l&&(f.content=s.content,f.title!==s.title&&(f.title=s.title,i({title:f.title})))}(t.id,t.title||d.title)})),(e,l)=>{const i=n(c("mp-html"),u),d=p,_=n(c("s-layout"),m);return f.title&&!t.type?(s(),a(_,{key:0,class:"set-wrap",title:f.title,bgStyle:{color:"#FFF"}},{default:o((()=>[r(d,{class:"ss-p-30"},{default:o((()=>[r(i,{class:"richtext",content:f.content},null,8,["content"])])),_:1})])),_:1},8,["title"])):(s(),a(i,{key:1,class:"richtext",content:f.content},null,8,["content"]))}}},[["__scopeId","data-v-5342d437"]]),y=Object.freeze(Object.defineProperty({__proto__:null,default:f},Symbol.toStringTag,{value:"Module"}));export{_ as A,y as a,f as r};
|