From 9b3b201ead704b7dcb37b6d664c1ae4fad871cf3 Mon Sep 17 00:00:00 2001 From: dzq Date: Wed, 2 Jul 2025 10:38:20 +0800 Subject: [PATCH] =?UTF-8?q?feat(rental):=20=E6=96=B0=E5=A2=9E=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=A7=9F=E7=94=A8=E6=9F=9C=E6=9C=BA=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=8F=8A=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加获取用户租用柜机列表的API接口 实现租用柜机列表页面,包含地址选择、柜机切换和格口展示功能 支持用户查看已租用柜机格口状态并操作开柜 --- src/common/apis/cabinet/index.ts | 14 +- src/pages/rental/index.vue | 462 +++++++++++++++++++++++++++++++ 2 files changed, 475 insertions(+), 1 deletion(-) create mode 100644 src/pages/rental/index.vue diff --git a/src/common/apis/cabinet/index.ts b/src/common/apis/cabinet/index.ts index a12a059..c9de720 100644 --- a/src/common/apis/cabinet/index.ts +++ b/src/common/apis/cabinet/index.ts @@ -13,7 +13,7 @@ export function getCabinetDetailApi(shopId: number) { }) } -/** 获取租用中的智能柜详情接口 */ +/** 获取出租中的智能柜详情接口 */ export function getRentingCabinetDetailApi(shopId: number) { return request>({ url: 'cabinet/detail/renting', @@ -24,6 +24,18 @@ export function getRentingCabinetDetailApi(shopId: number) { }) } +/** 获取自己租用中的智能柜详情接口 */ +export function getUserRentedCabinetListApi(corpid:string, ab98UserId: number) { + return request>({ + url: 'cabinet/detail/user', + method: 'get', + params: { + corpid, + ab98UserId + } + }) +} + export function openCabinet(cabinetId: number, pinNo: number, data: OpenCabinetApiData) { return request>({ url: `cabinet/openCabinet/${cabinetId}/${pinNo}`, diff --git a/src/pages/rental/index.vue b/src/pages/rental/index.vue new file mode 100644 index 0000000..82048a4 --- /dev/null +++ b/src/pages/rental/index.vue @@ -0,0 +1,462 @@ + + + + + \ No newline at end of file