"use strict";const e=require("../../common/vendor.js"),t={__name:"case",setup(t){const a=e.ref({id:1,title:"颈椎病针灸治疗案例",tag:"针灸治疗",doctor:"张医生",date:"2024-03-20",image:"/static/tcm/case1.jpg",patient:{gender:"女",age:45,symptoms:"颈部疼痛、头晕、手麻",duration:"3个月"},process:'\n <p style="text-indent: 2em; margin-bottom: 1em;">患者因长期伏案工作,出现颈部疼痛、头晕、双手发麻等症状,经检查诊断为颈椎病。</p>\n <p style="text-indent: 2em; margin-bottom: 1em;">采用针灸配合推拿治疗,主要取穴包括风池、天柱、肩井等穴位,每次治疗约40分钟。</p>\n ',processImages:["/static/tcm/process1.jpg","/static/tcm/process2.jpg"],effect:'\n <p style="text-indent: 2em; margin-bottom: 1em;">经过8次治疗,患者颈部疼痛明显缓解,头晕、手麻等症状基本消失,颈椎活动度明显改善。</p>\n ',beforeAfter:[{before:"/static/tcm/before1.jpg",after:"/static/tcm/after1.jpg"}],review:{name:"张**",avatar:"/static/avatar/user1.jpg",time:"2024-03-20",content:"张医生技术很好,态度也很亲切。经过治疗后,困扰我多时的颈椎问题得到了很大改善,现在工作生活都舒服多了。"},relatedProjects:[{id:1,name:"针灸治疗",price:300,image:"/static/tcm/acupuncture.jpg"},{id:2,name:"推拿理疗",price:200,image:"/static/tcm/massage.jpg"}]}),r=(t,r)=>{const n=a.value.beforeAfter.map(e=>e[r]);e.index.previewImage({urls:n,current:t})},n=()=>{e.index.showModal({title:"提示",content:"是否开始在线咨询?",success:e=>{e.confirm}})},o=()=>{e.index.navigateTo({url:`/pages/appointment/department?type=tcm&case=${a.value.id}`})};return e.onMounted(()=>{var e;const t=getCurrentPages(),a=t[t.length-1],{id:r}=(null==(e=a.$page)?void 0:e.options)||{};console.log("加载案例详情:",r)}),(t,i)=>{var s,c,l,m;return e.e({a:a.value.image,b:e.t(a.value.title),c:e.t(a.value.tag),d:e.t(a.value.doctor),e:e.t(a.value.date),f:e.t(a.value.patient.gender),g:e.t(a.value.patient.age),h:e.t(a.value.patient.symptoms),i:e.t(a.value.patient.duration),j:a.value.process,k:null==(s=a.value.processImages)?void 0:s.length},(null==(c=a.value.processImages)?void 0:c.length)?{l:e.f(a.value.processImages,(t,r,n)=>({a:r,b:t,c:e.o(t=>(t=>{const r=a.value.processImages;e.index.previewImage({urls:r,current:t})})(r),r)}))}:{},{m:a.value.effect,n:null==(l=a.value.beforeAfter)?void 0:l.length},(null==(m=a.value.beforeAfter)?void 0:m.length)?{o:e.f(a.value.beforeAfter,(t,a,n)=>({a:t.before,b:e.o(e=>r(a,"before"),a),c:t.after,d:e.o(e=>r(a,"after"),a),e:a}))}:{},{p:a.value.review.avatar,q:e.t(a.value.review.name),r:e.t(a.value.review.time),s:e.f(5,(e,t,a)=>({a:e})),t:e.t(a.value.review.content),v:e.f(a.value.relatedProjects,(t,a,r)=>({a:t.image,b:e.t(t.name),c:e.t(t.price),d:a,e:e.o(a=>{return r=t,void e.index.navigateTo({url:`/pages/featured/project?id=${r.id}`});var r},a)})),w:e.o(n),x:e.o(o),y:e.gei(t,"")})}}};wx.createPage(t);
|