diff --git a/pages/visitors/visitors.vue b/pages/visitors/visitors.vue index e8a70a6..96d867f 100644 --- a/pages/visitors/visitors.vue +++ b/pages/visitors/visitors.vue @@ -180,7 +180,11 @@ } }, async onShow() { - await this.getDoctorInfo(); + this.selectCount = 0 + this.activeVisitors = [] + this.visitUsers = false + this.pageshow = false + this.getDoctorInfo(); }, onReady() { @@ -190,13 +194,11 @@ this.$nav.navToPath('/pages/index/index') }, // 预约时间 -跳转就诊人页面-预约时间 - async getDoctorInfo() { - await this.$http.req('api/user/index_info', {}, 'GET').then(data=>{ + getDoctorInfo() { + this.$http.req('api/user/index_info', {}, 'GET').then(data=>{ if(data == -1) return this.doctorInfo = data; - - if(this.doctorInfo.hospital_departs && this.doctorInfo.hospital_departs.length>0) this.hospitals = this.doctorInfo.hospital_departs; var hospital = {}