import{aM as e,n as s,q as t,c as a,w as o,i as l,o as r,t as i,C as n,D as c,F as u,v as m,x as d}from"./index-DL8B2Mxu.js";import{_ as p}from"./u-search.C1fh-wIV.js";import{r as h}from"./uni-app.es.BSVEa1f2.js";import{_ as f}from"./u-avatar.oTnux-Fl.js";import{_}from"./mescroll-body.DoI4hLy1.js";import{r as b}from"./resources.DipqUmnN.js";import{M as x}from"./mescroll-mixins.DNza9FDh.js";import{_ as w}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./u-icon.CLOPtL2B.js";const k=w({mixins:[x],data:()=>({downOption:{use:!0,auto:!0},upOption:{page:{num:0,size:20,time:null},empty:{use:!0,icon:b.message.nodata,tip:"暂无数据",fixed:!0,top:"300rpx"},textNoMore:"没有更多数据"},keyword:"",list:[]}),computed:{baseURL(){return this.define.baseURL}},methods:{upCallback(s){let t={currentPage:s.num,pageSize:s.size,keyword:this.keyword};e(t,{load:1==s.num}).then((e=>{this.mescroll.endSuccess(e.data.list.length),1==s.num&&(this.list=[]);const t=e.data.list;this.list=this.list.concat(t)})).catch((()=>{this.mescroll.endErr()}))},search(){this.searchTimer&&clearTimeout(this.searchTimer),this.searchTimer=setTimeout((()=>{this.list=[],this.mescroll.resetUpScroll()}),300)},detail(e){s({url:"/pages/message/userDetail/index?userId="+e})}}},[["render",function(e,s,b,x,w,k){const g=h(t("u-search"),p),y=l,j=h(t("u-avatar"),f),C=h(t("mescroll-body"),_);return r(),a(y,{class:"contacts-v"},{default:o((()=>[i(C,{ref:"mescrollRef",onInit:e.mescrollInit,onDown:e.downCallback,onUp:k.upCallback,sticky:!0,down:w.downOption,up:w.upOption,bottombar:!1},{default:o((()=>[i(y,{class:"search-box search-box_sticky"},{default:o((()=>[i(g,{placeholder:"请输入",modelValue:w.keyword,"onUpdate:modelValue":s[0]||(s[0]=e=>w.keyword=e),height:"72","show-action":!1,onChange:k.search,"bg-color":"#f0f2f6",shape:"square"},null,8,["modelValue","onChange"])])),_:1}),(r(!0),n(u,null,c(w.list,((e,s)=>(r(),a(y,{class:"list-cell u-p-l-20 u-p-r-20",key:s,onClick:s=>k.detail(e.id)},{default:o((()=>[i(y,{class:"u-border-bottom list-item u-font-28 u-flex"},{default:o((()=>[i(j,{src:k.baseURL+e.headIcon},null,8,["src"]),i(y,{class:"list-cell-txt"},{default:o((()=>[i(y,{class:"u-font-30 u-m-b-4",style:{color:"#303133","font-size":"28rpx"}},{default:o((()=>[m(d(e.realName)+"/"+d(e.account),1)])),_:2},1024),i(y,{class:"u-font-24 department u-m-t-4"},{default:o((()=>[m(d(e.department),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1},8,["onInit","onDown","onUp","down","up"])])),_:1})}],["__scopeId","data-v-0a00ff3c"]]);export{k as default};
