【update】国际研讨会-WASIC需求变更2
This commit is contained in:
@@ -174,6 +174,10 @@ Page({
|
|||||||
id: id
|
id: id
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
// 已选择会议名称 是否存在
|
||||||
|
if(res.result.choiceTopic_dictText) {
|
||||||
|
res.result.choiceTopicArr = res.result.choiceTopic_dictText.split(',')
|
||||||
|
}
|
||||||
this.setData({
|
this.setData({
|
||||||
singInPersonInfo: res.result,
|
singInPersonInfo: res.result,
|
||||||
ordeCode: res.result.orderCode,
|
ordeCode: res.result.orderCode,
|
||||||
@@ -399,6 +403,10 @@ Page({
|
|||||||
if(meetingInfo){
|
if(meetingInfo){
|
||||||
meetingInfo.meetingType = meetingInfo.meetingType + ''
|
meetingInfo.meetingType = meetingInfo.meetingType + ''
|
||||||
meetingInfo.tbMeetingType = meetingInfo.tbMeetingType + ''
|
meetingInfo.tbMeetingType = meetingInfo.tbMeetingType + ''
|
||||||
|
// 国际研讨会 关联会议字段有值,则进行处理
|
||||||
|
if(meetingInfo.linkTopics_dictText) {
|
||||||
|
meetingInfo.linkTopicsArr = meetingInfo.linkTopics_dictText.split(',')
|
||||||
|
}
|
||||||
this.setData({
|
this.setData({
|
||||||
meetingInfo:meetingInfo,
|
meetingInfo:meetingInfo,
|
||||||
questionList: meetingInfo.questionList || []
|
questionList: meetingInfo.questionList || []
|
||||||
@@ -411,6 +419,10 @@ Page({
|
|||||||
}else{
|
}else{
|
||||||
MeetingApi.meetingDetail({id:meetingInfo.id}).then(res => {
|
MeetingApi.meetingDetail({id:meetingInfo.id}).then(res => {
|
||||||
if(res.success){
|
if(res.success){
|
||||||
|
// 国际研讨会 关联会议字段有值,则进行处理
|
||||||
|
if(res.result.linkTopics_dictText) {
|
||||||
|
res.result.linkTopicsArr = res.result.linkTopics_dictText.split(',')
|
||||||
|
}
|
||||||
this.setData({
|
this.setData({
|
||||||
meetingInfo:res.result,
|
meetingInfo:res.result,
|
||||||
questionList: res.result.questionList || []
|
questionList: res.result.questionList || []
|
||||||
|
|||||||
@@ -14,8 +14,10 @@
|
|||||||
<text>{{meetingInfo.isWasic_dictText || '否'}}</text>
|
<text>{{meetingInfo.isWasic_dictText || '否'}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="wrap-text-view" wx:if="{{meetingInfo.meetingType === '3' && meetingInfo.isWasic}}">
|
<view class="wrap-text-view" wx:if="{{meetingInfo.meetingType === '3' && meetingInfo.isWasic}}">
|
||||||
<text class="basic-label">关联课题</text>
|
<text class="basic-label">关联会议</text>
|
||||||
<text>{{meetingInfo.linkTopics_dictText}}</text>
|
<text>
|
||||||
|
<text class="block-text" wx:for="{{meetingInfo.linkTopicsArr}}" wx:key="item">{{item}}</text>
|
||||||
|
</text>
|
||||||
</view>
|
</view>
|
||||||
<!-- 国际研讨会的判断-是否WASIC--结束 -->
|
<!-- 国际研讨会的判断-是否WASIC--结束 -->
|
||||||
<view>
|
<view>
|
||||||
@@ -44,11 +46,11 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 国际研讨会 且为WASIC -会议字段不同 - 开始 -->
|
<!-- 国际研讨会 且为WASIC -会议字段不同 - 开始 -->
|
||||||
<view wx:if="{{meetingInfo.meetingType === '3' && meetingInfo.isWasic}}">
|
<view wx:if="{{meetingInfo.meetingType === '3' && meetingInfo.isWasic}}">
|
||||||
<text>会议费用(2个课题)</text>
|
<text>1个及以下专题研讨费用</text>
|
||||||
<text>{{meetingInfo.meetingCostsTwoTopic}}元/人</text>
|
<text>{{meetingInfo.meetingCostsTwoTopic}}元/人</text>
|
||||||
</view>
|
</view>
|
||||||
<view wx:if="{{meetingInfo.meetingType === '3' && meetingInfo.isWasic}}">
|
<view wx:if="{{meetingInfo.meetingType === '3' && meetingInfo.isWasic}}">
|
||||||
<text>会议费用(3个及以上)</text>
|
<text>2个及以上专题研讨费用</text>
|
||||||
<text>{{meetingInfo.meetingCostsThreeTopic}}元/人</text>
|
<text>{{meetingInfo.meetingCostsThreeTopic}}元/人</text>
|
||||||
</view>
|
</view>
|
||||||
<!-- 国际研讨会 且为WASIC -会议字段不同 - 结束 -->
|
<!-- 国际研讨会 且为WASIC -会议字段不同 - 结束 -->
|
||||||
@@ -191,8 +193,11 @@
|
|||||||
</view>
|
</view>
|
||||||
<!--是否为WASIC字段判断-->
|
<!--是否为WASIC字段判断-->
|
||||||
<view class="wrap-text-view" wx:if="{{meetingInfo.meetingType === '3' && meetingInfo.isWasic}}">
|
<view class="wrap-text-view" wx:if="{{meetingInfo.meetingType === '3' && meetingInfo.isWasic}}">
|
||||||
<text class="basic-label">课题名称</text>
|
<text class="basic-label">会议名称</text>
|
||||||
<text>{{singInPersonInfo.choiceTopic_dictText}}</text>
|
<text>
|
||||||
|
<text class="block-text" wx:for="{{singInPersonInfo.choiceTopicArr}}" wx:key="item">{{item}}</text>
|
||||||
|
</text>
|
||||||
|
<!-- <text>{{singInPersonInfo.choiceTopic_dictText}}</text> -->
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<text>手机号</text>
|
<text>手机号</text>
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ page{
|
|||||||
.basic-info view:not(.inner-box-view){
|
.basic-info view:not(.inner-box-view){
|
||||||
background-color: #FFF;
|
background-color: #FFF;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
height: 40px;
|
min-height: 40px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -47,7 +47,7 @@ page{
|
|||||||
.basic-info view.wrap-text-view .basic-label{
|
.basic-info view.wrap-text-view .basic-label{
|
||||||
flex-basis: 120rpx;
|
flex-basis: 120rpx;
|
||||||
}
|
}
|
||||||
.basic-info view.wrap-text-view text:nth-of-type(2){
|
.basic-info view.wrap-text-view > text:nth-of-type(2){
|
||||||
flex: 1;
|
flex: 1;
|
||||||
width: 0;
|
width: 0;
|
||||||
margin-left: 10rpx;
|
margin-left: 10rpx;
|
||||||
@@ -409,3 +409,8 @@ margin-top: 15px;
|
|||||||
padding-bottom: 5px;
|
padding-bottom: 5px;
|
||||||
}
|
}
|
||||||
/* 问题征集新的样式 --结束 */
|
/* 问题征集新的样式 --结束 */
|
||||||
|
|
||||||
|
|
||||||
|
.block-text {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|||||||
@@ -49,6 +49,9 @@ Page({
|
|||||||
id
|
id
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
if(res.result.linkTopics_dictText) {
|
||||||
|
res.result.linkTopicsArr = res.result.linkTopics_dictText.split(',')
|
||||||
|
}
|
||||||
that.setData({
|
that.setData({
|
||||||
meetingDetailIngfo: res.result,
|
meetingDetailIngfo: res.result,
|
||||||
meetingType: that.generateMeetingType(res.result.meetingType),
|
meetingType: that.generateMeetingType(res.result.meetingType),
|
||||||
@@ -167,7 +170,7 @@ Page({
|
|||||||
let meetingId = url.split('=')[1]
|
let meetingId = url.split('=')[1]
|
||||||
// todo 开发直接测试
|
// todo 开发直接测试
|
||||||
// meetingId = '1716697502924484609' // 其他会议
|
// meetingId = '1716697502924484609' // 其他会议
|
||||||
// meetingId = '1716359804183416834' // 国际研讨会-wasic
|
meetingId = '1717017180230205441' // 国际研讨会-wasic
|
||||||
// meetingId = '1682658807030460418' // 国际研讨会2
|
// meetingId = '1682658807030460418' // 国际研讨会2
|
||||||
this.queryMeetingDetail(meetingId)
|
this.queryMeetingDetail(meetingId)
|
||||||
|
|
||||||
|
|||||||
@@ -15,8 +15,11 @@
|
|||||||
<text>{{meetingDetailIngfo.isWasic_dictText || '否'}}</text>
|
<text>{{meetingDetailIngfo.isWasic_dictText || '否'}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="wrap-text-view" wx:if="{{meetingDetailIngfo.meetingType === '3' && meetingDetailIngfo.isWasic}}">
|
<view class="wrap-text-view" wx:if="{{meetingDetailIngfo.meetingType === '3' && meetingDetailIngfo.isWasic}}">
|
||||||
<text class="basic-label">关联课题</text>
|
<text class="basic-label">关联会议</text>
|
||||||
<text>{{meetingDetailIngfo.linkTopics_dictText}}</text>
|
<text>
|
||||||
|
<text class="block-text" wx:for="{{meetingDetailIngfo.linkTopicsArr}}" wx:key="item">{{item}}</text>
|
||||||
|
</text>
|
||||||
|
<!-- <text>{{meetingDetailIngfo.linkTopics_dictText}}</text> -->
|
||||||
</view>
|
</view>
|
||||||
<!-- 国际研讨会的判断-是否WASIC--结束 -->
|
<!-- 国际研讨会的判断-是否WASIC--结束 -->
|
||||||
<view wx:if="{{meetingDetailIngfo.meetingType === '2'}}">
|
<view wx:if="{{meetingDetailIngfo.meetingType === '2'}}">
|
||||||
@@ -71,11 +74,11 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 国际研讨会 且为WASIC -会议字段不同 - 开始 -->
|
<!-- 国际研讨会 且为WASIC -会议字段不同 - 开始 -->
|
||||||
<view wx:if="{{meetingDetailIngfo.meetingType === '3' && meetingDetailIngfo.isWasic}}">
|
<view wx:if="{{meetingDetailIngfo.meetingType === '3' && meetingDetailIngfo.isWasic}}">
|
||||||
<text>会议费用(2个课题)</text>
|
<text>1个及以下专题研讨费用</text>
|
||||||
<text>{{meetingDetailIngfo.meetingCostsTwoTopic}}元/人</text>
|
<text>{{meetingDetailIngfo.meetingCostsTwoTopic}}元/人</text>
|
||||||
</view>
|
</view>
|
||||||
<view wx:if="{{meetingDetailIngfo.meetingType === '3' && meetingDetailIngfo.isWasic}}">
|
<view wx:if="{{meetingDetailIngfo.meetingType === '3' && meetingDetailIngfo.isWasic}}">
|
||||||
<text>会议费用(3个及以上)</text>
|
<text>2个及以上专题研讨费用</text>
|
||||||
<text>{{meetingDetailIngfo.meetingCostsThreeTopic}}元/人</text>
|
<text>{{meetingDetailIngfo.meetingCostsThreeTopic}}元/人</text>
|
||||||
</view>
|
</view>
|
||||||
<!-- 国际研讨会 且为WASIC -会议字段不同 - 结束 -->
|
<!-- 国际研讨会 且为WASIC -会议字段不同 - 结束 -->
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ page{
|
|||||||
.basic-info view:not(.question-container-view){
|
.basic-info view:not(.question-container-view){
|
||||||
background-color: #FFF;
|
background-color: #FFF;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
height: 40px;
|
min-height: 40px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -34,7 +34,7 @@ page{
|
|||||||
.basic-info view.wrap-text-view .basic-label{
|
.basic-info view.wrap-text-view .basic-label{
|
||||||
flex-basis: 120rpx;
|
flex-basis: 120rpx;
|
||||||
}
|
}
|
||||||
.basic-info view.wrap-text-view text:nth-of-type(2){
|
.basic-info view.wrap-text-view > text:nth-of-type(2){
|
||||||
flex: 1;
|
flex: 1;
|
||||||
width: 0;
|
width: 0;
|
||||||
margin-left: 10rpx;
|
margin-left: 10rpx;
|
||||||
@@ -206,3 +206,6 @@ margin-top: 15px;
|
|||||||
padding-right: 8px;
|
padding-right: 8px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
.block-text {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ const NeedArr = [{
|
|||||||
name: '否'
|
name: '否'
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
// 国际研讨会关联课题
|
// 国际研讨会关联会议
|
||||||
//汽车网络安全与数据安全标准合规专题,
|
//汽车网络安全与数据安全标准合规专题,
|
||||||
// 智能网汽车标准化领航及标准路线图专题,
|
// 智能网汽车标准化领航及标准路线图专题,
|
||||||
// 汽车地毯专题,
|
// 汽车地毯专题,
|
||||||
@@ -34,6 +34,10 @@ const LinkTopicsEnums = {
|
|||||||
free: {
|
free: {
|
||||||
name: '免费专题',
|
name: '免费专题',
|
||||||
index: 6
|
index: 6
|
||||||
|
},
|
||||||
|
default: {
|
||||||
|
name: '114/22焦点论坛(默认专题)',
|
||||||
|
index: 99
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -362,7 +366,7 @@ Page({
|
|||||||
// 国际研讨会嘉宾 内部企业 不需要缴费
|
// 国际研讨会嘉宾 内部企业 不需要缴费
|
||||||
if (value === '2') {
|
if (value === '2') {
|
||||||
let meetingCostSum = that.data.selectedMeeting.meetingCosts
|
let meetingCostSum = that.data.selectedMeeting.meetingCosts
|
||||||
// 如果当前是WASIC会议 则需要通过课题名称判断会议的费用
|
// 如果当前是WASIC会议 则需要通过会议名称判断会议的费用
|
||||||
if (this.data.meetingDetailInfo.isWasic) {
|
if (this.data.meetingDetailInfo.isWasic) {
|
||||||
meetingCostSum = this.handleMeetingCostSum(this.data.linkTopicsOptionArr)
|
meetingCostSum = this.handleMeetingCostSum(this.data.linkTopicsOptionArr)
|
||||||
}
|
}
|
||||||
@@ -395,6 +399,10 @@ Page({
|
|||||||
let arr = res.result || []
|
let arr = res.result || []
|
||||||
arr.map(tt => {
|
arr.map(tt => {
|
||||||
tt.name = tt.text
|
tt.name = tt.text
|
||||||
|
if(tt.value + '' === LinkTopicsEnums.default.index + '') {
|
||||||
|
tt.checked = true
|
||||||
|
tt.disabled = true
|
||||||
|
}
|
||||||
})
|
})
|
||||||
const updateObj = {
|
const updateObj = {
|
||||||
linkTopicsOptionArr: arr // 参会人信息
|
linkTopicsOptionArr: arr // 参会人信息
|
||||||
@@ -772,15 +780,17 @@ Page({
|
|||||||
id: id
|
id: id
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
let meetingCosts = res.result.meetingCosts
|
||||||
// 国际研讨会 且为WASIC 会议
|
// 国际研讨会 且为WASIC 会议
|
||||||
if (Number(res.result.isWasic)) {
|
if (Number(res.result.isWasic)) {
|
||||||
this.getLinkTopicsOptionArr(res.result.id)
|
this.getLinkTopicsOptionArr(res.result.id)
|
||||||
|
meetingCosts = res.result.meetingCostsTwoTopic
|
||||||
}
|
}
|
||||||
this.setData({
|
this.setData({
|
||||||
meetingDetailInfo: res.result,
|
meetingDetailInfo: res.result,
|
||||||
inviteCodeArr: that.validateCodeArr(res.result),
|
inviteCodeArr: that.validateCodeArr(res.result),
|
||||||
selectedMeeting: res.result,
|
selectedMeeting: res.result,
|
||||||
meetingCosts: res.result.meetingCosts
|
meetingCosts: meetingCosts
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -805,11 +815,11 @@ Page({
|
|||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// 如果会议是WASIC 需要对是否选择课题名称做校验
|
// 如果会议是WASIC 需要对是否选择会议名称做校验
|
||||||
if (this.data.meetingDetailInfo.isWasic) {
|
if (this.data.meetingDetailInfo.isWasic) {
|
||||||
if (!formData.choiceTopic || formData.choiceTopic.length === 0) {
|
if (!formData.choiceTopic || formData.choiceTopic.length === 0) {
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
title: '请选择课题名称',
|
title: '请选择会议名称',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
duration: 2000
|
duration: 2000
|
||||||
})
|
})
|
||||||
@@ -1144,7 +1154,7 @@ Page({
|
|||||||
// 邀请码数据
|
// 邀请码数据
|
||||||
formData.invitationCode = formData.inviteCode
|
formData.invitationCode = formData.inviteCode
|
||||||
}
|
}
|
||||||
// 国际研讨会-WASIC 所选择的 关联课题
|
// 国际研讨会-WASIC 所选择的 关联会议
|
||||||
if (formData.choiceTopic) {
|
if (formData.choiceTopic) {
|
||||||
formData.choiceTopic = formData.choiceTopic.join(',')
|
formData.choiceTopic = formData.choiceTopic.join(',')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,19 +24,19 @@
|
|||||||
<text class="item-label flex-1 validate">手机号:</text>
|
<text class="item-label flex-1 validate">手机号:</text>
|
||||||
<input placeholder-class="text-right" bindblur="validatePhone" data-type="phone" data-message='请输入手机号' data-errmsg='请输入正确的手机号' disabled type="number" maxlength="11" name="phone" bindinput="bindInputPhone" value="{{phone}}" placeholder="请输入手机号" />
|
<input placeholder-class="text-right" bindblur="validatePhone" data-type="phone" data-message='请输入手机号' data-errmsg='请输入正确的手机号' disabled type="number" maxlength="11" name="phone" bindinput="bindInputPhone" value="{{phone}}" placeholder="请输入手机号" />
|
||||||
</view>
|
</view>
|
||||||
<!-- 国际研讨会 WASIC 增加课题名称的选择-->
|
<!-- 国际研讨会 WASIC 增加会议名称的选择-->
|
||||||
<view class="form-item-radio" wx:if="{{meetingDetailInfo.isWasic}}">
|
<view class="form-item-radio" wx:if="{{meetingDetailInfo.isWasic}}">
|
||||||
<view class="radio-label">
|
<view class="radio-label">
|
||||||
<text class="item-label flex-1 validate">课题名称:</text>
|
<text class="item-label flex-1 validate">会议名称:</text>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<checkbox-group name='choiceTopic' bindchange="changeChoiceTopic">
|
<checkbox-group name='choiceTopic' bindchange="changeChoiceTopic">
|
||||||
<label class="radio checkbox-item" wx:for="{{linkTopicsOptionArr}}" wx:key="item">
|
<label class="radio checkbox-item" wx:for="{{linkTopicsOptionArr}}" wx:key="item">
|
||||||
<checkbox class="radio-scale" value="{{item.value}}" color="#069F99" checked="{{item.checked}}" />{{item.text}}
|
<checkbox class="radio-scale" value="{{item.value}}" color="#069F99" checked="{{item.checked}}" disabled="{{item.disabled}}"/>{{item.text}}
|
||||||
</label>
|
</label>
|
||||||
</checkbox-group>
|
</checkbox-group>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="form-item-radio">
|
<view class="form-item-radio">
|
||||||
@@ -649,4 +649,4 @@
|
|||||||
<button hover-class="none" type="primary" bindtap="confirmModalSureFunc">确认</button>
|
<button hover-class="none" type="primary" bindtap="confirmModalSureFunc">确认</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</page-container>
|
</page-container>
|
||||||
|
|||||||
Reference in New Issue
Block a user