addusers.wxml 7.0 KB

1
  1. <view><view class="status_bar"></view><view style="position:relative;top:44px;"><view style="position:fixed;z-index:100;"><uni-nav-bar vue-id="1f7916c4-1" left-icon="back" left-text="返回" title="用户新增" data-event-opts="{{[['^clickLeft',[['clickLeft']]]]}}" bind:clickLeft="__e" bind:__l="__l"></uni-nav-bar></view><view class="addusers"><u-form class="uForm vue-ref" vue-id="1f7916c4-2" model="{{form}}" data-ref="uForm" bind:__l="__l" vue-slots="{{['default']}}"><view class="uFormbg"><u-form-item vue-id="{{('1f7916c4-3')+','+('1f7916c4-2')}}" label="姓名" left-icon="account" left-icon-style="{{lefticonstyle}}" label-width="160rpx" border-bottom="{{borderbottom}}" prop="name" required="{{true}}" bind:__l="__l" vue-slots="{{['default']}}"><u-input bind:input="__e" vue-id="{{('1f7916c4-4')+','+('1f7916c4-3')}}" clearable="{{clearable}}" input-align="right" placeholder="请输入姓名" value="{{form.name}}" data-event-opts="{{[['^input',[['__set_model',['$0','name','$event',[]],['form']]]]]}}" bind:__l="__l"></u-input></u-form-item></view><view class="uFormbg"><u-form-item vue-id="{{('1f7916c4-5')+','+('1f7916c4-2')}}" label="电话" left-icon="phone" left-icon-style="{{lefticonstyle}}" label-width="160rpx" border-bottom="{{borderbottom}}" prop="intro" required="{{true}}" bind:__l="__l" vue-slots="{{['default']}}"><u-input bind:input="__e" vue-id="{{('1f7916c4-6')+','+('1f7916c4-5')}}" clearable="{{clearable}}" input-align="right" placeholder="请输入电话" value="{{form.intro}}" data-event-opts="{{[['^input',[['__set_model',['$0','intro','$event',[]],['form']]]]]}}" bind:__l="__l"></u-input></u-form-item></view><view class="uFormbg"><u-form-item vue-id="{{('1f7916c4-7')+','+('1f7916c4-2')}}" label="密码" left-icon="lock" left-icon-style="{{lefticonstyle}}" label-width="160rpx" border-bottom="{{borderbottom}}" prop="passwold" required="{{true}}" bind:__l="__l" vue-slots="{{['default']}}"><u-input bind:input="__e" vue-id="{{('1f7916c4-8')+','+('1f7916c4-7')}}" type="password" clearable="{{clearable}}" input-align="right" placeholder="请输入密码" value="{{form.passwold}}" data-event-opts="{{[['^input',[['__set_model',['$0','passwold','$event',[]],['form']]]]]}}" bind:__l="__l"></u-input></u-form-item></view><view class="uFormbg"><u-form-item vue-id="{{('1f7916c4-9')+','+('1f7916c4-2')}}" label="角色类型" left-icon="account-fill" left-icon-style="{{lefticonstyle}}" label-width="160rpx" border-bottom="{{borderbottom}}" bind:__l="__l" vue-slots="{{['default']}}"><u-input vue-id="{{('1f7916c4-10')+','+('1f7916c4-9')}}" type="select" clearable="{{clearable}}" input-align="right" placeholder="请选择角色类型" select-open="{{typesofrole[0].show}}" value="{{form.typesofrole}}" data-event-opts="{{[['^click',[['e0']]],['^input',[['__set_model',['$0','typesofrole','$event',[]],['form']]]]]}}" bind:click="__e" bind:input="__e" bind:__l="__l"></u-input></u-form-item></view><view class="uFormbg"><u-form-item vue-id="{{('1f7916c4-11')+','+('1f7916c4-2')}}" label="主题" left-icon="calendar" left-icon-style="{{lefticonstyle}}" label-width="160rpx" border-bottom="{{borderbottom}}" bind:__l="__l" vue-slots="{{['default']}}"><u-input vue-id="{{('1f7916c4-12')+','+('1f7916c4-11')}}" clearable="{{clearable}}" type="select" input-align="right" placeholder="请选择主题" select-open="{{theme_show}}" value="{{form.theme}}" data-event-opts="{{[['^click',[['e1']]],['^input',[['__set_model',['$0','theme','$event',[]],['form']]]]]}}" bind:click="__e" bind:input="__e" bind:__l="__l"></u-input><u-action-sheet vue-id="{{('1f7916c4-13')+','+('1f7916c4-11')}}" list="{{theme}}" scroll-y="true" value="{{theme_show}}" data-event-opts="{{[['^click',[['themes']]],['^input',[['__set_model',['','theme_show','$event',[]]]]]]}}" bind:click="__e" bind:input="__e" bind:__l="__l"></u-action-sheet></u-form-item></view><view class="uFormbg"><u-form-item vue-id="{{('1f7916c4-14')+','+('1f7916c4-2')}}" label="用户类型" left-icon="grid" left-icon-style="{{lefticonstyle}}" label-width="160rpx" border-bottom="{{borderbottom}}" bind:__l="__l" vue-slots="{{['default']}}"><u-input vue-id="{{('1f7916c4-15')+','+('1f7916c4-14')}}" type="select" clearable="{{clearable}}" input-align="right" placeholder="{{usersofrole[0].text}}" select-open="{{usersofrole_show}}" value="{{form.usersofrole}}" data-event-opts="{{[['^click',[['e2']]],['^input',[['__set_model',['$0','usersofrole','$event',[]],['form']]]]]}}" bind:click="__e" bind:input="__e" bind:__l="__l"></u-input><u-action-sheet vue-id="{{('1f7916c4-16')+','+('1f7916c4-14')}}" list="{{usersofrole}}" value="{{usersofrole_show}}" data-event-opts="{{[['^click',[['usersofroles']]],['^input',[['__set_model',['','usersofrole_show','$event',[]]]]]]}}" bind:click="__e" bind:input="__e" bind:__l="__l"></u-action-sheet></u-form-item></view><view class="uFormbg"><u-form-item vue-id="{{('1f7916c4-17')+','+('1f7916c4-2')}}" label="测试用户" left-icon="eye" left-icon-style="{{lefticonstyle}}" label-width="160rpx" border-bottom="{{borderbottom}}" bind:__l="__l" vue-slots="{{['default']}}"><u-input vue-id="{{('1f7916c4-18')+','+('1f7916c4-17')}}" type="select" clearable="{{clearable}}" input-align="right" placeholder="{{testuser[0].text}}" select-open="{{testuser_show}}" value="{{form.testuser}}" data-event-opts="{{[['^click',[['e3']]],['^input',[['__set_model',['$0','testuser','$event',[]],['form']]]]]}}" bind:click="__e" bind:input="__e" bind:__l="__l"></u-input><u-action-sheet vue-id="{{('1f7916c4-19')+','+('1f7916c4-17')}}" list="{{testuser}}" value="{{testuser_show}}" data-event-opts="{{[['^click',[['testusers']]],['^input',[['__set_model',['','testuser_show','$event',[]]]]]]}}" bind:click="__e" bind:input="__e" bind:__l="__l"></u-action-sheet></u-form-item></view></u-form></view><view class="hintgroup"><block wx:if="{{TF.nametf}}"><label class="_span">●请输入姓名</label></block><block wx:if="{{TF.namelongtf}}"><label class="_span">●姓名长度请在2~10个字符</label></block><block wx:if="{{TF.iphonetf}}"><label class="_span">●请输入手机号</label></block><block wx:if="{{TF.iphonetftwo}}"><label class="_span">●请输入正确的手机号</label></block><block wx:if="{{TF.passTF}}"><label class="_span">●请输入密码</label></block></view><button data-event-opts="{{[['tap',[['addusers',['$event']]]]]}}" class="submitbtn" bindtap="__e">确 定</button><u-popup bind:input="__e" class="pop-up" vue-id="1f7916c4-20" mode="bottom" length="30%" value="{{typesofrole[0].show}}" data-event-opts="{{[['^input',[['__set_model',['$0','show','$event',[]],['typesofrole.__$n0']]]]]}}" bind:__l="__l" vue-slots="{{['default']}}"><scroll-view class="sheet" scroll-y="true"><block wx:for="{{typesofrole[1]}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="sheet-text"><view data-event-opts="{{[['tap',[['typesofroles',['$0','$1'],[[['typesofrole.__$n1','',index,'role_name']],[['typesofrole.__$n1','',index,'role_id']]]]]]]}}" bindtap="__e" class="_p">{{item.role_name}}</view></view></block></scroll-view><button data-event-opts="{{[['tap',[['e4',['$event']]]]]}}" bindtap="__e">取消</button></u-popup></view></view>