pages-public-richtext.cf28d2fa.js 1.1 KB

1
  1. import{y as t,o as e,bk as l,e as s,f as i,w as n,aM as a,l as o,j as c,m as r,i as p}from"./index-2123fcd6.js";import{_ as u}from"./mp-html.256e2433.js";import{_ as m}from"./s-layout.5f7c8360.js";import{_ as d}from"./_plugin-vue_export-helper.1b428a4d.js";import"./phone-international-input.e3b8a219.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,l({title:f.title||y.title})),async function(t,e){const{code:s,data:i}=await a.getArticle(t,e);0===s&&(f.content=i.content,f.title!==i.title&&(f.title=i.title,l({title:f.title})))}(t.id,t.title||y.title)})),(t,e)=>{const l=o(r("mp-html"),u),a=p,y=o(r("s-layout"),m);return f.title&&!d.type?(s(),i(y,{key:0,class:"set-wrap",title:f.title,bgStyle:{color:"#FFF"}},{default:n((()=>[c(a,{class:"ss-p-30"},{default:n((()=>[c(l,{class:"richtext",content:f.content},null,8,["content"])])),_:1})])),_:1},8,["title"])):(s(),i(l,{key:1,class:"richtext",content:f.content},null,8,["content"]))}}},[["__scopeId","data-v-5342d437"]]);export{f as default};