【bug】标协会议的费用判断
This commit is contained in:
@@ -117,7 +117,6 @@ Page({
|
|||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
url: `../signUpPageGuoji/signUpPageGuoji?company=${selectedCompany}`,
|
url: `../signUpPageGuoji/signUpPageGuoji?company=${selectedCompany}`,
|
||||||
})
|
})
|
||||||
console.log('that.data.page', that.data.page);
|
|
||||||
} else {
|
} else {
|
||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
url: `../signUpPage/signUpPage?company=${selectedCompany}`,
|
url: `../signUpPage/signUpPage?company=${selectedCompany}`,
|
||||||
|
|||||||
@@ -312,6 +312,11 @@ Page({
|
|||||||
selectedMeeting:res.result,
|
selectedMeeting:res.result,
|
||||||
meetingCost:res.result.meetingCosts
|
meetingCost:res.result.meetingCosts
|
||||||
})
|
})
|
||||||
|
// 存储会议信息
|
||||||
|
wx.setStorage({
|
||||||
|
key:'currentMeetingInfo',
|
||||||
|
data:res.result
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}).catch( () => {
|
}).catch( () => {
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
@@ -458,6 +463,7 @@ Page({
|
|||||||
* 生命周期函数--监听页面显示
|
* 生命周期函数--监听页面显示
|
||||||
*/
|
*/
|
||||||
onShow: function () {
|
onShow: function () {
|
||||||
|
console.log(this.data.selectedMeeting,'this.selectedMeeting');
|
||||||
const that = this
|
const that = this
|
||||||
// 是否是从首页消息进来的报名
|
// 是否是从首页消息进来的报名
|
||||||
if (this.data.type === 'indexMsg') {
|
if (this.data.type === 'indexMsg') {
|
||||||
@@ -512,10 +518,23 @@ Page({
|
|||||||
wx.getStorage({
|
wx.getStorage({
|
||||||
key: 'currentMeetingInfo',
|
key: 'currentMeetingInfo',
|
||||||
success(res) {
|
success(res) {
|
||||||
console.log(res, 'meetingInfo');
|
|
||||||
that.setData({
|
that.setData({
|
||||||
selectedMeeting: res.data
|
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