/* empty css             *//* empty css                   */import{_ as e}from"./index-e025ca33.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-8edf6ccf.js";/* empty css                     *//* empty css                 */import l from"./index-552dd602.js";import{h as t}from"./http-e55ef919.js";/* empty css                   */import{d as r,au as s,m as o,x as i,ao as p,o as u,c as n,a as m,w as _,f as d,a9 as c,e as v,Z as j,l as b,b as g,a7 as f,a5 as y,a6 as h,aa as x,W as V,ab as w,a2 as I}from"./index-41bf27b7.js";/* empty css                  *//* empty css                   */import"./index-2a89b0c2.js";/* empty css                    */import"./recharge.vue_vue_type_script_setup_true_lang-11c16d1a.js";import"./index.vue_vue_type_script_setup_true_lang-e74be938.js";/* empty css                  */import"./useGetList-d550ec92.js";import"./consume.vue_vue_type_script_setup_true_lang-6efc4db8.js";import"./readLog.vue_vue_type_script_setup_true_lang-7c89e7be.js";const k={class:"table-default"},C=r({__name:"index",setup(r){const C=s("rolesIdentify"),D=o(!1),P=o(""),U=o([]),z=o({}),L=o(!1),Q=async()=>{if(P.value<1)return f.error("请输入用户id"),!1;if(D.value=!0,U.value=[],C.value.includes("optimizer")){let a=await(e={uid:P.value},t.get("/audienceManage/audience/detail",e));a.data&&U.value.push(a.data)}var e;D.value=!1},R=()=>{P.value="",U.value=[]},W=()=>{L.value=!1};return i((()=>{})),(t,r)=>{const s=y,o=h,i=a,f=x,C=V,G=w,H=e,M=p("action"),S=I;return u(),n("div",null,[m(i,{search:Q,reset:R},{body:_((()=>[m(o,{label:"用户ID",prop:"uid"},{default:_((()=>[m(s,{modelValue:d(P),"onUpdate:modelValue":r[0]||(r[0]=e=>c(P)?P.value=e:null),name:"uid",clearable:""},null,8,["modelValue"])])),_:1})])),_:1}),v("div",k,[j((u(),b(G,{data:d(U),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(C,{link:"",type:"primary",size:"small",onClick:a=>{return l=e.row,L.value=!0,void(z.value=l);var l}},{default:_((()=>[g("用户详情")])),_:2},1032,["onClick"])),[[M,"channel.orders.userDetails"]])])),_:1})])),_:1},8,["data"])),[[S,d(D)]])]),m(H,{modelValue:d(L),"onUpdate:modelValue":r[1]||(r[1]=e=>c(L)?L.value=e:null),width:"50%",title:"用户详情",alignCenter:!0,"destroy-on-close":""},{default:_((()=>[m(l,{onClose:W,primary:d(z)},null,8,["primary"])])),_:1},8,["modelValue"])])}}});export{C as default};
