【bug】消息报名的参会单位不可更改
This commit is contained in:
+31
-9
@@ -9,13 +9,26 @@ Page({
|
|||||||
*/
|
*/
|
||||||
data: {
|
data: {
|
||||||
date: '',
|
date: '',
|
||||||
list: [], // 消息列表
|
selectArr: [{
|
||||||
selectArr: [
|
path: '../../assets/images/laikuan.png',
|
||||||
{ path: '../../assets/images/laikuan.png', text: '项目' },
|
text: '项目'
|
||||||
{ path: '../../assets/images/gongzuozu.png', text: '工作组' },
|
},
|
||||||
{ path: '../../assets/images/fenbiaowei.png', text: '分标委' },
|
{
|
||||||
{ path: '../../assets/images/huiyi.png', text: '会议活动' },
|
path: '../../assets/images/gongzuozu.png',
|
||||||
{ path: '../../assets/images/ziliao.png', text: '资料网员' },
|
text: '工作组'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '../../assets/images/fenbiaowei.png',
|
||||||
|
text: '分标委'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '../../assets/images/huiyi.png',
|
||||||
|
text: '会议活动'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '../../assets/images/ziliao.png',
|
||||||
|
text: '资料网员'
|
||||||
|
},
|
||||||
],
|
],
|
||||||
titleList: [
|
titleList: [
|
||||||
'会议通知',
|
'会议通知',
|
||||||
@@ -96,7 +109,9 @@ Page({
|
|||||||
const readFlag = e.currentTarget.dataset.message.readFlag
|
const readFlag = e.currentTarget.dataset.message.readFlag
|
||||||
const templateCode = e.currentTarget.dataset.message.templateCode
|
const templateCode = e.currentTarget.dataset.message.templateCode
|
||||||
if (readFlag == 0) { // 标记已读
|
if (readFlag == 0) { // 标记已读
|
||||||
UserApi.messageStatus({anntId: e.currentTarget.dataset.message.anntId}).then(res=>{
|
UserApi.messageStatus({
|
||||||
|
anntId: e.currentTarget.dataset.message.anntId
|
||||||
|
}).then(res => {
|
||||||
this.loadData()
|
this.loadData()
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
title: '已读成功',
|
title: '已读成功',
|
||||||
@@ -107,7 +122,9 @@ Page({
|
|||||||
const meetingId = JSON.parse(e.currentTarget.dataset.message.busId).id
|
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') { // 去报名页
|
||||||
// 需要调用会议详情的接口 判断该会议是否还在报名时间内 并跳转不同的页面或者操作
|
// 需要调用会议详情的接口 判断该会议是否还在报名时间内 并跳转不同的页面或者操作
|
||||||
MeetingApi.meetingDetail({id:meetingId}).then(res => {
|
MeetingApi.meetingDetail({
|
||||||
|
id: meetingId
|
||||||
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
let flag = this.judgeCurrentTime(res.result.registerDeadline)
|
let flag = this.judgeCurrentTime(res.result.registerDeadline)
|
||||||
if (flag) {
|
if (flag) {
|
||||||
@@ -117,6 +134,11 @@ Page({
|
|||||||
url: `../cannotSignUp/cannotSignUp`,
|
url: `../cannotSignUp/cannotSignUp`,
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
// 从消息报名的参会单位不可更改
|
||||||
|
wx.setStorage({
|
||||||
|
key: 'companyDisabled',
|
||||||
|
data: true
|
||||||
|
})
|
||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
// 这里传入的是会议id
|
// 这里传入的是会议id
|
||||||
url: `../signUpPage/signUpPage?meetingId=${meetingId}&type=indexMsg`,
|
url: `../signUpPage/signUpPage?meetingId=${meetingId}&type=indexMsg`,
|
||||||
|
|||||||
@@ -128,6 +128,11 @@ Page({
|
|||||||
|
|
||||||
// 如果是去报名页面需要在缓存中存储会议信息 当报名结束后 需要清除缓存中的当前会议信息 meetingSignUpType 1 可报名 2报名
|
// 如果是去报名页面需要在缓存中存储会议信息 当报名结束后 需要清除缓存中的当前会议信息 meetingSignUpType 1 可报名 2报名
|
||||||
if (meetingItem.meetingSignUpType === 1) {
|
if (meetingItem.meetingSignUpType === 1) {
|
||||||
|
// 从消息报名的参会单位不可更改
|
||||||
|
wx.setStorage({
|
||||||
|
key:'companyDisabled',
|
||||||
|
data:true
|
||||||
|
})
|
||||||
wx.setStorage({
|
wx.setStorage({
|
||||||
key: "currentMeetingInfo",
|
key: "currentMeetingInfo",
|
||||||
data: e.currentTarget.dataset.meetinginfo,
|
data: e.currentTarget.dataset.meetinginfo,
|
||||||
|
|||||||
@@ -37,6 +37,16 @@
|
|||||||
<text>会议费用(VIP)</text>
|
<text>会议费用(VIP)</text>
|
||||||
<text>{{meetingInfo.meetingCostsVip}}</text>
|
<text>{{meetingInfo.meetingCostsVip}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- 分标委会议 -->
|
||||||
|
<view wx:if="{{meetingInfo.meetType === '5' }}">
|
||||||
|
<text>所属分标委</text>
|
||||||
|
<text>{{meetingInfo.caseCommitteeName}}</text>
|
||||||
|
</view>
|
||||||
|
<!-- 工作组会议 -->
|
||||||
|
<view wx:if="{{meetingInfo.meetType === '1' }}">
|
||||||
|
<text>所属工作组</text>
|
||||||
|
<text>{{meetingInfo.workingGroupName}}</text>
|
||||||
|
</view>
|
||||||
<view class="sign-in">
|
<view class="sign-in">
|
||||||
<text>会议内容</text>
|
<text>会议内容</text>
|
||||||
<text class="sign-in-text">{{meetingInfo.meetingContent}}</text>
|
<text class="sign-in-text">{{meetingInfo.meetingContent}}</text>
|
||||||
|
|||||||
@@ -140,6 +140,10 @@ Page({
|
|||||||
* 生命周期函数--监听页面加载
|
* 生命周期函数--监听页面加载
|
||||||
*/
|
*/
|
||||||
onLoad: function (options) {
|
onLoad: function (options) {
|
||||||
|
wx.setStorage({
|
||||||
|
key: 'companyDisabled',
|
||||||
|
data: false
|
||||||
|
})
|
||||||
let url = decodeURIComponent(options.q)
|
let url = decodeURIComponent(options.q)
|
||||||
console.log(options,'options');
|
console.log(options,'options');
|
||||||
console.log(url,'url');
|
console.log(url,'url');
|
||||||
|
|||||||
@@ -123,7 +123,9 @@ Page({
|
|||||||
if (e.detail.value === '2') {
|
if (e.detail.value === '2') {
|
||||||
// 标协会议需要判断选中的企业是否是标协成员
|
// 标协会议需要判断选中的企业是否是标协成员
|
||||||
if (this.data.selectedMeeting.meetingType === '2') {
|
if (this.data.selectedMeeting.meetingType === '2') {
|
||||||
signUpApi.validateStandard({companyName:that.data.selectedCompany.companyName}).then(result => {
|
signUpApi.validateStandard({
|
||||||
|
companyName: that.data.selectedCompany.companyName
|
||||||
|
}).then(result => {
|
||||||
if (result.result) {
|
if (result.result) {
|
||||||
that.setData({
|
that.setData({
|
||||||
meetingCost: that.data.selectedMeeting.meetingCostsVip
|
meetingCost: that.data.selectedMeeting.meetingCostsVip
|
||||||
@@ -314,6 +316,20 @@ Page({
|
|||||||
},
|
},
|
||||||
// 选择参会单位
|
// 选择参会单位
|
||||||
selectCompany() {
|
selectCompany() {
|
||||||
|
|
||||||
|
let flag
|
||||||
|
wx.getStorage({
|
||||||
|
key: 'companyDisabled',
|
||||||
|
success(res) {
|
||||||
|
if (res.data) {
|
||||||
|
flag = res.data
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
if (flag) {
|
||||||
|
return
|
||||||
|
}
|
||||||
console.log('选择参会单位', this.data.nolimitBool);
|
console.log('选择参会单位', this.data.nolimitBool);
|
||||||
if (this.data.nolimitBool) {
|
if (this.data.nolimitBool) {
|
||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
@@ -342,7 +358,9 @@ Page({
|
|||||||
},
|
},
|
||||||
// 根据会议id查询会议信息
|
// 根据会议id查询会议信息
|
||||||
queryMeetingInfo(id) {
|
queryMeetingInfo(id) {
|
||||||
MeetingApi.meetingDetail({id:id}).then(res => {
|
MeetingApi.meetingDetail({
|
||||||
|
id: id
|
||||||
|
}).then(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.setData({
|
this.setData({
|
||||||
@@ -559,7 +577,9 @@ Page({
|
|||||||
})
|
})
|
||||||
// 标协会议需要判断单位是否是会员单位
|
// 标协会议需要判断单位是否是会员单位
|
||||||
if (that.data.selectedCompany.companyName && res.data.meetingType + '' === '2') {
|
if (that.data.selectedCompany.companyName && res.data.meetingType + '' === '2') {
|
||||||
signUpApi.validateStandard({companyName:that.data.selectedCompany.companyName}).then(result => {
|
signUpApi.validateStandard({
|
||||||
|
companyName: that.data.selectedCompany.companyName
|
||||||
|
}).then(result => {
|
||||||
if (result.result) {
|
if (result.result) {
|
||||||
that.setData({
|
that.setData({
|
||||||
meetingCost: res.data.meetingCostsVip
|
meetingCost: res.data.meetingCostsVip
|
||||||
|
|||||||
@@ -230,6 +230,19 @@ Page({
|
|||||||
},
|
},
|
||||||
// 选择参会单位
|
// 选择参会单位
|
||||||
selectCompany(e) {
|
selectCompany(e) {
|
||||||
|
let flag
|
||||||
|
wx.getStorage({
|
||||||
|
key: 'companyDisabled',
|
||||||
|
success(res) {
|
||||||
|
if (res.data) {
|
||||||
|
flag = res.data
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
if (flag) {
|
||||||
|
return
|
||||||
|
}
|
||||||
if (this.data.nolimitBool) {
|
if (this.data.nolimitBool) {
|
||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
url: `../companyList/companyList?page=${e.currentTarget.dataset.page}&nolimit=nolimit`,
|
url: `../companyList/companyList?page=${e.currentTarget.dataset.page}&nolimit=nolimit`,
|
||||||
|
|||||||
Reference in New Issue
Block a user