"use strict";const t=require("./common/vendor.js"),e=require("./sheep/api/promotion/article.js");if(!Array){(t.resolveComponent("mp-html")+t.resolveComponent("s-layout"))()}Math||((()=>"./uni_modules/mp-html/components/mp-html/mp-html.js")+(()=>"./sheep/components/s-layout/s-layout.js"))();const i={__name:"richtext",props:{title:{defautls:"",type:String},type:{defautls:"",type:String}},setup(i){const o=t.reactive({title:"",content:""});const n=i;return t.onLoad((i=>{(i.title||n.title)&&(o.title=i.title||n.title,t.index.setNavigationBarTitle({title:o.title||n.title})),async function(i,n){const{code:l,data:s}=await e.ArticleApi.getArticle(i,n);0===l&&(o.content=s.content,o.title!==s.title&&(o.title=s.title,t.index.setNavigationBarTitle({title:o.title})))}(i.id,i.title||n.title)})),(e,n)=>t.e({a:o.title&&!i.type},o.title&&!i.type?{b:t.p({content:o.content}),c:t.p({title:o.title,bgStyle:{color:"#FFF"}})}:{d:t.p({content:o.content})})}},o=t._export_sfc(i,[["__scopeId","data-v-5342d437"]]);exports.MiniProgramPage=o;
