Files
yusheng-admin/dist/static/js/detail-CoKcup1p.js

2 lines
6.5 KiB
JavaScript
Raw Normal View History

2025-10-23 11:07:17 +08:00
var ae=Object.defineProperty,le=Object.defineProperties;var te=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var oe=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable;var H=(r,l,a)=>l in r?ae(r,l,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[l]=a,w=(r,l)=>{for(var a in l||(l={}))oe.call(l,a)&&H(r,a,l[a]);if(G)for(var a of G(l))se.call(l,a)&&H(r,a,l[a]);return r},J=(r,l)=>le(r,te(l));var L=(r,l,a)=>new Promise((_,s)=>{var T=i=>{try{v(a.next(i))}catch(y){s(y)}},$=i=>{try{v(a.throw(i))}catch(y){s(y)}},v=i=>i.done?_(i.value):Promise.resolve(i.value).then(T,$);v((a=a.apply(r,l)).next())});import{_ as ne}from"./index.vue_vue_type_script_setup_true_lang-Vno3adgp.js";import{u as E,w as re}from"./xlsx-DaVhO591.js";import{d as ie,n as d,x as ue,r as h,o as u,c as g,e as o,b as m,h as p,P as z,Q as O,g as B,f as C,T as D,U as M,aK as pe,ag as ce,aA as W,_ as de}from"./index-CRmU-Qpi.js";import{a as X,c as me}from"./newuserList-JxRjYKtu.js";const _e={class:"viewPage"},ve={class:"basicView"},be={class:"left-view"},ge={style:{"margin-top":"20px"}},fe={style:{"margin-top":"20px"}},he={class:"mb-5",style:{float:"right"}},ye={class:"mb-5",style:{float:"right"}},ke={key:0,class:"albums-container"},we=["onClick"],Ce=["src"],xe={class:"album-info"},Ie={class:"album-title"},Pe={class:"album-stats"},Se={key:1,class:"empty-album"},Ve=ie({__name:"detail",props:["userInfo"],setup(r){const l=d(null),a=r,_=d(J(w(w({},a.userInfo.user_info),a.userInfo.follow_num),{userId:a.userInfo.userId})),s=d("1"),T=d([{label:"ID",prop:"id"},{label:"年龄",prop:"age"},{label:"手机号码",prop:"mobile"},{label:"个人简介",prop:"profile"},{label:"性别",prop:"sex"},{label:"标签",prop:"tag"},{label:"生日",prop:"birthday"},{label:"注册时间",prop:"createtime"},{label:"用户来源",prop:"system"}]),$=d([{label:"充值金额",prop:"user_recharge_all_money"},{label:"金币余额",prop:"coin"},{label:"钻石余额",prop:"earnings"},{label:"关注",prop:"follow_num"},{label:"粉丝",prop:"fans_num"},{label:"邀请好友",prop:"invited_num"},{label:"获得收益",prop:"invited_earnings"},{label:"是否实名",prop:"is_real"},{label:"真实姓名",prop:"real_name"},{label:"身份证号",prop:"card_id"}]),v=d([]),i=n=>L(this,null,function*(){const{data:e,code:k}=yield X({user_id:_.value.userId,type:n,page:c.value.currentPage,page_limit:c.value.pageSize});k&&(v.value=e.lists,c.value.total=e.count,c.value.pageSize=+e.page_limit,c.value.currentPage=+e.page)}),y=()=>L(this,null,function*(){const{data:n,code:e}=yield me({user_id:_.value.userId});A.value=e?n:[]}),c=d({total:0,pageSize:10,currentPage:1,background:!0}),x=d([{label:"标题",prop:"title"},{label:"时间",prop:"change_time"},{label:"类型",prop:"type"},{label:"内容",prop:"content"},{label:"数量",prop:"change_money"}]);ue(()=>{i(s.value=="1"?1:2)});const A=d([]),Y=n=>{const{name:e}=n.props;s.value=e,v.value=[],["1","2"].includes(e)?i(s.value=="1"?1:2):y()},U=n=>{c.value.pageSize=n,i(s.value=="1"?1:2)},K=n=>{c.value.currentPage=n,i(s.value=="1"?1:2)},Q=n=>{let e=[];pe({title:"导出数据",props:{formInline:{time:""}},width:"40%",closeOnClickModal:!1,contentRenderer:()=>ce(ne,{ref:l,formInline:null}),beforeSure:(k,{options:I})=>{const P=l.value.getRef(),f=I.props.formInline,S=b=>L(this,null,function*(){const{data:R,code:t}=yield X({user_id:_.value.userId,type:n.value=="1"?1:2,page:1,page_limit:1e4});if(t){e=R.lists;const V=e.map(N=>{const q=[];return x.value.forEach(ee=>{q.push(N[ee.prop])}),q}),F=[];x.value.forEach(N=>{F.push(N.label)}),V.unshift(F);const Z=E.aoa_to_sheet(V),j=E.book_new();E.book_append_sheet(j,Z,"数据报表"),re(j,`${n.value=="1"?"金币":"钻石"}统计——${b.start_time} - ${b.end_time}.xlsx`),W("导出成功",{type:"success"}),k()}else W("获取数据失败,请重试!",{type:"error"})});P.validate(b=>{b&&f.time&&f.time.length&&S({start_time:f.time[0]||"",end_time:f.time[1]||""})})}})};return(n,e)=>{const k=h("el-image"),I=h("el-descriptions-item"),P=h("el-descriptions"),f=h("el-button"),S=h("pure-table"),b=h("el-tab-pa