【update】国际研讨会编辑嘉宾功能增加WASIC的相关判断;嘉宾不同类型对应字段的修改

This commit is contained in:
fengchenchen
2023-11-05 10:29:15 +08:00
parent c9c458b9ab
commit ee3210535e
7 changed files with 613 additions and 428 deletions
@@ -1,10 +1,7 @@
<view class="color-f5 wrap">
<form bindsubmit="formSubmit">
<!-- 不是合作伙伴的beign -->
<view class="form-wrap" wx:if="{{info.guestType !== 4 && info.guestType !== 5}}">
<view class="form-wrap">
<view class="form-item">
<text>参会单位:</text>
<input value="{{info.companyName}}" disabled />
@@ -29,13 +26,46 @@
<text>嘉宾类型:</text>
<input value="{{guestType_dictText}}" disabled />
</view>
<!-- 国际研讨会 WASIC 增加会议名称的选择-->
<view class="form-item-radio" wx:if="{{isWasic}}">
<view class="radio-label">
<text class="item-label flex-1 validate">会议名称:</text>
</view>
<view>
<checkbox-group name='choiceTopic' bindchange="changeChoiceTopic">
<view wx:for="{{showTopicsArr}}" wx:for-item="item" wx:key="name">
<view class="topic-title">{{item.name}}</view>
<view class="checkbox-view">
<label class="radio checkbox-item" wx:for="{{item.children}}" wx:for-item="checkItem" wx:key="title">
<checkbox class="radio-scale" value="{{checkItem.value}}" color="#069F99" checked="{{checkItem.checked}}" disabled="{{checkItem.disabled}}" />{{checkItem.text}}
</label>
</view>
<!-- 如果有单选的数据 循环单选的数据 -->
<view class="radio-div" wx:if="{{item.radioChildren}}">
<radio-group name='{{item.radioKey}}' data-name='{{item.radioKey}}' bindchange="changeRadioTopic">
<label class="radio radio-item" wx:for="{{item.radioChildren}}" wx:for-item="radioItem" wx:key="title">
<radio class="radio-scale" value="{{radioItem.value}}" color="#069F99" checked="{{radioItem.checked}}" />{{radioItem.text}}
</label>
</radio-group>
</view>
</view>
<view class="form-item" wx:if="{{info.guestType === 1 || info.guestType === 2}}">
</checkbox-group>
<view class="form-item">
<button class="validate-btn" bindtap="cancelChoiceTopic">清空会议信息</button>
</view>
</view>
</view>
</view>
<!-- 演讲信息 VIP || 演讲嘉宾 存在---开始-->
<view class="form-wrap" wx:if="{{info.guestType === 1 || info.guestType === 2}}">
<view class="form-item">
<text class="item-label flex-1">演讲题目:</text>
<input placeholder-class="text-right" name="speechTopic" value="{{info.speechTopic}}" placeholder="请输入演讲题目" />
</view>
<view class="form-item-radio" wx:if="{{info.guestType === 1 || info.guestType === 2}}">
<view class="form-item-radio">
<text class="item-label flex-1">演讲PPT:</text>
<view class="file-name" wx:for="{{speechPptList}}" wx:key="item">
@@ -50,19 +80,21 @@
</view>
<view class="form-item-radio" wx:if="{{info.guestType === 1 || info.guestType === 2}}">
<view class="form-item-radio">
<text class="item-label flex-1">照片:</text>
<image-upload style="margin-top:20rpx" bindgetIds='getImagesId' maxLength='1' initImgsList="{{info.photo}}">
</image-upload>
</view>
<view class="form-item-radio" wx:if="{{info.guestType === 1 || info.guestType === 2}}">
<view class="form-item-radio">
<text class="item-label flex-1">个人简介:</text>
<textarea name="profile" placeholder="请输入个人简介" value="{{info.profile}}" name="remark" />
</view>
</view>
<!-- 演讲信息 VIP || 演讲嘉宾 存在---结束-->
<!-- 用餐信息 VIP || 演讲嘉宾 存在---开始 -->
<view class="form-wrap" wx:if="{{info.guestType === 1 || info.guestType === 2}}">
<view class="form-item-radio">
<view class="radio-label">
<text class="item-label flex-1 validate">是否用餐:</text>
@@ -70,8 +102,7 @@
<view>
<radio-group name='haveMeals' bindchange="needHaveMeal">
<label class="radio radio-item" wx:for="{{need}}" wx:key="item">
<radio class="radio-scale" value="{{item.value}}" checked="{{item.value === info.haveMeals}}"
color="#069F99" />{{item.name}}
<radio class="radio-scale" value="{{item.value}}" checked="{{item.value === info.haveMeals}}" color="#069F99" />{{item.name}}
</label>
</radio-group>
</view>
@@ -85,29 +116,29 @@
<view>
<radio-group name='huiPeople'>
<label class="radio radio-item" wx:for="{{need}}" wx:key="item">
<radio class="radio-scale" value="{{item.value}}" checked="{{item.value === info.huiPeople}}"
color="#069F99" />{{item.name}}
<radio class="radio-scale" value="{{item.value}}" checked="{{item.value === info.huiPeople}}" color="#069F99" />{{item.name}}
</label>
</radio-group>
</view>
</view>
<view class="form-item-radio" wx:if="{{info.guestType === 1}}">
</view>
<!-- 用餐信息 VIP || 演讲嘉宾 存在---结束 -->
<!-- 住店信息 VIP 存在---结束 -->
<view class="form-wrap" wx:if="{{info.guestType === 1}}">
<view class="form-item-radio">
<view class="radio-label">
<text class="item-label flex-1 validate">是否住酒店:</text>
</view>
<view>
<radio-group name='checkInHotel' bindchange="needHotel">
<label class="radio radio-item" wx:for="{{need}}" wx:key="item">
<radio class="radio-scale" value="{{item.value}}" checked="{{item.value === info.checkInHotel}}"
color="#069F99" />{{item.name}}
<radio class="radio-scale" value="{{item.value}}" checked="{{item.value === info.checkInHotel}}" color="#069F99" />{{item.name}}
</label>
</radio-group>
</view>
</view>
<view class="form-item" wx:if="{{ needHotel === 1 && info.guestType === 1 }}">
<view class="form-item" wx:if="{{ needHotel === 1 }}">
<text class="item-label flex-1 validate">入住酒店时间:</text>
<picker name='inHotelTime' mode="date" bindchange="bindDateChangeInHotelTime">
<view class="picker">
@@ -116,7 +147,7 @@
</picker>
</view>
<view class="form-item" wx:if="{{needHotel === 1 && info.guestType === 1 }}">
<view class="form-item" wx:if="{{needHotel === 1 }}">
<text class="item-label flex-1 validate">离店时间:</text>
<picker name='outHotelTime' placeholder="请选择离店时间" mode="date" bindchange="bindDateChangeOutHotelTime">
<view class="picker">
@@ -125,12 +156,16 @@
</picker>
</view>
<view class="form-item" wx:if="{{needHotel === 1 && info.guestType === 1 }}">
<view class="form-item" wx:if="{{needHotel === 1 }}">
<text class="item-label flex-1 validate">房型:</text>
<input placeholder-class="text-right" name="roomLayout" value="{{info.roomLayout}}" bindinput="bindInputPhone"
placeholder="请输入房型" />
<input placeholder-class="text-right" name="roomLayout" value="{{info.roomLayout}}" bindinput="bindInputPhone" placeholder="请输入房型" />
</view>
</view>
<!-- 住店信息 VIP 存在---结束 -->
<!-- 行程信息 VIP || 演讲嘉宾 || 特邀嘉宾 存在---开始 -->
<view class="form-wrap" wx:if="{{info.guestType === 1 || info.guestType === 2 || info.guestType === 3}}">
<view class="form-item-radio">
<view class="radio-label">
<text class="item-label flex-1 validate">是否需要接站:</text>
@@ -138,8 +173,7 @@
<view>
<radio-group name='pickUp' bindchange="needPick">
<label class="radio radio-item" wx:for="{{need}}" wx:key="item">
<radio class="radio-scale" value="{{item.value}}" checked="{{item.value === info.pickUp}}"
color="#069F99" />{{item.name}}
<radio class="radio-scale" value="{{item.value}}" checked="{{item.value === info.pickUp}}" color="#069F99" />{{item.name}}
</label>
</radio-group>
</view>
@@ -156,16 +190,18 @@
<view class="form-item" wx:if="{{needPick === 1 }}">
<text class="item-label flex-1 validate">到达站:</text>
<input placeholder-class="text-right" name="destination" value="{{info.destination}}" bindinput="bindInputPhone"
placeholder="请输入到达站" />
<input placeholder-class="text-right" name="destination" value="{{info.destination}}" bindinput="bindInputPhone" placeholder="请输入到达站" />
</view>
<view class="form-item" wx:if="{{needPick === 1 }}">
<text class="item-label flex-1 validate">到达班次:</text>
<input placeholder-class="text-right" name="arrivalShift" value="{{info.arrivalShift}}"
bindinput="bindInputPhone" placeholder="请输入到达班次" />
<input placeholder-class="text-right" name="arrivalShift" value="{{info.arrivalShift}}" bindinput="bindInputPhone" placeholder="请输入到达班次" />
</view>
<!-- 演讲嘉宾、特邀嘉宾存在 -->
<view class="form-item" wx:if="{{needPick === 1 && (info.guestType === 2 || info.guestType === 3)}}">
<text class="item-label flex-1">目的地</text>
<input placeholder-class="text-right" name="destinationHotel" placeholder="请输入目的地" value="{{info.destinationHotel}}" />
</view>
<view class="form-item-radio">
<view class="radio-label">
@@ -174,8 +210,7 @@
<view>
<radio-group name='deliveryStation' bindchange="needSend">
<label class="radio radio-item" wx:for="{{need}}" wx:key="item">
<radio class="radio-scale" value="{{item.value}}" checked="{{item.value === info.deliveryStation}}"
color="#069F99" />{{item.name}}
<radio class="radio-scale" value="{{item.value}}" checked="{{item.value === info.deliveryStation}}" color="#069F99" />{{item.name}}
</label>
</radio-group>
</view>
@@ -192,35 +227,25 @@
<view class="form-item" wx:if="{{needSend === 1 }}">
<text class="item-label flex-1 validate">离开站:</text>
<input placeholder-class="text-right" name="departureStation" value="{{info.departureStation}}"
bindinput="bindInputPhone" placeholder="请输入离开站" />
<input placeholder-class="text-right" name="departureStation" value="{{info.departureStation}}" bindinput="bindInputPhone" placeholder="请输入离开站" />
</view>
<view class="form-item" wx:if="{{needSend === 1 }}">
<text class="item-label flex-1 validate">离开班次:</text>
<input placeholder-class="text-right" name="departureShift" value="{{info.departureShift}}"
bindinput="bindInputPhone" placeholder="请输入离开班次" />
<input placeholder-class="text-right" name="departureShift" value="{{info.departureShift}}" bindinput="bindInputPhone" placeholder="请输入离开班次" />
</view>
<view class="form-item">
<text class="item-label flex-1">同行人:</text>
<input placeholder-class="text-right" name="peer" bindinput="bindInputPhone" value="{{info.peer}}"
placeholder="请输入同行人" />
</view>
<view class="form-item-radio" wx:if="{{info.guestType === 1 || info.guestType === 2 }}">
<view class="form-item-radio" wx:if="{{info.guestType === 1 || info.guestType === 2 || info.guestType === 3 }}">
<text class="item-label flex-1">备注:</text>
<textarea name="remark" placeholder="请输入备注" value="{{info.remark}}" name="remark" />
<textarea name="remark" placeholder="请输入备注" value="{{info.remark}}" />
</view>
<view class="btn-wrap">
<button class="btn-ok" formType="submit">确定</button>
</view>
</view>
<!-- 不是合作伙伴的显示end -->
<!-- 行程信息 VIP || 演讲嘉宾 || 特邀嘉宾 存在---结束 -->
<!-- 整体结束 -->
<!-- 合作伙伴begin -->
<!-- 合作伙伴 || 参展商类别 begin -->
<view class="form-wrap" wx:if="{{info.guestType === 4 || info.guestType === 5}}">
<view class="form-item">
@@ -240,7 +265,10 @@
</view>
</picker>
</view>
<view class="form-item-radio">
<text class="item-label flex-1">备注:</text>
<textarea name="remark" placeholder="请输入备注" value="{{info.remark}}" />
</view>
<view class="btn-wrap">
<button class="btn-ok" formType="submit">确定</button>
</view>
@@ -250,9 +278,4 @@
<!-- 合作伙伴end -->
</form>
</view>