import{_ as a,p as s,q as e,G as t,a as c,w as n,l as o,o as l,k as r,y as d,b as u,r as i,F as p,n as f,z as m,U as y}from"./index-DdiBakOJ.js";const _=a({__name:"choiceness",setup(a){const{$api:_,navTo:k}=s("globalFunction"),C=e([]);function g(){_.createRequest("/app/company/card").then((a=>{const{rows:s,total:e}=a;C.value=s}))}return t((()=>{g()})),(a,s)=>{const e=o,t=y;return l(),c(e,{class:"container"},{default:n((()=>[r(e,{class:"search-bar"},{default:n((()=>[d("精选企业")])),_:1}),r(e,{class:"grid-container"},{default:n((()=>[(l(!0),u(p,null,i(C.value,(a=>(l(),c(e,{class:"grid-item",style:f({backgroundColor:a.backgroudColor}),key:a.companyCardId},{default:n((()=>[r(t,{class:"title"},{default:n((()=>[d(m(a.name),1)])),_:2},1024),a.isCollection?(l(),c(e,{key:0,class:"status",onClick:s=>function(a){_.createRequest(`/app/company/card/collection/${a.companyCardId}`,{},"DELETE").then((a=>{g(),_.msg("取消关注")}))}(a)},{default:n((()=>[d("已关注 ✓")])),_:2},1032,["onClick"])):(l(),c(e,{key:1,class:"status",onClick:s=>function(a){_.createRequest(`/app/company/card/collection/${a.companyCardId}`,{},"PUT").then((a=>{g(),_.msg("关注成功")}))}(a)},{default:n((()=>[d("特别关注")])),_:2},1032,["onClick"]))])),_:2},1032,["style"])))),128))])),_:1})])),_:1})}}},[["__scopeId","data-v-21f6c3ed"]]);export{_ as default};
