pages-public-richtext.3caf766f.js 1.5 KB

1
  1. import{v as t,o as e,aU as s,a as l,b as i,w as n,A as o,j as a,d as _,k as p,i as r}from"./index-4abe765f.js";import{_ as c}from"./mp-html.05a8094f.js";import{_ as u}from"./s-layout.21cf89f4.js";/* empty css */import{_ as d}from"./_plugin-vue_export-helper.1b428a4d.js";import"./mp-html.vue_vue_type_style_index_0_scoped_35b639b7_lang.e69f8567.js";import"./s-layout.vue_vue_type_style_index_0_scoped_0789db2f_lang.77b18047.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_a2d557af_lang.29fddc3b.js";import"./s-tabbar.312fc730.js";import"./useGoods.b2e6a419.js";import"./phone-international-input.bea7cf7d.js";const m=d({__name:"richtext",props:{title:{defautls:"",type:String},type:{defautls:"",type:String}},setup(d){const m=t({title:"",content:""});const y=d;return e((t=>{(t.title||y.title)&&(m.title=t.title||y.title,s({title:m.title||y.title})),async function(t,e){console.log(t,e);const{code:l,data:i}=await o.getArticle(t,e);0===l&&(m.content=i.content,m.title!==i.title&&(m.title=i.title,s({title:m.title})))}(t.id,t.title||y.title)})),(t,e)=>{const s=a(p("mp-html"),c),o=r,y=a(p("s-layout"),u);return m.title&&!d.type?(l(),i(y,{key:0,class:"set-wrap",title:m.title,bgStyle:{color:"#FFF"}},{default:n((()=>[_(o,{class:"ss-p-30"},{default:n((()=>[_(s,{class:"richtext",content:m.content},null,8,["content"])])),_:1})])),_:1},8,["title"])):(l(),i(s,{key:1,class:"richtext",content:m.content},null,8,["content"]))}}},[["__scopeId","data-v-8801a918"]]);export{m as default};