import{_ as a,r as e,A as s,B as l,aj as r,b as t,g as o,c,f as u,h as n,l as d,w as i,e as p,u as m,j as v,t as h,a3 as f,a4 as g,i as x,al as _}from"./index-q2k2ACYe.js";import{h as y}from"./headImg.D8PzAUux.js";import{l as b,n as j}from"./navbg.DtxIXihV.js";import{n as w}from"./navTo.BuQuWXQa.js";const k=a({__name:"navBarSearch",props:{searchWord:{type:String,default:""},type:{type:String,default:""},navName:{type:String,default:"肝胆相照临床病例库"}},emits:["changeWord"],setup(a,{emit:k}){const C=e(""),S=e(""),W=a,I=e("输入疾病名称、标题、作者搜索");s((()=>W.type),(a=>{"doctor"===a?I.value="输入医生姓名":"hospital"===a?I.value="输入医院名称":"video"===a?I.value="输入疾病名称、标题、作者搜索":"article"===a?I.value="搜索疾病、症状、医院":"case"===a?I.value="输入疾病名称":("myCase"===a||"cert"===a)&&(I.value="输入疾病名称、标题搜索")}),{immediate:!0}),s((()=>W.searchWord),(a=>{C.value=a}));const V=k,z=()=>{w({url:"/pages/my/my"})},B=()=>{f({delta:1,fail(){g({url:"/pages/index/index"})}})};l((()=>{let a=r("userInfo");a&&a.avatar?S.value=a.avatar:S.value=y}));const N=()=>{V("changeWord",C.value)};return(e,s)=>{const l=x,r=t(c("u-icon"),o),f=t(c("up--image"),u),g=_,y=t(c("up-icon"),o);return n(),d(l,{class:"navbox"},{default:i((()=>[p(l,{class:"bg"}),p(l,{class:"namebox"},{default:i((()=>[p(l,{class:"back",onClick:B},{default:i((()=>[p(r,{name:"arrow-left",color:"#000",size:"24"})])),_:1}),p(l,{class:"logo"},{default:i((()=>[p(f,{src:m(b),width:"62rpx",height:"62rpx",radius:"50%"},null,8,["src"])])),_:1}),p(l,{class:"name"},{default:i((()=>[v(h(a.navName)+" ",1),p(l,{class:"navbg"},{default:i((()=>[p(f,{src:m(j),width:"100rpx",height:"31rpx"},null,8,["src"])])),_:1})])),_:1})])),_:1}),p(l,{class:"search"},{default:i((()=>[p(l,{class:"searchwrap"},{default:i((()=>[p(g,{type:"text",class:"ipt",modelValue:C.value,"onUpdate:modelValue":s[0]||(s[0]=a=>C.value=a),placeholder:I.value},null,8,["modelValue","placeholder"]),p(y,{name:"search",size:"26",color:"#999",onClick:N})])),_:1}),p(f,{src:S.value,onClick:z,width:"62rpx",height:"62rpx",radius:"50%"},null,8,["src"])])),_:1})])),_:1})}}},[["__scopeId","data-v-648dea7c"]]);export{k as n};
