diff --git a/pages/home/home.js b/pages/home/home.js index 6adb83e..7cd70d3 100644 --- a/pages/home/home.js +++ b/pages/home/home.js @@ -120,7 +120,7 @@ Page({ }) } const meetingId = JSON.parse(e.currentTarget.dataset.message.busId).id - if (templateCode == 'QY_1_HYTZ_WORK_GROUP_CREATE') { // 去报名页 + if (templateCode == 'QY_1_HYTZ_WORK_GROUP_CREATE' || templateCode == "QY_13_HYTZ_FBW_CREATE") { // 去报名页 // 需要调用会议详情的接口 判断该会议是否还在报名时间内 并跳转不同的页面或者操作 MeetingApi.meetingDetail({ id: meetingId diff --git a/pages/meetingDetailSigned/meetingDetailSigned.js b/pages/meetingDetailSigned/meetingDetailSigned.js index 3def127..bc95994 100644 --- a/pages/meetingDetailSigned/meetingDetailSigned.js +++ b/pages/meetingDetailSigned/meetingDetailSigned.js @@ -1,4 +1,7 @@ // pages/meeting/meeting.js +import { + appName +} from '../../assets/js/project.config' import { previewFile, sliceFileTypeByFileName @@ -7,7 +10,10 @@ import { import MeetingApi from '../../assets/js/http/meetingApi' import signUpApi from '../../assets/js/http/signUp' import UserApi from '../../assets/js/http/userApi' -import {baseUrl, URL_CONFIG} from '../../assets/js/project.config.js' +import { + baseUrl, + URL_CONFIG +} from '../../assets/js/project.config.js' Page({ /** @@ -23,6 +29,10 @@ Page({ meetingFilesList: [], // 会议资料文件数组 meetingDataList: [], + // 演讲ppt + speechPptList: [], + // 照片 + photoSrc: '', // 缴费凭证id imageIds: [], // 订单后四位 @@ -31,7 +41,8 @@ Page({ payRecordImgSrc: '', // 签到图片的回显 signImgSrc: '', - userId: '' + userId: '', + form: {}, }, // 获取图片的id @@ -49,24 +60,24 @@ Page({ // 上传汇款凭证 editPayRecord() { - if(this.data.imageIds.length === 0){ + if (this.data.imageIds.length === 0) { wx.showToast({ title: '请上传缴费凭证', - icon:'none' + icon: 'none' }) return } - if(this.data.singInPersonInfo.payMode === 2 && (this.data.ordeCode === '' || this.data.ordeCode === undefined || this.data.ordeCode === null) ){ + if (this.data.singInPersonInfo.payMode === 2 && (this.data.ordeCode === '' || this.data.ordeCode === undefined || this.data.ordeCode === null)) { wx.showToast({ title: '请输入缴费订单号后四位数', - icon:'none' + icon: 'none' }) return - }else if(this.data.singInPersonInfo.payMode === 2 && this.data.ordeCode && this.data.ordeCode.length < 4){ + } else if (this.data.singInPersonInfo.payMode === 2 && this.data.ordeCode && this.data.ordeCode.length < 4) { // 线上缴费才去校验 wx.showToast({ title: '请输入四位缴费订单号后四位数', - icon:'none' + icon: 'none' }) return } @@ -101,6 +112,13 @@ Page({ } }) }, + // 查看物流 + lookProgress(e) { + let num = e.currentTarget.dataset.progress.postNo + wx.navigateTo({ + url: `plugin://kdPlugin/index?num=${num}&appName=${appName}`, + }) + }, //参会人信息 queryPeronInfo(id) { MeetingApi.queryPersongInfoById({ @@ -111,6 +129,20 @@ Page({ singInPersonInfo: res.result, ordeCode: res.result.orderCode, }) + // 演讲ppt、 + if (res.result.speechPpt) { + this.initFileList(res.result.speechPpt).then(res => { + this.setData({ + speechPptList: res + }) + }) + } + // 照片 + if (res.result.photo) { + this.setData({ + photoSrc: baseUrl + URL_CONFIG + 'sys/common/download/' + res.result.photo, + }) + } if (!!res.result.paymentRecord) { this.setData({ // 这是为了不点击图片上传的bug @@ -167,12 +199,13 @@ Page({ }, // 会议文件的预览 previewFileMeetingData(e) { + const that = this // 只有审核通过的才可以去下载 - if(this.data.singInPersonInfo.checkResult !== 1){ + if (this.data.singInPersonInfo.checkResult !== 1) { wx.showToast({ title: '您的信息尚未审核通过,请等待审核通过', - icon:'none', - duration:3000 + icon: 'none', + duration: 3000 }) return } @@ -188,7 +221,7 @@ Page({ //这里是点击了确定以后 let params = { fileId: fileObj.id, - userId: this.data.userId + userId: that.data.userId } UserApi.sendEmail(params).then(res => { if (res.success) { @@ -203,13 +236,13 @@ Page({ }) } }) - + } else { //这里是点击了取消以后 } } }) - + } else { previewFile(fileObj.fileId, fileObj.name) } @@ -263,6 +296,19 @@ Page({ }) } }) + UserApi.projectDetail({ + id: meetingInfo.situationId + }).then(res => { + this.setData({ + form: res.result + }) + }).catch(err => { + wx.showToast({ + title: '加载失败', + icon: 'none', + duration: 2000 + }) + }) // let { meetingFiles, diff --git a/pages/meetingDetailSigned/meetingDetailSigned.wxml b/pages/meetingDetailSigned/meetingDetailSigned.wxml index 7d3adaf..b9140fb 100644 --- a/pages/meetingDetailSigned/meetingDetailSigned.wxml +++ b/pages/meetingDetailSigned/meetingDetailSigned.wxml @@ -33,17 +33,17 @@ {{meetingInfo.particularYear}} - + 会议费用(VIP) {{meetingInfo.meetingCostsVip}} - + 所属分标委 {{meetingInfo.caseCommitteeName}} - + 所属工作组 {{meetingInfo.workingGroupName}} @@ -75,11 +75,11 @@ 查看 - 暂无 + 暂无 - + 报名信息 @@ -91,6 +91,17 @@ 参会人 {{singInPersonInfo.companyContactName}} + + + 身份 + {{singInPersonInfo.identity_dictText}} + + + + 手机号 + {{singInPersonInfo.phone}} + + 是否住酒店 {{singInPersonInfo.checkInHotel_dictText}} @@ -103,39 +114,335 @@ 离开时间 {{singInPersonInfo.departureTime === null ? '' : singInPersonInfo.departureTime}} - + + 邮寄联系人 {{singInPersonInfo.postContactName === null ? '' :singInPersonInfo.postContactName}} - + + 缴费方式 {{singInPersonInfo.payMode_dictText === null ? '':singInPersonInfo.payMode_dictText }} - + 是否需要发票 {{singInPersonInfo.needInvoice_dictText === null ? '': singInPersonInfo.needInvoice_dictText}} -