1 |
- import{d as e,r as a,l as t,s,a as l,c as r,w as i,e as o,S as n,b as p,p as u,D as d,U as g,g as m,n as x,k as c,j as b,E as f,h as _,i as h,J as y}from"./index-65a0752a.js";import{_ as v}from"./u-parse.2a5ce958.js";import{_ as j}from"./u-loading-page.6e8b6450.js";import{b as S,i as w}from"./article.cc4fa007.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./u-loading-icon.8860be91.js";import"./u-transition.4a1deb0f.js";const k=e({__name:"detail",setup(e){const{setShare:k,onShareAppMessage:T,onShareTimeline:A}=c();T(),A();let C=a([]),D=a(!0),E={h2:"margin-bottom: 15px;",p:"margin-bottom: 10px;line-height: 1.5;",img:"margin: 10px 0;vertical-align: top;"};return t((e=>{D.value=!0,S(e.id).then((a=>{C.value=a.data,D.value=!1;let t={title:C.value.title,desc:C.value.intro,url:C.value.image};s({title:C.value.title}),k({wechat:{...t},weapp:{...t}}),w(e.id).then((e=>{}))}))})),(e,a)=>{const t=b,s=f,c=_(h("u-parse"),v),S=_(h("u-loading-page"),j);return l(),r(t,{class:"bg-white",style:x(e.themeColor())},{default:i((()=>[o(D)?m("v-if",!0):(l(),n(g,{key:0},[p(t,{class:"border-solid border-t-0 border-l-0 border-r-0 border-b-[1px] border-gray-200 p-[10px]"},{default:i((()=>[p(t,{class:"text-[16px]"},{default:i((()=>[u(d(o(C).title),1)])),_:1}),p(t,{class:"flex align-center justify-between text-[12px] text-gray-400 mt-[15px]"},{default:i((()=>[p(s,null,{default:i((()=>[u(d(o(C).create_time),1)])),_:1})])),_:1})])),_:1}),p(t,{class:"mx-[10px] my-[10px] bg-gray-100 p-[8px] text-[14px] rounded-[5px] leading-[1.3]"},{default:i((()=>[u(d(o(y)("abstract"))+":"+d(o(C).summary),1)])),_:1}),p(t,{class:"px-[10px] pd-[10px]"},{default:i((()=>[p(c,{content:o(C).content,tagStyle:o(E)},null,8,["content","tagStyle"])])),_:1})],64)),p(S,{"bg-color":"rgb(248,248,248)",loading:o(D),loadingText:""},null,8,["loading"])])),_:1},8,["style"])}}});export{k as default};
|