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