index.wxml 5.3 KB

1
  1. <view class="container"><uni-section vue-id="5c2bbbc2-1" title="基础信息" type="line" bind:__l="__l" vue-slots="{{['default']}}"><uni-forms class="vue-ref" vue-id="{{('5c2bbbc2-2')+','+('5c2bbbc2-1')}}" rules="{{rules}}" modelValue="{{formData}}" label-width="{{90}}" data-ref="infoForm" bind:__l="__l" vue-slots="{{['default']}}"><uni-forms-item vue-id="{{('5c2bbbc2-3')+','+('5c2bbbc2-2')}}" required="{{true}}" label="姓名" name="name" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('5c2bbbc2-4')+','+('5c2bbbc2-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="{{('5c2bbbc2-5')+','+('5c2bbbc2-2')}}" required="{{true}}" label="性别" name="sex" bind:__l="__l" vue-slots="{{['default']}}"><uni-data-checkbox bind:input="__e" vue-id="{{('5c2bbbc2-6')+','+('5c2bbbc2-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="{{('5c2bbbc2-7')+','+('5c2bbbc2-2')}}" required="{{true}}" label="手机号" name="phone" bind:__l="__l" vue-slots="{{['default']}}"><view class="phoneBox"><uni-easyinput bind:input="__e" vue-id="{{('5c2bbbc2-8')+','+('5c2bbbc2-7')}}" disabled="{{true}}" type="text" placeholder="手机号" value="{{formData.phone}}" data-event-opts="{{[['^input',[['__set_model',['$0','phone','$event',[]],['formData']]]]]}}" bind:__l="__l"></uni-easyinput><button style="border:none;" type="primary" plain="{{true}}" size="mini" open-type="getPhoneNumber" data-event-opts="{{[['getphonenumber',[['decryptPhoneNumber',['$event']]]]]}}" bindgetphonenumber="__e">获取手机号</button></view></uni-forms-item><uni-forms-item vue-id="{{('5c2bbbc2-9')+','+('5c2bbbc2-2')}}" name="birthday" label="出生日期" bind:__l="__l" vue-slots="{{['default']}}"><uni-datetime-picker bind:input="__e" vue-id="{{('5c2bbbc2-10')+','+('5c2bbbc2-9')}}" 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></uni-section><uni-section vue-id="5c2bbbc2-11" title="地址信息" type="line" bind:__l="__l" vue-slots="{{['default']}}"><uni-forms class="vue-ref" vue-id="{{('5c2bbbc2-12')+','+('5c2bbbc2-11')}}" modelValue="{{formData}}" label-width="{{90}}" data-ref="addrForm" bind:__l="__l" vue-slots="{{['default']}}"><uni-forms-item vue-id="{{('5c2bbbc2-13')+','+('5c2bbbc2-12')}}" label="小区选择" bind:__l="__l" vue-slots="{{['default']}}"><uni-data-picker vue-id="{{('5c2bbbc2-14')+','+('5c2bbbc2-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="{{('5c2bbbc2-15')+','+('5c2bbbc2-12')}}" label="楼栋选择" bind:__l="__l" vue-slots="{{['default']}}"><uni-data-select vue-id="{{('5c2bbbc2-16')+','+('5c2bbbc2-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="{{('5c2bbbc2-17')+','+('5c2bbbc2-12')}}" label="单元选择" bind:__l="__l" vue-slots="{{['default']}}"><uni-data-select vue-id="{{('5c2bbbc2-18')+','+('5c2bbbc2-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="{{('5c2bbbc2-19')+','+('5c2bbbc2-12')}}" label="楼层选择" bind:__l="__l" vue-slots="{{['default']}}"><uni-data-select vue-id="{{('5c2bbbc2-20')+','+('5c2bbbc2-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="{{('5c2bbbc2-21')+','+('5c2bbbc2-12')}}" label="门牌选择" bind:__l="__l" vue-slots="{{['default']}}"><uni-data-select vue-id="{{('5c2bbbc2-22')+','+('5c2bbbc2-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>