crm_second_opening_mini/components/form/formitem.wxml

1 line
9.3 KiB
Plaintext
Raw Normal View History

2023-03-13 01:13:08 +00:00
<view class="data-v-09ea0031"><block wx:if="{{objInfo.component=='input'&&(objInfo.config.required==true||!isNotRequired)}}"><view class="fllow_form data-v-09ea0031"><view class="data-v-09ea0031"><text class="{{['data-v-09ea0031',objInfo.config.required==true?'b_color':'bo_color']}}">*</text>{{objInfo.config.label}}</view><view class="form_input data-v-09ea0031"><block wx:if="{{isEdit}}"><input class="{{['data-v-09ea0031',objInfo.value?'valueActive':'']}}" type="text" placeholder-style="color:#999;font-size:32rpx;" placeholder="{{!isEdit?'':objInfo.config.placeholder}}" data-event-opts="{{[['input',[['changeInput',['$event']]]]]}}" value="{{objInfo.value}}" bindinput="__e"/></block><block wx:if="{{!isEdit}}"><view class="valueActive data-v-09ea0031">{{objInfo.value?objInfo.value:''}}</view></block></view></view></block><block wx:if="{{objInfo.component=='input-number'&&(objInfo.config.required==true||!isNotRequired)}}"><view class="fllow_form data-v-09ea0031"><view class="data-v-09ea0031"><text class="{{['data-v-09ea0031',objInfo.config.required==true?'b_color':'bo_color']}}">*</text>{{objInfo.config.label}}</view><view class="form_input data-v-09ea0031"><input class="{{['data-v-09ea0031',objInfo.value?'valueActive':'']}}" type placeholder-style="color:#999;font-size:32rpx;" disabled="{{!isEdit}}" placeholder="{{!isEdit?'':objInfo.config.placeholder}}" data-event-opts="{{[['input',[['changeInput',['$event']]]]]}}" value="{{objInfo.value}}" bindinput="__e"/></view></view></block><block wx:if="{{objInfo.component=='select'&&(objInfo.config.required==true||!isNotRequired)}}"><view class="fllow_form data-v-09ea0031"><view class="data-v-09ea0031"><text class="{{['data-v-09ea0031',objInfo.config.required==true?'b_color':'bo_color']}}">*</text>{{objInfo.config.label}}</view><view data-event-opts="{{[['tap',[['changeSelect',['$event']]]]]}}" class="form_right data-v-09ea0031" bindtap="__e"><view class="{{['data-v-09ea0031',objInfo.value?'valueActive':'']}}">{{''+(!isEdit&&!objInfo.value?'':objInfo.value?objInfo.value:objInfo.config.placeholder)+''}}</view><view class="iconfont icon-arrows_right data-v-09ea0031"></view></view></view></block><block wx:if="{{objInfo.component=='Rate'&&(objInfo.config.required==true||!isNotRequired)}}"><view class="fllow_form data-v-09ea0031"><view class="data-v-09ea0031"><text class="{{['data-v-09ea0031',objInfo.config.required==true?'b_color':'bo_color']}}">*</text>{{objInfo.config.label}}</view><view class="form_right data-v-09ea0031"><view class="data-v-09ea0031"><u-rate vue-id="482d4f4f-1" disabled="{{!isEdit}}" active-color="#FFD049" inactive-color="#b2b2b2" size="{{35}}" gutter="{{10}}" value="{{objInfo.value}}" data-event-opts="{{[['^change',[['changeRate']]],['^input',[['__set_model',['$0','value','$event',[]],['objInfo']]]]]}}" bind:change="__e" bind:input="__e" class="data-v-09ea0031" bind:__l="__l"></u-rate></view></view></view></block><block wx:if="{{objInfo.component=='TimePicker'&&(objInfo.config.required==true||!isNotRequired)}}"><view class="fllow_form data-v-09ea0031"><view class="data-v-09ea0031"><text class="{{['data-v-09ea0031',objInfo.config.required==true?'b_color':'bo_color']}}">*</text>{{objInfo.config.label}}</view><picker mode="multiSelector" disabled="{{!isEdit}}" range="{{dateTimeArray}}" value="{{dateTime}}" data-event-opts="{{[['change',[['changeTime',['$event']]]],['columnchange',[['changeColumn',['$event']]]]]}}" bindchange="__e" bindcolumnchange="__e" class="data-v-09ea0031"><view class="form_right data-v-09ea0031"><view class="{{['data-v-09ea0031',objInfo.value?'valueActive':'']}}">{{''+(objInfo.value?objInfo.value:objInfo.config.placeholder)+''}}</view><view class="iconfont icon-arrows_right data-v-09ea0031"></view></view></picker></view></block><block wx:if="{{objInfo.component=='textarea'&&(objInfo.config.required==true||!isNotRequired)}}"><view class="fllow_area data-v-09ea0031"><view class="area_head data-v-09ea0031"><text class="{{['data-v-09ea0031',objInfo.config.required==true?'b_color':'bo_color']}}">*</text>{{''+objInfo.config.label+''}}</view><textarea