【bug】会议报名新增联系人 没有带出企业

This commit is contained in:
fengachen
2022-04-20 11:21:23 +08:00
parent 69508b8989
commit 5ef78d3032
2 changed files with 7 additions and 5 deletions
+4 -4
View File
@@ -117,6 +117,9 @@ Page({
// wx.navigateTo({
// url: `../signUpPageGuoji/signUpPageGuoji?company=${selectedCompany}`,
// })
// 将上一个报名页面的企业回显
prevPage.setData({
'selectedCompany.companyName':e.currentTarget.dataset.company.companyName,
'selectedCompany.id':e.currentTarget.dataset.company.id,
@@ -142,10 +145,7 @@ Page({
})
}
// 在选中企业后 将选中的企业信息存入缓存中 保证新建企业联系人的时候的回显 与参数传id
// wx.setStorage({
// key: 'selectedCompany',
// data: selectedCompany
// })
wx.setStorageSync('selectedCompany', selectedCompany)
} else {
//这里是点击了取消以后
}
+3 -1
View File
@@ -178,7 +178,9 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
wx.removeStorage({
key: 'selectedCompany',
})
},
/**