mirror of https://github.com/rocboss/paopao-ce
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
7.3 KiB
2 lines
7.3 KiB
2 years ago
|
import{d as w,W as n,Y as t,Z as l,ak as R,aw as q,a4 as a,a5 as r,a8 as $,a9 as p,aa as v,a6 as S,a7 as i,a3 as h,b3 as D,bi as A,bj as P,bk as T,ae as E,bl as H,af as U,al as j,ac as V,ab as z,r as x,a2 as W,ai as Y,bm as Z,$ as G}from"./index-c17d3913.js";import{a as J}from"./formatTime-09781e30.js";import{_ as K}from"./Alert-e0e350bb.js";import{_ as Q}from"./Thing-2157b754.js";import{b as X,a as ee,_ as ne}from"./Skeleton-ca436747.js";import{_ as se}from"./main-nav.vue_vue_type_style_index_0_lang-d6b3b6a4.js";import{_ as te}from"./List-28c5febd.js";import{_ as oe}from"./Pagination-84d10fc7.js";const ae={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},re=l("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M464 128L240 384l-96-96"},null,-1),le=l("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M144 384l-96-96"},null,-1),ie=l("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 128L232 284"},null,-1),ce=[re,le,ie],_e=w({name:"CheckmarkDoneOutline",render:function(_,d){return n(),t("svg",ae,ce)}}),de={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ue=l("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M416 128L192 384l-96-96"},null,-1),me=[ue],pe=w({name:"CheckmarkOutline",render:function(_,d){return n(),t("svg",de,me)}}),ge={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ke=l("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 368L144 144"},null,-1),he=l("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 144L144 368"},null,-1),we=[ke,he],L=w({name:"CloseOutline",render:function(_,d){return n(),t("svg",ge,we)}}),ve={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},fe=l("path",{d:"M336 192h40a40 40 0 0 1 40 40v192a40 40 0 0 1-40 40H136a40 40 0 0 1-40-40V232a40 40 0 0 1 40-40h40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),ye=l("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M336 128l-80-80l-80 80"},null,-1),xe=l("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 321V48"},null,-1),$e=[fe,ye,xe],Ce=w({name:"ShareOutline",render:function(_,d){return n(),t("svg",ve,$e)}}),Me={class:"sender-wrap"},be={key:0,class:"nickname"},je={class:"username"},Be={key:1,class:"nickname"},Oe={class:"timestamp"},Le={class:"timestamp-txt"},Se={key:0,class:"brief-content"},Ve={key:1,class:"whisper-content-wrap"},ze={key:2,class:"requesting-friend-wrap"},Fe={key:2,class:"status-info"},Ie={key:3,class:"status-info"},Ne=w({__name:"message-item",props:{message:null},setup(e){const _="https://assets.paopao.info/public/avatar/default/admin.png",d=R(),c=s=>{u(s),(s.type===1||s.type===2||s.type===3)&&(s.post&&s.post.id>0?d.push({name:"post",query:{id:s.post_id}}):window.$message.error("该动态已被删除"))},g=s=>{u(s),A({user_id:s.sender_user_id}).then(o=>{s.reply_id=2,window.$message.success("已同意添加好友")}).catch(o=>{console.log(o)})},f=s=>{u(s),P({user_id:s.sender_user_id}).then(o=>{s.reply_id=3,window.$message.success("已拒绝添加好友")}).catch(o=>{console.log(o)})},u=s=>{s.is_read===0&&T({id:s.id}).then(o=>{s.is_read=1}).catch(o=>{console.log(o)})};return(s,o)=>{const C=E,m=q("router-link"),B=H,k=U,M=K,b=Q;return n(),t("div",{class:D(["message-item",{unread:e.message.is_read===0}]),onClick:o[4]||(o[4]=y=>u(e.message))},[a(b,{"content-indented":""},{avatar:r(()=>[a(C,{round:"",size:30,src:e.message.sender_us
|