mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-06 13:08:10 +00:00
2 lines
1.9 KiB
JavaScript
2 lines
1.9 KiB
JavaScript
import{d as e,r as a,o as t,s,i as r,j as l,w as o,n as i,P as n,k as p,G as u,H as d,R as m,m as g,x,I as c,q as f,t as b,K as _}from"./index-faf5e276.js";import{_ as h}from"./u-parse.2d43cacf.js";import{_ as j}from"./u-loading-page.4ec3ad33.js";import{c as v}from"./article.0849380d.js";import{u as y}from"./useShare.3b5bf680.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./u-loading-icon.a6d83e95.js";import"./u-transition.bcacef93.js";import"./wechat.2fa35c62.js";const S=e({__name:"detail",setup(e){const{setShare:S,onShareAppMessage:w,onShareTimeline:T}=y();w(),T();let k=a([]),q=a(!0),H={h2:"margin-bottom: 15px;",p:"margin-bottom: 10px;line-height: 1.5;",img:"margin: 10px 0;"};return t((e=>{q.value=!0,v(e.id).then((e=>{k.value=e.data,q.value=!1;let a={title:k.value.title,desc:k.value.intro,url:k.value.image};s({title:k.value.title}),S({wechat:{...a},weapp:{...a}})}))})),(e,a)=>{const t=x,s=c,v=f(b("u-parse"),h),y=f(b("u-loading-page"),j);return r(),l(t,{class:"bg-white"},{default:o((()=>[i(q)?g("v-if",!0):(r(),n(m,{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:o((()=>[p(t,{class:"text-[16px]"},{default:o((()=>[u(d(i(k).title),1)])),_:1}),p(t,{class:"flex align-center justify-between text-[12px] text-gray-400 mt-[15px]"},{default:o((()=>[p(s,null,{default:o((()=>[u(d(i(k).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:o((()=>[u(d(i(_)("abstract"))+":"+d(i(k).summary),1)])),_:1}),p(t,{class:"px-[10px] pd-[10px]"},{default:o((()=>[p(v,{content:i(k).content,tagStyle:i(H)},null,8,["content","tagStyle"])])),_:1})],64)),p(y,{"bg-color":"rgb(248,248,248)",loading:i(q),fontSize:"16",color:"#333",loadingText:i(_)("loadingText")},null,8,["loading","loadingText"])])),_:1})}}});export{S as default};
|