【bug】签到报名的bug

This commit is contained in:
fengachen
2021-11-01 20:21:26 +08:00
parent ebf4579511
commit e65ffd1b66
3 changed files with 31 additions and 6 deletions
+26 -2
View File
@@ -80,6 +80,8 @@ Page({
selectedPostPerson: {},
// 选中的会议
selectedMeeting: {},
// 会议id
meetingId:'',
// 是否正确填写信息
flag: false,
// 是否是首页消息进来的
@@ -138,7 +140,18 @@ Page({
console.log(e);
const formData = Object.assign({}, e.detail.value)
// 会议id
formData.meetingId = this.data.selectedMeeting.id
if( this.data.selectedMeeting.id){
formData.meetingId = this.data.selectedMeeting.id
}else{
wx.getStorage({
key:"meetingId",
success(res){
console.log(res,'res');
formData.meetingId = res.data
}
})
}
console.log( formData.meetingId ,'; formData.meetingId ');
// 参会人id
formData.companyContactId = this.data.selectedPerson.id
// 邮寄联系人id
@@ -231,6 +244,9 @@ Page({
wx.removeStorage({
key: 'selectedCompany',
})
wx.removeStorage({
key: 'meetingId',
})
wx.removeStorage({
key: 'currentMeetingInfo',
success() {
@@ -324,7 +340,16 @@ Page({
}
if(options.meetingId){
console.log(options.meetingId,'options.meetingId');
this.queryMeetingInfo(options.meetingId)
this.setData({
meetingId:options.meetingId
})
wx.setStorage({
key:'meetingId',
data:options.meetingId
})
}
const that = this
// 是否是从首页消息进来的报名
@@ -437,7 +462,6 @@ Page({
*/
onShow: function () {
const that = this
console.log(this.data.type ,'this.data.type ');
// 是否是从首页消息进来的报名
if (this.data.type === 'indexMsg') {
// 默认填写个人信息