PageSourceSearch

https://web-static.kurobbs.com/resource/prod/assets/sys-message-Bwg7ipr0.js

js kurobbs.com collected 2026-10-09 01:18:44 UTC 8,707 bytes, 1 lines download raw bytes

1import{_ as se}from"./kr-list-DhwPYV3k.js";import{u as ue}from"./useListRequester-Ci39_XYq.js";import{_ as ae}from"./track-helpers-o_FINLWW.js";import{bu as $,cJ as oe,bO as ie,bo as ne,bl as le,bA as re,cK as k}from"./useConfig-DLqk4N_9.js";import{k as R,r as y,L as me,m as l,n as d,q as o,E as D,t as L,G as r,z as b,D as P,F as w,an as J,ao as Z,ap as U,a as ce,o as Q,K as de,aa as pe,A as _e,u as s,C as S,Z as W,y as fe,ar as Fe,a0 as ge}from"./index-BMfzZz2f.js";import{t as K,U as x,E as j}from"./index-DCU6Kl-8.js";import{K as Ee,y as ye,E as Be}from"./kr-button-CdLzKUTK.js";import{E as De}from"./el-input-BGHNzqxF.js";import{u as be}from"./useElementExpose-ARIAsv75.js";import{u as ve}from"./useMessageCenter-BCLfzTDn.js";import{v as Ce,B as he,T as ke,a as Ae}from"./index-CWPdzgN0.js";/* empty css                                                                              */import{L as Te}from"./list-msg-skeleton-CtjDCHx1.js";import"./kr-empty-VwY3f9yI.js";import"./useCallApp-JorNIVgI.js";import"./helper-DSZogfxD.js";import"./app-bridge-PA9a5H5h.js";/* empty css              */import"./sentry-handler-CCDRxDqW.js";import"./list-skeleton-51rTi550.js";import"./base-post-skeleton-PYTsR-dw.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},f=new u.Error().stack;f&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[f]="7fb4ae0d-3055-4b82-9e3a-fe27793b0768",u._sentryDebugIdIdentifier="sentry-dbid-7fb4ae0d-3055-4b82-9e3a-fe27793b0768")}catch(t){}})();const Ie=u=>(J("data-v-a37e7fea"),u=u(),Z(),u),Se=["disabled"],we={class:"dialog-content"},Ke=Ie(()=>o("p",{class:"tip mt-16"}," 请注意:每篇帖子仅能申诉1次,提交后将在3-5个工作日内完成审核 ",-1)),xe={class:"btn-handler flex-all-center mt-28"},Ne=R({__name:"appeal-btn",props:{id:{},postId:{},isAppealed:{type:Boolean}},emits:["after-success"],setup(u,{emit:f}){const t=u,A=f,m=y(!1),c=y(0),_=me({reason:""}),T=()=>{m.value=!0},B=()=>{m.value=!1,_.reason=""},F=async p=>{try{if(!t.id)return;if(c.value>=3)return $("提交失败,请重试。您似乎遇到了问题,请在【我的】-【意见反馈】提交反馈,我们将尽快为您处理。");const i={reason:_.reason.trim(),noticeId:t.id},a=await oe(i);if(K(x.提交申诉,Object.assign({post_id:t.postId,appeal_result:a.data.code===200},a.data.code===200?{}:{code:a.data.code===200?"":String(a.data.code),msg:a.data.code===200?"":a.data.msg})),a.data.code===200)$(a.data.msg),c.value=0,A("after-success"),B();else throw $("提交失败,请重试。"),new Error}catch(i){c.value++}finally{p&&p()}};return(p,i)=>{const a=De,v=ye,C=Be,N=ie;return l(),d(w,null,[o("button",{class:L(["btn appeal-btn",{appealed:!p.isAppealed}]),disabled:p.isAppealed,onClick:T},D(p.isAppealed?"已提交申诉":"提交申诉"),11,Se),r(N,{visible:m.value,"onUpdate:visible":i[1]||(i[1]=g=>m.value=g),title:"申诉理由",width:"420px"},{default:b(()=>[o("div",we,[r(C,{model:_},{default:b(()=>[r(v,null,{default:b(()=>[r(a,{modelValue:_.reason,"onUpdate:modelValue":i[0]||(i[0]=g=>_.reason=g),type:"textarea",placeholder:"请描述你遇到的问题(选填)",maxlength:"80",class:"reason-input","show-word-limit":""},null,8,["modelValue"]),Ke]),_:1})]),_:1},8,["model"]),o("div",xe,[o("button",{class:"btn mr-24",onClick:B}," 取消 "),r(Ee,{class:"btn primary",onClick:F},{default:b(()=>[P(" 提交申诉 ")]),_:1})])])]),_:1},8,["visible"])],64)}}}),Ve=U(Ne,[["__scopeId","data-v-a37e7fea"]]),$e={class:"helper-content"},Le={class:"name text-14 mb-8"},Pe={key:0,class:"mb-8"},Re={class:"handler-group"},Ue=["onClick"],Oe={class:"time text-12"},He=84,Me=R({__name:"sys-message-item",props:{item:{}},emits:["fetch-data"],setup(u,{emit:f}){const t=u,A=f,m=ne(),c=le(),{trackToDetail:_}=ve(),T=re(),B=y(!1),F=y(),p=y(0),i=y(),a=y(!1),v=ce(()=>t.item.linkType||t.item.assistantType===33),C=()=>{let e="";t.item.linkType===k.POST?e=m.resolve({name:"PostDetail",params:{game:Number(t.item.gameId)===Fe.pns?"pns":"mc",postId:t.item.linkTarget},query:{enter_source:j.SYSTEM_PUSH}}).href:t.item.linkType===k.LINK?e=he(t.item.linkTarget,{params:{[ke.bbs_clientSource]:String(Ae.系统推送)}}):t.item.assistantType===33&&(e=m.resolve({name:"NewPost",params:{game:c.config.gameTxt,forum:c.config.forumType,postId:t.item.postId},query:{toDraft:"true"}}).href),_({new_msg:t.item.readState==1,message_id:t.item.id,post_id:t.item.postId,comment_id:t.item.postCommentId,reply_id:t.item.postCommentReplyId});try{K(x.点击系统推送通知配置内容,g(),!1)}catch(n){console.error("点击系统推送通知配置内容失败:",n)}e!==""&&window.open(e,"_blank")},N=e=>{let n="";try{e.linkType===k.POST?n=m.resolve({name:"PostDetail",params:{game:c.config.gameTxt,postId:t.item.linkTarget},query:{enter_source:j.SYSTEM_PUSH}}).href:e.linkType===k.LINK&&(n=e.linkTarget),K(x.点击系统推送通知配置内容,g(),!1),window.open(n,"_blank")}catch(E){console.error("点击系统推送通知配置内容失败:",E)}};be({target:i,once:!1,pageVisibility:!0,callback:()=>{try{K(x.系统推送内容曝光,g(),!1),console.log("系统推送内容曝光",g())}catch(e){console.error("系统推送内容曝光失败:",e)}}});const g=()=>{var e,n,E,I;return{message_id:t.item.id||"",message_title:t.item.noticeTitle||"",redirect_type:t.item.linkType||0,redirect_content:t.item.linkType&&(n=(e=t.item)==null?void 0:e.linkTarget)!=null?n:"",message_scenario:(I=(E=t.item)==null?void 0:E.
1comeFrom)!=null?I:"",message_sender:"",message_style:t.item.picUrl?"2":"1",message_type:"2"}},ee=e=>{a.value||!e||t.item.readState==2||(T.pushItem(t.item),a.value=!0)};return Q(async()=>{de(()=>{const{height:e}=F.value.getBoundingClientRect();p.value=e,p.value>He&&(B.value=!0)})}),(e,n)=>{var E,I,O,H,M,q,G,Y,z;const V=pe("KIcon"),te=ae;return _e((l(),d("div",{class:L(["flex",{"no-read":e.item.readState===1,read:e.item.readState!==1}])},[r(V,{class:"icon mr-16",name:"sys-bell"}),o("div",$e,[o("div",Le,D((E=e.item)==null?void 0:E.noticeTitle),1),o("div",{ref_key:"contentRef",ref:i,class:"content mb-8"},[o("div",{ref_key:"shadowRef",ref:F,class:L(["txt mb-8",{"txt-overflow-ellipsis-10":s(B)}])},D((I=e.item)==null?void 0:I.noticeContent),3),(O=e.item)!=null&&O.picUrl?(l(),d("div",Pe,[r(te,{src:(H=e.item)==null?void 0:H.picUrl,width:"266px",height:"150px",class:"border-rd-7",alt:(M=e.item)==null?void 0:M.noticeTitle},null,8,["src","alt"])])):S("",!0),o("div",Re,[(q=e.item)!=null&&q.linkDetails?(l(!0),d(w,{key:0},W(e.item.linkDetails.filter(h=>h.linkType),h=>(l(),d("button",{key:h.linkTarget,class:"tip btn",onClick:Ze=>N(h)},[P(D(h.linkTitle)+" ",1),r(V,{class:"ml-4",name:"chevron-blue"})],8,Ue))),128)):((G=e.item)==null?void 0:G.linkType)===s(k).LINK||((Y=e.item)==null?void 0:Y.linkType)===s(k).POST?(l(),d(w,{key:1},[s(v)?(l(),d("button",{key:0,class:"tip btn",onClick:C},[P(D(t.item.assistantType===33?"草稿箱":"点击查看")+" ",1),r(V,{class:"ml-4",name:"chevron-blue"})])):S("",!0)],64)):S("",!0),e.item.allowAppeal||e.item.hasAppealed?(l(),fe(Ve,{key:2,id:e.item.id,"post-id":e.item.postId,"is-appealed":e.item.hasAppealed,onAfterSuccess:n[0]||(n[0]=h=>A("fetch-data"))},null,8,["id","post-id","is-appealed"])):S("",!0)])],512),o("div",Oe,D((z=e.item)==null?void 0:z.showTime),1)])],2)),[[s(Ce),ee]])}}}),qe=U(Me,[["__scopeId","data-v-8f61d60c"]]),X=u=>(J("data-v-20f71a2d"),u=u(),Z(),u),Ge=X(()=>o("h2",{class:"title text-18 pb-20"},"系统通知",-1)),Ye={class:"content-section"},ze={key:0,class:"list mt-8"},je=X(()=>o("div",{class:""},D("(仅显示最近2年的消息记录)"),-1)),Je=R({__name:"sys-message",setup(u){const{queryParams:f,tableData:t,loadMore:A,loadData:m,hasNext:c,pagination:_,isInit:T,isError:B}=ue("/user/notice/help/page","noticeVos");f.type=3;const F=y();return Q(async()=>{F.value=await m({type:1})}),(p,i)=>{var a,v;return l(),d(w,null,[Ge,o("div",Ye,[r(se,{list:s(t),"min-height":"calc(100vh - 60px - 248px - 24px)","has-next":s(c),"is-init":s(T),"auto-load-more":!s(B),"sub-description":!s(c)&&((a=s(F))!=null&&a.ignoreHistory)?"(仅显示最近2年的消息记录)":"",onNextPage:s(A)},ge({skeleton:b(()=>[r(s(Te),{count:6})]),default:b(()=>[s(t).length?(l(),d("ul",ze,[(l(!0),d(w,null,W(s(t),C=>(l(),d("li",{key:C.id,class:"item mb-20 py-16"},[r(qe,{item:C,onFetchData:i[0]||(i[0]=()=>s(m)({updateIdx:s(_).pageIndex,filterKey:"id"}))},null,8,["item"])]))),128))])):S("",!0)]),_:2},[!s(c)&&((v=s(F))!=null&&v.ignoreHistory)?{name:"lastAppendTxt",fn:b(()=>[je]),key:"0"}:void 0]),1032,["list","has-next","is-init","auto-load-more","sub-description","onNextPage"])])],64)}}}),Et=U(Je,[["__scopeId","data-v-20f71a2d"]]);export{Et 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.