From af7c13d45d12a4110b5feb042a9d1a25ff762912 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Mon, 6 Mar 2023 15:46:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/materialbenefits/index.js | 4 ++-- pages/materialbenefits/materialbenefits.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/materialbenefits/index.js b/api/materialbenefits/index.js index 5afa5ab..73eae96 100644 --- a/api/materialbenefits/index.js +++ b/api/materialbenefits/index.js @@ -2,9 +2,9 @@ import request from "../request.js" //新人优惠券 -export function couponByUseStatus(patientId) { +export function couponByUseStatus(pageNum, pageSize, patientId) { return request({ - url: `/nurseApplet/patientInfo/couponByUseStatus?patientId=${patientId}`, + url: `/nurseApplet/patientInfo/couponByUseStatus?pageNum=${pageNum}&pageSize=${pageSize}patientId=${patientId}`, method: 'get' }) } diff --git a/pages/materialbenefits/materialbenefits.vue b/pages/materialbenefits/materialbenefits.vue index d6a119c..bdd68b4 100644 --- a/pages/materialbenefits/materialbenefits.vue +++ b/pages/materialbenefits/materialbenefits.vue @@ -152,7 +152,7 @@ } }, getlist() { - couponByUseStatus(this.patientId).then(res => { + couponByUseStatus(this.pageNum, this.pageSize, this.patientId).then(res => { this.couponlist = res.rows this.total = res.total }) @@ -181,7 +181,7 @@ onReachBottom() { //下滑加载 if (this.couponlist.length >= this.total) {} else { this.pageNum++; - couponByUseStatus(this.patientId).then(res => { + couponByUseStatus(this.pageNum, this.pageSize, this.patientId).then(res => { res.rows.forEach(e => { this.couponlist.push(e) })