"use strict";const e=require("../../common/vendor.js"),a={__name:"detail",setup(a){const t=e.ref({id:1,name:"张医生",title:"主任医师",avatar:"/static/doctor/avatar1.jpg",hospital:"青岛镜湖医院",department:"心内科",tags:["专家门诊","视频问诊"],experience:20,rating:4.9,patients:12580,specialty:"擅长冠心病、高血压、心律失常等心血管疾病的诊治,在心血管疾病的预防、诊断和治疗方面有丰富经验。",introduction:"张医生从事心血管专业20余年,曾在北京协和医院进修学习。现任青岛镜湖医院心内科主任医师,青岛心血管病学会会员。在心血管疾病的诊治方面积累了丰富的临床经验,尤其在冠心病、高血压、心律失常等方面有较深造诣。",schedules:[{date:"03-25",day:"今天",period:"上午",price:300,remain:2},{date:"03-26",day:"明天",period:"下午",price:300,remain:5},{date:"03-27",day:"周三",period:"上午",price:300,remain:8}],reviews:[{id:1,name:"张**",avatar:"/static/avatar/user1.jpg",time:"2024-03-20",rating:5,content:"张医生很专业,态度也很好,详细解答了我的问题,让我对病情有了更清晰的认识。"},{id:2,name:"李**",avatar:"/static/avatar/user2.jpg",time:"2024-03-19",rating:5,content:"医术精湛,服务周到,值得信赖的好医生。"}]}),i=e.ref(0),n=()=>{e.index.showModal({title:"提示",content:"是否开始在线咨询?",success:e=>{e.confirm}})},r=()=>{const a=t.value.schedules[i.value];e.index.navigateTo({url:`/pages/appointment/confirm?doctorId=${t.value.id}&date=${a.date}&period=${a.period}`})};return e.onMounted(()=>{var e;const a=getCurrentPages(),t=a[a.length-1],{id:i,name:n,hospital:r}=(null==(e=t.$page)?void 0:e.options)||{};console.log("加载医生详情:",i,n,r)}),(a,o)=>({a:t.value.avatar,b:e.t(t.value.name),c:e.t(t.value.title),d:e.t(t.value.hospital),e:e.f(t.value.tags,(a,t,i)=>({a:e.t(a),b:t})),f:e.t(t.value.experience),g:e.t(t.value.rating),h:e.t(t.value.patients),i:e.t(t.value.specialty),j:e.t(t.value.introduction),k:e.f(t.value.schedules,(a,t,n)=>({a:e.t(a.date),b:e.t(a.day),c:e.t(a.period),d:e.t(a.price),e:e.t(a.remain),f:t,g:i.value===t?1:"",h:e.o(e=>(e=>{i.value=e})(t),t)})),l:e.f(t.value.reviews,(a,t,i)=>({a:a.avatar,b:e.t(a.name),c:e.t(a.time),d:e.f(5,(e,a,t)=>({a:e})),e:e.t(a.content),f:t})),m:e.o(n),n:e.o(r),o:e.gei(a,"")})}};wx.createPage(a);