/* empty css             *//* empty css                   */import{_ as e}from"./index-9f9af49f.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-72910575.js";/* empty css                     *//* empty css                 */import l from"./index-274a81ae.js";import{h as t}from"./http-ffb58baa.js";/* empty css                 *//* empty css                   */import{d as r,at as s,m as o,x as i,ao as p,o as u,c as n,a as m,w as d,f as _,a7 as c,e as v,X as j,l as b,b as g,a5 as f,a3 as y,a4 as h,a8 as x,U as V,a9 as I,a0 as k}from"./index-0ffeeea6.js";/* empty css                  *//* empty css                   */import"./index-44ccf907.js";/* empty css                    */import"./recharge.vue_vue_type_script_setup_true_lang-7317cd69.js";import"./index.vue_vue_type_script_setup_true_lang-66f33117.js";/* empty css                      *//* empty css                  */import"./useGetList-07470d8e.js";import"./consume.vue_vue_type_script_setup_true_lang-2d28e462.js";import"./readLog.vue_vue_type_script_setup_true_lang-5700d6ee.js";const w={class:"table-default"},C=r({__name:"index",setup(r){const C=s("rolesIdentify"),U=o(!1),D=o(""),z=o([]),L=o({}),P=o(!1),q=async()=>{if(D.value<1)return f.error("请输入用户id"),!1;if(U.value=!0,z.value=[],C.value.includes("optimizer")){let a=await(e={uid:D.value},t.get("/audienceManage/audience/detail",e));a.data&&z.value.push(a.data)}var e;U.value=!1},A=()=>{D.value="",z.value=[]},E=()=>{P.value=!1};return i((()=>{})),(t,r)=>{const s=y,o=h,i=a,f=x,C=V,F=I,G=e,H=p("action"),M=k;return u(),n("div",null,[m(i,{search:q,reset:A},{body:d((()=>[m(o,{label:"用户ID",prop:"uid"},{default:d((()=>[m(s,{modelValue:_(D),"onUpdate:modelValue":r[0]||(r[0]=e=>c(D)?D.value=e:null),name:"uid",clearable:""},null,8,["modelValue"])])),_:1})])),_:1}),v("div",w,[j((u(),b(F,{data:_(z),class:"mt-3"},{default:d((()=>[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:d((e=>[j((u(),b(C,{link:"",type:"primary",size:"small",onClick:a=>{return l=e.row,P.value=!0,void(L.value=l);var l}},{default:d((()=>[g("用户详情")])),_:2},1032,["onClick"])),[[H,"channel.orders.userDetails"]])])),_:1})])),_:1},8,["data"])),[[M,_(U)]])]),m(G,{modelValue:_(P),"onUpdate:modelValue":r[1]||(r[1]=e=>c(P)?P.value=e:null),width:"50%",title:"用户详情",alignCenter:!0,"destroy-on-close":""},{default:d((()=>[m(l,{onClose:E,primary:_(L)},null,8,["primary"])])),_:1},8,["modelValue"])])}}});export{C as default};
