import{_ as a,r as e,A as s,B as l,aj as r,b as t,f as o,c as u,g as c,h as p,l as n,w as d,e as i,u as m,j as h,t as v,i as f,al as _}from"./index-q2k2ACYe.js";import{h as g}from"./headImg.D8PzAUux.js";import{l as y,n as x}from"./navbg.DtxIXihV.js";import{n as b}from"./navTo.BuQuWXQa.js";/* empty css                                                               */const j=a({__name:"navBar",props:{searchWord:{type:String,default:""},type:{type:String,default:"home"},navName:{type:String,default:"肝胆相照临床病例库"}},emits:["changeWord"],setup(a,{emit:j}){const k=e(""),w=e(""),W=a,B=e("输入疾病名称、标题、作者搜索");s((()=>W.type),(a=>{}),{immediate:!0}),s((()=>W.searchWord),(a=>{w.value=a}));const I=()=>{b({url:"/pages/my/my"})},S=()=>{"home"==W.type?b({url:`/pages/search/search?keyWord=${w.value}&from=home`}):"caseTalk"==W.type&&b({url:`/pages/specialList/specialList?keyWord=${w.value}&from=talkHome`})};return l((()=>{let a=r("userInfo");a&&a.avatar?k.value=a.avatar:k.value=g})),(e,s)=>{const l=f,r=t(u("up--image"),o),g=_,b=t(u("up-icon"),c);return p(),n(l,{class:"navbox"},{default:d((()=>[i(l,{class:"bg"}),i(l,{class:"namebox"},{default:d((()=>[i(l,{class:"logo"},{default:d((()=>[i(r,{src:m(y),width:"62rpx",height:"62rpx",radius:"50%"},null,8,["src"])])),_:1}),i(l,{class:"name"},{default:d((()=>[h(v(a.navName)+" ",1),i(l,{class:"navbg"},{default:d((()=>[i(r,{src:m(x),width:"100rpx",height:"31rpx"},null,8,["src"])])),_:1})])),_:1})])),_:1}),i(l,{class:"search"},{default:d((()=>[i(l,{class:"searchwrap"},{default:d((()=>[i(g,{type:"text",class:"ipt",modelValue:w.value,"onUpdate:modelValue":s[0]||(s[0]=a=>w.value=a),placeholder:B.value},null,8,["modelValue","placeholder"]),i(b,{name:"search",size:"26",color:"#999",onClick:S})])),_:1}),i(r,{src:k.value,onClick:I,width:"62rpx",height:"62rpx",radius:"50%"},null,8,["src"])])),_:1})])),_:1})}}},[["__scopeId","data-v-f204508b"]]);export{j as n};
