/* empty css                  *//* empty css                 *//* empty css                        */import{d as E,r as c,I as S,a4 as V,c as d,b as t,a as s,x as v,a5 as f,u as n,F as C,h as T,o as r,w as m,E as B,ag as w,Z as I,t as h,e as P,B as D,a9 as U,a0 as F,_ as L}from"./index-hZHbf6Qq.js";import{P as q}from"./index-C__Mp2q5.js";import{S as A}from"./index-_A_W0Tlc.js";/* empty css                                                              *//* empty css                    *//* empty css               *//* empty css                  *//* empty css                  *//* empty css                             *//* empty css                 */import{T as M}from"./index-BqhCx7JE.js";/* empty css                      */const Q={class:"page-container"},Z={class:"plan-grid"},$={class:"plan-image"},j={class:"image-placeholder"},G={class:"plan-info"},H={class:"plan-name"},J={class:"plan-desc"},K=["onClick"],O=E({__name:"index",setup(R){const i=c("purchase"),k=[{key:"purchase",label:"采购方案"},{key:"exclusive",label:"专属采购方案"},{key:"collection",label:"收藏的采购方案"}],l=S({pageNum:1,pageSize:10}),p=c(500),o=c([]),u=()=>{i.value==="purchase"?(o.value=[{id:1,name:"2025中秋福利 企业团购方案",description:"千款好礼·百大品牌·个性定制",image:""},{id:2,name:"高效会议 一屏搞定",description:"视频会议大屏解决方案，送货上门，免费安装",image:""},{id:3,name:"高效会议 一屏搞定",description:"视频会议大屏解决方案，送货上门，免费安装",image:""}],p.value=500):i.value==="exclusive"?(o.value=[{id:1,name:"专属定制方案A",description:"根据企业需求定制的专属采购方案",image:""}],p.value=1):(o.value=[{id:1,name:"收藏的方案",description:"您收藏的采购方案",image:""}],p.value=1)};V(i,()=>{l.pageNum=1,u()},{immediate:!0});const y=()=>{u()},x=_=>{F.info("查看方案详情："+_.name)};return(_,a)=>{const g=B,b=I,N=U;return r(),d("div",Q,[t(n(q),{title:"专属采购方案"}),t(n(A),{modelValue:i.value,"onUpdate:modelValue":a[0]||(a[0]=e=>i.value=e),tabs:k,type:"pill"},null,8,["modelValue"]),s("div",Z,[(r(!0),d(C,null,T(o.value,(e,z)=>(r(),d("div",{key:z,class:"plan-card"},[s("div",$,[t(b,{src:e.image,fit:"cover"},{error:m(()=>[s("div",j,[t(g,{size:40},{default:m(()=>[t(n(w))]),_:1})])]),_:1},8,["src"])]),s("div",G,[s("div",H,h(e.name),1),s("div",J,h(e.description),1),s("div",{class:"plan-link",onClick:W=>x(e)},[a[3]||(a[3]=P("了解详情 ",-1)),t(g,null,{default:m(()=>[t(n(D))]),_:1})],8,K)])]))),128))]),o.value.length===0?(r(),v(N,{key:0,description:"暂无采购方案"})):f("",!0),o.value.length>0?(r(),v(n(M),{key:1,page:l.pageNum,"onUpdate:page":a[1]||(a[1]=e=>l.pageNum=e),"page-size":l.pageSize,"onUpdate:pageSize":a[2]||(a[2]=e=>l.pageSize=e),total:p.value,onChange:y},null,8,["page","page-size","total"])):f("",!0)])}}}),ue=L(O,[["__scopeId","data-v-87845e27"]]);export{ue as default};
