123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <view class="main">
- <text class="remind" wx:if="{{list.length > 0}}">尊敬的用户,请完善下列带*号的信息后提交</text>
- <view class="content">
- <view class="content_item">
- <view wx:for="{{list}}" wx:key="index" class="border">
- <view class="cu-form-group" wx:if="{{item.customType==='下拉选择'&&item.isShow===1}}">
- <view class="title"><text class="{{item.customNameVal?'text-green':'text-red'}}">*</text>
- <text>{{item.customName}}</text>
- </view>
- <picker disabled="{{item.isEditable === 0}}" bindchange="getSelect" value="{{item.customNameVal}}" range="{{item.configurationOption}}" range-key="{{'name'}}" data-index="{{index}}">
- <view class="picker">
- {{item.customNameVal?item.customNameVal:item.prompt ||'请选择'}}
- </view>
- </picker>
- </view>
- <view class="cu-form-group" wx:if="{{item.customType==='文本' &&item.isShow===1}}">
- <view class="title"><text class="{{item.customNameVal?'text-green':'text-red'}}">*</text><text>{{item.customName}}</text>
- </view>
- <input disabled="{{item.isEditable === 0}}" type="text" bindinput="getValue" value="{{item.customNameVal}}" placeholder="{{item.prompt || '请填写内容'}}" data-index="{{index}}"></input>
- </view>
- <view class="cu-form-group" wx:if="{{item.customType==='日期'&&item.isShow===1}}">
- <view class="title"><text class="{{item.customNameVal ?'text-green':'text-red'}}">*</text><text>{{item.customName}}</text>
- </view>
- <picker disabled="{{item.isEditable === 0}}" data-index="{{index}}" class="picker" mode="date" value="{{item.customNameVal}}" start="2015-01-01" end="2100-01-01" bindchange="getValue">
- <view class="picker">
- {{item.customNameVal?item.customNameVal:item.prompt ||'请选择日期'}}
- </view>
- </picker>
- </view>
- <view class="cu-form-group" wx:if="{{item.customType==='时间'&&item.isShow===1}}">
- <view class="title"><text class="{{item.customNameVal?'text-green':'text-red'}}">*</text><text>{{item.customName}}</text>
- </view>
- <picker disabled="{{item.isEditable === 0}}" data-index="{{index}}" class="picker" mode="time" value="{{item.customNameVal}}" start="00:00" end="23:59" bindchange="getValue">
- <view class="picker">
- {{item.customNameVal?item.customNameVal:item.prompt ||'请选择时间'}}
- </view>
- </picker>
- </view>
- <!-- 图片 -->
- <view class="cu-form-group height" wx:if="{{item.customType==='图片'&&item.isShow===1}}">
- <view class="title"><text class="{{item.customNameVal?'text-green':'text-red'}}">*</text><text>{{item.customName}}</text>
- </view>
- <view wx:if="{{item.customNameVal}}" class="img_box">
- <image src="{{item.customNameVal}}" class="img" bindtap="previewImg" data-src="{{item.customNameVal}}"></image>
- <view class="cu-tag bg-red DelImg" catchtap="DelImg" data-index="{{index}}">
- <text class="cuIcon-close"></text>
- </view>
- </view>
- <image bindtap="doUploadAvatar" class="upload" wx:else data-index="{{index}}" src="../../../static/images/default_img.png"></image>
- </view>
- <!-- 省市区(街道) -->
- <view wx:if="{{(item.customType==='省市区'||item.customType==='省市区街道')&&item.isShow===1}}">
- <!-- 标题 -->
- <view class="cu-form-group">
- <view class="title">
- <text class="{{item.customNameVal?'text-green':'text-red'}}">*</text><text>{{item.customName}}</text>
- </view>
- <area-picker bind:value="getAddress" content="{{item.customNameVal}}" hasStreet="{{item.customType==='省市区街道'}}" data-index="{{index}}"></area-picker>
- </view>
- </view>
- </view>
- </view>
- <view class="bottom" wx:if="{{list.length > 0}}">
- <button class="sureButton" bindtap="submit">提交</button>
- </view>
- </view>
- </view>
|