1 |
- <view class="container"><uni-section vue-id="7ed4ca19-1" title="基础信息" type="line" bind:__l="__l" vue-slots="{{['default']}}"><uni-forms class="vue-ref" vue-id="{{('7ed4ca19-2')+','+('7ed4ca19-1')}}" rules="{{rules}}" modelValue="{{formData}}" label-width="{{90}}" data-ref="infoForm" bind:__l="__l" vue-slots="{{['default']}}"><uni-forms-item vue-id="{{('7ed4ca19-3')+','+('7ed4ca19-2')}}" required="{{true}}" label="姓名" name="name" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('7ed4ca19-4')+','+('7ed4ca19-3')}}" type="text" placeholder="请输入姓名" value="{{formData.name}}" data-event-opts="{{[['^input',[['__set_model',['$0','name','$event',[]],['formData']]]]]}}" bind:__l="__l"></uni-easyinput></uni-forms-item><uni-forms-item vue-id="{{('7ed4ca19-5')+','+('7ed4ca19-2')}}" required="{{true}}" label="性别" name="sex" bind:__l="__l" vue-slots="{{['default']}}"><uni-data-checkbox bind:input="__e" vue-id="{{('7ed4ca19-6')+','+('7ed4ca19-5')}}" localdata="{{sexs}}" value="{{formData.sex}}" data-event-opts="{{[['^input',[['__set_model',['$0','sex','$event',[]],['formData']]]]]}}" bind:__l="__l"></uni-data-checkbox></uni-forms-item><uni-forms-item vue-id="{{('7ed4ca19-7')+','+('7ed4ca19-2')}}" name="birthday" label="出生日期" bind:__l="__l" vue-slots="{{['default']}}"><uni-datetime-picker bind:input="__e" vue-id="{{('7ed4ca19-8')+','+('7ed4ca19-7')}}" type="date" value="{{formData.birthday}}" data-event-opts="{{[['^input',[['__set_model',['$0','birthday','$event',[]],['formData']]]]]}}" bind:__l="__l"></uni-datetime-picker></uni-forms-item><uni-forms-item vue-id="{{('7ed4ca19-9')+','+('7ed4ca19-2')}}" required="{{true}}" label="联系电话" name="phone" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('7ed4ca19-10')+','+('7ed4ca19-9')}}" type="text" placeholder="请输入联系电话" value="{{formData.phone}}" data-event-opts="{{[['^input',[['__set_model',['$0','phone','$event',[]],['formData']]]]]}}" bind:__l="__l"></uni-easyinput></uni-forms-item></uni-forms></uni-section><uni-section vue-id="7ed4ca19-11" title="地址信息" type="line" bind:__l="__l" vue-slots="{{['default']}}"><uni-forms class="vue-ref" vue-id="{{('7ed4ca19-12')+','+('7ed4ca19-11')}}" modelValue="{{formData}}" label-width="{{90}}" data-ref="addrForm" bind:__l="__l" vue-slots="{{['default']}}"><uni-forms-item vue-id="{{('7ed4ca19-13')+','+('7ed4ca19-12')}}" label="小区选择" bind:__l="__l" vue-slots="{{['default']}}"><uni-data-picker vue-id="{{('7ed4ca19-14')+','+('7ed4ca19-13')}}" map="{{pickerMap}}" localdata="{{items}}" placeholder="请选择地址" popup-title="请选择地址" value="{{formData.estateId}}" data-event-opts="{{[['^change',[['onchange']]],['^nodeclick',[['onnodeclick']]],['^input',[['__set_model',['$0','estateId','$event',[]],['formData']]]]]}}" bind:change="__e" bind:nodeclick="__e" bind:input="__e" bind:__l="__l"></uni-data-picker></uni-forms-item><uni-forms-item vue-id="{{('7ed4ca19-15')+','+('7ed4ca19-12')}}" label="楼栋选择" bind:__l="__l" vue-slots="{{['default']}}"><uni-data-select vue-id="{{('7ed4ca19-16')+','+('7ed4ca19-15')}}" localdata="{{range}}" value="{{formData.buildingId}}" data-event-opts="{{[['^change',[['selectChange']]],['^input',[['__set_model',['$0','buildingId','$event',[]],['formData']]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l"></uni-data-select></uni-forms-item><block wx:if="{{house.unit&&house.unit!==null}}"><uni-forms-item vue-id="{{('7ed4ca19-17')+','+('7ed4ca19-12')}}" label="单元选择" bind:__l="__l" vue-slots="{{['default']}}"><uni-data-select vue-id="{{('7ed4ca19-18')+','+('7ed4ca19-17')}}" localdata="{{house.unit}}" value="{{formData.unit}}" data-event-opts="{{[['^change',[['unitChange']]],['^input',[['__set_model',['$0','unit','$event',[]],['formData']]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l"></uni-data-select></uni-forms-item></block><block wx:if="{{house.floor&&house.floor!==null}}"><uni-forms-item vue-id="{{('7ed4ca19-19')+','+('7ed4ca19-12')}}" label="楼层选择" bind:__l="__l" vue-slots="{{['default']}}"><uni-data-select vue-id="{{('7ed4ca19-20')+','+('7ed4ca19-19')}}" localdata="{{house.floor}}" value="{{formData.floor}}" data-event-opts="{{[['^change',[['floorChange']]],['^input',[['__set_model',['$0','floor','$event',[]],['formData']]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l"></uni-data-select></uni-forms-item></block><block wx:if="{{house.number&&house.number!==null}}"><uni-forms-item vue-id="{{('7ed4ca19-21')+','+('7ed4ca19-12')}}" label="门牌选择" bind:__l="__l" vue-slots="{{['default']}}"><uni-data-select vue-id="{{('7ed4ca19-22')+','+('7ed4ca19-21')}}" localdata="{{house.number}}" value="{{formData.houseId}}" data-event-opts="{{[['^change',[['houseChange']]],['^input',[['__set_model',['$0','houseId','$event',[]],['formData']]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l"></uni-data-select></uni-forms-item></block></uni-forms></uni-section><button class="btn" type="primary" data-event-opts="{{[['tap',[['submit',['infoForm']]]]]}}" bindtap="__e">提交</button></view>
|