mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-21 04:59:37 +08:00
描述:内部会议室不可逾越
This commit is contained in:
parent
f801280323
commit
cd4737826e
@ -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,
|
||||
})
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
@ -42,4 +42,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<van-notify id="van-notify" />
|
||||
|
||||
</view>
|
@ -3,7 +3,7 @@
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 999;
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user