【bug】会议报名 参会人列表的查询

This commit is contained in:
fengachen
2021-11-03 13:50:21 +08:00
parent e765166c81
commit 45e16f41db
2 changed files with 27 additions and 10 deletions
+24 -7
View File
@@ -503,7 +503,6 @@ Page({
// 确定
formSubmit(e) {
const formData = Object.assign({}, e.detail.value)
if (this.data.flag) {
wx.showToast({
title: '信息输入有误',
@@ -583,7 +582,7 @@ Page({
return
}
// 是否用餐
if (this.data.guestType !== '4' && (formData.haveMeals == '' || formData.haveMeals === undefined)) {
if (this.data.guestType !== '4' && this.data.identity === '1' && (formData.haveMeals == '' || formData.haveMeals === undefined)) {
wx.showToast({
title: '请选择是否用餐',
icon: 'none',
@@ -592,7 +591,7 @@ Page({
return
}
// 是否回民 选择了是否用餐才去校验
if (this.data.guestType !== '4' && thism.data.haveMeal === '1' && (formData.huiPeople == '' || formData.huiPeople === undefined)) {
if (this.data.guestType !== '4' && this.data.haveMeal === '1' && (formData.huiPeople == '' || formData.huiPeople === undefined)) {
wx.showToast({
title: '请选择是否回民',
icon: 'none',
@@ -718,7 +717,16 @@ Page({
return
}
// 会议id
formData.meetingId = this.meetingDetailInfo.id
if( this.data.selectedMeeting.id){
formData.meetingId = this.data.selectedMeeting.id
}else{
wx.getStorage({
key:"meetingId",
success(res){
formData.meetingId = res.data
}
})
}
// 参会人id
formData.companyContactId = this.data.selectedPerson.id
// 邮寄联系人id
@@ -747,13 +755,22 @@ Page({
wx.removeStorage({
key: 'selectedPostPerson',
})
wx.removeStorage({
key: 'meetingId',
})
wx.removeStorage({
key: 'currentMeetingInfo',
success() {
// 跳转报名成功页面
wx.navigateTo({
url: '../signUpSuccess/signUpSuccess',
})
if(formData.payMode){
wx.navigateTo({
url: `../signUpSuccess/signUpSuccess?payMode=${formData.payMode}`,
})
}else{
wx.navigateTo({
url: `../signUpSuccess/signUpSuccess`,
})
}
}
})
}