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