1 |
- import{v as t,o as e,aU as s,a as l,b as i,d as n,w as o,A as a,e as _,f as p,i as c}from"./index-GG3wbp_l.js";import{_ as r}from"./mp-html.BQw6rWLe.js";import{_ as u}from"./s-layout.D_7slFnG.js";/* empty css */import{_ as d}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./mp-html.vue_vue_type_style_index_0_scoped_b0aa647f_lang.DnBuzdH7.js";import"./s-layout.vue_vue_type_style_index_0_scoped_d5f7c468_lang.52qZkhgC.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_a793e264_lang.CBIXRq2C.js";import"./s-tabbar.CZu-2u-H.js";import"./useGoods.pQoQk4F9.js";import"./phone-international-input.Dq-FdFh0.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 a.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=l(i("mp-html"),r),a=c,y=l(i("s-layout"),u);return m.title&&!d.type?(_(),n(y,{key:0,class:"set-wrap",title:m.title,bgStyle:{color:"#FFF"}},{default:o((()=>[p(a,{class:"ss-p-30"},{default:o((()=>[p(s,{class:"richtext",content:m.content},null,8,["content"])])),_:1})])),_:1},8,["title"])):(_(),n(s,{key:1,class:"richtext",content:m.content},null,8,["content"]))}}},[["__scopeId","data-v-5927adcf"]]);export{m as default};
|