person.wxml 3.1 KB

1
  1. <view style="padding:20rpx;"><view class="box" style="padding:40rpx 20rpx;"><uni-forms class="vue-ref" vue-id="e8437cc0-1" modelValue="{{form}}" rules="{{rules}}" label-width="140rpx" label-align="right" data-ref="formRef" bind:__l="__l" vue-slots="{{['default']}}"><uni-forms-item vue-id="{{('e8437cc0-2')+','+('e8437cc0-1')}}" label="头像" name="avatar" bind:__l="__l" vue-slots="{{['default']}}"><uni-file-picker vue-id="{{('e8437cc0-3')+','+('e8437cc0-2')}}" limit="1" image-styles="{{imageStyles}}" del-icon="{{false}}" disable-preview="{{true}}" fileMediatype="image" value="{{imgs}}" data-event-opts="{{[['^select',[['handleImgUploadSuccess']]],['^input',[['__set_model',['','imgs','$event',[]]]]]]}}" bind:select="__e" bind:input="__e" bind:__l="__l"></uni-file-picker></uni-forms-item><uni-forms-item vue-id="{{('e8437cc0-4')+','+('e8437cc0-1')}}" label="账号" name="username" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('e8437cc0-5')+','+('e8437cc0-4')}}" type="text" placeholder disabled="{{true}}" value="{{form.username}}" data-event-opts="{{[['^input',[['__set_model',['$0','username','$event',[]],['form']]]]]}}" bind:__l="__l"></uni-easyinput></uni-forms-item><uni-forms-item vue-id="{{('e8437cc0-6')+','+('e8437cc0-1')}}" label="密码" name="password" required="{{true}}" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('e8437cc0-7')+','+('e8437cc0-6')}}" type="password" placeholder="请输入密码" value="{{form.password}}" data-event-opts="{{[['^input',[['__set_model',['$0','password','$event',[]],['form']]]]]}}" bind:__l="__l"></uni-easyinput></uni-forms-item><uni-forms-item vue-id="{{('e8437cc0-8')+','+('e8437cc0-1')}}" label="姓名" name="name" required="{{true}}" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('e8437cc0-9')+','+('e8437cc0-8')}}" type="text" placeholder="请输入姓名" value="{{form.name}}" data-event-opts="{{[['^input',[['__set_model',['$0','name','$event',[]],['form']]]]]}}" bind:__l="__l"></uni-easyinput></uni-forms-item><uni-forms-item vue-id="{{('e8437cc0-10')+','+('e8437cc0-1')}}" label="性别" name="sex" bind:__l="__l" vue-slots="{{['default']}}"><uni-data-checkbox bind:input="__e" style="position:relative;top:10rpx;" vue-id="{{('e8437cc0-11')+','+('e8437cc0-10')}}" localdata="{{range}}" value="{{form.sex}}" data-event-opts="{{[['^input',[['__set_model',['$0','sex','$event',[]],['form']]]]]}}" bind:__l="__l"></uni-data-checkbox></uni-forms-item><uni-forms-item vue-id="{{('e8437cc0-12')+','+('e8437cc0-1')}}" label="电话" name="phone" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('e8437cc0-13')+','+('e8437cc0-12')}}" type="text" placeholder="请输入电话" value="{{form.phone}}" data-event-opts="{{[['^input',[['__set_model',['$0','phone','$event',[]],['form']]]]]}}" bind:__l="__l"></uni-easyinput></uni-forms-item><view><button class="my-button-primary" type="primary" data-event-opts="{{[['tap',[['save',['$event']]]]]}}" bindtap="__e">保 存</button></view></uni-forms></view></view>