pages-public-richtext.e39f8e2f.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-0d77224a.js";import{_ as c}from"./mp-html.5777f634.js";import{_ as u}from"./s-layout.a2dc8218.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.420acdb3.js";import"./s-layout.vue_vue_type_style_index_0_scoped_0789db2f_lang.0894251f.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_a2d557af_lang.5383eb65.js";import"./s-tabbar.a1f477e6.js";import"./useGoods.40d21401.js";import"./phone-international-input.3630e35a.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};