描述:内部会议室不可逾越

This commit is contained in:
SelfRidicule 2024-05-17 09:15:54 +08:00
parent f801280323
commit cd4737826e
4 changed files with 18 additions and 2 deletions

View File

@ -4,6 +4,9 @@ import {
meetingRoomListRq,
} from "../../../api/meeting/meetingRoom.js"
import Notify from '@vant/weapp/notify/notify';
Page({
/**
@ -219,6 +222,15 @@ Page({
// 会议室
jumpMeetingRoom(e) {
console.log('jumpMeetingRoom', e);
if (e.currentTarget.dataset.id == 47) {
Notify({
type: 'danger',
message: '内部会议室不可预约',
duration: 3 * 1000,
});
return
}
// 跳转预约详情
wx.navigateTo({
url: "/pages/meeting/meetingRoom/meetingRoom?id=" + e.currentTarget.dataset.id,
})

View File

@ -5,6 +5,7 @@
"van-dropdown-item": "@vant/weapp/dropdown-item/index",
"van-cell": "@vant/weapp/cell/index",
"van-switch": "@vant/weapp/switch/index",
"van-button": "@vant/weapp/button/index"
"van-button": "@vant/weapp/button/index",
"van-notify": "@vant/weapp/notify/index"
}
}

View File

@ -42,4 +42,7 @@
</view>
</view>
</view>
<van-notify id="van-notify" />
</view>

View File

@ -3,7 +3,7 @@
position: fixed;
left: 0;
top: 0;
z-index: 999;
z-index: 1;
width: 100%;
}