im/public/h5/assets/pages-contacts-friend.d6b1e...

2 lines
27 KiB
JavaScript
Executable File

import{_ as e,o as i,c as n,w as c,d as a,F as o,e as d,f as l,n as t,g as s,i as u,t as _,k as m,j as r,a5 as f,b as p,l as h,s as g,m as x,q as y,p as b,G as k,h as w,r as v,A as I}from"./index-22d2df30.js";import{r as C}from"./uni-app.es.06715d18.js";const T=e({name:"UniSegmentedControl",emits:["clickItem"],props:{current:{type:Number,default:0},values:{type:Array,default:()=>[]},activeColor:{type:String,default:"#2979FF"},styleType:{type:String,default:"button"}},data:()=>({currentIndex:0}),watch:{current(e){e!==this.currentIndex&&(this.currentIndex=e)}},created(){this.currentIndex=this.current},methods:{_onClick(e){this.currentIndex!==e&&(this.currentIndex=e,this.$emit("clickItem",{currentIndex:e}))}}},[["render",function(e,f,p,h,g,x){const y=m,b=r;return i(),n(b,{class:l([["text"===p.styleType?"segmented-control--text":"segmented-control--button"],"segmented-control"]),style:t({borderColor:"text"===p.styleType?"":p.activeColor})},{default:c((()=>[(i(!0),a(o,null,d(p.values,((e,a)=>(i(),n(b,{class:l([["text"===p.styleType?"":"segmented-control__item--button",a===g.currentIndex&&"button"===p.styleType?"segmented-control__item--button--active":"",0===a&&"button"===p.styleType?"segmented-control__item--button--first":"",a===p.values.length-1&&"button"===p.styleType?"segmented-control__item--button--last":""],"segmented-control__item"]),key:a,style:t({backgroundColor:a===g.currentIndex&&"button"===p.styleType?p.activeColor:"",borderColor:a===g.currentIndex&&"text"===p.styleType||"button"===p.styleType?p.activeColor:"transparent"}),onClick:e=>x._onClick(a)},{default:c((()=>[s(b,null,{default:c((()=>[s(y,{style:t({color:a===g.currentIndex?"text"===p.styleType?p.activeColor:"#fff":"text"===p.styleType?"#000":p.activeColor}),class:l(["segmented-control__text","text"===p.styleType&&a===g.currentIndex?"segmented-control__item--text":""])},{default:c((()=>[u(_(e),1)])),_:2},1032,["style","class"])])),_:2},1024)])),_:2},1032,["class","style","onClick"])))),128))])),_:1},8,["class","style"])}],["__scopeId","data-v-ede2e670"]]),S={id:"2852637",name:"uniui图标库",font_family:"uniicons",css_prefix_text:"uniui-",description:"",glyphs:[{icon_id:"25027049",name:"yanse",font_class:"color",unicode:"e6cf",unicode_decimal:59087},{icon_id:"25027048",name:"wallet",font_class:"wallet",unicode:"e6b1",unicode_decimal:59057},{icon_id:"25015720",name:"settings-filled",font_class:"settings-filled",unicode:"e6ce",unicode_decimal:59086},{icon_id:"25015434",name:"shimingrenzheng-filled",font_class:"auth-filled",unicode:"e6cc",unicode_decimal:59084},{icon_id:"24934246",name:"shop-filled",font_class:"shop-filled",unicode:"e6cd",unicode_decimal:59085},{icon_id:"24934159",name:"staff-filled-01",font_class:"staff-filled",unicode:"e6cb",unicode_decimal:59083},{icon_id:"24932461",name:"VIP-filled",font_class:"vip-filled",unicode:"e6c6",unicode_decimal:59078},{icon_id:"24932462",name:"plus_circle_fill",font_class:"plus-filled",unicode:"e6c7",unicode_decimal:59079},{icon_id:"24932463",name:"folder_add-filled",font_class:"folder-add-filled",unicode:"e6c8",unicode_decimal:59080},{icon_id:"24932464",name:"yanse-filled",font_class:"color-filled",unicode:"e6c9",unicode_decimal:59081},{icon_id:"24932465",name:"tune-filled",font_class:"tune-filled",unicode:"e6ca",unicode_decimal:59082},{icon_id:"24932455",name:"a-rilidaka-filled",font_class:"calendar-filled",unicode:"e6c0",unicode_decimal:59072},{icon_id:"24932456",name:"notification-filled",font_class:"notification-filled",unicode:"e6c1",unicode_decimal:59073},{icon_id:"24932457",name:"wallet-filled",font_class:"wallet-filled",unicode:"e6c2",unicode_decimal:59074},{icon_id:"24932458",name:"paihangbang-filled",font_class:"medal-filled",unicode:"e6c3",unicode_decimal:59075},{icon_id:"24932459",name:"gift-filled",font_class:"gift-filled",unicode:"e6c4",unicode_decimal:59076},{icon_id:"24932460",name:"fire-filled",font_class:"fire-filled",unicode:"e6c5",unicode_decimal:59077},{icon_id:"24928001",name:"refreshempty",font_class:"refreshempty",unicode:"e6bf",unicode_decimal:59071},{icon_id:"24926853",name:"location-ellipse",font_class:"location-filled",unicode:"e6af",unicode_decimal:59055},{icon_id:"24926735",name:"person-filled",font_class:"person-filled",unicode:"e69d",unicode_decimal:59037},{icon_id:"24926703",name:"personadd-filled",font_class:"personadd-filled",unicode:"e698",unicode_decimal:59032},{icon_id:"24923351",name:"back",font_class:"back",unicode:"e6b9",unicode_decimal:59065},{icon_id:"24923352",name:"forward",font_class:"forward",unicode:"e6ba",unicode_decimal:59066},{icon_id:"24923353",name:"arrowthinright",font_class:"arrow-right",unicode:"e6bb",unicode_decimal:59067},{icon_id:"24923353",name:"arrowthinright",font_class:"arrowthinright",unicode:"e6bb",unicode_decimal:59067},{icon_id:"24923354",name:"arrowthinleft",font_class:"arrow-left",unicode:"e6bc",unicode_decimal:59068},{icon_id:"24923354",name:"arrowthinleft",font_class:"arrowthinleft",unicode:"e6bc",unicode_decimal:59068},{icon_id:"24923355",name:"arrowthinup",font_class:"arrow-up",unicode:"e6bd",unicode_decimal:59069},{icon_id:"24923355",name:"arrowthinup",font_class:"arrowthinup",unicode:"e6bd",unicode_decimal:59069},{icon_id:"24923356",name:"arrowthindown",font_class:"arrow-down",unicode:"e6be",unicode_decimal:59070},{icon_id:"24923356",name:"arrowthindown",font_class:"arrowthindown",unicode:"e6be",unicode_decimal:59070},{icon_id:"24923349",name:"arrowdown",font_class:"bottom",unicode:"e6b8",unicode_decimal:59064},{icon_id:"24923349",name:"arrowdown",font_class:"arrowdown",unicode:"e6b8",unicode_decimal:59064},{icon_id:"24923346",name:"arrowright",font_class:"right",unicode:"e6b5",unicode_decimal:59061},{icon_id:"24923346",name:"arrowright",font_class:"arrowright",unicode:"e6b5",unicode_decimal:59061},{icon_id:"24923347",name:"arrowup",font_class:"top",unicode:"e6b6",unicode_decimal:59062},{icon_id:"24923347",name:"arrowup",font_class:"arrowup",unicode:"e6b6",unicode_decimal:59062},{icon_id:"24923348",name:"arrowleft",font_class:"left",unicode:"e6b7",unicode_decimal:59063},{icon_id:"24923348",name:"arrowleft",font_class:"arrowleft",unicode:"e6b7",unicode_decimal:59063},{icon_id:"24923334",name:"eye",font_class:"eye",unicode:"e651",unicode_decimal:58961},{icon_id:"24923335",name:"eye-filled",font_class:"eye-filled",unicode:"e66a",unicode_decimal:58986},{icon_id:"24923336",name:"eye-slash",font_class:"eye-slash",unicode:"e6b3",unicode_decimal:59059},{icon_id:"24923337",name:"eye-slash-filled",font_class:"eye-slash-filled",unicode:"e6b4",unicode_decimal:59060},{icon_id:"24923305",name:"info-filled",font_class:"info-filled",unicode:"e649",unicode_decimal:58953},{icon_id:"24923299",name:"reload-01",font_class:"reload",unicode:"e6b2",unicode_decimal:59058},{icon_id:"24923195",name:"mic_slash_fill",font_class:"micoff-filled",unicode:"e6b0",unicode_decimal:59056},{icon_id:"24923165",name:"map-pin-ellipse",font_class:"map-pin-ellipse",unicode:"e6ac",unicode_decimal:59052},{icon_id:"24923166",name:"map-pin",font_class:"map-pin",unicode:"e6ad",unicode_decimal:59053},{icon_id:"24923167",name:"location",font_class:"location",unicode:"e6ae",unicode_decimal:59054},{icon_id:"24923064",name:"starhalf",font_class:"starhalf",unicode:"e683",unicode_decimal:59011},{icon_id:"24923065",name:"star",font_class:"star",unicode:"e688",unicode_decimal:59016},{icon_id:"24923066",name:"star-filled",font_class:"star-filled",unicode:"e68f",unicode_decimal:59023},{icon_id:"24899646",name:"a-rilidaka",font_class:"calendar",unicode:"e6a0",unicode_decimal:59040},{icon_id:"24899647",name:"fire",font_class:"fire",unicode:"e6a1",unicode_decimal:59041},{icon_id:"24899648",name:"paihangbang",font_class:"medal",unicode:"e6a2",unicode_decimal:59042},{icon_id:"24899649",name:"font",font_class:"font",unicode:"e6a3",unicode_decimal:59043},{icon_id:"24899650",name:"gift",font_class:"gift",unicode:"e6a4",unicode_decimal:59044},{icon_id:"24899651",name:"link",font_class:"link",unicode:"e6a5",unicode_decimal:59045},{icon_id:"24899652",name:"notification",font_class:"notification",unicode:"e6a6",unicode_decimal:59046},{icon_id:"24899653",name:"staff",font_class:"staff",unicode:"e6a7",unicode_decimal:59047},{icon_id:"24899654",name:"VIP",font_class:"vip",unicode:"e6a8",unicode_decimal:59048},{icon_id:"24899655",name:"folder_add",font_class:"folder-add",unicode:"e6a9",unicode_decimal:59049},{icon_id:"24899656",name:"tune",font_class:"tune",unicode:"e6aa",unicode_decimal:59050},{icon_id:"24899657",name:"shimingrenzheng",font_class:"auth",unicode:"e6ab",unicode_decimal:59051},{icon_id:"24899565",name:"person",font_class:"person",unicode:"e699",unicode_decimal:59033},{icon_id:"24899566",name:"email-filled",font_class:"email-filled",unicode:"e69a",unicode_decimal:59034},{icon_id:"24899567",name:"phone-filled",font_class:"phone-filled",unicode:"e69b",unicode_decimal:59035},{icon_id:"24899568",name:"phone",font_class:"phone",unicode:"e69c",unicode_decimal:59036},{icon_id:"24899570",name:"email",font_class:"email",unicode:"e69e",unicode_decimal:59038},{icon_id:"24899571",name:"personadd",font_class:"personadd",unicode:"e69f",unicode_decimal:59039},{icon_id:"24899558",name:"chatboxes-filled",font_class:"chatboxes-filled",unicode:"e692",unicode_decimal:59026},{icon_id:"24899559",name:"contact",font_class:"contact",unicode:"e693",unicode_decimal:59027},{icon_id:"24899560",name:"chatbubble-filled",font_class:"chatbubble-filled",unicode:"e694",unicode_decimal:59028},{icon_id:"24899561",name:"contact-filled",font_class:"contact-filled",unicode:"e695",unicode_decimal:59029},{icon_id:"24899562",name:"chatboxes",font_class:"chatboxes",unicode:"e696",unicode_decimal:59030},{icon_id:"24899563",name:"chatbubble",font_class:"chatbubble",unicode:"e697",unicode_decimal:59031},{icon_id:"24881290",name:"upload-filled",font_class:"upload-filled",unicode:"e68e",unicode_decimal:59022},{icon_id:"24881292",name:"upload",font_class:"upload",unicode:"e690",unicode_decimal:59024},{icon_id:"24881293",name:"weixin",font_class:"weixin",unicode:"e691",unicode_decimal:59025},{icon_id:"24881274",name:"compose",font_class:"compose",unicode:"e67f",unicode_decimal:59007},{icon_id:"24881275",name:"qq",font_class:"qq",unicode:"e680",unicode_decimal:59008},{icon_id:"24881276",name:"download-filled",font_class:"download-filled",unicode:"e681",unicode_decimal:59009},{icon_id:"24881277",name:"pengyouquan",font_class:"pyq",unicode:"e682",unicode_decimal:59010},{icon_id:"24881279",name:"sound",font_class:"sound",unicode:"e684",unicode_decimal:59012},{icon_id:"24881280",name:"trash-filled",font_class:"trash-filled",unicode:"e685",unicode_decimal:59013},{icon_id:"24881281",name:"sound-filled",font_class:"sound-filled",unicode:"e686",unicode_decimal:59014},{icon_id:"24881282",name:"trash",font_class:"trash",unicode:"e687",unicode_decimal:59015},{icon_id:"24881284",name:"videocam-filled",font_class:"videocam-filled",unicode:"e689",unicode_decimal:59017},{icon_id:"24881285",name:"spinner-cycle",font_class:"spinner-cycle",unicode:"e68a",unicode_decimal:59018},{icon_id:"24881286",name:"weibo",font_class:"weibo",unicode:"e68b",unicode_decimal:59019},{icon_id:"24881288",name:"videocam",font_class:"videocam",unicode:"e68c",unicode_decimal:59020},{icon_id:"24881289",name:"download",font_class:"download",unicode:"e68d",unicode_decimal:59021},{icon_id:"24879601",name:"help",font_class:"help",unicode:"e679",unicode_decimal:59001},{icon_id:"24879602",name:"navigate-filled",font_class:"navigate-filled",unicode:"e67a",unicode_decimal:59002},{icon_id:"24879603",name:"plusempty",font_class:"plusempty",unicode:"e67b",unicode_decimal:59003},{icon_id:"24879604",name:"smallcircle",font_class:"smallcircle",unicode:"e67c",unicode_decimal:59004},{icon_id:"24879605",name:"minus-filled",font_class:"minus-filled",unicode:"e67d",unicode_decimal:59005},{icon_id:"24879606",name:"micoff",font_class:"micoff",unicode:"e67e",unicode_decimal:59006},{icon_id:"24879588",name:"closeempty",font_class:"closeempty",unicode:"e66c",unicode_decimal:58988},{icon_id:"24879589",name:"clear",font_class:"clear",unicode:"e66d",unicode_decimal:58989},{icon_id:"24879590",name:"navigate",font_class:"navigate",unicode:"e66e",unicode_decimal:58990},{icon_id:"24879591",name:"minus",font_class:"minus",unicode:"e66f",unicode_decimal:58991},{icon_id:"24879592",name:"image",font_class:"image",unicode:"e670",unicode_decimal:58992},{icon_id:"24879593",name:"mic",font_class:"mic",unicode:"e671",unicode_decimal:58993},{icon_id:"24879594",name:"paperplane",font_class:"paperplane",unicode:"e672",unicode_decimal:58994},{icon_id:"24879595",name:"close",font_class:"close",unicode:"e673",unicode_decimal:58995},{icon_id:"24879596",name:"help-filled",font_class:"help-filled",unicode:"e674",unicode_decimal:58996},{icon_id:"24879597",name:"plus-filled",font_class:"paperplane-filled",unicode:"e675",unicode_decimal:58997},{icon_id:"24879598",name:"plus",font_class:"plus",unicode:"e676",unicode_decimal:58998},{icon_id:"24879599",name:"mic-filled",font_class:"mic-filled",unicode:"e677",unicode_decimal:58999},{icon_id:"24879600",name:"image-filled",font_class:"image-filled",unicode:"e678",unicode_decimal:59e3},{icon_id:"24855900",name:"locked-filled",font_class:"locked-filled",unicode:"e668",unicode_decimal:58984},{icon_id:"24855901",name:"info",font_class:"info",unicode:"e669",unicode_decimal:58985},{icon_id:"24855903",name:"locked",font_class:"locked",unicode:"e66b",unicode_decimal:58987},{icon_id:"24855884",name:"camera-filled",font_class:"camera-filled",unicode:"e658",unicode_decimal:58968},{icon_id:"24855885",name:"chat-filled",font_class:"chat-filled",unicode:"e659",unicode_decimal:58969},{icon_id:"24855886",name:"camera",font_class:"camera",unicode:"e65a",unicode_decimal:58970},{icon_id:"24855887",name:"circle",font_class:"circle",unicode:"e65b",unicode_decimal:58971},{icon_id:"24855888",name:"checkmarkempty",font_class:"checkmarkempty",unicode:"e65c",unicode_decimal:58972},{icon_id:"24855889",name:"chat",font_class:"chat",unicode:"e65d",unicode_decimal:58973},{icon_id:"24855890",name:"circle-filled",font_class:"circle-filled",unicode:"e65e",unicode_decimal:58974},{icon_id:"24855891",name:"flag",font_class:"flag",unicode:"e65f",unicode_decimal:58975},{icon_id:"24855892",name:"flag-filled",font_class:"flag-filled",unicode:"e660",unicode_decimal:58976},{icon_id:"24855893",name:"gear-filled",font_class:"gear-filled",unicode:"e661",unicode_decimal:58977},{icon_id:"24855894",name:"home",font_class:"home",unicode:"e662",unicode_decimal:58978},{icon_id:"24855895",name:"home-filled",font_class:"home-filled",unicode:"e663",unicode_decimal:58979},{icon_id:"24855896",name:"gear",font_class:"gear",unicode:"e664",unicode_decimal:58980},{icon_id:"24855897",name:"smallcircle-filled",font_class:"smallcircle-filled",unicode:"e665",unicode_decimal:58981},{icon_id:"24855898",name:"map-filled",font_class:"map-filled",unicode:"e666",unicode_decimal:58982},{icon_id:"24855899",name:"map",font_class:"map",unicode:"e667",unicode_decimal:58983},{icon_id:"24855825",name:"refresh-filled",font_class:"refresh-filled",unicode:"e656",unicode_decimal:58966},{icon_id:"24855826",name:"refresh",font_class:"refresh",unicode:"e657",unicode_decimal:58967},{icon_id:"24855808",name:"cloud-upload",font_class:"cloud-upload",unicode:"e645",unicode_decimal:58949},{icon_id:"24855809",name:"cloud-download-filled",font_class:"cloud-download-filled",unicode:"e646",unicode_decimal:58950},{icon_id:"24855810",name:"cloud-download",font_class:"cloud-download",unicode:"e647",unicode_decimal:58951},{icon_id:"24855811",name:"cloud-upload-filled",font_class:"cloud-upload-filled",unicode:"e648",unicode_decimal:58952},{icon_id:"24855813",name:"redo",font_class:"redo",unicode:"e64a",unicode_decimal:58954},{icon_id:"24855814",name:"images-filled",font_class:"images-filled",unicode:"e64b",unicode_decimal:58955},{icon_id:"24855815",name:"undo-filled",font_class:"undo-filled",unicode:"e64c",unicode_decimal:58956},{icon_id:"24855816",name:"more",font_class:"more",unicode:"e64d",unicode_decimal:58957},{icon_id:"24855817",name:"more-filled",font_class:"more-filled",unicode:"e64e",unicode_decimal:58958},{icon_id:"24855818",name:"undo",font_class:"undo",unicode:"e64f",unicode_decimal:58959},{icon_id:"24855819",name:"images",font_class:"images",unicode:"e650",unicode_decimal:58960},{icon_id:"24855821",name:"paperclip",font_class:"paperclip",unicode:"e652",unicode_decimal:58962},{icon_id:"24855822",name:"settings",font_class:"settings",unicode:"e653",unicode_decimal:58963},{icon_id:"24855823",name:"search",font_class:"search",unicode:"e654",unicode_decimal:58964},{icon_id:"24855824",name:"redo-filled",font_class:"redo-filled",unicode:"e655",unicode_decimal:58965},{icon_id:"24841702",name:"list",font_class:"list",unicode:"e644",unicode_decimal:58948},{icon_id:"24841489",name:"mail-open-filled",font_class:"mail-open-filled",unicode:"e63a",unicode_decimal:58938},{icon_id:"24841491",name:"hand-thumbsdown-filled",font_class:"hand-down-filled",unicode:"e63c",unicode_decimal:58940},{icon_id:"24841492",name:"hand-thumbsdown",font_class:"hand-down",unicode:"e63d",unicode_decimal:58941},{icon_id:"24841493",name:"hand-thumbsup-filled",font_class:"hand-up-filled",unicode:"e63e",unicode_decimal:58942},{icon_id:"24841494",name:"hand-thumbsup",font_class:"hand-up",unicode:"e63f",unicode_decimal:58943},{icon_id:"24841496",name:"heart-filled",font_class:"heart-filled",unicode:"e641",unicode_decimal:58945},{icon_id:"24841498",name:"mail-open",font_class:"mail-open",unicode:"e643",unicode_decimal:58947},{icon_id:"24841488",name:"heart",font_class:"heart",unicode:"e639",unicode_decimal:58937},{icon_id:"24839963",name:"loop",font_class:"loop",unicode:"e633",unicode_decimal:58931},{icon_id:"24839866",name:"pulldown",font_class:"pulldown",unicode:"e632",unicode_decimal:58930},{icon_id:"24813798",name:"scan",font_class:"scan",unicode:"e62a",unicode_decimal:58922},{icon_id:"24813786",name:"bars",font_class:"bars",unicode:"e627",unicode_decimal:58919},{icon_id:"24813788",name:"cart-filled",font_class:"cart-filled",unicode:"e629",unicode_decimal:58921},{icon_id:"24813790",name:"checkbox",font_class:"checkbox",unicode:"e62b",unicode_decimal:58923},{icon_id:"24813791",name:"checkbox-filled",font_class:"checkbox-filled",unicode:"e62c",unicode_decimal:58924},{icon_id:"24813794",name:"shop",font_class:"shop",unicode:"e62f",unicode_decimal:58927},{icon_id:"24813795",name:"headphones",font_class:"headphones",unicode:"e630",unicode_decimal:58928},{icon_id:"24813796",name:"cart",font_class:"cart",unicode:"e631",unicode_decimal:58929}]};const P=e({name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""}},data:()=>({icons:S.glyphs}),computed:{unicode(){let e=this.icons.find((e=>e.font_class===this.type));return e?unescape(`%u${e.unicode}`):""},iconSize(){return"number"==typeof(e=this.size)||/^[0-9]*$/g.test(e)?e+"px":e;var e}},methods:{_onClick(){this.$emit("click")}}},[["render",function(e,c,a,o,d,s){const u=m;return i(),n(u,{style:t({color:a.color,"font-size":s.iconSize}),class:l(["uni-icons",["uniui-"+a.type,a.customPrefix,a.customPrefix?a.type:""]]),onClick:s._onClick},null,8,["style","class","onClick"])}],["__scopeId","data-v-7c2f6cb0"]]),z={en:{"uni-pagination.prevText":"prev","uni-pagination.nextText":"next"},es:{"uni-pagination.prevText":"anterior","uni-pagination.nextText":"próxima"},fr:{"uni-pagination.prevText":"précédente","uni-pagination.nextText":"suivante"},"zh-Hans":{"uni-pagination.prevText":"上一页","uni-pagination.nextText":"下一页"},"zh-Hant":{"uni-pagination.prevText":"上一頁","uni-pagination.nextText":"下一頁"}},{t:N}=f(z);const $=e({name:"UniPagination",emits:["update:modelValue","input","change"],props:{value:{type:[Number,String],default:1},modelValue:{type:[Number,String],default:1},prevText:{type:String},nextText:{type:String},current:{type:[Number,String],default:1},total:{type:[Number,String],default:0},pageSize:{type:[Number,String],default:10},showIcon:{type:[Boolean,String],default:!1},pagerCount:{type:Number,default:7}},data:()=>({currentIndex:1,paperData:[]}),computed:{prevPageText(){return this.prevText||N("uni-pagination.prevText")},nextPageText(){return this.nextText||N("uni-pagination.nextText")},maxPage(){let e=1,i=Number(this.total),n=Number(this.pageSize);return i&&n&&(e=Math.ceil(i/n)),e},paper(){const e=this.currentIndex,i=this.pagerCount,n=this.total,c=this.pageSize;let a=[],o=[],d=Math.ceil(n/c);for(let t=0;t<d;t++)a.push(t+1);o.push(1);const l=a[a.length-(i+1)/2];return a.forEach(((n,c)=>{(i+1)/2>=e?n<i+1&&n>1&&o.push(n):e+2<=l?n>e-(i+1)/2&&n<e+(i+1)/2&&o.push(n):(n>e-(i+1)/2||d-i<n)&&n<a[a.length-1]&&o.push(n)})),d>i?((i+1)/2>=e?o[o.length-1]="...":e+2<=l?(o[1]="...",o[o.length-1]="..."):o[1]="...",o.push(a[a.length-1])):(i+1)/2>=e||e+2<=l||(o.shift(),o.push(a[a.length-1])),o}},watch:{current:{immediate:!0,handler(e,i){this.currentIndex=e<1?1:e}},value:{immediate:!0,handler(e){1===Number(this.current)&&(this.currentIndex=e<1?1:e)}}},methods:{selectPage(e,i){if(parseInt(e))this.currentIndex=e,this.change("current");else{let e=Math.ceil(this.total/this.pageSize);if(i<=1)return void(this.currentIndex-5>1?this.currentIndex-=5:this.currentIndex=1);if(i>=6)return void(this.currentIndex+5>e?this.currentIndex=e:this.currentIndex+=5)}},clickLeft(){1!==Number(this.currentIndex)&&(this.currentIndex-=1,this.change("prev"))},clickRight(){Number(this.currentIndex)>=this.maxPage||(this.currentIndex+=1,this.change("next"))},change(e){this.$emit("input",this.currentIndex),this.$emit("update:modelValue",this.currentIndex),this.$emit("change",{type:e,current:this.currentIndex})}}},[["render",function(e,t,f,h,g,x){const y=r,b=C(p("uni-icons"),P),k=m;return i(),n(y,{class:"uni-pagination"},{default:c((()=>[s(y,{class:"uni-pagination__total is-phone-hide"},{default:c((()=>[u("共 "+_(f.total)+" 条",1)])),_:1}),s(y,{class:l(["uni-pagination__btn",1===g.currentIndex?"uni-pagination--disabled":"uni-pagination--enabled"]),"hover-class":1===g.currentIndex?"":"uni-pagination--hover","hover-start-time":20,"hover-stay-time":70,onClick:x.clickLeft},{default:c((()=>[!0===f.showIcon||"true"===f.showIcon?(i(),n(b,{key:0,color:"#666",size:"16",type:"left"})):(i(),n(k,{key:1,class:"uni-pagination__child-btn"},{default:c((()=>[u(_(x.prevPageText),1)])),_:1}))])),_:1},8,["class","hover-class","onClick"]),s(y,{class:"uni-pagination__num uni-pagination__num-flex-none"},{default:c((()=>[s(y,{class:"uni-pagination__num-current"},{default:c((()=>[s(k,{class:"uni-pagination__num-current-text is-pc-hide",style:{color:"#409EFF"}},{default:c((()=>[u(_(g.currentIndex),1)])),_:1}),s(k,{class:"uni-pagination__num-current-text is-pc-hide"},{default:c((()=>[u("/"+_(x.maxPage||0),1)])),_:1}),(i(!0),a(o,null,d(x.paper,((e,a)=>(i(),n(y,{key:a,class:l([{"page--active":e===g.currentIndex},"uni-pagination__num-tag tag--active is-phone-hide"]),onClick:i=>x.selectPage(e,a)},{default:c((()=>[s(k,null,{default:c((()=>[u(_(e),1)])),_:2},1024)])),_:2},1032,["class","onClick"])))),128))])),_:1})])),_:1}),s(y,{class:l(["uni-pagination__btn",g.currentIndex>=x.maxPage?"uni-pagination--disabled":"uni-pagination--enabled"]),"hover-class":g.currentIndex===x.maxPage?"":"uni-pagination--hover","hover-start-time":20,"hover-stay-time":70,onClick:x.clickRight},{default:c((()=>[!0===f.showIcon||"true"===f.showIcon?(i(),n(b,{key:0,color:"#666",size:"16",type:"right"})):(i(),n(k,{key:1,class:"uni-pagination__child-btn"},{default:c((()=>[u(_(x.nextPageText),1)])),_:1}))])),_:1},8,["class","hover-class","onClick"])])),_:1})}],["__scopeId","data-v-84bb2583"]]),L=h(g);x(L);const q=e({name:"group",data:()=>({items:["我收到的","我发起的"],current:0,list:[],total:0,params:{page:1,limit:10,is_mine:0}}),created(){},mounted(){this.getList()},methods:{getList(){this.$api.friendApi.applyList(this.params).then((e=>{0==e.code&&(this.list=e.data,this.total=e.count)}))},changePage(e){this.params.page=e.current,this.getList()},onClickItem(e){this.params.is_mine=e.currentIndex,this.current=e.currentIndex,this.params.page=1,this.getList()},sendMsg(e){y({url:"/pages/message/chat?id="+e})},openDetails(e){y({url:"/pages/contacts/detail?id="+e})},searchFriend(){y({url:"/pages/contacts/search"})},optApply(e){b({title:"提示",content:"你确定同意该好友的请求吗",cancelText:"拒绝",cancelColor:"#e54d42",confirmText:"接受",success:i=>{let n=0;i.confirm&&(n=1),this.$api.friendApi.acceptApply({friend_id:e.friend_id,status:n}).then((e=>{0==e.code&&(k({title:e.msg,icon:"none"}),L.sysUnread--,this.getList())}))}})}}},[["render",function(e,l,f,h,g,x){const y=m,b=r,k=v("cu-custom"),S=C(p("uni-segmented-control"),T),P=I,z=C(p("uni-pagination"),$),N=v("Empty");return i(),n(b,null,{default:c((()=>[s(k,{bgColor:"bg-gradual-blue",isBack:!0},{backText:c((()=>[])),content:c((()=>[u("新邀请")])),right:c((()=>[s(b,{class:"f-20 ml-10 mr-10",onClick:l[0]||(l[0]=e=>x.searchFriend())},{default:c((()=>[s(y,{class:"cuIcon-add"})])),_:1})])),_:1}),s(S,{current:g.current,values:g.items,onClickItem:x.onClickItem,styleType:"text"},null,8,["current","values","onClickItem"]),s(b,{class:"cu-list menu"},{default:c((()=>[g.params.is_mine?w("",!0):(i(!0),a(o,{key:0},d(g.list,((e,a)=>(i(),n(b,{class:"cu-item",key:a},{default:c((()=>[s(b,{class:"cu-avatar md radius mr-15",style:t([{backgroundImage:"url("+e.create_user_info.avatar+")"}])},null,8,["style"]),s(b,{class:"content padding-tb-sm",onClick:i=>x.openDetails(e.create_user_info.user_id)},{default:c((()=>[g.params.is_mine?w("",!0):(i(),n(b,{key:0,class:"text-grey"},{default:c((()=>[s(y,{class:"text-blue"},{default:c((()=>[u(_(e.create_user_info.realname),1)])),_:2},1024),u(" 申请添加您为好友 ")])),_:2},1024)),s(b,{class:"text-gray text-sm lh-15x"},{default:c((()=>[u(_(e.remark),1)])),_:2},1024)])),_:2},1032,["onClick"]),s(b,{class:"action ml-10"},{default:c((()=>[0==e.status?(i(),n(y,{key:0,class:"text-red"},{default:c((()=>[u("已拒绝")])),_:1})):w("",!0),1==e.status?(i(),n(y,{key:1,class:"text-blue",onClick:i=>x.sendMsg(e.create_user_info.user_id)},{default:c((()=>[u("发消息")])),_:2},1032,["onClick"])):w("",!0),2==e.status?(i(),n(P,{key:2,class:"cu-btn round sm bg-green",onClick:i=>x.optApply(e)},{default:c((()=>[u(" 操作 ")])),_:2},1032,["onClick"])):w("",!0)])),_:2},1024)])),_:2},1024)))),128)),g.params.is_mine?(i(!0),a(o,{key:1},d(g.list,((e,a)=>(i(),n(b,{class:"cu-item",key:a},{default:c((()=>[s(b,{class:"cu-avatar md radius mr-15",style:t([{backgroundImage:"url("+e.user_id_info.avatar+")"}])},null,8,["style"]),s(b,{class:"content",onClick:i=>x.openDetails(e.user_id_info.user_id)},{default:c((()=>[s(b,{class:"text-grey"},{default:c((()=>[u(" 请求添加"),s(y,{class:"text-blue"},{default:c((()=>[u(_(e.user_id_info.realname),1)])),_:2},1024),u(" 为好友 ")])),_:2},1024)])),_:2},1032,["onClick"]),s(b,{class:"action ml-10"},{default:c((()=>[0==e.status?(i(),n(y,{key:0,class:"text-red"},{default:c((()=>[u("已拒绝")])),_:1})):w("",!0),1==e.status?(i(),n(y,{key:1,class:"text-blue",onClick:i=>x.sendMsg(e.user_id_info.user_id)},{default:c((()=>[u("发消息")])),_:2},1032,["onClick"])):w("",!0),2==e.status?(i(),n(y,{key:2,class:"text-orange"},{default:c((()=>[u("待同意")])),_:1})):w("",!0)])),_:2},1024)])),_:2},1024)))),128)):w("",!0),g.list.length?(i(),n(b,{key:2,class:"m-10"},{default:c((()=>[s(z,{current:g.params.page,total:g.total,pageSize:g.params.limit,onChange:x.changePage},null,8,["current","total","pageSize","onChange"])])),_:1})):w("",!0),g.list.length?w("",!0):(i(),n(N,{key:3,noDatatext:"暂无群聊",textcolor:"#999"}))])),_:1})])),_:1})}]]);export{q as default};