【bug】签到报名的bug
This commit is contained in:
@@ -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') {
|
||||
// 默认填写个人信息
|
||||
|
||||
Reference in New Issue
Block a user