"use strict";var t=require("../../common/vendor.js"),g=require("../../api/doctor.js"),_=require("../../api/department.js");require("../../common/request.js");const h={data(){return{depts:[],doctors:[]}},onShow(){this.getDepartmentList(),this.getDoctorList()},methods:{getDoctorList(){var a={isTui:1,pageNum:1,pageSize:10};g.getDoctorList(a).then(o=>{o.code==200?(o.data.list.forEach(function(r,c,i){r.prices=JSON.parse(r.priceJson)}),this.doctors=o.data.list,console.log(this.doctors)):t.index.showToast({icon:"none",title:"\u8BF7\u6C42\u5931\u8D25"})})},getDepartmentList(a){var o={};_.getDepartmentList(o).then(r=>{r.code==200?this.depts=r.data:t.index.showToast({icon:"none",title:"\u8BF7\u6C42\u5931\u8D25"})})},navTo(a){t.index.navigateTo({url:a})}}};function v(a,o,r,c,i,n){return{a:t.f(i.depts,(e,p,u)=>({a:e.iconUrl,b:t.t(e.deptName),c:t.o(s=>n.navTo("./doctorList?deptId="+e.deptId))})),b:t.f(i.doctors,(e,p,u)=>({a:e.avatar,b:t.t(e.doctorName),c:t.t(e.position),d:t.t(e.hospitalName),e:t.t(e.deptName),f:t.t(e.speciality),g:t.t(e.pingStar),h:t.t(e.orderNumber),i:t.f(e.prices,(s,d,l)=>t.e({a:t.t(s.price.toFixed(2)),b:d==0},d==0?{}:{})),j:t.o(s=>n.navTo("./doctorDetails?doctorId="+e.doctorId))}))}}var f=t._export_sfc(h,[["render",v],["__scopeId","data-v-1619804a"],["__file","E:/Project/2023/\u95EE\u8BCA\u5E73\u53F0/his_user_miniapp/pages/doctor/index.vue"]]);wx.createPage(f);
