PageSourceSearch

https://dutenews.com/n/_nuxt/Comment.772a3078.js

js dutenews.com collected 2026-10-02 15:12:03 UTC 7,020 bytes, 1 lines download raw bytes

1import{_ as at}from"./DownloadApp.vue.b537bb39.js";import{_ as ct}from"./DownloadTips.vue.3ee78117.js";import{_ as it}from"./client-only.2cdaa509.js";import{d as pt,b as I,a3 as lt,G as o,a4 as rt,O as mt,J as t,M as i,u as a,H as n,S as J,U as O,P as r,Q as S,a9 as h,V as v,W as b,N as P,j as _t,aa as dt,ab as ut}from"./element-plus.6f9f2f89.js";import{u as xt,a as R}from"./ToolsBar.184d061a.js";import{u as ft}from"./useLoadMore.7550cdf3.js";import{u as gt}from"./useMessage.7c064441.js";import{_ as y}from"./useCertificationIcon.f2280e46.js";import{d as kt}from"./avatar.34716e59.js";import{_ as q}from"./like.7756ed08.js";import{_ as ht}from"./avatar_default.aaf66778.js";import{_ as vt}from"./empty_comment.0fa5a5a4.js";import{K as bt,L as yt,_ as Ct}from"./entry.2e1e77c3.js";import{f as X}from"./date.52464dc1.js";import{u as Y}from"./useTrack.401d2ab3.js";import"./vue-router.d207c82b.js";import"./vue-plyr.3ccb9e11.js";const wt=d=>(dt("data-v-a6cc39fb"),d=d(),ut(),d),It={id:"comment",class:"comment w-full mt-40px mb-36px"},St={class:"text-[#333] text-24px leading-28px mt-40px font-bold mb-8px"},Vt=wt(()=>t("span",{class:"vertical-middle"},"评论",-1)),Nt={class:"text-18px text-[#666] font-400 vertical-middle"},$t={key:0,class:"mt-16px"},Bt={class:"float-left mr-12px w-40px h-40px relative flex-none"},Dt=["src"],At={key:1,class:"w-40px h-40px rounded-20px bg-[#ddd]",src:kt,alt:""},Mt=["src"],Tt={class:"flex-auto"},Lt={class:"flex flex-col min-h-40px items-start justify-center"},jt={class:"text-14px text-[#666] leading-16px line-clamp-1 break-all"},Kt={key:0,class:"text-12px text-[#999] leading-14px mb-8px mt-6px line-clamp-1 break-all mr-16px"},Qt={class:"text-14px text-[#999] leading-24px mt-6px"},Ut={key:0},Wt={class:"float-right text-[#666] flex items-center"},zt=["onClick"],Et=["onClick"],Ft={class:"inline-block ml-2px"},Gt={key:0,class:"sub-comment mt-12px"},Ht={class:"float-left mr-12px w-24px h-24px relative flex-none"},Jt=["src"],Ot={key:1,class:"w-24px h-24px rounded-12px bg-[#ddd]",src:ht,alt:""},Pt=["src"],Rt={class:"flex-auto"},qt={class:"h-24px"},Xt={key:0,class:"text-[#333] pl-4px"},Yt={class:"text-[#008AC5] pl-4px"},Zt={class:"text-14px text-[#999] leading-24px mt-6px"},ts={key:0},ss={class:"float-right text-[#666] flex items-center"},es=["onClick"],os=["onClick"],ns={class:"inline-block ml-2px"},as={key:1,class:"w-200px mx-auto block",src:vt,alt:""},cs={key:2,class:"text-16px text-[#999] fcc font-400 py-15px"},is=pt({__name:"Comment",props:{contentid:{default:""},appid:{default:""},articleType:{default:""},showDesc:{type:Boolean,default:!1}},async setup(d){let x,V;const C=d;let Z={appid:C.appid,contentid:C.contentid,modules:"common:1",page:0};const w=I(0),{setCommentNum:tt}=xt();Y();const st=c=>{var p,_,l;w.value=((l=(_=(p=c.data.value)==null?void 0:p.data)==null?void 0:_.common)==null?void 0:l.cmt_sum)||0,tt(w.value)},{list:u,noMore:et,empty:ot}=([x,V]=lt(()=>ft({api:yt,ssr:!1,params:Z,resKey:"res.data.value?.data.common.comments",cb:st})),x=await x,V(),x),f=I(!1),N=()=>{f.value=!0},m=I([]);Y();const g=async c=>{const{comment_id:p}=c;if(m.value.includes(p)){gt({message:"请勿重复点赞",type:"warning"});return}let _={comment_id:p,contentid:C.contentid,modules:"support:1"};m.value.push(p),u.value.length>0&&(u.value=u.value.map(l=>{var k;return l.comment_id===p&&l.support_count++,((k=l.comments)==null?void 0:k.length)>0&&(l.comments=l.comments.map(s=>(s.comment_id===p&&s.support_count++,s))),l})),bt(_)};return(c,p)=>{const _=at,l=ct,k=it;return o(),rt(k,null,{default:mt(()=>[t("section",It,[t("div",St,[Vt,t("span",Nt,"("+i(a(w)||0)+")",1)]),a(u).length?(o(),n("ul",$t,[(o(!0),n(J,null,O(a(u),s=>{var $,B,D,A,M,T,L,j;return o(),n("li",{key:s.comment_id,class:"flex mb-32px last:mb-0"},[t("div",Bt,[($=s.passport)!=null&&$.img_url?(o(),n("img",{key:0,class:"w-40px h-40px rounded-20px bg-[#ddd]",src:(B=s.passport)==null?void 0:B.img_url,alt:""},null,8,Dt)):(o(),n("img",At)),("useCertificationIcon"in c?c.useCertificationIcon:a(y))((D=s.passport)==null?void 0:D.certification)?(o(),n("img",{key:2,src:("useCertificationIcon"in c?c.useCertificationIcon:a(y))((A=s.passport)==null?void 0:A.certification),class:"icon absolute w-22px bottom--3px right--3px",alt:""},null,8,Mt)):r("",!0)]),t("div",Tt,[t("div",Lt,[t("p",jt,i((M=s.passport)==null?void 0:M.nickname),1),(T=s.passport)!=null&&T.certification_desc&&c.showDesc?(o(),n("p",Kt,i((L=s.passport)==null?void 0:L.certification_desc),1)):r("",!0)]),t("div",{class:S(["text-16px text-[#333] leading-24px mb-6px break-all",{"mt-8px":!((j=s.passport)!=null&&j.certification_desc)}])},i(s.content),3),t("div",Qt,[h(i(a(X)(+s.create_time*1e3))+" ",1),s.ip_location?(o(),n("span",Ut,"· "+i(s.ip_location),1)):r("",!0),t("div",Wt,[v(t("img",{src:q,class:"w-24px curs
1or-pointer",alt:"",onClick:e=>g(s)},null,8,zt),[[b,!a(m).includes(s.comment_id)]]),v(t("img",{src:R,class:"w-24px",alt:"",onClick:e=>g(s)},null,8,Et),[[b,a(m).includes(s.comment_id)]]),t("span",Ft,i(s.support_count),1),t("span",{class:"inline-block ml-8px cursor-pointer",onClick:N},"回复")])]),s.comments?(o(),n("ul",Gt,[(o(!0),n(J,null,O(s.comments,e=>{var K,Q,U,W,z,E,F,G,H;return o(),n("li",{key:e.comment_id,class:"flex mb-8px last:mb-0"},[t("div",Ht,[(K=e.passport)!=null&&K.img_url?(o(),n("img",{key:0,class:"w-24px h-24px rounded-12px bg-[#ddd]",src:(Q=e.passport)==null?void 0:Q.img_url,alt:""},null,8,Jt)):(o(),n("img",Ot)),("useCertificationIcon"in c?c.useCertificationIcon:a(y))((U=e.passport)==null?void 0:U.certification)?(o(),n("img",{key:2,src:("useCertificationIcon"in c?c.useCertificationIcon:a(y))((W=e.passport)==null?void 0:W.certification),class:"icon absolute w-13px bottom-0 right--3px",alt:""},null,8,Pt)):r("",!0)]),t("div",Rt,[t("div",qt,[t("p",{class:S(["text-14px text-[#666] leading-16px line-clamp-1 break-all",{"mb-16px":!((z=e.passport)!=null&&z.certification_desc)}])},[h(i((E=e.passport)==null?void 0:E.nickname)+" ",1),(F=e.reply)!=null&&F.nickname?(o(),n("span",Xt,[h(" 回复 "),t("span",Yt,"@"+i((G=e.reply)==null?void 0:G.nickname),1)])):r("",!0)],2)]),t("div",{class:S(["text-16px text-[#333] leading-19px mb-6px",{"mt-16px":!((H=e.passport)!=null&&H.certification_desc)}])},i(e.content),3),t("div",Zt,[h(i(a(X)(+e.create_time*1e3))+" ",1),e.ip_location?(o(),n("span",ts,"· "+i(e.ip_location),1)):r("",!0),t("div",ss,[v(t("img",{src:q,class:"w-24px cursor-pointer",alt:"",onClick:nt=>g(e)},null,8,es),[[b,!a(m).includes(e.comment_id)]]),v(t("img",{src:R,class:"w-24px",alt:"",onClick:nt=>g(e)},null,8,os),[[b,a(m).includes(e.comment_id)]]),t("span",ns,i(e.support_count),1),t("span",{class:"inline-block ml-8px cursor-pointer",onClick:N}," 回复 ")])])])])}),128))])):r("",!0)])])}),128))])):r("",!0),a(ot)?(o(),n("img",as)):r("",!0),a(et)?(o(),n("p",cs,"已经到底了")):r("",!0),P(_),P(l,{modelValue:a(f),"onUpdate:modelValue":p[0]||(p[0]=s=>_t(f)?f.value=s:null)},null,8,["modelValue"])])]),_:1})}}});const Is=Ct(is,[["__scopeId","data-v-a6cc39fb"]]);export{Is as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.