pages-public-richtext.cbb75320.js 1.2 KB

1
  1. import{z as t,o as e,bm as s,f as l,g as i,w as n,aO as o,m as a,k as r,n as c,j as p}from"./index-b9093c96.js";import{_ as m}from"./mp-html.91076c61.js";import{_ as u}from"./s-layout.f3d19b34.js";import{_ as d}from"./_plugin-vue_export-helper.1b428a4d.js";import"./phone-international-input.393e85de.js";import"./useGoods.4e351a76.js";const f=d({__name:"richtext",props:{title:{defautls:"",type:String},type:{defautls:"",type:String}},setup(d){const f=t({title:"",content:""});const _=d;return e((t=>{(t.title||_.title)&&(f.title=t.title||_.title,s({title:f.title||_.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||_.title)})),(t,e)=>{const s=a(c("mp-html"),m),o=p,_=a(c("s-layout"),u);return f.title&&!d.type?(l(),i(_,{key:0,class:"set-wrap",title:f.title,bgStyle:{color:"#FFF"}},{default:n((()=>[r(o,{class:"ss-p-30"},{default:n((()=>[r(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};