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.
paopao-ce/web/dist/assets/Profile-4de34973.js

2 lines
7.4 KiB

import{_ as ve,a as _e}from"./post-item.vue_vue_type_style_index_0_lang-00700b6e.js";import{_ as me}from"./post-skeleton-a2a78086.js";import{_ as pe}from"./main-nav.vue_vue_type_style_index_0_lang-d73b2ee7.js";import{d as fe,r as s,j as de,w as ge,a4 as he,c as f,V as i,_ as u,Q as k,a2 as p,O as y,o as r,a as c,M as d,e as C,a3 as A,F as J,a5 as K}from"./@vue-7e1ab0af.js";import{u as ke}from"./vuex-f1ee712f.js";import{b as we}from"./vue-router-edf90322.js";import{B as b,_ as ye}from"./index-dd38be03.js";import{b as be}from"./formatTime-4210fcd1.js";import{W as Pe}from"./v3-infinite-loading-0611cb6c.js";import{F as Ie,a as Te,o as Me,M as ze,f as qe,g as xe,H as Ce,k as $e,G as Le}from"./naive-ui-702193c2.js";import"./content-ee1d22e3.js";import"./@vicons-b98681e0.js";import"./paopao-video-player-66a1a537.js";import"./copy-to-clipboard-4ef7d3eb.js";import"./@babel-725317a4.js";import"./toggle-selection-93f4ad84.js";import"./vooks-e23078ea.js";import"./evtd-b614532e.js";import"./axios-4a70c6fc.js";/* empty css */import"./seemly-76b7b838.js";import"./vueuc-2fc92f18.js";import"./@css-render-16be7445.js";import"./vdirs-b0483831.js";import"./@juggle-41516555.js";import"./css-render-6a5c5852.js";import"./@emotion-8a8e73f6.js";import"./lodash-es-8412e618.js";import"./treemate-25c27bff.js";import"./async-validator-dee29e8b.js";import"./date-fns-975a2d8f.js";import"./moment-2ab8298d.js";const Be={class:"profile-baseinfo"},Se={class:"avatar"},Ve={class:"base-info"},Ne={class:"username"},De={class:"userinfo"},Fe={class:"info-item"},Ue={class:"info-item"},je={class:"userinfo"},He={class:"info-item"},Ee={class:"info-item"},Ge={key:0,class:"skeleton-wrap"},Oe={key:1},Qe={key:0,class:"empty-wrap"},Re={key:1},We={key:2},Ae={class:"load-more-wrap"},Je={class:"load-more-spinner"},Ke=fe({__name:"Profile",setup(Xe){const o=ke(),g=we(),n=s(!1),_=s(!1),a=s([]),$=s([]),L=s([]),B=s([]),S=s([]),V=s([]),P=s("post"),N=s(+g.query.p||1),D=s(1),F=s(1),U=s(1),j=s(1),t=s(+g.query.p||1),v=s(20),l=s(0),H=s(0),E=s(0),G=s(0),O=s(0),Q=s(0),I=()=>{switch(P.value){case"post":T();break;case"comment":M();break;case"highlight":z();break;case"media":q();break;case"star":x();break}},T=()=>{n.value=!0,b({username:o.state.userInfo.username,style:"post",page:t.value,page_size:v.value}).then(e=>{n.value=!1,e.list.length===0&&(_.value=!0),t.value>1?a.value=a.value.concat(e.list):(a.value=e.list||[],window.scrollTo(0,0)),l.value=Math.ceil(e.pager.total_rows/v.value),$.value=a.value,H.value=l.value}).catch(e=>{a.value=[],t.value>1&&t.value--,n.value=!1})},M=()=>{n.value=!0,b({username:o.state.userInfo.username,style:"comment",page:t.value,page_size:v.value}).then(e=>{n.value=!1,e.list.length===0&&(_.value=!0),t.value>1?a.value=a.value.concat(e.list):(a.value=e.list||[],window.scrollTo(0,0)),l.value=Math.ceil(e.pager.total_rows/v.value),L.value=a.value,E.value=l.value}).catch(e=>{a.value=[],t.value>1&&t.value--,n.value=!1})},z=()=>{n.value=!0,b({username:o.state.userInfo.username,style:"highlight",page:t.value,page_size:v.value}).then(e=>{n.value=!1,e.list.length===0&&(_.value=!0),t.value>1?a.value=a.value.concat(e.list):(a.value=e.list||[],window.scrollTo(0,0)),l.value=Math.ceil(e.pager.total_rows/v.value),B.value=a.value,G.value=l.value}).catch(e=>{a.value=[],t.value>1&&t.value--,n.value=!1})},q=()=>{n.value=!0,b({username:o.state.userInfo.username,style:"media",page:t.value,page_size:v.value}).then(e=>{n.value=!1,e.list.length===0&&(_.value=!0),t.value>1?a.value=a.value.concat(e.list):(a.value=e.list||[],window.scrollTo(0,0)),l.value=Math.ceil(e.pager.total_rows/v.value),S.value=a.value,O.value=l.value}).catch(e=>{a.value=[],t.value>1&&t.value--,n.value=!1})},x=()=>{n.value=!0,b({username:o.state.userInfo.username,style:"star",page:t.value,page_size:v.value}).then(e=>{n.value=!1,e.list.length===0&&(_.value=!0),t.value>1?a.value=a.value.concat(e.list):(a.value=e.list||[],window.scrollTo(0,0)),l.value=Math.ceil(e.pager.total_rows/v.value),V.value=a.value,Q.value=l.value}).catch(e=>{a.value=[],t.value>1&&t.value--,n.value=!1})},X=e=>{switch(P.value=e,P.valu