pages-public-richtext.07f4cfde.js 1.2 KB

1
  1. 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-8ff8c1be.js";import{_ as u}from"./mp-html.3e3781b6.js";import{_ as m}from"./s-layout.ac40effb.js";import{_ as d}from"./_plugin-vue_export-helper.1b428a4d.js";import"./phone-international-input.03f84f64.js";import"./useGoods.150e1238.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};