1 |
- "use strict";var t=require("../../common/vendor.js"),e=require("../../api/doctor.js"),o=require("../../api/department.js");require("../../common/request.js");const r={data:()=>({depts:[],doctors:[]}),onShow(){this.getDepartmentList(),this.getDoctorList()},methods:{getDoctorList(){e.getDoctorList({isTui:1,pageNum:1,pageSize:10}).then((e=>{200==e.code?(e.data.list.forEach((function(t,e,o){t.prices=JSON.parse(t.priceJson)})),this.doctors=e.data.list,console.log(this.doctors)):t.index.showToast({icon:"none",title:"请求失败"})}))},getDepartmentList(e){o.getDepartmentList({}).then((e=>{200==e.code?this.depts=e.data:t.index.showToast({icon:"none",title:"请求失败"})}))},navTo(e){t.index.navigateTo({url:e})}}};var i=t._export_sfc(r,[["render",function(e,o,r,i,a,s){return{a:t.f(a.depts,((e,o,r)=>({a:e.iconUrl,b:t.t(e.deptName),c:t.o((t=>s.navTo("./doctorList?deptId="+e.deptId)))}))),b:t.f(a.doctors,((e,o,r)=>({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,((e,o,r)=>t.e({a:t.t(e.price.toFixed(2)),b:0==o},{}))),j:t.o((t=>s.navTo("./doctorDetails?doctorId="+e.doctorId)))})))}}],["__scopeId","data-v-6565e0bb"]]);wx.createPage(i);
|