From 10aae8ea4659f36be962b902713872be1561e195 Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Thu, 18 Dec 2025 18:10:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E6=88=BF=E9=97=B4=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/store.ts | 29 +- src/pages/store/room-detail.vue | 695 ++++++++++++++++++-------------- 2 files changed, 422 insertions(+), 302 deletions(-) diff --git a/src/api/store.ts b/src/api/store.ts index 34f2570..a30c9d3 100644 --- a/src/api/store.ts +++ b/src/api/store.ts @@ -21,7 +21,6 @@ export function switchStore(id: number) { return http.Post('/storeapi/store/switchStore', { id }) } - /** * 编辑门店信息 */ @@ -63,6 +62,34 @@ export function getRoomList(data: IGetRoomListParams) { return http.Post('/storeapi/store/roomList', data) } +/** + * 获取房间信息 + */ +export function getRoomDetails(id: number) { + return http.Post('/storeapi/store/roomDetails', { id }) +} + +/** + * 包间列表标签 + */ +export function getRoomLabelList(store_id: number) { + return http.Post('/storeapi/store/roomLabelList', { store_id }) +} + +/** + * 创建包间标签 + */ +export function handleCreateTag(data: {store_id: number, label_name: string}) { + return http.Post('/storeapi/store/addLabel', data) +} + +/** + * 删除包间标签 + */ +export function handleDeleteTag(id: number) { + return http.Post('/storeapi/store/delLabel', {id}) +} + /** * 修改房间信息 */ diff --git a/src/pages/store/room-detail.vue b/src/pages/store/room-detail.vue index 3b6d57a..1ed3256 100644 --- a/src/pages/store/room-detail.vue +++ b/src/pages/store/room-detail.vue @@ -12,11 +12,11 @@ - + - + @@ -41,7 +41,7 @@ - @@ -61,17 +61,17 @@ - - {{ tag }} + {{ tag.label_name }} + @click="RoomDetail.handleRemoveTag(index)" /> + @click="RoomDetail.handleAddTag"> 添加标签 @@ -81,7 +81,7 @@ - + @@ -122,30 +122,18 @@ - 可添加3~9张图片 + 可添加1张图片 - - - - - - - - - - - 添加图片 - - + + @@ -157,17 +145,17 @@ 规格与价格 - + - 小时优惠价 + 价格 -