From 026b94f9db346c0fea599808ca1447315240fc02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=85=81=E6=9E=9E?= <3422692813@qq.com> Date: Tue, 18 Mar 2025 17:22:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order/reservationlist.vue | 7 ++++++- pages/staff/staff-my.vue | 28 +++++++++++++++++++++++++++- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/pages/order/reservationlist.vue b/pages/order/reservationlist.vue index 63ed7c4..082a866 100644 --- a/pages/order/reservationlist.vue +++ b/pages/order/reservationlist.vue @@ -125,7 +125,12 @@ params: data }) if(res.code == 200){ - this.goodsList = this.goodsList.concat(res.rows) + if (this.pageNum == 1) { + this.goodsList = res.rows + }else { + + this.goodsList = this.goodsList.concat(res.rows) + } let total = res.total this.totalPages = Math.ceil(total / this.pageSize); } diff --git a/pages/staff/staff-my.vue b/pages/staff/staff-my.vue index f4c561c..d14eb2a 100644 --- a/pages/staff/staff-my.vue +++ b/pages/staff/staff-my.vue @@ -70,6 +70,17 @@ + + + + + + 预约信息 + + + + + @@ -147,7 +158,8 @@ export default { user: {}, baseUrl: '', partnerId: '', - myindex: {} + myindex: {}, + lookAppointment: false } }, onLoad() { @@ -158,6 +170,7 @@ export default { console.log(this.user); this.partnerId = uni.getStorageSync('partnerId') this.getindexmy() + this.ifAppointment() }, components: { tabBar, @@ -176,6 +189,14 @@ export default { this.tui() this.$refs.alertDialog.close() }, + ifAppointment(){ + request({ + url: '/partnerOwn/partner/ifAppointment', + method: 'get', + }).then((res) => { + this.lookAppointment = res.data + }) + }, // 点击编辑信息按钮时调用此方法 editUserInfo() { // 这里可以跳转到编辑页面并传递参数 @@ -227,6 +248,11 @@ export default { url: "/pages/manage/deviceManage" }) }, + goAppointment() { + uni.navigateTo({ + url: "/pages/order/reservationlist" + }) + }, goWord() { request({ url: '/system/info/exportWord',