You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
2.5 KiB
54 lines
2.5 KiB
1 year ago
|
<view class="title">
|
||
|
<text class="tag"></text> {{popupTitle}}
|
||
|
</view>
|
||
|
<view class="form_card">
|
||
|
<view wx:for="{{formList}}" wx:key="idnex" wx:for-item="itemP">
|
||
|
|
||
|
<view class="form_item" wx:if="{{itemP.itemType == 'select'}}">
|
||
|
<view class="form_item_label">{{itemP.label}}</view>
|
||
|
<view class="form_item_input" >
|
||
|
<picker bindchange="bindPicker" range-key="label" value="{{index}}" range="{{itemP.opction}}" class="gray">
|
||
|
请选择
|
||
|
</picker>
|
||
|
<image src="../../../../images/right.png" mode="" />
|
||
|
</view>
|
||
|
</view>
|
||
|
<view class="form_item" wx:if="{{itemP.itemType == 'radio'}}">
|
||
|
<view class="form_item_label">{{itemP.label}}</view>
|
||
|
<radio-group bindchange="radioChange" class="form_item_input_radio">
|
||
|
<label class="weui-cell weui-check__label" wx:for="{{itemP.opction}}" wx:key="{{itemP.value}}">
|
||
|
<view class="weui-cell__hd">
|
||
|
<radio value="{{item.value}}" checked="true" />
|
||
|
</view>
|
||
|
<view class="weui-cell__bd">{{item.label}}</view>
|
||
|
</label>
|
||
|
</radio-group>
|
||
|
</view>
|
||
|
<view class="form_item" wx:if="{{itemP.itemType == 'input'}}">
|
||
|
<view class="form_item_label">{{itemP.label}}</view>
|
||
|
<view class="form_item_input">
|
||
|
<input confirm-type="next" bindblur="bindinput" bindinput="bindinput" value="{{form[itemP.id][itemP.formName]}}" placeholder-class="gray" placeholder="请输入" />
|
||
|
</view>
|
||
|
</view>
|
||
|
<view class="form_item" wx:if="{{itemP.itemType == 'checkbox'}}">
|
||
|
<view class="form_item_label">{{itemP.label}}</view>
|
||
|
<view class="form_item_input">
|
||
|
<checkbox-group bindchange="checkboxChange">
|
||
|
<label class="weui-cell weui-check__label" wx:for="{{itemP.opction}}" wx:key="{{item.value}}">
|
||
|
<view class="weui-cell__hd">
|
||
|
<checkbox value="{{item.value}}" color="#3974f6" checked="{{item.checked}}"/>
|
||
|
</view>
|
||
|
<view class="weui-cell__bd">{{item.label}}</view>
|
||
|
</label>
|
||
|
</checkbox-group>
|
||
|
</view>
|
||
|
</view>
|
||
|
|
||
|
</view>
|
||
|
</view>
|
||
|
|
||
|
|
||
|
<view class="bot_btn">
|
||
|
<button type="default" plain="true" class="bottom_btn bottom_btn_close" bind:tap="hideForm">关闭</button>
|
||
|
<button type="primary" class="btn_bule bottom_btn" bind:tap="confirm">确认</button>
|
||
|
</view>
|