From 1e75ae23b979524a8f6a3e115acfd45f895ba07a Mon Sep 17 00:00:00 2001 From: kuaileWu <1432334894@qq.com> Date: Tue, 7 May 2024 14:53:18 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E7=BA=A6=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/prebook_list/prebook_list.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pages/prebook_list/prebook_list.vue b/pages/prebook_list/prebook_list.vue index 6dfe0c4..b81c91d 100644 --- a/pages/prebook_list/prebook_list.vue +++ b/pages/prebook_list/prebook_list.vue @@ -2,7 +2,7 @@ 全部 - {{item.real_name}} + {{item.visitor_name}} @@ -31,9 +31,11 @@ }, getBookData() { var param = new Object() - param.doctor_id = getApp().globalData.doctorId + param.page = 1 + param.limit = 10000 if(this.userSelectIndex-1 >= 0){ - param.visit_user_id = this.vistors[this.userSelectIndex-1].id + param.visitor_id = this.vistors[this.userSelectIndex-1].id + console.log(this.vistors) } uni.showLoading({ title:'加载中', @@ -47,8 +49,6 @@ uni.hideLoading() if(data == -1) return this.bookList = data.data - console.log(123) - // this.bookList = [ // { // "id": 27, @@ -256,10 +256,10 @@ var param = new Object() param.page = 1 param.limit = 10000 - this.$http.req('get_appoints', param).then(data=>{ + this.$http.req('get_visitors', param).then(data=>{ if(data == -1) return this.getBookData() - this.vistors = data.data + this.vistors = data }); }, pageInit() {