【bug】标协会议的费用判断

This commit is contained in:
fengachen
2021-11-02 18:52:01 +08:00
parent 43f791c5ab
commit e91f8e5774
2 changed files with 20 additions and 2 deletions
-1
View File
@@ -117,7 +117,6 @@ Page({
wx.navigateTo({
url: `../signUpPageGuoji/signUpPageGuoji?company=${selectedCompany}`,
})
console.log('that.data.page', that.data.page);
} else {
wx.navigateTo({
url: `../signUpPage/signUpPage?company=${selectedCompany}`,
+20 -1
View File
@@ -312,6 +312,11 @@ Page({
selectedMeeting:res.result,
meetingCost:res.result.meetingCosts
})
// 存储会议信息
wx.setStorage({
key:'currentMeetingInfo',
data:res.result
})
}
}).catch( () => {
wx.showToast({
@@ -458,6 +463,7 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
console.log(this.data.selectedMeeting,'this.selectedMeeting');
const that = this
// 是否是从首页消息进来的报名
if (this.data.type === 'indexMsg') {
@@ -512,10 +518,23 @@ Page({
wx.getStorage({
key: 'currentMeetingInfo',
success(res) {
console.log(res, 'meetingInfo');
that.setData({
selectedMeeting: res.data
})
// 标协会议需要判断单位是否是会员单位
if(selectedCompany.companyName && res.data.meetingType+'' === '2' ){
signUpApi.validateStandard({companyName:selectedCompany.companyName}).then(res => {
if(res.result){
that.setData({
meetingCost:res.data.meetingCostsVip
})
}else{
that.setData({
meetingCost:res.data.meetingCost
})
}
})
}
}
})