mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-21 11:59:37 +08:00
描述:展厅预约提示信息
This commit is contained in:
parent
dfe26e046a
commit
a6caeb7dba
@ -48,6 +48,8 @@ Page({
|
|||||||
visitAreaList: [],
|
visitAreaList: [],
|
||||||
visitAreaSelectList: [],
|
visitAreaSelectList: [],
|
||||||
visitAreaSelectContent: null,
|
visitAreaSelectContent: null,
|
||||||
|
// 倒计时id
|
||||||
|
meetingTimeId: null,
|
||||||
// 提交数据
|
// 提交数据
|
||||||
formData: {
|
formData: {
|
||||||
showroomId: null, // 展厅id
|
showroomId: null, // 展厅id
|
||||||
@ -363,10 +365,25 @@ Page({
|
|||||||
saveShowRoomRecordRq(formData).then(res => {
|
saveShowRoomRecordRq(formData).then(res => {
|
||||||
console.log('saveShowRoomRecordRq', res);
|
console.log('saveShowRoomRecordRq', res);
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
// 需要会议室
|
||||||
if (formData.meetingNeedTypeBoolean) {
|
if (formData.meetingNeedTypeBoolean) {
|
||||||
|
Dialog.alert({
|
||||||
|
title: '提示',
|
||||||
|
message: '预约提交成功,即将为您跳转至会议室预约页面',
|
||||||
|
}).then(() => {
|
||||||
wx.reLaunch({
|
wx.reLaunch({
|
||||||
url: "/pages/meeting/meetingReservation/meetingReservation",
|
url: "/pages/meeting/meetingReservation/meetingReservation",
|
||||||
})
|
})
|
||||||
|
});
|
||||||
|
// 设置倒计时跳转
|
||||||
|
let meetingTimeId = setTimeout(() => {
|
||||||
|
wx.reLaunch({
|
||||||
|
url: "/pages/meeting/meetingReservation/meetingReservation",
|
||||||
|
})
|
||||||
|
}, 2000);
|
||||||
|
_this.setData({
|
||||||
|
meetingTimeId
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
wx.reLaunch({
|
wx.reLaunch({
|
||||||
url: "/pages/meeting/reservationRecord/exhibitionRecord/list/list",
|
url: "/pages/meeting/reservationRecord/exhibitionRecord/list/list",
|
||||||
@ -404,7 +421,12 @@ Page({
|
|||||||
* 生命周期函数--监听页面卸载
|
* 生命周期函数--监听页面卸载
|
||||||
*/
|
*/
|
||||||
onUnload() {
|
onUnload() {
|
||||||
|
console.log('onUnload', '生命周期函数--监听页面卸载');
|
||||||
|
let _this = this;
|
||||||
|
// 删除倒计时
|
||||||
|
if(_this.data.meetingTimeId){
|
||||||
|
clearTimeout(_this.data.meetingTimeId)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -109,6 +109,9 @@
|
|||||||
|
|
||||||
</view>
|
</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>
|
<van-dialog use-slot title="添加-参观人员" show="{{ dialogShow }}" show-confirm-button="{{false}}" show-cancel-button="{{false}}" close-on-click-overlay>
|
||||||
<view class="dialogContent">
|
<view class="dialogContent">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user