pages-public-richtext.BQKo0jqw.js 1.7 KB

1
  1. import{v as t,o as e,a$ as s,a as l,b as i,d as o,w as n,A as a,e as _,f as p,i as c}from"./index-CRW3onsz.js";import{_ as r}from"./mp-html.B-3YcqpZ.js";import{_ as u}from"./s-layout.DKC65HXL.js";/* empty css */import{_ as m}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./mp-html.vue_vue_type_style_index_0_scoped_b0aa647f_lang.BzDm-2iZ.js";import"./s-menu-tools.CNNsOrh3.js";import"./s-search-block.vue_vue_type_style_index_0_scoped_f692e81a_lang.CiL8L9B_.js";import"./uni-icons.CkO1HN9g.js";import"./s-layout.vue_vue_type_style_index_0_scoped_c1143e8c_lang.HuwOimZj.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_0f0268ff_lang.Dctrwx6t.js";import"./s-search-block.9OtJrST_.js";import"./phone-international-input.vKvR7wTz.js";const d=m({__name:"richtext",props:{title:{defautls:"",type:String},type:{defautls:"",type:String}},setup(m){const d=t({title:"",content:""});const y=m;return e((t=>{(t.title||y.title)&&(d.title=t.title||y.title,s({title:d.title||y.title})),async function(t,e){console.log(t,e);const{code:l,data:i}=await a.getArticle(t,e);0===l&&(d.content=i.content,d.title!==i.title&&(d.title=i.title,s({title:d.title})))}(t.id,t.title||y.title)})),(t,e)=>{const s=l(i("mp-html"),r),a=c,y=l(i("s-layout"),u);return d.title&&!m.type?(_(),o(y,{key:0,class:"set-wrap",title:d.title,bgStyle:{color:"#FFF"}},{default:n((()=>[p(a,{class:"ss-p-30"},{default:n((()=>[p(s,{class:"richtext",content:d.content},null,8,["content"])])),_:1})])),_:1},8,["title"])):(_(),o(s,{key:1,class:"richtext",content:d.content},null,8,["content"]))}}},[["__scopeId","data-v-5927adcf"]]);export{d as default};