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
dfe26e046a
commit
a6caeb7dba
@ -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)
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user