国际研讨会的报名

This commit is contained in:
fengachen
2021-10-15 19:03:57 +08:00
parent 280db0a273
commit 5d4f6ac256
12 changed files with 598 additions and 28 deletions
+19 -4
View File
@@ -38,8 +38,11 @@ Page({
selectedCompany:{},
// 选中的联系人
selectedPerson:{},
// 选中的邮寄联系人
selectedPostPerson:{},
// 选中的会议
selectedMeeting:{}
},
// 是否需要发票的选择
needInvoiceChange(e){
@@ -64,7 +67,7 @@ Page({
const formData = Object.assign({},e.detail.value)
// 会议id
formData.meetingId = '1448213074467938306'
formData.meetingId = this.data.selectedMeeting.id
// 参会人id
formData.companyContactId = this.data.selectedPerson.id
// 邮寄联系人id 暂时写一样的 测试用
@@ -73,7 +76,6 @@ Page({
formData.companyId = this.data.selectedCompany.id
// 会议类型
formData.meetingType = this.data.selectedMeeting.meetingType
console.log(formData);
signUpApi.signUpMeeting(formData).then(res => {
@@ -85,6 +87,9 @@ Page({
wx.removeStorage({
key: 'selectedPerson',
})
wx.removeStorage({
key: 'selectedPostPerson',
})
wx.removeStorage({
key: 'currentMeetingInfo',
success(){
@@ -104,11 +109,11 @@ Page({
})
},
// 选择参会人
selectPerson(){
selectPerson(e){
console.log(this.data.selectedCompany);
if(!!this.data.selectedCompany.id){
wx.navigateTo({
url: `../personList/personList?companyId=${this.data.selectedCompany.id}`,
url: `../personList/personList?companyId=${this.data.selectedCompany.id}&selectType=${e.currentTarget.dataset.selecttype}`,
})
}else{
wx.showToast({
@@ -146,6 +151,16 @@ Page({
})
}
})
// 从缓存中拿选中的邮寄联系人
wx.getStorage({
key:'selectedPostPerson',
success(res) {
that.setData({
selectedPostPerson:res.data
})
}
})
// 从缓存中拿选中的会议的信息
wx.getStorage({