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

This commit is contained in:
fengachen
2021-11-04 10:49:48 +08:00
parent 3b40158703
commit 3a87b256d4
2 changed files with 24 additions and 8 deletions
+23 -7
View File
@@ -120,9 +120,25 @@ Page({
console.log(e.detail.value);
// 参会身份选择嘉宾和内部企业 会议费用为 0
if(e.detail.value === '2'){
this.setData({
meetingCost:that.data.selectedMeeting.meetingCosts
})
// 标协会议需要判断选中的企业是否是标协成员
if(this.data.selectedMeeting.meetingType === '2'){
signUpApi.validateStandard({companyName:that.data.selectedCompany.companyName}).then(result => {
if(result.result){
that.setData({
meetingCost:that.data.selectedMeeting.meetingCostsVip
})
}else{
that.setData({
meetingCost:that.data.selectedMeeting.meetingCosts
})
}
})
}else{
this.setData({
meetingCost:that.data.selectedMeeting.meetingCosts
})
}
}else{
this.setData({
meetingCost:'0.00'
@@ -355,7 +371,7 @@ Page({
nolimitBool:true
})
}
// this.queryMeetingInfo('1455359606691979265')
if(options.meetingId){
console.log(options.meetingId,'options.meetingId');
this.queryMeetingInfo(options.meetingId)
@@ -538,14 +554,14 @@ Page({
})
// 标协会议需要判断单位是否是会员单位
if(that.data.selectedCompany.companyName && res.data.meetingType+'' === '2' ){
signUpApi.validateStandard({companyName:that.data.selectedCompany.companyName}).then(res => {
if(res.result){
signUpApi.validateStandard({companyName:that.data.selectedCompany.companyName}).then(result => {
if(result.result){
that.setData({
meetingCost:res.data.meetingCostsVip
})
}else{
that.setData({
meetingCost:res.data.meetingCost
meetingCost:res.data.meetingCosts
})
}
})
+1 -1
View File
@@ -5,7 +5,7 @@
<!-- 如果是小程序消息进入的报名页面 需要回显企业与参会人 参会企业不可更改 -->
<view class="form-item">
<text class="item-label flex-1 validate">参会单位:</text>
<input placeholder-class="text-right" bindfocus="selectCompany" disabled="{{true}}" name="selectedCompany.companyName" data-nolimit="{{nolimitBool}}" value="{{selectedCompany.companyName}}" placeholder="请选择参会单位" />
<input placeholder-class="text-right" bindtap="selectCompany" disabled="{{true}}" name="selectedCompany.companyName" data-nolimit="{{nolimitBool}}" value="{{selectedCompany.companyName}}" placeholder="请选择参会单位" />
</view>
<view class="form-item">