【bug】标协会议的费用判断
This commit is contained in:
@@ -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}`,
|
||||
|
||||
@@ -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
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user