描述:展厅预约提示信息

This commit is contained in:
SelfRidicule 2024-03-29 17:23:18 +08:00
parent dfe26e046a
commit a6caeb7dba
2 changed files with 28 additions and 3 deletions

View File

@ -48,6 +48,8 @@ Page({
visitAreaList: [],
visitAreaSelectList: [],
visitAreaSelectContent: null,
// 倒计时id
meetingTimeId: null,
// 提交数据
formData: {
showroomId: null, // 展厅id
@ -363,9 +365,24 @@ Page({
saveShowRoomRecordRq(formData).then(res => {
console.log('saveShowRoomRecordRq', res);
if (res.code == 0) {
// 需要会议室
if (formData.meetingNeedTypeBoolean) {
wx.reLaunch({
url: "/pages/meeting/meetingReservation/meetingReservation",
Dialog.alert({
title: '提示',
message: '预约提交成功,即将为您跳转至会议室预约页面',
}).then(() => {
wx.reLaunch({
url: "/pages/meeting/meetingReservation/meetingReservation",
})
});
// 设置倒计时跳转
let meetingTimeId = setTimeout(() => {
wx.reLaunch({
url: "/pages/meeting/meetingReservation/meetingReservation",
})
}, 2000);
_this.setData({
meetingTimeId
})
} else {
wx.reLaunch({
@ -404,7 +421,12 @@ Page({
* 生命周期函数--监听页面卸载
*/
onUnload() {
console.log('onUnload', '生命周期函数--监听页面卸载');
let _this = this;
// 删除倒计时
if(_this.data.meetingTimeId){
clearTimeout(_this.data.meetingTimeId)
}
},
/**

View File

@ -109,6 +109,9 @@
</view>
<!-- dialog提示 -->
<van-dialog id="van-dialog" />
<!-- 添加人员弹出框 -->
<van-dialog use-slot title="添加-参观人员" show="{{ dialogShow }}" show-confirm-button="{{false}}" show-cancel-button="{{false}}" close-on-click-overlay>
<view class="dialogContent">