/* empty css             *//* empty css                   */import{_ as e}from"./index-30b81ccf.js";/* empty css                        *//* empty css                    *//* empty css               */import"./el-tooltip-4ed993c7.js";/* empty css                  *//* empty css                     *//* empty css                  */import{_ as a}from"./search.vue_vue_type_script_setup_true_lang-946854ba.js";/* empty css                     *//* empty css                 */import l from"./index-0b608a61.js";import{h as t}from"./http-aa208300.js";/* empty css                 *//* empty css                   */import{d as r,at as s,m as o,x as i,an as p,o as u,c as n,a as m,w as _,f as d,a6 as c,e as v,W as j,l as b,b as g,a4 as f,a2 as y,a3 as h,a7 as x,S as V,a8 as w,$ as C}from"./index-2b50ecca.js";/* empty css                  *//* empty css                   */import"./index-a921dba7.js";/* empty css                    */import"./recharge.vue_vue_type_script_setup_true_lang-8e554be9.js";import"./index.vue_vue_type_script_setup_true_lang-bc7fd1e2.js";/* empty css                      *//* empty css                  */import"./useGetList-927e47a1.js";import"./consume.vue_vue_type_script_setup_true_lang-6abdd2eb.js";import"./readLog.vue_vue_type_script_setup_true_lang-3f0e0b03.js";const I={class:"table-default"},k=r({__name:"index",setup(r){const k=s("rolesIdentify"),D=o(!1),$=o(""),z=o([]),L=o({}),P=o(!1),U=async()=>{if($.value<1)return f.error("请输入用户id"),!1;if(D.value=!0,z.value=[],k.value.includes("optimizer")){let a=await(e={uid:$.value},t.get("/audienceManage/audience/detail",e));a.data&&z.value.push(a.data)}var e;D.value=!1},Z=()=>{$.value="",z.value=[]},G=()=>{P.value=!1};return i((()=>{})),(t,r)=>{const s=y,o=h,i=a,f=x,k=V,M=w,R=e,S=p("action"),W=C;return u(),n("div",null,[m(i,{search:U,reset:Z},{body:_((()=>[m(o,{label:"用户ID",prop:"uid"},{default:_((()=>[m(s,{modelValue:d($),"onUpdate:modelValue":r[0]||(r[0]=e=>c($)?$.value=e:null),name:"uid",clearable:""},null,8,["modelValue"])])),_:1})])),_:1}),v("div",I,[j((u(),b(M,{data:d(z),class:"mt-3"},{default:_((()=>[m(f,{prop:"miniprogram_name",label:"小程序"}),m(f,{prop:"uid",label:"用户ID"}),m(f,{prop:"user_created_at",label:"小程序注册时间"}),m(f,{prop:"ranse_start_at",label:"最新染色时间"}),m(f,{prop:"charge_coin",label:"看币余额"}),m(f,{prop:"reward_coin",label:"充送币余额"}),m(f,{prop:"total_charge_count",label:"累计充值次数"}),m(f,{prop:"vip_text",label:"VIP状态"}),m(f,{prop:"vip_end",label:"VIP结束时间"}),m(f,{label:"操作",fixed:"right"},{default:_((e=>[j((u(),b(k,{link:"",type:"primary",size:"small",onClick:a=>{return l=e.row,P.value=!0,void(L.value=l);var l}},{default:_((()=>[g("用户详情")])),_:2},1032,["onClick"])),[[S,"channel.orders.userDetails"]])])),_:1})])),_:1},8,["data"])),[[W,d(D)]])]),m(R,{modelValue:d(P),"onUpdate:modelValue":r[1]||(r[1]=e=>c(P)?P.value=e:null),width:"50%",title:"用户详情",alignCenter:!0,"destroy-on-close":""},{default:_((()=>[m(l,{onClose:G,primary:d(L)},null,8,["primary"])])),_:1},8,["modelValue"])])}}});export{k as default};
