【bug】非成员的报名成功也需要审核

This commit is contained in:
fengachen
2021-11-18 11:31:06 +08:00
parent 418d31a058
commit e5b09a6c56
3 changed files with 15 additions and 14 deletions
+10 -10
View File
@@ -81,7 +81,7 @@ Page({
selectedPostPerson: {},
// 选中的会议
selectedMeeting: {},
// 会议id
// 会议id
meetingId: '',
// 是否正确填写信息
flag: false,
@@ -89,9 +89,9 @@ Page({
indexMsgBool: false,
// 首页消息
indexMsg: '',
// 扫码报名的 需要调用无限制接口
// 扫码报名的 需要调用无限制接口
nolimitBool: false,
// 会议费用
// 会议费用
meetingCost: ''
},
// 是否需要发票的选择
@@ -194,7 +194,7 @@ Page({
})
return
}
// 手机号验证
// 手机号验证
if (formData.phone === '' || formData.phone === undefined) {
wx.showToast({
title: '请输入手机号',
@@ -248,11 +248,11 @@ Page({
})
return
}
// 校验时间
// 校验时间
if (formData.arrivalTime && formData.departureTime) {
let flag = compareDate(formData.arrivalTime, formData.departureTime)
if (flag) {
// 抵达时间大于离开时间
// 抵达时间大于离开时间
wx.showToast({
title: '抵达时间不能大于离开时间',
icon: 'none',
@@ -288,9 +288,9 @@ Page({
success() {
// 跳转报名成功页面
if (formData.payMode) {
if (!res.result) {
wx.navigateTo({
url: `../signUpSuccess/signUpSuccess?payMode=${formData.payMode}`,
url: `../signUpSuccess/signUpSuccess?audit=${res.result}`,
})
} else {
wx.navigateTo({
@@ -575,7 +575,7 @@ Page({
that.setData({
selectedMeeting: res.data
})
// 标协会议需要判断单位是否是会员单位
// 标协会议需要判断单位是否是会员单位
if (that.data.selectedCompany.companyName && res.data.meetingType + '' === '2') {
signUpApi.validateStandard({
companyName: that.data.selectedCompany.companyName
@@ -630,4 +630,4 @@ Page({
onShareAppMessage: function () {
}
})
})
+3 -3
View File
@@ -825,10 +825,10 @@ Page({
wx.removeStorage({
key: 'currentMeetingInfo',
success() {
// 跳转报名成功页面
if (formData.payMode) {
// 跳转报名成功页面 res.result为true不需要审核
if (!res.result) {
wx.navigateTo({
url: `../signUpSuccess/signUpSuccess?payMode=${formData.payMode}`,
url: `../signUpSuccess/signUpSuccess?audit=${res.result}`,
})
} else {
wx.navigateTo({
+2 -1
View File
@@ -15,7 +15,8 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
if(options.payMode && options.payMode +'' !== '3' ){
// 是否需要审核
if(options.audit){
this.setData({
isAuditBool:true
})