import{d as M,r as f,s as D,c as u,e as n,k as N,i as r,g as t,h as i,u as h,as as S,f as p,j as z,H as g,m as F,t as o,A as I,F as O,q as P,_ as j}from"./index.0308b213.js";import{a as U,b as $}from"./checkstand.b2ff1249.js";const q={class:"content"},H={class:"search"},L=F(" \u67E5\u8BE2\xA0"),R={class:"list"},T=["onClick"],G=["src"],J={style:{height:"30px"}},K={style:{"min-height":"20px"}},Q=M({props:{show:{type:Boolean,default:!1},userInfo:{type:Object}},emits:["update:show","select"],setup(_,{emit:m}){const y=_,l=f({keyword:"",page:1,limit:10}),c=f([]),d=D({get(){return y.show},set(s){m("update:show",s)}});b();async function b(){await U(l.value).then(s=>{console.log("\u{1F680} ~ file: MemberPopup.vue:107 ~ getMember ~ res:",s),c.value=s.list})}async function k(){await $(l.value).then(s=>{c.value=s.list})}function V(){console.log("\u{1F680} ~ handleSearch ~ searchValue.value:",l.value),l.value.page=1,k()}function w(s){m("select",s)}return(s,a)=>{const A=u("el-input"),x=u("el-icon"),B=u("el-button"),C=u("el-dialog");return n(),N(C,{modelValue:h(d),"onUpdate:modelValue":a[2]||(a[2]=e=>P(d)?d.value=e:null),title:"\u4F1A\u5458\u5217\u8868",width:"80%"},{default:r(()=>[t("div",q,[t("div",H,[i(A,{modelValue:l.value.keyword,"onUpdate:modelValue":a[0]||(a[0]=e=>l.value.keyword=e),size:"large",placeholder:"\u53EF\u67E5\u8BE2\u4F1A\u5458\u8D26\u53F7\u3001\u624B\u673A\u53F7\u3001\u6635\u79F0"},null,8,["modelValue"]),i(B,{type:"primary",size:"large",onClick:a[1]||(a[1]=e=>V())},{default:r(()=>[L,i(x,null,{default:r(()=>[i(h(S))]),_:1})]),_:1})]),t("div",R,[(n(!0),p(O,null,z(c.value,(e,E)=>{var v;return n(),p("div",{key:E,class:g(["item",{active:e.uid===((v=_.userInfo)==null?void 0:v.uid)}]),onClick:W=>w(e)},[t("img",{src:e.avatar,alt:""},null,8,G),t("div",null,[t("div",J,[F(o(e.nickname)+" ",1),e.vip_status?(n(),p("span",{key:0,class:g(["tags",{"tags-premium":e.vip_status===1}])},o(e.grade_str),3)):I("",!0)]),t("div",K,o(e.mobile),1),t("div",null,[t("span",null,"\u6D88\u8D39\uFF1A"+o(e.consume_count)+"\u6B21 ",1)]),t("div",null,[t("span",null,"\u79EF\u5206\uFF1A"+o(e.credit1),1)]),t("div",null,[t("span",null,"\u4F59\u989D\uFF1A"+o(e.credit2),1)])])],10,T)}),128))])])]),_:1},8,["modelValue"])}}});const Z=j(Q,[["__scopeId","data-v-3f659f0d"]]);export{Z as default};
