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 @@ 规格与价格 - + - 小时优惠价 + 价格 -